diff --git a/e107_admin/auth.php b/e107_admin/auth.php index d496859ef..747585d73 100644 --- a/e107_admin/auth.php +++ b/e107_admin/auth.php @@ -148,6 +148,7 @@ else if ($row[0] == "authfail") { + e107::coreLan('log_messages', true); $admin_log->addEvent(4, __FILE__."|".__FUNCTION__."@".__LINE__, "LOGIN", LAN_ROLL_LOG_11, "U: ".$tp->toDB($_POST['authname']), FALSE, LOG_TO_ROLLING); echo "\n"; diff --git a/e107_handlers/db_debug_class.php b/e107_handlers/db_debug_class.php index 95b2b6474..165fc7c1e 100644 --- a/e107_handlers/db_debug_class.php +++ b/e107_handlers/db_debug_class.php @@ -518,7 +518,7 @@ $obj = new ArrayObject($this->aTimeMarks); $it = $obj->getIterator(); - + $head = ''; // while(list($tKey, $tMarker) = each($this->aTimeMarks)) foreach ($it as $tKey=>$tMarker) @@ -807,6 +807,21 @@ return $text; } + private function includeVar($value) + { + $prefix = array('ADMIN', 'E_', 'e_', 'E107', 'SITE', 'USER', 'CORE'); + + foreach($prefix as $c) + { + if(strpos($value, $c) === 0) + { + return true; + } + } + + return false; + } + function Show_PATH($force = false) { @@ -841,15 +856,18 @@ $userCon = get_defined_constants(true); ksort($userCon['user']); + + $c = 0; foreach($userCon['user'] as $k => $v) { - if(E107_DBG_ALLERRORS || in_array($k, $inc) || substr($k, 0, 5) == 'ADMIN' || substr($k, 0, 2) == 'E_' || substr($k, 0, 2) == 'e_' || substr($k, 0, 4) == 'E107' || substr($k, 0, 4) == 'SITE' || substr($k, 0, 4) == 'USER' || substr($k, 0, 4) == 'CORE') + if(E107_DBG_ALLERRORS || in_array($k, $inc) || $this->includeVar($k)) { $text .= "