1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-01 20:30:39 +02:00

Possible fix for 'Anonymous' showing in logs, when admin is logged in.

This commit is contained in:
Cameron
2013-05-31 18:36:43 -07:00
parent 9d4e1f7bf0
commit 8d94fa8b23
2 changed files with 12 additions and 10 deletions

View File

@@ -223,8 +223,8 @@ class e_admin_log
//--------------------------------------- //---------------------------------------
// Calculations common to all logs // Calculations common to all logs
//--------------------------------------- //---------------------------------------
$userid = (USER === TRUE) ? USERID : 0; $userid = deftrue('USER') ? USERID : 0;
$userstring = (USER === true ? USERNAME : 'LAN_ANONYMOUS'); $userstring = deftrue('USER') ? USERNAME : 'LAN_ANONYMOUS';
$userIP = e107::getIPHandler()->getIP(FALSE); $userIP = e107::getIPHandler()->getIP(FALSE);
$importance = $tp->toDB($importance, true, false, 'no_html'); $importance = $tp->toDB($importance, true, false, 'no_html');

View File

@@ -842,12 +842,14 @@ class e_core_session extends e_session
{ {
$details = "HOST: ".$_SERVER['HTTP_HOST']."\n"; $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 .= "_SESSION:\n";
$details .= print_r($_SESSION,true); $details .= print_r($_SESSION,true);
$details .= "\n_POST:\n"; // $details .= "\n_POST:\n";
$details .= print_r($_POST,true); // $details .= print_r($_POST,true);
$details .= "\n_GET:\n"; // $details .= "\n_GET:\n";
$details .= print_r($_GET,true); // $details .= print_r($_GET,true);
$details .= "\nPlugins:\n"; $details .= "\nPlugins:\n";
$details .= print_r($pref['plug_installed'],true); $details .= print_r($pref['plug_installed'],true);