summaryrefslogtreecommitdiff
path: root/php/grill.php
diff options
context:
space:
mode:
authorEliot Whalan <ewhal@pantsu.cat>2016-06-19 00:21:04 +0200
committerEliot Whalan <ewhal@pantsu.cat>2016-06-19 00:21:04 +0200
commitbbf66982fa132454a6dcff57e155f2fa14644a99 (patch)
tree9fc971993d674ea79f913a577b263443b826d2d2 /php/grill.php
parente6caec189aaa24bf58fa777a2ad15e236778c53d (diff)
Move php directory to php/ to avoid confusion
Diffstat (limited to 'php/grill.php')
-rw-r--r--php/grill.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/php/grill.php b/php/grill.php
new file mode 100644
index 0000000..5984b12
--- /dev/null
+++ b/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);
+}