EOF; $sql = sql_query(" select ID from $tb_categories "); $html .= " Total Categories: " . (sql_num_rows($sql)+0); $sql = sql_query(" select ID from $tb_links "); $html .= "  Total Links: " . (sql_num_rows($sql)+0); $sql = sql_query(" select ID from $tb_terms "); $html .= "  Searches Performed: " . (sql_num_rows($sql)+0); $sql = sql_query(" select sum(HitsIn) as hits_in from $tb_links "); $rows = sql_fetch_array($sql); $html .= "  Hits In: " . ($rows["hits_in"]+0); $sql = sql_query(" select sum(HitsOut) as hits_out from $tb_links "); $rows = sql_fetch_array($sql); $html .= "  Hits Out: " . ($rows["hits_out"]+0); $sql = sql_query(" select count(*) as count from $tb_sessions where expire > UNIX_TIMESTAMP() - 300 "); $rows = sql_fetch_array($sql); $html .= "  Visitors Online: " . ($rows["count"]+0); $html .= << EOF; if($SERVER_NAME != "phplinks.org" && $SERVER_NAME != "dev.phplinks.org"){ $html .= <<$gl[SiteTitle]  EOF; } $html .= << Powered By phpLinks EOF; echo footertable("100%","center",$html); unset($html); $html = <<

EOF; echo $html; ?>