Quote:
Originally posted by PPN
Simpliest way to do something like this is use
PHP Code:
if(!strstr("$_SERVER[PATH_TRANSLATED]", "$_SERVER[DOCUMENT_ROOT]")) {
die();
}
|
Hhmmm....
If I add this on top of my config.php the only thing happen is that it is show in the header.
And this error will be shown:
Code:
if(!strstr("$_SERVER[PATH_TRANSLATED]", "$_SERVER[DOCUMENT_ROOT]")) { die(); }
Warning: Cannot add header information - headers already sent by (output started at /home/www/*****/forum/admin/config.php:5) in /home/www/*****/forum/admin/functions.php on line 1603
Sorry for editing the real Server-Path