Hi there.
I don't know if the devs made these this way or just skipped them for now, but I found out that in TTv2.03 any torrent owner
can ban his own torrents from the tracker or make them freeleech any time via torrents-edit.php.
I made this little fix for those who want these actions to be available only to moderators and above.
So here we go:
In torrents-edit.php find:
And that should do it.
If you find any problem similar to this just let me know.
Bye...
I don't know if the devs made these this way or just skipped them for now, but I found out that in TTv2.03 any torrent owner
can ban his own torrents from the tracker or make them freeleech any time via torrents-edit.php.
I made this little fix for those who want these actions to be available only to moderators and above.
So here we go:
In torrents-edit.php find:
echo "<tr><td align=right><B>Banned: </b></TD><TD><input type=\"checkbox\" name=\"banned\"" . (($row["banned"] == "yes") ? " checked=\"checked\"" : "" ) . " value=\"1\" /> Banned?<br>";and above add:if ($CURUSER["edit_torrents"] == "yes")
Few lines later you'll find:
if ($row["external"] != "yes"){
echo "<tr><td align=right><B>Free Leech: </b></TD><TD><input type=\"checkbox\" name=\"freeleech\"" . (($row["freeleech"] == "1") ? " checked=\"checked\"" : "" ) . " value=\"1\" />Leeching is free? (Only Uploading Counts)<br>";
}
and above add:
if ($CURUSER["edit_torrents"] == "yes")And that should do it.
If you find any problem similar to this just let me know.
Bye...