security thing

This commit is contained in:
John Bintz 2010-03-21 13:33:23 -04:00
parent b2e7e8ea0e
commit 42877b5600

View File

@ -3,6 +3,11 @@
// If you're using a different global default layout name, change it here // If you're using a different global default layout name, change it here
$layout = 'application'; $layout = 'application';
if (!isset($_SERVER['REDIRECT_URL'])) {
header('HTTP/1.1 403 Forbidden');
exit(1);
}
// END OF USER-CONFIGURABLE SETTINGS // END OF USER-CONFIGURABLE SETTINGS
function fe_check($path) { function fe_check($path) {