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("
$sitemsg_message
"); } ?>
Overview Highest rated Most recent
= DATE_SUB(CURRENT_DATE(), INTERVAL {$recent_days} DAY) ORDER BY `Upvotes` DESC LIMIT 3"; if($result = mysql_query_cached($query)) { foreach($result->data as $item) { $name = utf8entities(stripslashes($item['Name'])); $id = $item['Id']; $comments = $item['CommentCount']; $upvotes = $item['Upvotes']; echo(template_item($name, "press", $id, $comments, true, $upvotes, 0)); } } $query = "SELECT * FROM press WHERE `Deleted`='0' AND `Approved`='1' ORDER BY `Posted` DESC LIMIT 3"; if($result = mysql_query_cached($query)) { foreach($result->data as $item) { $name = utf8entities(stripslashes($item['Name'])); $id = $item['Id']; $comments = $item['CommentCount']; $upvotes = $item['Upvotes']; echo(template_item($name, "press", $id, $comments, false, $upvotes, 0)); } } ?> More () >> + Add
data as $item) { $name = utf8entities(stripslashes($item['Name'])); $id = $item['Id']; $comments = $item['CommentCount']; $rank = $item['Rank']; echo(template_item($name, "external-news", $id, $comments, false, 0, $rank)); } } ?> More () >> + Add
Last days Forever
= DATE_SUB(CURRENT_DATE(), INTERVAL {$recent_days} DAY) ORDER BY `Rank` DESC LIMIT 4"; if($result = mysql_query_cached($query)) { foreach($result->data as $item) { $name = utf8entities(stripslashes($item['Name'])); $id = $item['Id']; $comments = $item['CommentCount']; $rank = $item['Rank']; echo(template_item($name, "external-news", $id, $comments, false, 0, $rank)); } } ?> More () >> + Add
Last days Forever
= DATE_SUB(CURRENT_DATE(), INTERVAL 7 DAY) ORDER BY `Rank` ASC LIMIT 4"; if($result = mysql_query_cached($query)) { foreach($result->data as $item) { $name = utf8entities(stripslashes($item['Name'])); $id = $item['Id']; $comments = $item['CommentCount']; $rank = $item['Rank']; echo(template_item($name, "external-news", $id, $comments, false, 0, $rank)); } } ?> More () >> + Add
data as $item) { $name = utf8entities(stripslashes($item['Name'])); $id = $item['Id']; $comments = $item['CommentCount']; echo(template_item($name, "related-sites", $id, $comments, false, 0, 0)); } } ?> More () >> + Add