Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
User Posts

Go to Profile

"JEsaie, post: 91938":

Work fine with me 2.08
update  v2.08  ;)

<?php
//
//  TorrentTrader v2.x
//  This file was last updated: 18/Oct/2008 by Foz
//    
//    http://www.basslinebeats.co.uk
//
//
require_once ("backend/functions.php");
dbconn();

stdhead("Bad Ratio Users");
begin_frame("Bad Ratio Users");
if ($site_config["MEMBERSONLY"] && !$CURUSER) {
   echo "<br /><br /><b>You Are Not Logged In<br />Only Members Can View Affiliates Please Login or Signup.<br /><br />";
   end_frame();
   } else{

/* CONFIG */
$maxratio = 0.7; // Maximum ratio to list. Standard = 0.7.
$mindownload = 10737418240; // "Downloaded more than". Standard = 10 GB.
$deleteclass = ADMINISTRATOR; // Minimum and equal class that can delete users.
$drsource = false; // Set to true if you use DR-source. False if you use Official source. Setting is for PM's.
$pmmsg = "Vous avez été averti en raison du faible ratio. Vous avez deux semaines pour l'améliorer. Si vous n'avez pas, vous serez banni. Vérifiez toujours la fonction needseed pour un ratio-coup de pouce ! Il s'agit d'un message système généré. Suppression de compte est également système contrôlé, donc y accéder ! ;)";
/* END CONFIG */

if (!$CURUSER || $CURUSER["control_panel"]!="yes"){
show_error_msg("Error","Sorry you do not have the rights to access this page!",1);
}
if ($_GET['action'] == ""){
if ($_GET['godcomplex'] == "yes")
{
foreach ( $_POST as $key => $ertek )
{
if ( (strpos($key,'cb_') != 0) or ($ertek == -1) ) continue;
else
{
$username=substr($key,3);
}
if ($_POST['warn']){
$req="UPDATE users SET warned = 'yes', warneduntil = DATE_ADD(NOW(), INTERVAL ".(2 * $warnfor)." DAY) WHERE id = '$ertek'";
$res=SQL_Query_exec($req);
}
else if ($_POST['pm']){
$r = SQL_Query_exec("SELECT id AS userid FROM users WHERE id = '$ertek'") or sqlerr();
while($dat=mysql_fetch_assoc($r)){
if($drsource == "true"){
new_msg(0, $dat[userid], $pmmsg); /* DR Source */
}else{
SQL_Query_exec("INSERT INTO messages (subject, sender, receiver, added, msg) VALUES ('Bad Ratio', 0,$dat[userid] , '" . get_date_time() . "', " . sqlesc($pmmsg) .")") or sqlerr(); /* Official Source */
}
}
$res = "PM Sent!";
}
else if ($_POST['disable']){
$req="UPDATE users SET warned = 'yes', enabled = 'no' WHERE id = '$ertek'";
$res=SQL_Query_exec($req);
// write_log("User $username was diabled by $CURUSER[username]");
}
else if ($_POST['delete'] && get_user_class() > $deleteclass){
$req="DELETE FROM users WHERE id = '$ertek'";
$res=SQL_Query_exec($req);
// write_log("User $username was deleted by $CURUSER[username]");
}
if ($res == ''){print("<script language="javascript">alert('No users Warned, Disabled or Deleted!');</script>");}
}
}
function usertable($res, $frame_caption)
{
global $CURUSER;
begin_frame($frame_caption, true);
begin_table();
?>
<br /><table border="0" cellpadding="4" cellspacing="3" width="100%" align="center" class="table_table">
<tr>
<td class="table_head" align="center">User</td>
<td class="table_head" align="center">Uploaded</td>
<td class="table_head" align="center">Downloaded</td>
<td class="table_head" align="center">Ratio</td>
<td class="table_head" align="center">Joined</td>
<td class="table_head" align="center">x</td>
<?php
$cba='';
if ( isset($_GET["select"]) )
{
$select=$_GET["select"];
if ( $select == 'all' ) $cba='checked';
elseif ( $select =='none' ) $cba='';
}
$num = 0;
print("<form method="post" action="leechers.php?godcomplex=yes">");
while ($a = mysql_fetch_assoc($res))
{
foreach ($a as $key => $ertek )
++$num;
$highlight = $CURUSER["id"] == $a["userid"] ? " bgcolor=#BBAF9B" : "";
if ($a["downloaded"])
{
$ratio = $a["uploaded"] / $a["downloaded"];
$color = get_ratio_color($ratio);
$ratio = number_format($ratio, 2);
if ($color)
$ratio = "<font color=$color>$ratio</font>";
}
else
$ratio = "Inf./N/D";
print("</tr><td class=table_col1 align=left $highlight><a href=account-details.php?id=" .
$a["userid"] . "><strong>".class_user($a[username])."</strong></a>");
if($a["warned"] == "yes"){print("<img src="" . $GLOBALS['pic_base_url'] . "/warned.gif" />");}
print("</td><td class=table_col1 align=center $highlight>" . mksize($a["uploaded"]) .
"</td><td class=table_col1 align=center $highlight>" . mksize($a["downloaded"]) .
"</td><td class=table_col1 align=center $highlight>" . $ratio .
"</td><td class=table_col1 align=center>" . gmdate("Y-m-d",strtotime($a["added"])) . " (" .
get_elapsed_time(sql_timestamp_to_unix_timestamp($a["added"])) . " ago)</td>
</td><td class=table_col1 align=center><input type=checkbox name="cb_" . $a["username"] . "" value="" . $a["userid"] . """); if($_GET["select"] == "unwarned" && $a["warned"] == "no"){print("checked");} print(" " . $cba . " /></td></tr></center>");
}
end_table();
end_frame();
}
stdhead("Ratio Under $maxratio/$mindownload byte Downloaded");
$mainquery = "SELECT id as userid, username, added, uploaded, downloaded, warned, uploaded / (UNIX_TIMESTAMP(NOW()) - UNIX_TIMESTAMP(added)) AS upspeed, downloaded / (UNIX_TIMESTAMP(NOW()) - UNIX_TIMESTAMP(added)) AS downspeed FROM users WHERE enabled = 'yes'";
$limit = 250;
$order = "added ASC";
$extrawhere = " AND uploaded / downloaded < $maxratio AND downloaded > $mindownload";
$r = SQL_Query_exec($mainquery . $extrawhere . " ORDER BY $order " . " LIMIT $limit") or sqlerr();
print("<center><a href="?select=unwarned">Select unwarned</a> | <a href="?select=all">Select all</a> | <a href="?select=none">Select none</a>");
$mindownloadprint = mksize ($mindownload);
?>
<div style="width:480px;">
<?php
usertable($r, "Ratio Under $maxratio / $mindownloadprint Downloaded");
print("<a href="?action=sendpm">Send Mass PM to All Low Ratio Users</a>");
print("<p><input type="submit" name="pm" value="PM selected" onclick="return confirm('PM all selected users?');" /></p>");
print("<input type="submit" name="disable" value="Disable selected" onclick="return confirm('Disable all selected users?');" />");
if( get_user_class() > $deleteclass ){
print("<input type="submit" name="delete" value="Delete selected" onclick="return confirm('Are you bloody sure you want to delete all these users!?');" />");
}
print("</form>");
?>
</div>
<?php
if ($_GET['taking'] == "takepm"){
if ($HTTP_SERVER_VARS["REQUEST_METHOD"] == "POST"){
$dt = sqlesc(get_date_time());
$msg = $_POST['msg'];
if (!$msg)
stderr("Error","Please Type In Some Text");
$query = "SELECT id as userid, username, added, uploaded, downloaded, warned, uploaded / (UNIX_TIMESTAMP(NOW()) - UNIX_TIMESTAMP(added)) AS upspeed, downloaded / (UNIX_TIMESTAMP(NOW()) - UNIX_TIMESTAMP(added)) AS downspeed FROM users WHERE enabled = 'yes'";
$limit = 250;
$order = "added ASC";
//$order = "uploaded / downloaded ASC, downloaded DESC";
$extrawhere = " AND uploaded / downloaded < $maxratio AND downloaded > $mindownload";
$r = SQL_Query_exec($mainquery . $extrawhere . " ORDER BY $order " . " LIMIT $limit") or sqlerr();

while($dat=mysql_fetch_assoc($r)){

if($drsource == "true"){
new_msg(0, $dat[userid], $msg); /* DR Source */
}else{
SQL_Query_exec("INSERT INTO messages (sender, receiver, added, msg) VALUES (0,$dat[userid] , '" . get_date_time() . "', " . sqlesc($msg) .")") or sqlerr(); /* Official Source */
}
}
SQL_Query_exec("INSERT INTO leecherspmlog ( user , date ) VALUES ( $CURUSER[id], $dt)") or sqlerr();
header("Refresh: 0; url=leechers.php");
}
}
if ($_GET['action'] == "sendpm") {
stdhead("Users that are bad");
?>
<table class="main" width="750" border="0" cellspacing="0" cellpadding="0"><tr><td class="embedded">
<div align="center">
<h1>Mass Message to All Bad Users</a></h1>
<form method="post" action="leechers.php?taking=takepm">
<?php

if ($_GET["returnto"] || $_SERVER["HTTP_REFERER"])
{
?>
<input type=hidden name=returnto value=<?=$_GET["returnto"] ? $_GET["returnto"] : $_SERVER["HTTP_REFERER"]?>>
<?php
}
?>
<table cellspacing=0 cellpadding=5>
<tr>
<td>Send Mass Messege To All Bad Users<br />
<table style="border: 0" width="100%" cellpadding="0" cellspacing="0">
<tr>
<td style="border: 0">&nbsp;</td>
<td style="border: 0">&nbsp;</td>
</tr>
</table>
</td>
</tr>
<tr><td><textarea name=msg cols=120 rows=15><?=$pmmsg?></textarea></td></tr>
<tr>
<tr><td colspan=2 align=center><input type="submit" value="Send" class="btn"></td></tr>
</table>
<input type="hidden" name="receiver" value=<?=$receiver?>>
</form>
</div></td></tr></table><center>
<br />
NOTE: No HTML Code Allowed. (NO HTML)
<?php
}
print ("<br />");
if ($site_config["MEMBERSONLY"] && !$CURUSER) {
   echo "<br /><br /><b>You Are Not Logged In<br />Only Members Can View Affiliates Please Login or Signup.<br /><br />";
} else{
?>
<center>---Coded by foz &copy For Torrent-Trader v2.x---</center>
<?php
}
}

end_frame();
stdfoot();
}
?>

VPS host for trackers — 2013-08-16 10:23:00 in General Chat
[url="%7Boption%7D"]http://iweb.com/[/url] *****  ;) it is the king
Thanks you!


<?php
require_once("backend/smilies.php");
require_once("backend/functions.php");
require_once("backend/config.php");
dbconn();

//===| GET CURRENT USERS THEME AND LANGUAGE
if ($CURUSER)
{
$ss_a = @mysql_fetch_array(@sql_query_exec("select uri from stylesheets where id=" . $CURUSER["stylesheet"]));
if ($ss_a)
$THEME = $ss_a["uri"];
$lng_a = @mysql_fetch_array(@sql_query_exec("select uri from languages where id=" . $CURUSER["language"]));
if ($lng_a)
$LANGUAGE = $lng_a["uri"];
}
else
{ //===| Not logged in so get default theme/language
$ss_a = mysql_fetch_array(sql_query_exec("select uri from stylesheets where id='" . $site_config['default_theme'] . "'"));
if ($ss_a)
$THEME = $ss_a["uri"];
$lng_a = mysql_fetch_array(sql_query_exec("select uri from languages where id='" . $site_config['default_language'] . "'"));
if ($lng_a)
$LANGUAGE = $lng_a["uri"];
}

echo'<link rel="stylesheet" type="text/css" href="'.$site_config['SITEURL'].'/themes/'.$THEME.'/theme.css" />';

if (!isset($_GET["form"])||!isset($_GET["text"]))
{
err_msg("Error!","Missing parameter!");
print("</body></html>");
die();
}

$parentform=htmlentities(urldecode($_GET["form"]));
$parentarea=htmlentities(urldecode($_GET["text"]));
?>

<script language=javascript>
function SmileIT(smile,textarea)
{
//===| Attempt to create a text range (IE)
if (typeof(textarea.caretPos) != "undefined" && textarea.createTextRange)
{
var caretPos = textarea.caretPos;
caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? smile + ' ' : smile
caretPos.select();
}
//===| Mozilla text range replace
else if (typeof(textarea.selectionStart) != "undefined")
{
var begin = textarea.value.substr(0, textarea.selectionStart);
var end = textarea.value.substr(textarea.selectionEnd);
var scrollPos = textarea.scrollTop;

textarea.value = begin + smile + end;

if (textarea.setSelectionRange)
{
textarea.focus();
textarea.setSelectionRange(begin.length + smile.length, begin.length + smile.length);
}
textarea.scrollTop = scrollPos;
}
//===| Just put it on the end
else
{
textarea.value += smile;
textarea.focus(textarea.value.length - 1);
}
}
</script>

<body class="shoutbox_body">
<table style="background:#05070A;" width="100%" cellpadding="1" cellspacing="1">
<tr>
<?php
global $count;
while ((list($code, $url) = each($smilies)))
{
if ($count % 3==0)
print("<tr>");
print("<td class="table_table" align="center"><a href="javascript: SmileIT('".str_replace("'","'",$code)."',window.opener.document.forms.$parentform.$parentarea);"><img border=0 src=images/smilies/".$url."></a></td>");
$count++;

if ($count % 3==0)
print("</tr>");
}
?>
</tr>
</table>
<div style="background:#05070A;" align="center">
<a href="javascript: window.close()"><font color="#DEE55F" size="4"><b><?php echo Fermer; ?></b></font></a>
</div>
<br />
</body>

"PyhaJumal, post: 91702":


This is a working code,  the author has a few bugs

// PC on-off night
if ($cURus ['pcoff '] ==' yes')
{
print ("<br> <b> PC on the night <font size="" color="green"> </ b> <B> Yes </ B> </ font>");
}
else
{
print ("<br> <b> PC on the night <font size="" color="red"> </ b> <B> NO </ B> </ font>");
}
// PC on-of night END

alter:

if ($cURus ['pcoff '] ==' yes')


displace:

if ($CURUSER["pcoff"] == 'yes')


PS: never put your balis (ballistic) majuscul

perfection would be ..

// PC on-off night
if ($CURUSER["pcoff"] == 'yes')
{
print ("<br /><b> PC on the night </b><font color="green" ><b> Yes </b></ font>");
}
else
{
print ("<br /><b> PC on the night </b><font color="red" ><b> NO </b></ font>");
}
// PC on-of night END



@+  :)
Upload Activity — 2013-08-05 17:42:57 in v2.08 Mods Completed
Users for the color  :)  

Changed ..

".$username."
To ..


".class_user($username)."
Update a été faite!  :)

&&&&&&&&&&&&

Update was done!  :)
Big thanks ActicWolf,

Were my error line

$postername = class_user($arr2["username"]);


change to

$postername = $arr2["username"];



#1  :) ...cool!
le code me donne  un bog sur le forum, !???
///////////////////////////////////////////////////////////////////
Code gives me a bog on the forum??

//start class colors function
function class_user($name)
{
   global $site_config;
   $a = "SELECT u.class, u.donated, u.warned, g.Color, g.level, u.uploaded, u.downloaded FROM `users` `u` INNER JOIN `groups` `g` ON g.group_id=u.class WHERE username ='" . $name . "'";
   //    echo "Query a".$a."<br />";
   $res = SQL_Query_exec($a);
   $classy = @mysql_fetch_array($res);
   $gcolor = $classy['Color'];
   if ($classy['donated'] > 0) {
       $star = "<img src='" . $site_config[SITEURL] . "/images/icons/star.gif' alt='donated' border='0'>";
   } else {
       $star = "";
   }
   if ($classy['warned'] == "yes") {
       $warn = "<img src='" . $site_config[SITEURL] . "/images/icons/warn.gif' alt='warned' border='0'>";
   } else {
       $warn = "";
   }
   $rang = auto_rank_icon($classy['uploaded'], $classy['downloaded'], $classy['level']);
   return unesc("<font color='" . $gcolor . "'>" . $name . "" . $star . "" . $warn . "" . $rang . "</font>");
}
//end class colors function


"UFFENO1, post: 91392":

Stupid question maybe, but have you enough uploaded.  :)
yes! lol
[size=18px]Yessss!!!!! #1[/size] ActicWolf  :D :Thanks  :D  you  :D [Resolute]
woww mon chanceux toi sa fonctionne bien, mais sur mon site j'ai rien
&&&&&&&&&&&&&&&&&&&&
woww my lucky you his works, but on my site I have nothing

:unsure:  :wacko:  :(



"UFFENO1, post: 91277":


Change this :

$uprankr = "<img src="/images/icons/" . $icon7 . "" alt='$icon7' border="0"/>";

To this:

$uprankr = "<img src="images/icons/" . $icon7 . "" alt='$icon7' border="0"/>";


même çà! ne fonctionne pas!

<~~~~~~~~~~~~~~~~~~~~~>

even its not working!

$uprankr = "<img src="".$site_config["SITEURL"]."/images/icons/" . $icon7 . "" alt='$icon7' border="0"/>";


 :unsure:

//start class colors function
function class_user($name)
{
   global $site_config;
   $a = "SELECT u.class, u.donated, u.warned, g.Color, g.level, u.uploaded, u.downloaded FROM `users` `u` INNER JOIN `groups` `g` ON g.group_id=u.class WHERE username ='" . $name . "'";
   //    echo "Query a".$a."<br />";
   $res = SQL_Query_exec($a);
   $classy = @mysql_fetch_array($res);
   $gcolor = $classy['Color'];
   if ($classy['donated'] > 0) {
       $star = "<img src='" . $site_config[SITEURL] . "/images/icons/star.gif' alt='donated' border='0'>";
   } else {
       $star = "";
   }
   if ($classy['warned'] == "yes") {
       $warn = "<img src='" . $site_config[SITEURL] . "/images/icons/warn.gif' alt='warned' border='0'>";
   } else {
       $warn = "";
   }
   $rang = auto_rank_icon($classy['uploaded'], $classy['downloaded'], $classy['level']);
   return unesc("<font color='" . $gcolor . "'>" . $name . "" . $star . "" . $warn . "" . $rang . "</font>");
}
//end class colors function

// Auto Uploader rank function (Author: ArcticWolf)
function auto_rank_icon($uploaded, $downloaded, $level)
{
   $tb = 1024 * 1024 * 1024 * 1024;
   // Config
   $minup0 = .5 * $tb;
   $minup1 = 1 * $tb;
   $minup2 = 2 * $tb;
   $minup3 = 3.5 * $tb;
   $minup4 = 5.5 * $tb;
   $minup5 = 8 * $tb;
   $minup6 = 15 * $tb;
   // Config End
   $icon1 = "legend_stjarna_brons.png";
   $icon2 = "legend_stjarna_silver.png";
   $icon3 = "legend_stjarna_guld.png";
   $icon4 = "krona_brons.png";
   $icon5 = "krona_silver.png";
   $icon6 = "krona_guld.png";
   $icon7 = "diamant.png";
   
   if ($uploaded >= $minup6 && $uploaded >= $downloaded) {
       $uprankr = "<img src="".$site_config["SITEURL"]."/images/icons/" . $icon7 . "" alt='$icon7' border="0"/>";
       return $uprankr;
   } elseif ($uploaded >= $minup5 && $uploaded < $minup6 && $uploaded >= $downloaded) {
       $uprankr = "<img src="".$site_config["SITEURL"]."/images/icons/" . $icon6 . "" alt='$icon6' border="0"/>";
       return $uprankr;
   } elseif ($uploaded >= $minup4 && $uploaded < $minup5 && $uploaded >= $downloaded) {
       $uprankr = "<img src="".$site_config["SITEURL"]."/images/icons/" . $icon5 . "" alt='$icon5' border="0"/>";
       return $uprankr;
   } elseif ($uploaded >= $minup3 && $uploaded < $minup4 && $uploaded >= $downloaded) {
       $uprankr = "<img src="".$site_config["SITEURL"]."/images/icons/" . $icon4 . "" alt='$icon4' border="0"/>";
       return $uprankr;
   } elseif ($uploaded >= $minup2 && $uploaded < $minup3 && $uploaded >= $downloaded) {
       $uprankr = "<img src="".$site_config["SITEURL"]."/images/icons/" . $icon3 . "" alt='$icon3' border="0"/>";
       return $uprankr;
   } elseif ($uploaded >= $minup1 && $uploaded < $minup2 && $uploaded >= $downloaded) {
       $uprankr = "<img src="".$site_config["SITEURL"]."/images/icons/" . $icon2 . "" alt='$icon2' border="0"/>";
       return $uprankr;
   } elseif ($uploaded >= $minup0 && $uploaded >= $downloaded) {
       $uprankr = "<img src="".$site_config["SITEURL"]."/images/icons/" . $icon1 . "" alt='$icon1' border="0"/>";
       return $uprankr;
   }
   return "";
}
// End Auto Uploader rank function (Author: ArcticWolf)

such as ArcticWolf

on my side it works very well.

si j'utilise votre code je voie aucune image?

************************************************

if I use your code I see no picture?

V2.08
"ArcticWolf, post: 91266":

Those are just uploader ranks.. Nothing to do with site classes.................................

And its both ratio and uploaded...

nothing at all to do with site classes
hA! ok  thanks! lol
et dit moi si se mode fonctionne par classe ou par ratio?
SVP

:::::::::::::::::::::

and said to me if mode works by class or ratio?
Please

...merci de votre aide ,toujours apprécier!

````````````````````````````````````````````````````````````````

thank you ... for your help, always appreciated!
yo " ArcticWolf,  :)

j'ai 8 classe, ici vous avez mis 7 par defaut LOLL

&&&&&&&&&&&&&&&&&&&&&&&&&&&&

I have 8 class, here you put seven default LOLL
svp vous pouvez m'aider

((((((((((((((((((((((((((((((((((

Please can you help me
l'image fonctionne par radio ?
~~~~~~~~~~~~~~~~~~~~
Image works Radio?

vous pouvez m'expliquer !
*****************************
you can tell me!


   $tb = 1024 * 1024 * 1024 * 1024;
   // Config
   $minup0 = .5 * $tb;
   $minup1 = 1 * $tb;
   $minup2 = 2 * $tb;
   $minup3 = 3.5 * $tb;
   $minup4 = 5.5 * $tb;
   $minup5 = 8 * $tb;
   $minup6 = 15 * $tb;

Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 2
  • Members: 0
  • Guests online: 2
  • Comments: 3
  • Messages: 1,728