// latest torrents^M
begin_frame(T_("LATEST_TORRENTS"));^M
^M
print("<br /><center><a href='torrents.php'>".T_("BROWSE_TORRENTS")."</a> - <a href='torrents-search.php'>".T_("SEARCH_TORRENTS")."</a></center><br />");^M
^M
if ($site_config["MEMBERSONLY"] && !$CURUSER) {^M
echo "<br /><br /><center><b>".T_("BROWSE_MEMBERS_ONLY")."</b></center><br /><br />";^M
if($CURUSER["downloadbanned"]=="yes")
show_error_msg("Error","Your download rights have been taken away. If you feel this was an error then please PM staff.",1);
} else {^M
$query = "SELECT torrents.id, torrents.anon, torrents.announce, torrents.category, torrents.leechers, torrents.nfo, torrents.seeders, torrents.name, torrents.times_completed, torrents.size, torrents.added, torrents.comments, torrents.numfiles, torrents.filename, torrents.owner, torrents.external, torrents.freeleech, categories.name AS cat_name, categories.image AS cat_pic, categories.parent_cat AS cat_parent, users.username, users.privacy, IF(torrents.numratings < 2, NULL, ROUND(torrents.ratingsum / torrents.numratings, 1)) AS rating FROM torrents LEFT JOIN categories ON category = categories.id LEFT JOIN users ON torrents.owner = users.id WHERE visible = 'yes' AND banned = 'no' ORDER BY id DESC LIMIT 25";^M
$res = SQL_Query_exec($query);^M
if (mysql_num_rows($res)) {^M
torrenttable($res);^M
}else {^M
^M
print("<div class='f-border'>");^M
print("<div class='f-cat' width='100%'>".T_("NOTHING_FOUND")."</div>");^M
print("<div>");^M
print T_("NO_UPLOADS");^M
print("</div>");^M
print("</div>");^M
^M
}^M
if ($CURUSER)^M
SQL_Query_exec("UPDATE users SET last_browse=".gmtime()." WHERE id=$CURUSER[id]");^M
^M
}^M
end_frame();
$new_ajmsg = "New Torrent: ."/torrents-details.php?id=".$id."]".$torrent." has been uploaded by ."/account-details.php?id=".$CURUSER['id']."]" .$CURUSER['username']. "";
<?php
begin_block(T_("DONATE"));
$totalneeded = "200"; //=== set this to your monthly wanted amount
$totalneeded3 ="$".sprintf("%01.2f", $totalneeded);
$month1 = sqlesc(gmdate("m"));
$year1 = sqlesc(gmdate("Y"));
$total_funds1 = SQL_Query_exec("SELECT sum(cash) as total_funds FROM `funds` WHERE month=$month1 && year = $year1");
$arr_funds = mysql_fetch_array($total_funds1);
$funds_so_far = $arr_funds["total_funds"];
$funds_difference = $totalneeded - $funds_so_far;
$Progress_so_far = $funds_so_far / $totalneeded * 100;
$Percent = $Progress_so_far;
$Percent = floor(($Percent) * 100 + .5) * .01;
if($Progress_so_far >= $totalneeded)
$Progress_so_far = "100";
$Progress_so_far2 = $Progress_so_far;
if ($funds_so_far <= 300){
$pic = "images/donate/loadbarred.gif";
$Progress_so_far2 = 20;
}
elseif ($funds_so_far <= 500)
$pic = "images/donate/loadbaryellow.gif";
else $pic = "images/donate/loadbargreen.gif";
if($totalneeded >= $funds_so_far) {
$monthly_goal = "" .round($Progress_so_far)."%";
$monthly_goal22 = " of monthly goal.";
}
else
$monthly_goal = "Monthly goal met! ]";
print("<center><table cellpadding=3 class=main border=0>".
"<td class=row3 align=center><p align=center>"."<table width=175 height=17 border=2><td width=$Progress_so_far2% height=15 background=$pic align=center valign=middle>".
"$monthly_goal</td><td style='padding: 0px; background-image:
url(images/donate/loadbarbg.gif); background-repeat: repeat-x'>".
"$monthly_goal22</td></tr></table> ".
"<a href="donate.php"><img src="images/donate/donate.gif"></a>");
print("</td></tr></table></center>");
end_block();
?>
<b><u>What is Hit And Run?</u></b>
<br />
<br />The term "Hit And Run" means very simply, to download a torrent and not seed it back.
<br />
It is an extremely rude thing to do as you are selfishly depriving others the privilege of downloading the same torrent. Removing a finished torrent from your Bittorrent client before it has reached the required stats is a H&R.
<br />
This gesture is prohibited. All download must be set to seeding status in your client for a period of from one to several days, depending on the amounts of data shared on the torrent or the time required for seeding.
<br />
When you complete a torrent you have to seed it for 36 hours and you have 7 days to do it.
After 7 days if your ratio on this torrent <1 or seedtime < 36 hours, you take a H&R.
When you have received 3 H&R, you will be warned.
You then have 7 days to fix the H&R by SEEDING. If you do not do this you WILL be banned .....
If you take 5 H&R (so 2 more while warnings are active) you are banned immediately.
Breaking this rule WILL cause a temporary suspension of your right to download or even permanent suspension of your account.
<br />

<?php
// TorrentTrader v2.08
// This file was last updated: 08/April/2012 by ArcticWolf
// Last Update: 11-11-2011
// Orginal Modified by BigMax
// Modified to TT V2.08 by ArcticWolf
require_once('backend/functions.php');
require_once('backend/funds_config.php');
dbconn(false);
loggedinonly();
global $DONATEMAIL,$totalneeded,$site_config;
$nick = ($CURUSER ? $CURUSER['username'] : ('Guest' . rand(1000, 9999)));
$userid = ($CURUSER ? $CURUSER['id'] : (0));
stdhead(T_("DONATE"));
begin_frame(T_("DONATE"));
//Start
//Set GB amount per Donation Amount here [ use same in Paypal.php]
$amount5 = 25; // For 5
$amount10 = 55; // For 10 Etc....
$amount20 = 110;
$amount30 = 170;
//Set the length of time in days[same in Paypal.php]
$length5 = 2;
$length10 = 4;
$length20 = 8;
$length30 = 12;
//Set the Currency Type
$currencytype = 'Euro'; //For Fonts
$currencytype2 = '€'; //For Sign
$currencytype3 = 'EUR'; //Main Currency for Donations
//Set the Class for Donations
$class5 = 'VIP';
$class10 = 'VIP';
$class20 = 'VIP';
$class30 = 'VIP';
//Donate Email
$width = 180; // Change this to control the size of the blocks
//End
?>
<br /></br />
<h2><div align='center'><font size='3' color='orange'><?php echo T_("THANKS_YOU_DONATE"); ?> <?php echo $nick;?></font></div></h2>
<br />
<div align='center'><font size='2'><b> <?php echo T_("SUPPORT_DON"); ?></b></font></div>
<br />
<table width='100%' align='center' border='0' cellspacing='0' cellpadding='10'><tr><td>
<div align='center'>
<table width='90%' align='center' border='0' cellpadding='10'>
<tr>
<? // Start First Box ?>
<td>
<div align='center'>
<table border='1' cellpadding='10' cellspacing='0' height='250' width='<?php echo $width;?>'><tbody><tr><td class='text'>
<a><div align='center'><img src="<?php echo $site_config['SITEURL'];?>/images/donate/donate1.gif"></img></div></a>
<br>
<div align='center'><b><font color='red' size='3'><?php echo T_("DONATE"); ?> <?php echo $currencytype2;?> 5</font></b></div><br>
<div style="margin-top: 1px;text-align: center;font:12px"><b><font color=orange><?php echo T_("AND_RECEIVE"); ?> :</font></b></div><br>
<div style="margin-left: 8px;text-align: left;font:10px">- <b><?php echo $length5;?> <?php echo T_("WEEKS"); ?> <?php echo $class5;?> <?php echo T_("STATUS"); ?></b></div>
<div style="margin-left: 8px;text-align: left;font:10px">- <?php echo T_("REQUESTS_ACCESS"); ?></div>
<div style="margin-left: 8px;text-align: left;font:10px">- <?php echo $amount5;?> <?php echo T_("GB_CREDITS_UP"); ?></div>
<div style="margin-left: 8px;text-align: left;font:10px">- 2 <?php echo T_("INVITES_SITE"); ?></div>
<form action='https://www.paypal.com/cgi-bin/webscr' method='post'>
<input type='hidden' name='cmd' value='_xclick'>
<input type='hidden' name='business' value='<?php echo $DONATEMAIL;?>'>
<input type='hidden' name='item_name' value='Server Funds (<?php echo $nick;?>)'>
<input type='hidden' name='no_note' value='1'>
<input type='hidden' name='currency_code' value='<?php echo $currencytype3;?>'>
<input type='hidden' name='amount' value='5'>
<input type='hidden' name='tax' value='0'>
<input type='hidden' name='custom' value='<? echo $userid;?>'>
<input type='hidden' name='notify_url' value='<?php echo $site_config['SITEURL'];?>/paypal.php'>
<input type="hidden" name="no_shipping" value="1">
<br />
<div align='center'><input type='submit' value='Donate'></div>
</form>
</div>
</div>
</td></tr></tbody></table>
</td>
<? // End First Box ?>
<? // Start Second Box ?>
<td>
<div align='center'>
<table border='1' cellpadding='10' cellspacing='0' height='250' width='<?php echo $width;?>'><tbody><tr><td class='text'>
<a><div align='center'><img src="<?php echo $site_config['SITEURL'];?>/images/donate/donate2.gif"></img></div></a>
<br />
<div align='center'><b><font color='red' size='3'>Donate <?php echo $currencytype2;?> 10</font></b></div><br>
<div style="margin-top: 1px;text-align: center;font:12px"><b><font color=orange><?php echo T_("AND_RECEIVE"); ?> :</font></b></div><br>
<div style="margin-left: 8px;text-align: left;font:10px">- <b><?php echo $length10;?> <?php echo T_("WEEKS"); ?> <?php echo $class10;?> <?php echo T_("STATUS"); ?></b></div>
<div style="margin-left: 8px;text-align: left;font:10px">- <?php echo T_("REQUESTS_ACCESS"); ?></div>
<div style="margin-left: 8px;text-align: left;font:10px">- <?php echo $amount10;?> <?php echo T_("GB_CREDITS_UP"); ?></div>
<div style="margin-left: 8px;text-align: left;font:10px">- 4 <?php echo T_("INVITES_SITE"); ?></div>
<form action='https://www.paypal.com/cgi-bin/webscr' method='post'>
<input type='hidden' name='cmd' value='_xclick'>
<input type='hidden' name='amount' value='10.00'>
<input type='hidden' name='business' value='<?php echo $DONATEMAIL;?>'>
<input type='hidden' name='item_name' value='(<?php echo $nick;?>)'>
<input type='hidden' name='item_number' value='1'>
<input type='hidden' name='no_note' value='1'>
<input type='hidden' name='currency_code' value='<?php echo $currencytype3;?>'>
<input type='hidden' name='tax' value='0'>
<input type='hidden' name='no_shipping' value='1'>
<input type='hidden' name='custom' value='<? echo $userid;?>'>
<input type='hidden' name='notify_url' value='<?php echo $site_config['SITEURL'];?>/paypal.php'>
<div align=bottom>
<br />
<div align='center'><input type='submit' value='Donate'></div>
</div>
</form>
</div>
</td></tr></tbody></table>
</td>
<? // End Second Box ?>
<? // Start Third Box ?>
<td>
<table border='1' cellpadding='10' cellspacing='0' height='250' width='<?php echo $width;?>'><tbody><tr><td class='text'>
<a><div align='center'><img src="<?php echo $site_config['SITEURL'];?>/images/donate/donate3.gif"></img></div></a>
<br>
<div align='center'><b><font color='red' size='3'>Donate <?php echo $currencytype2;?> 20</font></b></div><br>
<div style="margin-top: 1px;text-align: center;font:12px"><b><font color=orange><?php echo T_("AND_RECEIVE"); ?> :</font></b></div><br>
<div style="margin-left: 8px;text-align: left;font:10px">- <b><?php echo $length20;?> <?php echo T_("WEEKS"); ?> <?php echo $class20;?> <?php echo T_("STATUS"); ?></b></div>
<div style="margin-left: 8px;text-align: left;font:10px">- <?php echo T_("REQUESTS_ACCESS"); ?></div>
<div style="margin-left: 8px;text-align: left;font:10px">- <?php echo $amount20;?> <?php echo T_("GB_CREDITS_UP"); ?></div>
<div style="margin-left: 8px;text-align: left;font:10px">- 8 <?php echo T_("INVITES_SITE"); ?></div>
<form action='https://www.paypal.com/cgi-bin/webscr' method='post'>
<input type='hidden' name='cmd' value='_xclick'>
<input type='hidden' name='amount' value='20.00'>
<input type='hidden' name='business' value='<?php echo $DONATEMAIL;?>'>
<input type='hidden' name='item_name' value='(<?php echo $nick;?>)'>
<input type='hidden' name='item_number' value='1'>
<input type='hidden' name='no_note' value='1'>
<input type='hidden' name='currency_code' value='<?php echo $currencytype3;?>'>
<input type='hidden' name='tax' value='0'>
<input type='hidden' name='no_shipping' value='1'>
<input type='hidden' name='custom' value='<? echo $userid;?>'>
<input type='hidden' name='notify_url' value='<?php echo $site_config['SITEURL'];?>/paypal.php'>
<div align=bottom>
<br>
<center><input type='submit' value='Donate'></center>
</div>
</form>
</div>
</td></tr></tbody></table>
</td>
<? // End Third Box ?>
<? // Start Fourth Box ?>
<td>
<table border='1' cellpadding='10' cellspacing='0' height='250' width='<?php echo $width;?>'><tbody><tr><td class='text'>
<a><div align='center'><img src="<?php echo $site_config['SITEURL'];?>/images/donate/donate4.gif"></img></div></a>
<br>
<div align='center'><b><font color='red' size='3'>Donate <?php echo $currencytype2;
?> 30</font></b></div><br>
<div style="margin-top: 1px;text-align: center;font:12px"><b><font color=orange><?php echo T_("AND_RECEIVE"); ?> :</font></b></div><br>
<div style="margin-left: 8px;text-align: left;font:10px">- <b><?php echo $length30;?> <?php echo T_("WEEKS"); ?> <?php echo $class30;?> <?php echo T_("STATUS"); ?></b></div>
<div style="margin-left: 8px;text-align: left;font:10px">- <?php echo T_("REQUESTS_ACCESS"); ?></div>
<div style="margin-left: 8px;text-align: left;font:10px">- <?php echo $amount30;?> <?php echo T_("GB_CREDITS_UP"); ?></div>
<div style="margin-left: 8px;text-align: left;font:10px">- 12 <?php echo T_("INVITES_SITE"); ?></div>
<form action='https://www.paypal.com/cgi-bin/webscr' method='post'>
<input type='hidden' name='cmd' value='_xclick'>
<input type='hidden' name='amount' value='30.00'>
<input type='hidden' name='business' value='<?php echo $DONATEMAIL;?>'>
<input type='hidden' name='item_name' value='(<?php echo $nick;?>)'>
<input type='hidden' name='item_number' value='1'>
<input type='hidden' name='no_note' value='1'>
<input type='hidden' name='currency_code' value='<?php echo $currencytype3;?>'>
<input type='hidden' name='tax' value='0'>
<input type='hidden' name='no_shipping' value='1'>
<input type='hidden' name='custom' value='<? echo $userid;?>'>
<input type='hidden' name='notify_url' value='<?php echo $site_config['SITEURL'];?>/paypal.php'>
<div align=bottom>
<br>
<div align='center'><input type='submit' value='Donate'></div>
</div>
</form>
</td></tr></tbody></table>
</td>
<? // End Fourth Box ?>
</td></tr></table>
</tr>
</table>
<br><br>
<table align='center' width='100%' border='0' cellspacing='1' cellpadding='10'>
<tr>
<td align='center' width='100%'><b><font color='orange' size='2'><?php echo T_("-IMPORTANT-"); ?></font></b></td>
</tr>
<tr>
<td align='center'>
<font size='2'><?php echo T_("PM_ADMIN_DON"); ?> <a href="mailbox.php?compose&id=1"> <font size=2><b><?php echo T_("HERE"); ?></b></font> </a><?php echo T_("CONFIRMED_ACCOUNT"); ?></font>
<br></br>
</td>
</tr>
</table>
<? // End Everything ?>
<?php
end_frame();
stdfoot();
?>
