Cleaner check to make sure inc/ files aren't accessed directly.
This commit is contained in:
1 parent
8a244ab61e
commit
7f0de93608
12 files changed
+13
-40
No files matched your search
+1
-4
@@ -4,10 +4,7 @@
|
||||
* Copyright (c) 2010-2013 Tinyboard Development Group
|
||||
*/
|
||||
|
||||
if (realpath($_SERVER['SCRIPT_FILENAME']) == str_replace('\\', '/', __FILE__)) {
|
||||
// You cannot request this file directly.
|
||||
exit;
|
||||
}
|
||||
defined('TINYBOARD') or exit;
|
||||
|
||||
$hidden_inputs_twig = array();
|
||||
|
||||
|
||||
Reference in new issue
Block a user