1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-05 06:07:32 +02:00

Log plugin - Don't consolidate while in admin area. - prevents issues during upgrade also.

This commit is contained in:
Cameron
2013-04-19 03:05:15 -07:00
parent c98bd31d11
commit 1e9257ce5a

View File

@@ -23,15 +23,18 @@ if (vartrue($pref['statActivate']))
return;
}
// Page to log here
require_once(e_PLUGIN.'log/consolidate.php');
$err_flag = '';
if (defined('ERR_PAGE_ACTIVE'))
{ // We've got an error - set a flag to log it
$err_flag = "&err_direct=".ERR_PAGE_ACTIVE;
if (is_numeric(e_QUERY)) $err_flag .= '/'.substr(e_QUERY,0,10); // This should pick up the error code - and limit numeric length to upset the malicious
$err_flag .= "&err_referer=".$_SERVER['HTTP_REFERER'];
}
if(USER_AREA)
{
require_once(e_PLUGIN.'log/consolidate.php');
$err_flag = '';
if (defined('ERR_PAGE_ACTIVE'))
{ // We've got an error - set a flag to log it
$err_flag = "&err_direct=".ERR_PAGE_ACTIVE;
if (is_numeric(e_QUERY)) $err_flag .= '/'.substr(e_QUERY,0,10); // This should pick up the error code - and limit numeric length to upset the malicious
$err_flag .= "&err_referer=".$_SERVER['HTTP_REFERER'];
}
}
/*
$logJS = "
function rstr2b64(input)