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
New Invite Tree for 2.08
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2.08 Mods Completed

2013-01-22 18:04:57
"AzuriS, post: 88413":
Les fautes d'orthographe ça pique les yeux  :(

Je c'est!!!  j'ai pas eu le temps de finir et garde toi une gêne ti-Q !  :P  j'ai une vie moi, autre de passé mes journée a faire du pc, prout,prout!!
Unknown User
2013-01-22 18:31:12
je vois pas le rapport, faut pas + de temps pour bien écrire ;)
2013-01-22 18:38:50
Pour moi sa fait partie la finition. ;)
Unknown User
2013-01-22 18:43:28
qwep[oretpo[rteporetklo'rekl;rkl;relk;' .. can you read that LOL!!!!
Unknown User
2020-06-22 19:09:19
update invitetree.php small error

[php]
<?php
require_once("backend/functions.php");
dbconn();
loggedinonly();


   $id = (int)$_GET["id"];

if (!is_valid_id($id))
   $id = $CURUSER["id"];
   
if ($id != $CURUSER["id"] && $CURUSER["control_panel"] != "yes")
   autolink("index.php", T_("NOT_ALLOW"));

$res = SQL_Query_exec("SELECT * FROM users WHERE status = 'confirmed' AND invited_by = $id ORDER by id DESC");
$res1 = SQL_Query_exec("SELECT email, added FROM users WHERE status = 'pending' AND invited_by = $id");
$num = mysql_num_rows($res);
$num1 = mysql_num_rows($res1);

if ($num + $num1 == 0) {
   $info = ( $id != $CURUSER["id"] ? T_("NO_INVITEES_FOUND") : T_("NO_INVITEES_CURUSER") );
   autolink("account-details.php?id=$id", $info);
}

if ($id != $CURUSER["id"]) {
   $ret = SQL_Query_exec("SELECT username FROM users WHERE id = $id");
   $row = mysql_fetch_assoc($ret);
   $username = $row["username"];
   
   stdhead(T_("INVITE_TREE_FOR").$username);
   
begin_frame(T_("INVITE_TREE_FOR")."<a href=account-details.php?id=$id>".class_user($username)."</a>");

} else {
   stdhead(T_("MY_INVITE_TREE"));

begin_frame(T_("MY_INVITE_TREE"));
}

//Pending invitees
if ($num1 > 0) {
?>

<table class='table_table' border='0' cellspacing='0' cellpadding='5' align='center' style='margin-top: 40px'>
<tr>
   <td align='left' colspan='4'><b><?php echo $num1 . P_("PENDING_ACCOUNT", $num1) . T_("WAIT_VALID"); ?></b></td>
</tr>

<tr>
   <td class='table_head'><b><?php echo T_("EMAIL_SENT_TO"); ?></b></td>
   <td class='table_head'><b><?php echo T_("INVITE_DATE"); ?></b></td>
   <td class='table_head'><b><?php echo T_("AVAILABLE_TO"); ?></b></td>
   <td class='table_head'><b><?php echo T_("TIME_REMAINDER"); ?></b></td>
</tr>

<?php
for ($i = 1; $i <= $num1; $i++) {
   $arr1 = mysql_fetch_assoc($res1);
   $date = utc_to_tz($arr1["added"]);
   $email = $arr1["email"];
   $end = utc_to_tz( get_date_time( strtotime( $arr1["added"] ) + (7*86400) ) );
   $time = mkprettytime( DateDiff ( gmtime(), strtotime( $arr1["added"] ) + (7*86400) ) );
?>

<tr>
   <td class='table_col2' align='left'><?php echo $email; ?></td>
   <td class='table_col1' align='left'><?php echo $date; ?></td>
   <td class='table_col2' align='left'><?php echo $end; ?></td>
   <td class='table_col1' align='center'><?php echo $time; ?></td>
</tr>
<?php } ?>
</table>

<?php
}

//Confirmed invitees
if ($num > 0) {
?>

<table class='table_table' border='0' cellspacing='0' cellpadding='5' align='center' style='margin-top: 40px'>
<tr>
   <?php $msg = ( $id != $CURUSER["id"] ? class_user($username) . T_("INVITED") . $num . P_("PERSON", $num) : T_("YOU_INVITE") . $num . P_("PERSON", $num) ); ?>
   <td align='left' colspan='8'><b><?php echo $msg; ?></b></td>
   
<tr>
   <td class='table_head'><b><?php echo T_("USERNAME"); ?></b></td>
   <td class='table_head'><b><?php echo T_("USERCLASS"); ?></b></td>
   <td class='table_head'><b><?php echo T_("INSCRIPTION"); ?></b></td>
   <td class='table_head'><b><?php echo T_("LAST_ACCESS"); ?></b></td>
   <td class='table_head'><b><?php echo T_("DOWNLOADED"); ?></b></td>
   <td class='table_head'><b><?php echo T_("UPLOADED"); ?></b></td>
   <td class='table_head'><b><?php echo T_("RATIO"); ?></b></td>
   <td class='table_head'><b><?php echo T_("WARNED"); ?></b></td>
</tr>
   
<?php
for ($i = 1; $i <= $num; $i++) {
   $arr = mysql_fetch_assoc($res);
       
if ($arr['added'] == '0000-00-00 00:00:00')
   $arr['added'] = '---';

if ($arr['last_access'] == '0000-00-00 00:00:00')
   $arr['last_access'] = '---';

if ($arr["downloaded"] > 0) {
   $ratio = number_format($arr["uploaded"] / $arr["downloaded"], 2);
   $ratio = "<font color=" . get_ratio_color($ratio) . ">$ratio</font>";
} elseif ($arr["uploaded"] > 0) {
   $ratio = "<font color='green'>Inf.</font>";
} else {
   $ratio = "---";
}

   $warned = ($arr["warned"] != "yes") ? $warned = "<font color='green'><b>".T_("NO")."</b></font>" : $warned = "<font color='red'><b>".T_("YES")."</b></font>";
   $class = get_user_class_name($arr["class"]);
   $class = T_("$class");
   $added = substr(utc_to_tz($arr['added']),0,10);
   $last_access = substr(utc_to_tz($arr['last_access']),0,10);
   $downloaded = mksize($arr["downloaded"]);
   $uploaded = mksize($arr["uploaded"]);
?>
       
<tr>
   <td class='table_col1' align='left'><a href="account-details.php?id=<?php echo $arr["id"]; ?>"><b><?php echo class_user($arr["username"]); ?></b></a></td>
   <td class='table_col2' align='left'><?php echo $class; ?></td>
   <td class='table_col1' align='center'><?php echo $added; ?></td>
   <td class='table_col2' align='center'><?php echo $last_access; ?></td>
   <td class='table_col1' align='center'><font color='red'><?php echo $downloaded; ?></font></td>
   <td class='table_col2' align='center'><font color='green'><?php echo $uploaded; ?></font></td>
   <td class='table_col1' align='center'><?php echo $ratio; ?></td>
   <td class='table_col2' align='center'><?php echo $warned; ?></td>
</tr>
<?php } ?>
</table>

<?php
}

//if ($arr["invited_by"] != $CURUSER['id']) {
if ($arr["invited_by"] != $CURUSER['id'] && $CURUSER["class"] < 5) {
?>
   <div style='margin-top: 20px' align='center'>[<a href='account-details.php?id=<?php echo $id; ?>'><b><?php echo T_("BACK_TO_PROFIL"); ?></b></a>]</div>
   
<?php
}
end_frame();
stdfoot();
?>
[/php]
Unknown User
2020-09-22 02:50:34
or remove autolink account-details if you want

[php]
      <?php
require_once("backend/functions.php");
dbconn();
loggedinonly();


$id = (int)$_GET["id"];

if (!is_valid_id($id))
$id = $CURUSER["id"];

if ($id != $CURUSER["id"] && $CURUSER["control_panel"] != "yes")
autolink("index.php", T_("NOT_ALLOW"));

$res = SQL_Query_exec("SELECT * FROM users WHERE status = 'confirmed' AND invited_by = $id ORDER by id DESC");
$res1 = SQL_Query_exec("SELECT email, added FROM users WHERE status = 'pending' AND invited_by = $id");
$num = mysql_num_rows($res);
$num1 = mysql_num_rows($res1);

if ($num + $num1 == 0) {
$info = ( $id != $CURUSER["id"] ? T_("NO_INVITEES_FOUND") : T_("NO_INVITEES_CURUSER") );
//autolink("account-details.php?id=$id", $info);
}

if ($id != $CURUSER["id"]) {
$ret = SQL_Query_exec("SELECT username FROM users WHERE id = $id");
$row = mysql_fetch_assoc($ret);
$username = $row["username"];

stdhead(T_("INVITE_TREE_FOR").$username);

begin_frame(T_("INVITE_TREE_FOR")."<a href=account-details.php?id=$id>".class_user($username)."</a>");

} else {
stdhead(T_("MY_INVITE_TREE"));

begin_frame(T_("MY_INVITE_TREE"));
}

//Pending invitees
if ($num1 > 0) {
?>

<table class='table_table' border='0' cellspacing='0' cellpadding='5' align='center' style='margin-top: 40px'>
<tr>
<td align='left' colspan='4'><b><?php echo $num1 . P_("PENDING_ACCOUNT", $num1) . T_("WAIT_VALID"); ?></b></td>
</tr>

<tr>
<td class='table_head'><b><?php echo T_("EMAIL_SENT_TO"); ?></b></td>
<td class='table_head'><b><?php echo T_("INVITE_DATE"); ?></b></td>
<td class='table_head'><b><?php echo T_("AVAILABLE_TO"); ?></b></td>
<td class='table_head'><b><?php echo T_("TIME_REMAINDER"); ?></b></td>
</tr>

<?php
for ($i = 1; $i <= $num1; $i++) {
$arr1 = mysql_fetch_assoc($res1);
$date = utc_to_tz($arr1["added"]);
$email = $arr1["email"];
$end = utc_to_tz( get_date_time( strtotime( $arr1["added"] ) + (7*86400) ) );
$time = mkprettytime( DateDiff ( gmtime(), strtotime( $arr1["added"] ) + (7*86400) ) );
?>

<tr>
<td class='table_col2' align='left'><?php echo $email; ?></td>
<td class='table_col1' align='left'><?php echo $date; ?></td>
<td class='table_col2' align='left'><?php echo $end; ?></td>
<td class='table_col1' align='center'><?php echo $time; ?></td>
</tr>
<?php } ?>
</table>

<?php
}

//Confirmed invitees
if ($num > 0) {
?>

<table class='table_table' border='0' cellspacing='0' cellpadding='5' align='center' style='margin-top: 40px'>
<tr>
<?php $msg = ( $id != $CURUSER["id"] ? class_user($username) . T_("INVITED") . $num . P_("PERSON", $num) : T_("YOU_INVITE") . $num . P_("PERSON", $num) ); ?>
<td align='left' colspan='8'><b><?php echo $msg; ?></b></td>

<tr>
<td class='table_head'><b><?php echo T_("USERNAME"); ?></b></td>
<td class='table_head'><b><?php echo T_("USERCLASS"); ?></b></td>
<td class='table_head'><b><?php echo T_("INSCRIPTION"); ?></b></td>
<td class='table_head'><b><?php echo T_("LAST_ACCESS"); ?></b></td>
<td class='table_head'><b><?php echo T_("DOWNLOADED"); ?></b></td>
<td class='table_head'><b><?php echo T_("UPLOADED"); ?></b></td>
<td class='table_head'><b><?php echo T_("RATIO"); ?></b></td>
<td class='table_head'><b><?php echo T_("WARNED"); ?></b></td>
</tr>

<?php
for ($i = 1; $i <= $num; $i++) {
$arr = mysql_fetch_assoc($res);

if ($arr['added'] == '0000-00-00 00:00:00')
$arr['added'] = '---';

if ($arr['last_access'] == '0000-00-00 00:00:00')
$arr['last_access'] = '---';

if ($arr["downloaded"] > 0) {
$ratio = number_format($arr["uploaded"] / $arr["downloaded"], 2);
$ratio = "<font color=" . get_ratio_color($ratio) . ">$ratio</font>";
} elseif ($arr["uploaded"] > 0) {
$ratio = "<font color='green'>Inf.</font>";
} else {
$ratio = "---";
}

$warned = ($arr["warned"] != "yes") ? $warned = "<font color='green'><b>".T_("NO")."</b></font>" : $warned = "<font color='red'><b>".T_("YES")."</b></font>";
$class = get_user_class_name($arr["class"]);
$class = T_("$class");
$added = substr(utc_to_tz($arr['added']),0,10);
$last_access = substr(utc_to_tz($arr['last_access']),0,10);
$downloaded = mksize($arr["downloaded"]);
$uploaded = mksize($arr["uploaded"]);
?>

<tr>
<td class='table_col1' align='left'><a href="account-details.php?id=<?php echo $arr["id"]; ?>"><b><?php echo class_user($arr["username"]); ?></b></a></td>
<td class='table_col2' align='left'><?php echo $class; ?></td>
<td class='table_col1' align='center'><?php echo $added; ?></td>
<td class='table_col2' align='center'><?php echo $last_access; ?></td>
<td class='table_col1' align='center'><font color='red'><?php echo $downloaded; ?></font></td>
<td class='table_col2' align='center'><font color='green'><?php echo $uploaded; ?></font></td>
<td class='table_col1' align='center'><?php echo $ratio; ?></td>
<td class='table_col2' align='center'><?php echo $warned; ?></td>
</tr>
<?php } ?>
</table>

<?php
}

//if ($arr["invited_by"] != $CURUSER['id']) {
if ($arr["invited_by"] != $CURUSER['id'] && $CURUSER["class"] < 5) {
?>
<div style='margin-top: 20px' align='center'>[<a href='account-details.php?id=<?php echo $id; ?>'><b><?php echo T_("BACK_TO_PROFIL"); ?></b></a>]</div>

<?php
}
end_frame();
stdfoot();
?>
[/php]
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: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728