summaryrefslogtreecommitdiff
path: root/inc/display.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/display.php')
-rw-r--r--inc/display.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/inc/display.php b/inc/display.php
index 9ba5cac6..1b5e98f7 100644
--- a/inc/display.php
+++ b/inc/display.php
@@ -1,4 +1,10 @@
<?php
+ if($_SERVER['SCRIPT_FILENAME'] == str_replace('\\', '/', __FILE__)) {
+ // You cannot request this file directly.
+ header('Location: ../', true, 302);
+ exit;
+ }
+
/*
Stuff to help with the display.
*/