Location: PHPKode > projects > phpBandwidth > phpbandwidth/bw_image_html.php
<?
// phpbandwidth by Alexander Wigen
if (!is_numeric($uid)){
	header("Location: index.php");
	exit;
}

include("db_config.php");
include("db_$db[type].php");
include("user_functions.php");
html_headers();
include("header.php");

$conn = db_connect();
$users = db_get_users($conn);
$bandwidth = fill_bandwidth_array($conn, $uid);

echo "<h1>Stats for $users[$uid]</h1>
<h2>".date('F l jS', mktime(0,0,0,$current_month,$day,$current_year))."
</h2>
<img src=\"bw_image.php?uid=$uid&year=$year&month=$month&day=$day&width=$width&heigth=$heigth\"><br>
Total bandwidth used: ".
 number_format(conv_mb(db_bandwidht_for_day($conn, $uid, $year, $month, $day)),1,'.','') ." Mb";
?>
<br>
These KB/S are averages between the stored records
Return current item: phpBandwidth