diff options
author | natrak <> | 2001-05-16 14:45:36 +0000 |
---|---|---|
committer | natrak <> | 2001-05-16 14:45:36 +0000 |
commit | f40efdcada6e9ad28117c16713f9329de6b9ea86 (patch) | |
tree | 7b973cdd4a81aebb3a2018b878594eb22669e382 | |
parent | ced0838a825076b76de631dc1a1216acf65f2b92 (diff) | |
download | brdo-f40efdcada6e9ad28117c16713f9329de6b9ea86.tar.gz brdo-f40efdcada6e9ad28117c16713f9329de6b9ea86.tar.bz2 |
- Updated to only die() if page is directly requested.
-rw-r--r-- | includes/setting.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/setting.php b/includes/setting.php index be4590b00..525de3bb4 100644 --- a/includes/setting.php +++ b/includes/setting.php @@ -57,6 +57,6 @@ $themes = array("UnConeD" => array( $languages = array("en" => "English"); # This line prevents users from accessing your settings file: -die("access denied"); +if (basename($SCRIPT_FILENAME) == basename(__FILE__) && basename($SCRIPT_FILENAME) != "") die("access denied"); ?>
\ No newline at end of file |