// make rellek's performance display hack work with the portal
if (isset($genstart) && $genstart) {
$gentime = getgentime($genstart,(float) array_sum(explode(' ', microtime())));
if ($sqltime > $gentime || !$sqltime) $sqltime = "0.001";
$sqlpercent = round(($sqltime/$gentime)*100, 2);
$phppercent = 100 - $sqlpercent;
$footer = str_replace("0.86",$sqlpercent,$footer);
$footer = str_replace("99.14",$phppercent,$footer);
$footer = str_replace("0.116",$gentime,$footer);
$footer = str_replace("0.001",$sqltime,$footer);
$footer = str_replace("14",$sql,$footer);
}