<?php // ******************************************************************* // themes/original/footer.php // *******************************************************************
$html = $table4 . "<tr><td width=\"100%\" "; $html .= "align=\"center\" class=\"footerText\">";
$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 .= "</td></tr><tr><td class=\"footerText\" align=\"center\">"; $html .= "<a class=\"footerLink\" href=\"./directory/"; if ($usesession == "yes") { $html .= "?" . session_name() . "=" . session_id() . "";} $html .= "\">" . $gl["SiteTitle"] . "</a> "; /// please do not change this $html .= "Powered By $version $version_num"; if ($thumbshot == "1"){$html .= "<div align=right><a href=\"http://www.thumbshots.org\"> <img src=\"http://open.thumbshots.org/attribution.png\" alt=\"Free thumbnail preview by Thumbshots.org\" width=\"88\" height=\"31\" border=\"0\"></a></div>";} /// thank you $html .= "</td></tr></table>"; echo footertable("100%","center",$html); unset($html); ?>
|
|