Ban user from torrents upload
Go to PhPMyAdmin and run this query:
Now Edit account-details.php
Find code
Add After:
Find code:
Add after code:
In admin-modtasks.php:
FInd code
Add after code:
Find code
Add For Exemple after:
Add this bit of code :
In torrents-upload.php
Find code
show_error_msg("Error","You do not have permission to upload",1);
Add after code
if (mysql_num_rows($subbanned) < 1){
stdhead("Upload Banned");
begin_frame("You are Banned from Torrents Upload");
echo "<center><br><BR><B>You don't respect Torrent submission rules, a Admin had banned you from Torrents Upload.<br><b>";
echo "<br>If you have any complain, contact us :<ahref=mailto:$SITEEMAIL>$SITEEMAIL</a><br><BR></center>";
end_frame();
stdfoot();
exit;
}
/////////////////////////////////////////////////////////////////////////////////////////////////
Go to PhPMyAdmin and run this query:
ALTER TABLE `users` ADD `uploadbanned` char(3) NOT NULL default 'no';Now Edit account-details.php
Find code
$forumbanned = $user["forumbanned"] == 'yes';Add After:
$uploadbanned = $user["uploadbanned"] == 'yes';Find code:
print("<tr><td>Forum Banned: </td><td align=left><input name=forumbanned value=yes type=radio" . ($forumbanned ? " checked" : "") . ">Yes <input name=forumbanned value=no type=radio" . (!$forumbanned ? " checked" : "") . ">No</td></tr>\n");Add after code:
print("<tr><td>Torrents Submit Banned: </td><td align=left><input name=uploadbanned value=yes type=radio" . ($uploadbanned ? " checked" : "") . ">Yes <input name=uploadbanned value=no type=radio" . (!$uploadbanned ? " checked" : "") . ">No</td></tr>\n");In admin-modtasks.php:
FInd code
$forumbanned = $_POST["forumbanned"];Add after code:
$uploadbanned = $_POST["uploadbanned"];Find code
mysql_query("UPDATE users SET title='$title', downloaded='$downloaded', uploaded='$uploaded', signature='$signature', avatar='$avatar', ip='$ip', donated='$donated', forumbanned='$forumbanned', warned='$warned', modcomment='$modcomment', enabled='$enabled', invites='$invites' WHERE id=$userid"); Add For Exemple after:
forumbanned='$forumbanned',Add this bit of code :
uploadbanned='$uploadbanned',In torrents-upload.php
Find code
if($CURUSER["can_upload"]=="no")show_error_msg("Error","You do not have permission to upload",1);
Add after code
////////////////////////Torrent Submit Banned?///////////////////////////////////////////////////$subbanned = mysql_query("SELECT id FROM users WHERE id=$CURUSER[id] AND uploadbanned='no' LIMIT 1") or err('Tracker error (1)');if (mysql_num_rows($subbanned) < 1){
stdhead("Upload Banned");
begin_frame("You are Banned from Torrents Upload");
echo "<center><br><BR><B>You don't respect Torrent submission rules, a Admin had banned you from Torrents Upload.<br><b>";
echo "<br>If you have any complain, contact us :<ahref=mailto:$SITEEMAIL>$SITEEMAIL</a><br><BR></center>";
end_frame();
stdfoot();
exit;
}
/////////////////////////////////////////////////////////////////////////////////////////////////
