error_reporting(0);
require("/home/mibbit/include/accesssearchdb.inc.php");
$NEED_SEARCH = true;
include "ads.inc.php";
include "utils.inc.php";
$network = $_GET["network"];
if ($network=="IRCNET") {
echo "Please retry later";
quit(); // quick n dirty for now
}
//
// Redirect if it's a query...
//
if (isset($_GET['q'])) {
header("Location: https://search.mibbit.com/search-".rawurlencode($_GET["network"])."/".rawurlencode(ereg_replace("[^A-Za-z0-9 ]", "", $_GET['q'])));
exit();
}
?>
IRC Networks if(isset($network)) echo " > ".htmlentities($network);?> > Channels
include "channellist.inc.php";
include_channels_css(isset($_GET["small"]));
?>
$small = $_GET["small"];
if (!isset($small)) {
include "header.inc.php";
} else {
show_help("Channels on ".$_GET["network"]);
// Show a search form
}
?>
$netName = $_GET["network"];
$page = $_GET["channelpage"];
if (!isset($page)) $page = 1;
$alpha = false;
if (isset($_GET['sort'])) $alpha = true;
$q = "select netName, channel, users, topic, serverConnect, unix_timestamp()-lastChecked, drugs, adult, warez from ircNetworks join ircChannels on networkID=ircNetworks.id left join ircChannelsFlags on ircChannelsFlags.id=ircChannels.id where (unix_timestamp()-lastChecked)<(8*60*60) and netName=\"".mysql_real_escape_string($netName)."\"";
if ($alpha==true) {
$q.=" order by channel";
} else {
$q.=" order by users desc";
}
$res = mysql_query($q, $sql);
$n = mysql_num_rows($res);
if ($n>0) {
$NUM_PAGE = 50;
$n_s = ($page-1)*$NUM_PAGE;
$n_e = ($page*$NUM_PAGE);
$channels = array();
$t = 0;
$ltime = 0;
for ($i=$n_s;$i
Sort by show_selector("Popularity", "/channels".($small?"-small":"")."/".rawurlencode($netName), !$alpha); ?> | show_selector("Channel name", "/channels".($small?"-small":"")."-alphabetical/".rawurlencode($netName), $alpha); ?>
show_result_pager($page, $total_pages, "/channels".($small?"-small":"").($alpha?"-alphabetical":"")."/".rawurlencode($netName)."/", $n);
show_channels($channels, $netName, $alpha, $small);
show_result_pager($page, $total_pages, "/channels".($small?"-small":"").($alpha?"-alphabetical":"")."/".rawurlencode($netName)."/", $n);
?>
Last updated 0 minutes ago.
} else {
?>
To find channels type /list <keywords>
}
//if (!isset($_GET["small"])) {
include "footer.inc.php";
//}
?>