Error Log in the forum Admin Control Panel
// this way all site errors get logged instead of just phpbb errors
// it works exactly like printf however the string must be defined in /forums/language/en/acp/common.php
// 1st param is the log type
// 2nd param is the string defined in /forums/language/en/acp/common.php as 'LOG_ERROR_PAGE' => 'ERROR PAGE - %d
» %s',
// 3rd param is %d for errorcode - defined above
// 4th param is %s for the current page - defined above
if ($errorcode != 403)
{
if (!empty($_SERVER['HTTP_REFERER']))
{
$referringSite = $_SERVER['HTTP_REFERER'];
// this is a second type for logging the referer if the request come from another site
add_log('critical', 'LOG_ERROR_PAGE_REF', $errorcode, curPageURL(), $referringSite);
}
else
{
add_log('critical', 'LOG_ERROR_PAGE', $errorcode, curPageURL());
}
}
?>
ERROR :
Please notify the team about this error or try again later.
Contact information is available on the About page.