X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=index.php;h=80e8ca3b027de00de8c45540f790af8bfa0e0021;hb=cdf2fe859f439a9d3689ea946e23d9aef1fb6cac;hp=eb75585c48d909b63838cff51cf113eae44445b8;hpb=3e6180183bdc01edfa01dc4b966daa4081c29604;p=friendica.git diff --git a/index.php b/index.php index eb75585c48..80e8ca3b02 100644 --- a/index.php +++ b/index.php @@ -1,7 +1,5 @@ timezone = (($default_timezone) ? $default_timezone : 'UTC'); @@ -110,6 +114,9 @@ if(! x($_SESSION,'authenticated')) if(! x($_SESSION,'sysmsg')) $_SESSION['sysmsg'] = ''; +if(! x($_SESSION,'sysmsg_info')) + $_SESSION['sysmsg_info'] = ''; + /* * check_config() is responsible for running update scripts. These automatically * update the DB schema whenever we push a new one out. It also checks to see if @@ -187,12 +194,18 @@ if(strlen($a->module)) { */ if(! $a->module_loaded) { + + // Stupid browser tried to pre-fetch our ACL img template. Don't log the event or return anything - just quietly exit. + if((x($_SERVER,'QUERY_STRING')) && strpos($_SERVER['QUERY_STRING'],'{0}') !== false) { + killme(); + } + if((x($_SERVER,'QUERY_STRING')) && ($_SERVER['QUERY_STRING'] === 'q=internal_error.html') && isset($dreamhost_error_hack)) { logger('index.php: dreamhost_error_hack invoked. Original URI =' . $_SERVER['REQUEST_URI']); goaway($a->get_baseurl() . $_SERVER['REQUEST_URI']); } - logger('index.php: page not found: ' . $_SERVER['REQUEST_URI'] . ' QUERY: ' . $_SERVER['QUERY_STRING'], LOGGER_DEBUG); + logger('index.php: page not found: ' . $_SERVER['REQUEST_URI'] . ' ADDRESS: ' . $_SERVER['REMOTE_ADDR'] . ' QUERY: ' . $_SERVER['QUERY_STRING'], LOGGER_DEBUG); header($_SERVER["SERVER_PROTOCOL"] . ' 404 ' . t('Not Found')); notice( t('Page not found.' ) . EOL); } @@ -262,8 +275,16 @@ if(stristr($_SESSION['sysmsg'], t('Permission denied'))) { if(x($_SESSION,'sysmsg')) { $a->page['content'] = "
{$_SESSION['sysmsg']}
\r\n" . ((x($a->page,'content')) ? $a->page['content'] : ''); + $_SESSION['sysmsg']=""; unset($_SESSION['sysmsg']); } +if(x($_SESSION,'sysmsg_info')) { + $a->page['content'] = "
{$_SESSION['sysmsg_info']}
\r\n" + . ((x($a->page,'content')) ? $a->page['content'] : ''); + $_SESSION['sysmsg_info']=""; + unset($_SESSION['sysmsg_info']); +} + call_hooks('page_end', $a->page['content']);