summaryrefslogtreecommitdiff
path: root/static/php/grill.php
diff options
context:
space:
mode:
authorEliot Whalan <ewhal@pantsu.cat>2016-06-17 10:42:24 +0200
committerEliot Whalan <ewhal@pantsu.cat>2016-06-17 10:42:24 +0200
commita3643179b262005d2cd251fb4defb3884ab814ae (patch)
tree07f541584f9abd19de91b34d944dd2ef85572604 /static/php/grill.php
parent0b09cabbd7f684475ba4b28eb99a8182e880717b (diff)
Create php file
Diffstat (limited to 'static/php/grill.php')
-rw-r--r--static/php/grill.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/static/php/grill.php b/static/php/grill.php
new file mode 100644
index 0000000..5984b12
--- /dev/null
+++ b/static/php/grill.php
@@ -0,0 +1,17 @@
+<?php
+
+$images = array(
+ 'img/2.png',
+ 'img/3.png',
+ 'img/4.png',
+ 'img/5.png',
+ 'img/6.png',
+ 'img/7.png',
+ 'img/8.png',
+ 'img/9.png',
+ 'img/10.png',
+);
+
+if (headers_sent() === false) {
+ header('Location: '.$images[array_rand($images)], true, 303);
+}