data[0]['COUNT(*)']; $result = mysql_query_cached("SELECT COUNT(*) FROM ext WHERE `Deleted`='0' AND `Visible`='1'", 600); $total_ext = $result->data[0]['COUNT(*)']; $result = mysql_query_cached("SELECT COUNT(*) FROM sites WHERE `Deleted`='0' AND `Approved`='1'", 600); $total_sites = $result->data[0]['COUNT(*)']; if($site_messages_enabled === true) { $sitemsg_id = floor(rand(0, count($site_messages)-1)); $i = 0; $sitemsg_url = ""; $sitemsg_message = ""; foreach($site_messages as $key => $message) { if($i == $sitemsg_id) { $sitemsg_url = $key; $sitemsg_message = $message; } $i += 1; } echo("
"); } ?>