"; exit; } $sort = mysql_real_escape_string($_POST["dirsort"]); //$_GET["sort"]; $by = mysql_real_escape_string($_POST["sortby"]); //$_GET["by"]; $table = mysql_real_escape_string($_POST["table"]); //$_GET["table"]; $client= mysql_real_escape_string($_POST["client"]); ?>

Search Client:
"; if($table=='connections') { echo "\n"; } else if($table=='month') { echo "\n"; } else if($table=='year') { echo "\n"; } else { } // ------------------------------------------------ Mysql lesen if ($result) { while ($ar=mysql_fetch_array($result,MYSQL_ASSOC)) { if($ar["sent"]>1024) { $sentbytes = round($ar["sent"]/1024,2) . " KiB"; if($ar["sent"]>1048576) { $sentbytes = round($ar["sent"]/1024/1024,2) . " MiB"; if($ar["sent"]>1073741824) { $sentbytes = round($ar["sent"]/1024/1024/1024,2) . " GiB"; } } } else { $sentbytes = $ar["sent"]. " Byte"; } if($ar["received"]>1024) { $receivedbytes = round($ar["received"]/1024,2) . " KiB"; if($ar["received"]>1048576) { $receivedbytes = round($ar["received"]/1024/1024,2) . " MiB"; if($ar["received"]>1073741824) { $receivedbytes = round($ar["received"]/1024/1024/1024,2) . " GiB"; } } } else { $receivedbytes = $ar["received"]. " Byte"; } if($table=='connections') { if($ar["stop"] != 0) { $stop = date("r",$ar["stop"]); } else { $stop = "running session"; } if($client == "" || $ar["client"] == $client) { echo "\n"; } } else if($table=='month') { $hour = floor($ar["time"]/3600); $min = floor($ar["time"]/60 - $hour *60); $sec = $ar["time"]-$hour*3600-$min*60; $timestring = $hour .":". $min .":". $sec; if($client == "" || $ar["client"] == $client) { echo "\n"; } } else if($table=='year') { $hour = floor($ar["time"]/3600); $min = floor($ar["time"]/60 - $hour *60); $sec = $ar["time"]-$hour*3600-$min*60; $timestring = $hour .":". $min .":". $sec; if($client == "" || $ar["client"] == $client) { echo "\n"; } } else { } } } else { echo "
"; } echo "
Start TimeStop TimeClient NameClient IPDownload Upload
MonthYearConnection TimeClient NameDownload Upload
YearConnection TimeClient NameDownload Upload
",date("r",$ar["start"]),"",$stop,"",$ar["client"], "",$ar["ip"], "",$sentbytes, "",$receivedbytes, "
",$ar["month"],"",$ar["year"],"",$timestring, "",$ar["client"], "",$sentbytes,"",$receivedbytes, "
",$ar["year"],"",$timestring, "",$ar["client"], "",$sentbytes,"",$receivedbytes, "
"; mysql_close(); ?>