Something isn't right TECK with this code:
PHP Code:
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
$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 )
{
$adminstats = '';
$serverload = '';
$versionnum = phpversion();
$debugmode = 'Debug Mode OFF';
$gziptext = 'GZIP disabled';
if ( $debug == 1 )
{
$debugmode = 'Debug Mode <font color="{ hovercolor}">ON</font>';
}
if ( $gzipoutput == 1 )
{
$gziptext = 'GZIP <font color="{ hovercolor}">enabled</font> - level ' . $gziplevel;
}
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;
}
if ($showqueries) {
$vartext .= "<!-- Page generated in $totaltime seconds with $query_count queries -->";
} else {
eval( '$microstats = "' . gettemplate( 'microstats' ) . '";' );
}
I followed all the directions for the 2.3.0 version but when I upload, I get a blank page.