Esempio n. 1
0
 }
 //===staff only torrent
 if ($staffonly == "yes") {
     if ($az["class"] < UC_MODERATOR) {
         err("Torrent not recognized with Tracker!");
     }
 }
 $webseeder = isset($az["webseeder"]) && $az["webseeder"] == 'yes' && $seeder == 'yes' ? "yes" : "no";
 // ///// Torrent-Limit
 if ($az["tlimitall"] >= 0) {
     $arr = mysql_fetch_assoc(mysql_query("SELECT COUNT(*) AS cnt FROM peers WHERE userid={$userid}"));
     $numtorrents = $arr["cnt"];
     $arr = mysql_fetch_assoc(mysql_query("SELECT COUNT(*) AS cnt FROM peers WHERE userid={$userid} AND seeder='yes'"));
     $seeds = $arr["cnt"];
     $leeches = $numtorrents - $seeds;
     $limit = get_torrent_limits($az);
     if ($limit["total"] > 0 && ($numtorrents >= $limit["total"] || $left == 0 && $seeds >= $limit["seeds"] || $left > 0 && $leeches >= $limit["leeches"])) {
         err("Maximum Torrent-Limit reached ({$limit['seeds']} Seeds, {$limit['leeches']} Leeches, {$limit['total']} total)");
     }
 }
 if ($az["vip"] == "yes" && get_user_class() < UC_VIP) {
     err("VIP Access Required, You must be a VIP In order to view details or download this torrent! You may become a Vip By Donating to our site. Donating ensures we stay online to provide you more Vip-Only Torrents!");
 }
 if ($waiton && ($left > 0 && $user['class'] < UC_VIP)) {
     $gigs = $az["uploaded"] / (1024 * 1024 * 1024);
     $elapsed = floor((gmtime() - $torrent["ts"]) / 3600);
     $ratio = $az["downloaded"] > 0 ? $az["uploaded"] / $az["downloaded"] : 1;
     if ($ratio < 0.5 || $gigs < 5) {
         $wait = $wait1;
     } elseif ($ratio < 0.65 || $gigs < 6.5) {
         $wait = $wait2;
Esempio n. 2
0
     echo '<br><a class=altlink href=badratio.php?done=no>' . $language['badr'] . '</a>';
     echo '<br><a class=altlink href=snatchleave.php?done=no>' . $language['snleave'] . '</a>';
     // //////////////////////
     $check_if_theyre_shitty = sql_query("SELECT suspect FROM shit_list WHERE userid={$CURUSER['id']} AND suspect=" . $id) or sqlerr(__FILE__, __LINE__);
     if (mysql_num_rows($check_if_theyre_shitty) !== 0) {
         echo '<br>' . $language['shitlist'] . '';
     } else {
         echo '<br><a class=altlink href=shit_list.php?action=new&shit_list_id=' . $id . '&return_to=userdetails.php?id=' . $id . '>' . $language['ashitlist'] . '</a>';
     }
 }
 // /////////maximum seed/leech Slots///////////////////////////////////////
 $seedsarr = @mysql_fetch_assoc(sql_query("SELECT COUNT(*) AS `cnt` FROM `peers` WHERE `userid`=" . $user["id"] . " AND `seeder`='yes'"));
 $seeds = $seedsarr["cnt"];
 $leechesarr = @mysql_fetch_assoc(sql_query("SELECT COUNT(*) AS `cnt` FROM `peers` WHERE `userid`=" . $user["id"] . " AND `seeder`='no'"));
 $leeches = $leechesarr["cnt"];
 $tlimits = get_torrent_limits($user);
 if ($tlimits["seeds"] >= 0) {
     if ($tlimits["seeds"] - $seeds < 1) {
         $seedwarn = " style=\"background-color:red;color:orange;\"";
     }
     $tlimits["seeds"] = " / " . $tlimits["seeds"];
 } else {
     $tlimits["seeds"] = "";
 }
 if ($tlimits["leeches"] >= 0) {
     if ($tlimits["leeches"] - $leeches < 1) {
         $leechwarn = " style=\"background-color:red;color:orange;\"";
     }
     $tlimits["leeches"] = " / " . $tlimits["leeches"];
 } else {
     $tlimits["leeches"] = "";