diff options
Diffstat (limited to 'inc/mod.php')
| -rw-r--r-- | inc/mod.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/inc/mod.php b/inc/mod.php index 274159ba..78351ba7 100644 --- a/inc/mod.php +++ b/inc/mod.php @@ -1,5 +1,10 @@ <?php - + if($_SERVER['SCRIPT_FILENAME'] == str_replace('\\', '/', __FILE__)) { + // You cannot request this file directly. + header('Location: ../', true, 302); + exit; + } + // Creates a small random string for validating moderators' cookies function mkhash($length=12) { // The method here isn't really important, |
