$tid[] = (int) $ta["id"]; } if (isset($tids) && count($tids)) { $p = sql_query("SELECT p.id,p.torrent as tid,p.seeder, p.finishedat, p.downloadoffset, p.uploadoffset, p.ip, p.port, p.uploaded, p.downloaded, p.started AS started, p.last_action AS last_action, u.id as p_uid , u.username as p_user FROM peers AS p LEFT JOIN users as u on u.id=p.userid WHERE p.torrent IN (" . join(",", $tid) . ") AND p.seeder = 'yes' AND to_go=0 LIMIT 5") or sqlerr(__FILE__, __LINE__); while ($pa = mysqli_fetch_assoc($p)) { $peers[$pa["tid"]][] = $pa; } } $htmlout .= "<div align='center' style='width:90%'>\n <fieldset style='border:2px solid #333333;'>\n <legend style='padding:5xp 0px 0px 5px;'>{$lang['catol_search']}</legend>\n <form action='" . $_SERVER["PHP_SELF"] . "' method='get' style='margin:10px;'>\n <input type='text' size='50' name='search' value='" . ($search ? $search : "{$lang['catol_search_for_tor']}") . "' onblur=\"if (this.value == '') this.value='{$lang['catol_search_for_tor']}';\" onfocus=\"if (this.value == '{$lang['catol_search_for_tor']}') this.value='';\" /> <input type='submit' value='search!' />\n </form>"; for ($i = 97; $i < 123; ++$i) { $l = chr($i); $L = chr($i - 32); if ($l == $letter) { $htmlout .= "<font class=\"sublink-active\">{$L}</font>\n"; } else { $htmlout .= "<a class=\"sublink\" href=\"" . $_SERVER["PHP_SELF"] . "?letter=" . $l . "\">" . $L . "</a>\n"; } } $htmlout .= "</fieldset></div><br />"; $htmlout .= begin_frame(); if (count($rows) > 0) { $htmlout .= "<table width='95%' border='1' cellpadding='5' style='border-collapse:collapse'>\n <tr><td align='left' colspan='2' class='colhead'>{$lang['catol_std_head']}</td></tr>\n <tr><td align='left' colspan='2' >{$top}</td></tr>"; foreach ($rows as $row) { $htmlout .= "<tr>\n <td align='center' valign='top' nowrap='nowrap'>\n <table align='center' width='160' border='1' cellpadding='2'>\n <tr><td align='center' class='colhead'>{$lang['catol_upper']} : <a href='userdetails.php?id=" . (int) $row["owner"] . "'>" . ($row["user"] ? htmlsafechars($row["user"]) : "{$lang['catol_unknown']}[" . (int) $row["owner"] . "]") . "</a></td></tr>\n <tr><td align='center'>" . ($row["poster"] ? "<a href=\"" . htmlsafechars($row["poster"]) . "\"><img src=\"" . htmlsafechars($row["poster"]) . "\" border=\"0\" width=\"150\" height=\"195\" alt=\"{$lang['catol_no_poster']}\" title=\"{$lang['catol_no_poster']}\" /></a>" : "<img src=\"pic/noposter.png\" border=\"0\" width=\"150\" alt=\"{$lang['catol_no_poster']}\" title=\"{$lang['catol_no_poster']}\" />") . "</td></tr>\n </table>\n\n </td>\n\n <td align='center' width='100%' valign='top'>\n <table width='100%' cellpadding='3' cellspacing='0' border='1' style='border-collapse:collapse;font-weight:bold;'>\n <tr>\n <td align='center' width='100%' rowspan='2' ><a href='details.php?id=" . (int) $row["id"] . "&hit=1'><b>" . substr(htmlsafechars($row["name"]), 0, 60) . "</b></a></td>\n <td align='center' class='colhead'>{$lang['catol_added']}</td>\n <td align='center' class='colhead'>{$lang['catol_size']}</td>\n <td align='center' class='colhead'>{$lang['catol_snatched']}</td>\n <td align='center' class='colhead'>S.</td>\n <td align='center' class='colhead'>L.</td>\n </tr>\n <tr>\n <td align='center'>" . get_date($row["added"], 'LONG', 0, 1) . "</td>\n <td align='center' nowrap='nowrap'>" . mksize($row["size"]) . "</td>\n <td align='center' nowrap='nowrap'>" . ($row["snatched"] > 0 ? $row["snatched"] == 1 ? (int) $row["snatched"] . " time" : (int) $row["snatched"] . " times" : 0) . "</td>\n <td align='center'>" . (int) $row["seeders"] . "</td>\n <td align='center'>" . (int) $row["leechers"] . "</td>\n </tr>\n <tr><td width='100%' colspan='6' class='colhead' >{$lang['catol_info']}.</td></tr>\n <tr><td width='100%' colspan='6' style='font-weight:normal;' >" . readMore($row["descr"], 500, "details.php?id=" . (int) $row["id"] . "&hit=1") . "</td></tr>\n <tr><td width='100%' colspan='6' class='colhead'>{$lang['catol_seeder_info']}</td></tr>\n <tr><td width='100%' colspan='6' style='font-weight:normal;' >" . (isset($peers[$row["id"]]) ? peer_list($peers[$row["id"]]) : "{$lang['catol_no_info_show']}") . "</td></tr>\n </table></td></tr>"; } $htmlout .= "<tr><td align='left' colspan='2' >{$bottom}</td></tr>\n <tr><td align='right' colspan='2' class='colhead'>{$lang['catol_orig_created_by']}</td></tr>\n </table>"; } else { $htmlout .= "<h2>{$lang['catol_nothing_found']}!</h2>"; } $htmlout .= end_frame(); echo stdhead($lang['catol_std_head']) . $htmlout . stdfoot();
$peers[$pa["tid"]][] = $pa; } } $htmlout .= "<div class='row'><div class='col-md-12'>\n <fieldset style='border:2px solid #333333;'>\n <div class='row'><div class='col-md-8 col-md-push-2'><h4 class='text-center'>{$lang['catol_search']}</h4>\n <form action='" . $_SERVER["PHP_SELF"] . "' method='get' style='margin:10px;'>\n <input type='text' size='100' name='search' value='" . ($search ? $search : "{$lang['catol_search_for_tor']}") . "' onblur=\"if (this.value == '') this.value='{$lang['catol_search_for_tor']}';\" onfocus=\"if (this.value == '{$lang['catol_search_for_tor']}') this.value='';\" /> <input type='submit' value='search!' />\n </form></div></div>"; $htmlout .= "<div class='row'><div class='col-md-8 col-md-push-4'>"; for ($i = 97; $i < 123; ++$i) { $l = chr($i); $L = chr($i - 32); if ($l == $letter) { $htmlout .= "<font class=\"sublink-active\">{$L}</font>\n"; } else { $htmlout .= "<a class=\"sublink\" href=\"" . $_SERVER["PHP_SELF"] . "?letter=" . $l . "\">" . $L . "</a>\n"; } $htmlout .= "<!--</div></div>-->"; } $htmlout .= "</fieldset></div></div><br>"; $htmlout .= "<div class='container'>"; if (count($rows) > 0) { $htmlout .= "<div class='row'><div class='col-md-10'>" . $pager['pagerbottom'] . "</div><br><br><div class='col-md-2 col-md-push-0'><a class='btn btn-default btn-link' title='Back to Browse' href='" . $INSTALLER09['baseurl'] . "/browse.php'>Back to Browse</a></div></div>"; $htmlout .= "<h3 class='text-center'>{$lang['catol_std_head']}</h3>"; $htmlout .= "<div class='row'>"; foreach ($rows as $row) { $htmlout .= "<div class='panel col-sm-3 col-sm-offset-0 panel-default browsep'>\n <div style='display:block; height:5px;'></div>\n\n \t<p class='browsed text-center'><b><font color='rgb(67,158,76)'>{$lang['catol_upper']} :</font></b> <a href='userdetails.php?id=" . (int) $row["owner"] . "'>" . ($row["user"] ? htmlsafechars($row["user"]) : "{$lang['catol_unknown']}[" . (int) $row["owner"] . "]") . "</a></p>\n\n\t<p class='browsepd text-center'>" . ($row["poster"] ? "<a href=\"" . htmlsafechars($row["poster"]) . "\"><img src=\"" . htmlsafechars($row["poster"]) . "\" border=\"0\" width=\"150\" height=\"225\" alt=\"{$lang['catol_no_poster']}\" title=\"{$lang['catol_no_poster']}\" /></a>" : "<img src=\"pic/noposter.png\" border=\"0\" width=\"150\" alt=\"{$lang['catol_no_poster']}\" title=\"{$lang['catol_no_poster']}\" />") . "</p>\n \n<p class='squashp browsepd text-center'><b><font color='rgb(67,158,76)'>Torrent:</font></b> <a href='details.php?id=" . (int) $row["id"] . "&hit=1'><b>" . substr(htmlsafechars($row["name"]), 0, 60) . "</b></a></p>\n\t\n"; $htmlout .= "<div class=''>\n<p><b><font color='rgb(67,158,76)'>{$lang['catol_added']}:</font></b> " . get_date($row["added"], 'LONG', 0, 1) . "<br>\n <b><font color='rgb(67,158,76)'>{$lang['catol_size']}:</font></b> " . mksize($row["size"]) . "<br >\n <b><font color='rgb(67,158,76)'>{$lang['catol_snatched']}:</font></b> " . ($row["snatched"] > 0 ? $row["snatched"] == 1 ? (int) $row["snatched"] . " time" : (int) $row["snatched"] . " times" : 0) . "<br>\n <b><font color='rgb(67,158,76)'>Seeds:</font></b> " . (int) $row["seeders"] . "<br>\n <b><font color='rgb(67,158,76)'>Leechers:</font></b> " . (int) $row["leechers"] . "<br>\n </p>\n \t<p class='squashp'><b><font color='rgb(67,158,76)'>{$lang['catol_info']}:</font></b> " . readMore($row["descr"], 500, "details.php?id=" . (int) $row["id"] . "&hit=1") . "</p>\n \t<!--<p><b><font color='rgb(67,158,76)'>{$lang['catol_seeder_info']}:</font></b>" . (isset($peers[$row["id"]]) ? peer_list($peers[$row["id"]]) : "{$lang['catol_no_info_show']}") . "</p>-->\n\t<p><b><font color='rgb(67,158,76)'>{$lang['catol_orig_created_by']}</font></b></p></div></div>"; } $htmlout .= "</div></div><br>"; $htmlout .= $pager['pagerbottom'] . "<br>"; } else { $htmlout .= "<div class='row'><div class='col-sm-04'><h2>{$lang['catol_nothing_found']}!</h2></div></div>"; } echo stdhead($lang['catol_std_head']) . $htmlout . stdfoot();
$tid[] = $ta["id"]; } if (isset($tids) && count($tids)) { $p = sql_query("SELECT p.id,p.torrent as tid,p.seeder, p.finishedat, p.downloadoffset, p.uploadoffset, p.ip, p.port, p.uploaded, p.downloaded, p.started AS started, p.last_action AS last_action, u.id as p_uid , u.username as p_user FROM peers AS p LEFT JOIN users as u on u.id=p.userid WHERE p.torrent IN (" . join(",", $tid) . ") AND p.seeder = 'yes' AND to_go=0 LIMIT 5") or sqlerr(__FILE__, __LINE__); while ($pa = mysql_fetch_assoc($p)) { $peers[$pa["tid"]][] = $pa; } } $htmlout .= "<div align='center' style='width:90%'>\r\n\t\t<fieldset style='border:2px solid #333333;'>\r\n\t\t\t<legend style='padding:5xp 0px 0px 5px;'>Search</legend>\r\n\t\t\t\t<form action='" . $_SERVER["PHP_SELF"] . "' method='get' style='margin:10px;'>\r\n\t\t\t\t\t<input type='text' size='50' name='search' value='" . ($search ? $search : "Search for a torrent") . "' onblur=\"if (this.value == '') this.value='Search for a torrent';\" onfocus=\"if (this.value == 'Search for a torrent') this.value='';\" /> <input type='submit' value='search!' />\r\n\t\t\t\t</form>"; for ($i = 97; $i < 123; ++$i) { $l = chr($i); $L = chr($i - 32); if ($l == $letter) { $htmlout .= "<font class=\"sublink-active\">{$L}</font>\n"; } else { $htmlout .= "<a class=\"sublink\" href=\"" . $_SERVER["PHP_SELF"] . "?letter=" . $l . "\">" . $L . "</a>\n"; } } $htmlout .= "</fieldset></div><br />"; $htmlout .= begin_frame(); if (count($rows) > 0) { $htmlout .= "<table width='95%' border='1' cellpadding='5' style='border-collapse:collapse'>\r\n \t<tr><td align='left' colspan='2' class='colhead'>Catalogue</td></tr>\r\n \t<tr><td align='left' colspan='2' >{$top}</td></tr>"; foreach ($rows as $row) { $htmlout .= "<tr>\r\n\t\t <td align='center' valign='top' nowrap='nowrap'>\r\n \t<table align='center' width='160' border='1' cellpadding='2'>\r\n \t<tr><td align='center' class='colhead'>Upper : <a href='userdetails.php?id=" . $row["owner"] . "'>" . ($row["user"] ? $row["user"] : "******" . $row["owner"] . "]") . "</a></td></tr>\r\n <tr><td align='center'>" . ($row["poster"] ? "<a href=\"" . $row["poster"] . "\"><img src=\"" . $row["poster"] . "\" border=\"0\" width=\"150\" height=\"195\" alt=\"No Poster\" title=\"No Poster\" /></a>" : "<img src=\"pic/noposter.png\" border=\"0\" width=\"150\" alt=\"No Poster\" title=\"No Poster\" />") . "</td></tr>\r\n </table>\r\n\r\n </td>\r\n\r\n <td align='center' width='100%' valign='top'>\r\n\t\t\t<table width='100%' cellpadding='3' cellspacing='0' border='1' style='border-collapse:collapse;font-weight:bold;'>\r\n\t\t\t<tr>\r\n\t\t\t\t<td align='center' width='100%' rowspan='2' ><a href='details.php?id=" . $row["id"] . "&hit=1'><b>" . substr($row["name"], 0, 60) . "</b></a></td>\r\n\t\t\t\t<td align='center' class='colhead'>Added</td>\r\n\t\t\t\t<td align='center' class='colhead'>Size</td>\r\n\t\t\t\t<td align='center' class='colhead'>Snatched</td>\r\n\t\t\t\t<td align='center' class='colhead'>S.</td>\r\n\t\t\t\t<td align='center' class='colhead'>L.</td>\r\n\t\t\t</tr>\r\n\t\t\t<tr>\r\n\t\t\t\t<td align='center'>" . get_date($row["added"], 'LONG', 0, 1) . "</td>\r\n\t\t\t\t<td align='center' nowrap='nowrap'>" . mksize($row["size"]) . "</td>\r\n\t\t\t\t<td align='center' nowrap='nowrap'>" . ($row["snatched"] > 0 ? $row["snatched"] == 1 ? $row["snatched"] . " time" : $row["snatched"] . " times" : 0) . "</td>\r\n\t\t\t\t<td align='center'>" . $row["seeders"] . "</td>\r\n\t\t\t\t<td align='center'>" . $row["leechers"] . "</td>\r\n\t\t\t</tr>\r\n\t\t\t<tr><td width='100%' colspan='6' class='colhead' >Info.</td></tr>\r\n\t\t\t<tr><td width='100%' colspan='6' style='font-weight:normal;' >" . readMore($row["descr"], 500, "details.php?id=" . $row["id"] . "&hit=1") . "</td></tr>\r\n\t\t\t<tr><td width='100%' colspan='6' class='colhead'>Seeder Info (Top 5 Seeders)</td></tr>\r\n\t\t\t<tr><td width='100%' colspan='6' style='font-weight:normal;' >" . (isset($peers[$row["id"]]) ? peer_list($peers[$row["id"]]) : "No information to show") . "</td></tr>\r\n\t\t\t</table></td></tr>"; } $htmlout .= "<tr><td align='left' colspan='2' >{$bottom}</td></tr>\r\n\t\t<tr><td align='right' colspan='2' class='colhead'>Original By EnzoF1 recoded by Putyn, Updated for 09 by Bigjoos</td></tr>\r\n\t\t</table>"; } else { $htmlout .= "<h2>Nothing found!</h2>"; } $htmlout .= end_frame(); print stdhead('Catalogue') . $htmlout . stdfoot();
function tk_client_task() { // Repeat Task peer_list(); transaction_queue(); if (rand(1, 150) == 100) { if (check_for_updates(TRUE) == 1) { // Update available, alert user mysql_query("UPDATE `options` SET `field_data` = '1' WHERE `options`.`field_name` = 'update_available' LIMIT 1"); } } return; }
echo $row["seeders"]; ?> </td> <td align="center"><?php echo $row["leechers"]; ?> </td> </tr> <tr><td width="100%" colspan="6" class="colhead" >Info.</td></tr> <tr><td width="100%" colspan="6" style="font-weight:normal;" ><?php echo readMore($row["descr"], 500, "details.php?id=" . $row["id"] . "&hit=1"); ?> </td></tr> <tr><td width="100%" colspan="6" class="colhead">Seeder Info (Top 5 Seeders)</td></tr> <tr><td width="100%" colspan="6" style="font-weight:normal;" ><?php echo isset($peers[$row["id"]]) ? peer_list($peers[$row["id"]]) : "No information to show"; ?> </td></tr> </table> </td> </tr> <?php } ?> <tr><td align="left" colspan="2" ><?php echo $bottom; ?> </td></tr> <tr><td align="right" colspan="2" class="colhead" >Original By EnzoF1 recoded by Putyn</td></tr>
function tk_client_task() { // Repeat Task peer_list(); transaction_queue(); return; }