you can add more then one index and value to your array:
PHP Code:
$findwords=array(0 => '{getmicrostats}', 1 => '{bbusername}');
$replacewords=array(0 => $microstats, 1 => $bbusername);
$i=2;
try it and let me know.
also dont forget that dooutput() is needed to call the headers and the time before it starts the page and it ends also. dovars() will only replace the variables. use this code for now:
PHP Code:
// time format (how many digits you want to show)
$digits=7;
$totaltime=$endtime[0]-$starttime[0];
$trimmedtime=number_format($totaltime,$digits);
$percentphp=number_format(((($totaltime-$querytime)/$totaltime)*100), 2)."% PHP";
$percentsql=number_format((($querytime/$totaltime)*100), 2)."% MySQL";
$debugmode=(DEBUG)?" (Debug mode)":"";
$versionphp=phpversion();
if (strstr($HTTP_SERVER_VARS["HTTP_ACCEPT_ENCODING"], "gzip")) {
$gziptext="enabled";
} else {
$gziptext="disabled";
}
$vartext .= "Page generated in $trimmedtime seconds ($percentphp - $percentsql) with $query_count queries.<br>
PHP version $versionphp$debugmode with GZIP library compression $gziptext.";
no need to edit anymore dovars(). you can add html code to it.