Upgrade to Version 2.1
Change only the code segment listed below in your v2.0:
File: FORUM/admin/functions.php
FIND:
Code:
// ###################### Start dooutput #######################
function dooutput($vartext,$sendheader=1) {
global $pagestarttime,$query_count,$showqueries,$querytime,$DB_site,$gzipoutput,$gziplevel,$bbuserinfo,$microstats;
$pageendtime=microtime();
$starttime=explode(" ",$pagestarttime);
$endtime=explode(" ",$pageendtime);
// time format (how many digits you want to show)
$digits=8;
$totaltime=$endtime[0]-$starttime[0]+$endtime[1]-$starttime[1];
$trimmedtime=number_format($totaltime,$digits);
$percentphp=number_format(((($totaltime-$querytime)/$totaltime)*100),2).'% PHP';
$percentsql=number_format((($querytime/$totaltime)*100),2).'% MySQL';
if ($bbuserinfo['usergroupid']==6) {
if ($debug==1) {
$debugmode='Debug Mode <font color="#E4630A">ON</font>';
} else {
$debugmode='Debug Mode OFF';
}
if ($gzipoutput==1) {
$gziptext='GZIP <font color="#E4630A">enabled</font> - level '.$gziplevel;
} else {
$gziptext='GZIP disabled';
}
$versionnum=phpversion();
$adminstats='<br>['.$debugmode.'] [PHP v'.$versionnum.'] ['.$gziptext.']';
} else {
$adminstats='';
}
if ($showqueries) {
$vartext .= "<!-- Page generated in $totaltime seconds with $query_count queries -->";
} else {
eval("\$microstats = \"".gettemplate('home_microstats')."\";");
}
REPLACE IT WITH:
Code:
// ###################### Start dooutput #######################
function dooutput($vartext,$sendheader=1) {
global $pagestarttime,$query_count,$showqueries,$querytime,$DB_site,$gzipoutput,$gziplevel,$bbuserinfo,$microstats;
$pageendtime=microtime();
$starttime=explode(" ",$pagestarttime);
$endtime=explode(" ",$pageendtime);
// time format (how many digits you want to show)
$digits=8;
$totaltime=$endtime[0]-$starttime[0]+$endtime[1]-$starttime[1];
$trimmedtime=number_format($totaltime,$digits);
$percentphp=number_format(((($totaltime-$querytime)/$totaltime)*100),2).'% PHP';
$percentsql=number_format((($querytime/$totaltime)*100),2).'% MySQL';
if ($bbuserinfo['usergroupid']==6) {
if ($debug==1) {
$debugmode='Debug Mode <font color="{ hovercolor }">ON</font>';
} else {
$debugmode='Debug Mode OFF';
}
if ($gzipoutput==1) {
$gziptext='GZIP <font color="{ hovercolor }">enabled</font> - level '.$gziplevel;
} else {
$gziptext='GZIP disabled';
}
$versionnum=phpversion();
if ($stats=@exec('uptime')) {
preg_match('/averages?: ([0-9\.]+),[\s]+([0-9\.]+),[\s]+([0-9\.]+)/',$stats,$regs);
$serverload=' [Server Load: <font color="{ hovercolor }"><b>'.$regs[1].'</b></font> ? '.$regs[2].' : '.$regs[3].']';
}
$adminstats='<br>['.$debugmode.'] [PHP v'.$versionnum.'] ['.$gziptext.']'.$serverload;
} else {
$adminstats='';
}
if ($showqueries) {
$vartext .= "<!-- Page generated in $totaltime seconds with $query_count queries -->";
} else {
eval("\$microstats = \"".gettemplate('home_microstats')."\";");
}
Make sure you remove the spaces between the { hovercolor } brackets.