forked from leftypol/leftypol
Cleaner check to make sure inc/ files aren't accessed directly.
This commit is contained in:
parent
8a244ab61e
commit
7f0de93608
12 changed files with 13 additions and 40 deletions
|
@ -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;
|
||||
|
||||
// create a hash/salt pair for validate logins
|
||||
function mkhash($username, $password, $salt = false) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue