if($action == "addgigs")
{
if ($_SERVER["REQUEST_METHOD"] == "POST")
{
if ($_POST['doit'] == 'yes') {
mysql_query("UPDATE users SET uploaded = uploaded + 2147483648 WHERE status='confirmed'");
stderr("Upload", "2GB upload is sent to everyone...");
die;
}
if ($_POST["username"] == "" || $_POST["gigs"] == "" || $_POST["gigs"] == "")
show_error_msg("Error", "Missing form data.");
$username = sqlesc($_POST["username"]);
$uploaded = sqlesc($_POST["uploaded"]);
$userid = $CURUSER["id"];
$mb_basic=1024*1024;
if(isset($_POST['unit'])){
if ($_POST["unit"] =='1')
$nobits = $gigs*$mb_basic;
if ($_POST["unit"] =='2')
$nobits = $gigs*$mb_basic*1024;
}
$modcom = mysql_fetch_row(mysql_query("SELECT modcomment FROM users WHERE username=$username LIMIT 1"));
$modcomment = sqlesc(gmdate("Y-m-d") . " - ".$CURUSER['username']." has given ".mksize($nobits)." to this user.\n " .$modcom[0]);
mysql_query("UPDATE users SET modcomment = $modcomment, uploaded=uploaded + $nobits WHERE username=$username") or sqlerr(__FILE__, __LINE__);
$res = mysql_query("SELECT id FROM users WHERE username=$username");
$arr = mysql_fetch_row($res);
if (!$arr)
show_error_msg("Error", "Unable to update account.");
header("Location: $site_config[SITEURL]/account-details.php?id=$arr[0]");
die;
}
stdhead("Update Users Upload Amounts");
navmenu();
begin_frame("Update Users Uploaded Amounts",false,10,false);
echo "<form method=\"post\" action=\"admincp.php?action=addgigs\">";
?>
<center><font color=red size=2><b>To add gigs put in the user's name and amount then choose MB for megabytes or GB for gigabytes.</b></font></center>
<p align=center><table border=0 width=100% cellspacing=0 cellpadding=0>
<tr><td class="rowhead"><b>User name</b></td><td class="row1"><input type="text" name="username" size="40"/></td></tr>
<tr><td class="rowhead"><b>Amount</b></td><td class="row1"><input type="text" name="gigs" size="5"/><select name=unit><option value=1>MB</option><option value=2>GB</option></td></tr>
<tr><td colspan="2" class="row1" align="center"><input type="submit" value="Okay" class="btn"/></td></tr>
</table>
</form>
<?
end_frame();
stdfoot();
}
"gn2004e, post: 74025":it should but it doesn't. it doesnt work for my case anywayz... I wonder why as I followed the not so complex instructions.
"ArcticWolf, post: 73965":if the address you sent the invite to is hotmail or yahoo or 1 of there clones then yes its normal for the email to go into the spam folder.. those email places have way to strict spam filters....If you was an Premium member here would have access to an good addon to do way with the having to send an email for an invite but since you not oh well...
"Noname12, post: 73923":C8xhxg2g6BGYpft5KIzm3ON5Vn40mc9yrHoiTZUC
"buzz_me, post: 72609":how to add only donated member not counting download?
"rdesormiers, post: 73310":Hello thedarklord,
Thank you for your update of this MOD, but personnally, a thread should be open for v2.06 for the Silverleech has per example. Without taking CREDIT of the first member who had posted it!
Cheers m8.
"rdesormiers, post: 73307":Hi guys,
To add more to this and this is a personnal thought... some post are REALLY AWFULL to follow. Especially when you have many pages. It would be nice reorganize things to be properly read.
Has per example, the SILVERLEECH mod has been completely re-written. Why not deleting the older post and re-post the WORKING ONE!
Thanx. Regards.
"SJC2TK, post: 73302":i personnally don't think 3 seperate forums would be the right way to go , after all i say 95% of all mods will work on all 3 , so wouldn't justify having to search 3 seperate forums to see what new ......thats just me personnally mind ;)
"SJC2TK, post: 73300":oh i wouldn't say that ....who is he DJ ? .... :D
"djhowarth, post: 73293":Yep of course il probably create it, me posting this mod was a test. A test to see what the normal members would say but as usual they don't like to say thanks so they can think again now, all my future mods will remain hidden to the premium section!
"rdesormiers, post: 72421":Hi Guys,
Thanx for this help, this will probably help a lot. I take all the help I can get since I am really new to administer a Tracker. I received an invite from someone of this forum to Torrentinvite. Thanx to him, I will post in TorrentInvite forum for my own bilingual tracker.
It would be nice to talk about MOD's too. In other terms, there are so many MOD's available that I was asking myself wich ones are your MEMBERS FAVORITES. In this way, I wouldn't have to try them all to see wich one works. As per example, does the TEAM MOD works well!
Well, as you can see, I am fetching for all the information I can find. Kind of a Tutorial's for beginner!
Note: A desperate tracker owner.
Ciao. Regards.
"rdesormiers, post: 72410":Hi war02,
Thanx m8, this worked like a charm. Always good to know that we can count on other members. Can't wait to gain experience in PHP.
Cheers.
"djhowarth, post: 72415":Zeropaid.com (Post to forum)Demoinoid.me (Post to forum)
TorrentInvites
There is a couple of sites that hold tracker listings i cant remember what there called but a couple are quite popular
this is one of them
[url="http://filesharingz.com/directory/bittorrent/"]http://filesharingz.com/directory/bittorrent/[/url]