diff options
Diffstat (limited to 'inc/user.php')
| -rw-r--r-- | inc/user.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/inc/user.php b/inc/user.php index 1c05b3a1..223eba64 100644 --- a/inc/user.php +++ b/inc/user.php @@ -1,4 +1,10 @@ <?php + if($_SERVER['SCRIPT_FILENAME'] == str_replace('\\', '/', __FILE__)) { + // You cannot request this file directly. + header('Location: ../', true, 302); + exit; + } + // 'false' means that the user is not logged in as a moderator $mod = false; |
