Pouvez voir le code a ajouter au fichier announce.php car il ne fonctionne pas les torrent ne démarre pas et quand je remet la sauvegarde du fichier announce
.php sa fonctionne, merci d'avance.
Can see the code to add to the file announce.php because it doesn't work the torrent doesn't start and when I put back the save of the file announce.php sa works, thank you in advance.
Run SQL
Open admincp.php go near groups management and find...
Underneath add
Abit underneath you will find...
Underneath add
Find
Underneath add
Find
Underneath add
Find
Underneath add
open announce.php find...
Underneath add
Open login_block.php find
Underneath add
Find
Add after
.php sa fonctionne, merci d'avance.
Can see the code to add to the file announce.php because it doesn't work the torrent doesn't start and when I put back the save of the file announce.php sa works, thank you in advance.
Run SQL
ALTER TABLE `groups` ADD `maxslots` int(10) NOT NULL DEFAULT '0';Open admincp.php go near groups management and find...
print("<td class=table_head>Download</td>\n");Underneath add
print("<td class=table_head>Download Slots</td>\n");Abit underneath you will find...
print("<td class=table_col1>".$level["can_download"]."</td>\n");Underneath add
print("<td class=table_col1>".$level["maxslots"]."</td>\n");Find
<tr><td>Can Download:</td><td> <?php echo YES;?> <input type="radio" name="down" value="yes" <?php if ($level["can_download"]=="yes") echo "checked" ?> /> <?php echo NO;?> <input type="radio" name="down" value="no" <?php if ($level["can_download"]=="no") echo "checked" ?> /></td></tr>Underneath add
<tr><td>Download Slots:</td><td><input type="text" name="downslots" value="<?php echo number_format($level["maxslots"]);?>" size="40" /></td></tr>Find
$update[]="control_panel='".$_POST["admincp"]."'";Underneath add
if (is_valid_id($_POST["downslots"]))
$update[]="maxslots='".$_POST["downslots"]."'";Find
$update[]="control_panel='".$level["control_panel"]."'";Underneath add
$update[]="maxslots='".$level["maxslots"]."'";open announce.php find...
// FILL $SELF WITH DETAILS FROM PEERS TABLE (CONNECTING PEERS DETAILS)
if (!isset($self)){Underneath add
if ($MEMBERSONLY){
$query = @mysql_fetch_row(@mysql_query("SELECT COUNT(DISTINCT torrent) FROM `peers` WHERE `userid` = '$userid' AND `seeder`='no'"));
$queries = mysql_query("SELECT `maxslots` FROM `groups` WHERE `group_id` = $user[class]");
$row = mysql_fetch_array($queries);
$maxslot = $row[0];
if ($query[0] >= $maxslot)
err("Maximum Slot exceeded! You may only download $maxslot torrent at a time.");
}Open login_block.php find
$userratio = "---";Underneath add
$query = @mysql_fetch_row(@mysql_query("SELECT COUNT(DISTINCT torrent) FROM peers WHERE userid = $CURUSER[id] AND seeder='no'"));
$slots = number_format($CURUSER["maxslots"]) . "/" . number_format($query[0]);Find
$userratioAdd after
<BR>Download Slots: $slots
