mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 12:48:24 +01:00
Possible fix for 'Anonymous' showing in logs, when admin is logged in.
This commit is contained in:
parent
9d4e1f7bf0
commit
8d94fa8b23
@ -223,12 +223,12 @@ class e_admin_log
|
||||
//---------------------------------------
|
||||
// Calculations common to all logs
|
||||
//---------------------------------------
|
||||
$userid = (USER === TRUE) ? USERID : 0;
|
||||
$userstring = (USER === true ? USERNAME : 'LAN_ANONYMOUS');
|
||||
$userIP = e107::getIPHandler()->getIP(FALSE);
|
||||
$userid = deftrue('USER') ? USERID : 0;
|
||||
$userstring = deftrue('USER') ? USERNAME : 'LAN_ANONYMOUS';
|
||||
$userIP = e107::getIPHandler()->getIP(FALSE);
|
||||
|
||||
$importance = $tp->toDB($importance, true, false, 'no_html');
|
||||
$eventcode = $tp->toDB($eventcode, true, false, 'no_html');
|
||||
$importance = $tp->toDB($importance, true, false, 'no_html');
|
||||
$eventcode = $tp->toDB($eventcode, true, false, 'no_html');
|
||||
|
||||
if (is_array($explain))
|
||||
{
|
||||
|
@ -841,13 +841,15 @@ class e_core_session extends e_session
|
||||
if(defsettrue('e_DEBUG'))
|
||||
{
|
||||
$details = "HOST: ".$_SERVER['HTTP_HOST']."\n";
|
||||
$details .= "REQUEST_URI: ".$_SERVER['REQUEST_URI']."\n";
|
||||
$details .= "REQUEST_URI: ".$_SERVER['REQUEST_URI']."\n";
|
||||
$details .= "e-token (POST): ".$_POST['e-token']."\n";
|
||||
$details .= "e-token (GET): ".$_GET['e-token']."\n";
|
||||
$details .= "_SESSION:\n";
|
||||
$details .= print_r($_SESSION,true);
|
||||
$details .= "\n_POST:\n";
|
||||
$details .= print_r($_POST,true);
|
||||
$details .= "\n_GET:\n";
|
||||
$details .= print_r($_GET,true);
|
||||
// $details .= "\n_POST:\n";
|
||||
// $details .= print_r($_POST,true);
|
||||
// $details .= "\n_GET:\n";
|
||||
// $details .= print_r($_GET,true);
|
||||
$details .= "\nPlugins:\n";
|
||||
$details .= print_r($pref['plug_installed'],true);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user