@upload.php Add
PHP Code:
tr("Show uploader", "<input type=checkbox name=uplver value=yes><b>Don't Show My Username In ( Uploaded By ) Field In Torrents Page.</b>", 1);
@takeupload.php Add
PHP Code:
if ($_POST['uplver'] == 'yes') {
$anonymous = "yes";
$anon = "Anonymous";
}
else {
$anonymous = "no";
$anon = $CURUSER["username"];
}
@ the big query Add
And
And
PHP Code:
////////Shoutbox announce with adult ban by Mag////////////
if ($CURUSER["anonymous"] == 'yes')
$message = "New Torrent : [url=$DEFAULTBASEURL/details.php?id=$id] " . htmlspecialchars($torrent) . "[/url] Uploaded - Anonymous User";
else
$message = "New Torrent : [url=$DEFAULTBASEURL/details.php?id=$id] " . htmlspecialchars($torrent) . "[/url] Uploaded by " . htmlspecialchars($CURUSER["username"]) . "";
And
PHP Code:
// ===add karma
sql_query("UPDATE users SET seedbonus = seedbonus+15.0 WHERE id = $CURUSER[id]") or sqlerr(__FILE__, __LINE__);
// ===end
if ($CURUSER["anonymous"] == 'yes')
//write_log("Torrent $id($torrent) was uploaded by Anonymous $CURUSER[username]");
write_log("torrentupload", "Torrent $id ($torrent) was uploaded by Anonymous $CURUSER[username]");
else
//write_log("Torrent $id ($torrent) was uploaded by $CURUSER[username]");
write_log("torrentupload", "Torrent $id ($torrent) was uploaded by $CURUSER[username]");
// //////new torrent upload detail sent to shoutbox//////////
@details.php Add to the big query
PHP Code:
torrents.anonymous,
Add where you like
PHP Code:
$keepget = "";
if($row['anonymous'] == 'yes') {
if (get_user_class() < UC_UPLOADER)
$uprow = "<i>Anonymous</i>";
else
$uprow = "<i>Anonymous</i> (<a href=userdetails.php?id=$row[owner]><b>$row[username]</b></a>)";
}
else {
$uprow = (isset($row["username"]) ? ("<a href=userdetails.php?id=" . $row["owner"] . "><b>" . htmlspecialchars($row["username"]) . "</b></a>") : "<i>(unknown)</i>");
}
@edit.php Add
PHP Code:
tr("Anonymous uploader", "<input type=\"checkbox\" name=\"anonymous\"" . (($row["anonymous"] == "yes") ? " checked=\"checked\"" : "" ) . " value=\"1\" /> Check this box to hide the uploader of the torrent", 1);
@takeedit.php Add
PHP Code:
$updateset[] = "anonymous = '" . ($_POST["anonymous"] ? "yes" : "no") . "'";
And to DB
PHP Code:
ALTER TABLE `torrents` ADD `anonymous` enum('yes','no') NOT NULL default 'no',
@browse.php Add to the big query
PHP Code:
torrents.anonymous,