diff --git a/class2.php b/class2.php index f13ff250b..4ed20ae0f 100755 --- a/class2.php +++ b/class2.php @@ -1004,6 +1004,8 @@ if (!class_exists('e107table', false)) $ret[$sc] = isset($val[$var]) ? (string) $val[$var] : null; } + $bread = e107::breadcrumb(); + $ret['{---BREADCRUMB---}'] = e107::getForm()->breadcrumb($bread); return $ret; diff --git a/e107_admin/footer.php b/e107_admin/footer.php index 1132b3868..1f2b72426 100644 --- a/e107_admin/footer.php +++ b/e107_admin/footer.php @@ -2,7 +2,7 @@ /* * e107 website system * - * Copyright (C) 2008-2009 e107 Inc (e107.org) + * Copyright (C) 2008-2019 e107 Inc (e107.org) * Released under the terms and conditions of the * GNU General Public License (http://www.gnu.org/licenses/gpl.txt) * @@ -74,19 +74,19 @@ if (varset($e107_popup) != 1) { if ($pref['cachestatus']) { - if (!$sql->db_Select('generic', '*', "gen_type='empty_cache'")) + if (!$sql->select('generic', '*', "gen_type='empty_cache'")) { - $sql->db_Insert('generic', "0,'empty_cache','".time()."','0','','0',''"); + $sql->insert('generic', "0,'empty_cache','".time()."','0','','0',''"); } else { - $row = $sql->db_Fetch(); + $row = $sql->fetch(); if (($row['gen_datestamp'] + 604800) < time()) // If cache not cleared in last 7 days, clear it. { require_once (e_HANDLER."cache_handler.php"); $ec = new ecache; $ec->clear(); - $sql->db_Update('generic', "gen_datestamp='".time()."' WHERE gen_type='empty_cache'"); + $sql->update('generic', "gen_datestamp='".time()."' WHERE gen_type='empty_cache'"); } } } @@ -112,7 +112,7 @@ if (varset($e107_popup) != 1) $memuse = eHelper::getMemoryUsage(); // Memory at end, in B/KB/MB/GB ;) $rinfo = ''; - if (function_exists('getrusage')) + if (function_exists('getrusage') && !empty($eTimingStartCPU)) { $ru = getrusage(); $cpuUTime = $ru['ru_utime.tv_sec'] + ($ru['ru_utime.tv_usec'] * (1e-6)); @@ -157,11 +157,11 @@ if (varset($e107_popup) != 1) { $rinfo .= CORE_LAN15.$sql->db_QueryCount().". "; } - if (isset($pref['display_memory_usage']) && $pref['display_memory_usage']) + if (!empty($pref['display_memory_usage'])) { $rinfo .= CORE_LAN16.$memuse; } - if (isset($pref['displaycacheinfo']) && $pref['displaycacheinfo']) + if (!empty($pref['displaycacheinfo']) && !empty($cachestring)) { $rinfo .= $cachestring."."; } @@ -186,9 +186,9 @@ if (varset($e107_popup) != 1) // if ((ADMIN || $pref['developer']) && E107_DEBUG_LEVEL) { - global $db_debug; + // global $db_debug; echo "\n\n