Warning - remove everything outside of the <?php tags or
your image will break
//gif11.php3 accepts these parameters:
$c; //correlates to group_id in the database -
//unique for each site
$s; //correlates to page in the database
$b; //random number - forces the gif to load, even if cached
//generated by PHP and discarded
-->
//
// If eveything resides on the same server, just include
// the following code on every page instead of doing the 1x1 gif trick
//
$sql = "INSERT INTO activity_log "
. "(day,hour,group_id,browser,ver,platform,time,page,type) "
. "VALUES (" . date('Ymd', mktime()) . ",'" . date('H', mktime())
. "','$group_id','" . browser_get_agent() . "','" . browser_get_version()
. "','" . browser_get_platform() . "','" . time() . "','$PHP_SELF','$type');";
$res_logger = db_query ( $sql );
if (!$res_logger) {
echo "An error occured in the logger.\n";
echo db_error();
exit;
}
function html_get_alt_row_color ($i) {
if ($i % 2 == 0) {
return '#FFFFFF';
} else {
return '#EEEEEE';
}
}
Function ShowResults($result,$title="Untitled") {
/*
Very simple, plain way to show a generic result set
Accepts a result set and title
Makes certain items into HTML links
*/
if ($result) {
$rows = db_numrows($result);
$cols = db_numfields($result);