error_reporting(0);
require("/home/mibbit/include/accesssearchdb.inc.php");
$PAGE_ID = "networks";
$NEED_SEARCH = true;
include "ads.inc.php";
include "utils.inc.php";
include "networklist.inc.php";
?>
IRC Networks
include_networks_css(); ?>
include "header.inc.php"; ?>
// Get a list of networks...
// sort by users / alpha
$alpha = false;
if (isset($_GET['sort'])) $alpha = true;
$q = "select id, netName, from_unixtime(bot_connect_time), bot_servers, bot_channels, bot_users, bot_ircd_version, detail_website, detail_description from ircNetworks where isPublic=1 group by id";
if ($alpha==true) {
$q.=" order by netName";
} else {
$q.=" order by bot_users desc";
}
$res = mysql_query($q, $sql);
$n = mysql_num_rows($res);
$networks = array();
for ($i=0;$i<$n;$i++) {
mysql_data_seek($res, $i);
$networks[] = mysql_fetch_array($res); // Add on the ID here...
}
?>
Sort by show_selector("Popularity", "/networks", !$alpha); ?> | show_selector("Network name", "/networks-alphabetical", $alpha); ?>
show_networks($networks, $alpha);
?>
include "footer.inc.php"; ?>