block loading include files directly
This commit is contained in:
1 parent
a9bdc6eeb7
commit
b895102563
7 files changed
+40
-5
No files matched your search
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user