From 2734a2e28d4f877c46d09aa1a37581ea9e525195 Mon Sep 17 00:00:00 2001 From: e107steved Date: Mon, 29 Dec 2008 18:17:46 +0000 Subject: [PATCH] Log a bit more --- e107_themes/templates/footer_default.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/e107_themes/templates/footer_default.php b/e107_themes/templates/footer_default.php index 62ceb530c..70365b77e 100644 --- a/e107_themes/templates/footer_default.php +++ b/e107_themes/templates/footer_default.php @@ -11,8 +11,8 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_themes/templates/footer_default.php,v $ -| $Revision: 1.13 $ -| $Date: 2008-11-25 20:12:30 $ +| $Revision: 1.14 $ +| $Date: 2008-12-29 18:17:46 $ | $Author: e107steved $ +----------------------------------------------------------------------------+ */ @@ -78,11 +78,12 @@ if(varset($e107_popup)!=1) $db_time = number_format($db_time,2); // Clock time in DB render $dbPercent = number_format($dbPercent,0); // DB as percent of clock $memuse = $e107->get_memory_usage(); // Memory at end, in B/KB/MB/GB ;) + $queryCount = $sql -> db_QueryCount(); $rinfo = ''; $logLine = ''; if ($pref['log_page_accesses']) { // Collect the first batch of data to log - $logLine.= "'".($now = time())."','".gmstrftime('%y-%m-%d %H:%M:%S',$now)."','".e_PAGE.'?'.e_QUERY."','".$rendertime."','".$db_time."','".$memuse."'"; + $logLine.= "'".($now = time())."','".gmstrftime('%y-%m-%d %H:%M:%S',$now)."','".$e107->getIP()."','".e_PAGE.'?'.e_QUERY."','".$rendertime."','".$db_time."','".$queryCount."','".$memuse."'"; } if ( function_exists( 'getrusage' ) ) @@ -121,7 +122,7 @@ if(varset($e107_popup)!=1) } $rinfo .= $rendertime.CORE_LAN12.$dbPercent.CORE_LAN13.' '; } - if($pref['displaysql']){ $rinfo .= CORE_LAN15.$sql -> db_QueryCount().". "; } + if($pref['displaysql']){ $rinfo .= CORE_LAN15.$queryCount.". "; } if(isset($pref['display_memory_usage']) && $pref['display_memory_usage']){ $rinfo .= CORE_LAN16.$memuse; } if(isset($pref['displaycacheinfo']) && $pref['displaycacheinfo']){ $rinfo .= $cachestring."."; }