getestet und geht nich gg hab php 4 muste also das letzte noch machen was ich nich wirklich raffe so sehen meine codes aus

Index
PHP-Code:
<?
function microtime_float()
{
    list($usec, $sec) = explode(" ", microtime());
    return ((float)$usec + (float)$sec);
}  
$start_time = microtime_float();
$sql_time = 0; 
if (isset ($_GET['content']) && !empty ($_GET['content'])) {
    if (strpos ($_GET['content'], '../') !== FALSE) die ('Zugriffsverletzung !');
    if ($_GET['content']{0} != '/') $_GET['content'] = '/'.$_GET['content'];
}

require ( './lib/header.php' );
require ( './content'.$_GET['content'].'.php' );
require ( './lib/footer.php' );
?>
functionslib
PHP-Code:
// Mysql Querys
function db_query($sql_tag){
global 
$count_query,$sql_time;

    
$sql_start microtime_float();
    
$count_query++;
    
$vargs = array();
    
$fargs func_get_args();
    foreach(
$fargs as $key => $arg){
      
$vargs[$key] = mysql_real_escape_string($arg);
    }
    
array_shift($vargs);
    if(!empty(
$vargs)){
    
$sql_tag vsprintf($sql_tag,$vargs);
    }
    if(
$ret mysql_query($sql_tag)){
      
$sql_time += microtime_float() - $sql_start;
      return 
$ret;
    }else{
      
$sql_time += microtime_float() - $sql_start;
      return 
0;
    }

und footer

PHP-Code:
<?php
$ende_time 
microtime_float();
$ges_time $ende_time $start_time;
$php_time $ges_time $sql_time
?>
<?=$count_query
;?> MySQL Abfragen | PHP: <?=number_format($php_time,4,',','.');?> s | SQL: <?=number_format($sql_time,4,',','.');?> s
<!-- Fussnote -->

</td></tr></table>
</body>
</html>
<?
db_close();
if ($gzip_rate > 0) ob_end_flush();  
?>

was habe ich falsch das die seite so voller fehler is