"Unknown Ranger";p="14293" wrote:"Michaelo";p="14281" wrote:Please edit your functions.php adding the following code to the start... Should be line 22
- Code: Select all
// Belt //if(strstr($phpbb_root_path, '"')){die('Hacking attempt... Details Logged'); exit;}// Braces //if($phpbb_root_path[0] != '.' && $phpbb_root_path[1] != '/' || $phpbb_root_path[0] != '.' && $phpbb_root_path[1] != '.'){ $phpbb_root_path = './'; die('Hacking attempt... Details Logged'); exit; }
This will fix the second hack using functions.php and php_root_path, I may have gone overboard but who cares <img>
Many thanks to pggar for all the testing on this one...
Note with this fix you do not need register_globals off but to be honest the should be OFF as they will disappear in php6
Mike
This latest fix blocks me out of my main photo album. Putting back original functions.php allows me back in. All other posted fixes are applied without issues.
Ditto... I get "Hacking Attempt... Details Logged" when trying to access Photo Album