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