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

"Tiloup, post: 67268":


Vla un ti-hack qui va faire plaisir! lol

PS: vous devez appliquer sur votre thème officiel!.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//

little hack for you! lol

PS: You must apply on your official theme!.

ouvrir account-login et chercher:

open account-login and search:

<tr><td><b><?echo "" . USERNAME . "";?>:</b></td><td align=left><input type="text" size=40 name="username" /></td></tr>
<tr><td><b><?echo "" . PASSWORD . "";?>:</b></td><td align=left><input type="password" size=40 name="password" /></td></tr>
Après/after name="username" ajouter/add id="nick"et/and

Après/after name="password" ajouter/add id="passw"

Ouvrir /themes/votre thème/theme.css ajouter:

Open / themes / your theme / theme.css add:

input#nick, input#passw, input#searchinput{
padding-left: 20px;
background-repeat: no-repeat;
background-position: 2px center;
}
input#nick{
background-image: url(images/login_.gif);
}
input#passw {
background-image: url(images/password_.gif);
}
Ajouter dans votre dossier images de votre thème les images [login_.gif et password_.gif]

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//

Add in your images folder of your theme images [login_.gif - password_.gif]

@+  :huh:
in account-login search

this line

<tr><td align="center"><b><?php echo T_("USERNAME"); ?>:</b> <input type="text" size="40" name="username" id="nick" /></td></tr>
<tr><td align="center"><b><?php echo T_("PASSWORD"); ?>:</b> <input type="password" size="40" name="password" id="passw" /></td></tr>

TT 2.08
:blink:  not screen?
hello I have problem

Parse error: syntax error, unexpected end of file in /var/www/admin-modtasks.php on line 230

i can edit user promoted super moderator

I have not wanted to change everything

je n'es pas voulu tout modifier

<?php
//
//  TorrentTrader v2.x
//      $LastChangedDate: 2012-07-02 17:34:40 +0100 (Mon, 02 Jul 2012) $
//      $LastChangedBy: torrenttrader $
//
//      http://www.torrenttrader.org
//
//
require_once("backend/functions.php");
dbconn();
loggedinonly();

if($CURUSER["edit_users"]!="yes")
   show_error_msg(T_("ACCESS_DENIED"),T_("YOU_DONT_HAVE_EDIT_USER_PERM"),1);

   $action = $_POST["action"];

if (!$action)
   show_error_msg(T_("ERROR"), T_("TASK_NOT_FOUND"), 1);

if ($action == 'edituser'){
   $userid = $_POST["userid"];
   $title = sqlesc($_POST["title"]);
   $downloaded = strtobytes($_POST["downloaded"]);
   $uploaded = strtobytes($_POST["uploaded"]);
   $signature = sqlesc($_POST["signature"]);
   $avatar = strip_tags($_POST["avatar"]);
   $ip = sqlesc($_POST["ip"]);
   $class = (int) $_POST["class"];
   $donated = (float) $_POST["donated"];
   $password = $_POST["password"];
   $warned = sqlesc($_POST["warned"]);
   $forumbanned = sqlesc($_POST["forumbanned"]);
   $modcomment = sqlesc($_POST["modcomment"]);
   $enabled = sqlesc($_POST["enabled"]);
   $invites =(int) $_POST["invites"];
   $class = (int)$_POST["class"];
   $email = $_POST["email"];

if (!is_valid_id($userid))
   show_error_msg(T_("EDITING_FAILED"), T_("INVALID_USERID"),1);

if (!validemail($email))
   show_error_msg(T_("EDITING_FAILED"), T_("EMAIL_ADDRESS_NOT_VALID"), 1);

if ( $avatar != null )
{

# Allowed Image Extenstions.
   $allowed_types = &$site_config["allowed_image_types"];    
             
# We force http://
if ( !preg_match( "#^w+://#i", $avatar ) ) $avatar = "http://" . $avatar;

# Clean Avatar Path.      
   $avatar = cleanstr( $avatar );
             
# Validate Image.
   $im = @getimagesize( $avatar );
             
if ( !$im[ 2 ] || !@array_key_exists( $im['mime'], $allowed_types ) )
   show_error_msg("Error", "The avatar url was determined to be of a invalid nature.", 1);
}
   
# Save New Avatar.
   $avatar = sqlesc($avatar);
         
//change user class
   $res = SQL_Query_exec("SELECT class FROM users WHERE id=$userid");
   $arr = mysql_fetch_row($res);
   $uc = $arr[0];

// skip if class is same as current
if ($uc != $class && $class > 0) {

if ($userid == $CURUSER["id"]) {
   show_error_msg(T_("EDITING_FAILED"), T_("YOU_CANT_DEMOTE_YOURSELF"),1);
} elseif ($uc >= get_user_class()) {
   show_error_msg(T_("EDITING_FAILED"), T_("YOU_CANT_DEMOTE_SOMEONE_SAME_LVL"),1);
} else {
   @SQL_Query_exec("UPDATE users SET class=$class WHERE id=$userid");
   
// Notify user
   $prodemoted = ($class > $uc ? "promoted" : "demoted");
   $msg = sqlesc("You have been $prodemoted to '" . get_user_class_name($class) . "' by " . $CURUSER["username"] . ".");
   $added = sqlesc(get_date_time());
   @SQL_Query_exec("INSERT INTO messages (sender, receiver, msg, added) VALUES(0, $userid, $msg, $added)");
}
}
//continue updates

   SQL_Query_exec("UPDATE users SET email='$email', title=$title, downloaded='$downloaded', uploaded='$uploaded', signature=$signature, avatar=$avatar, ip=$ip, donated=$donated, forumbanned=$forumbanned, warned=$warned, modcomment=$modcomment, enabled=$enabled, invites=$invites WHERE id=$userid");
   write_log($CURUSER['username']." has edited user: $userid details");

if ($_POST['resetpasskey']=='yes'){
   SQL_Query_exec("UPDATE users SET passkey='' WHERE id=$userid");
   
//write_log($CURUSER['username']." ".T_("PASSKEY")." has been reset for: $userid");
}

   $chgpasswd = $_POST['chgpasswd']=='yes' ? true : false;
   
if ($chgpasswd) {
   $passreq = SQL_Query_exec("SELECT password FROM users WHERE id=$userid");
   $passres = mysql_fetch_assoc($passreq);
   
if($password != $passres['password']){
   $password = passhash($password);
   SQL_Query_exec("UPDATE users SET password='$password' WHERE id=$userid");
   write_log($CURUSER['username']." has changed password for user: $userid");
}
}
   header("Location: account-details.php?id=$userid");
die;
}

if ($action == 'addwarning'){
   $userid = (int)$_POST["userid"];
   $reason = mysql_real_escape_string($_POST["reason"]);
   $expiry = (int)$_POST["expiry"];
   $type = mysql_real_escape_string($_POST["type"]);

if (!is_valid_id($userid))
   show_error_msg(T_("EDITING_FAILED"), T_("INVALID_USERID"),1);

if (!$reason || !$expiry || !$type){
   show_error_msg(T_("ERROR"), T_("MISSING_FORM_DATA").".", 1);
}

   $timenow = get_date_time();
   $expiretime = get_date_time(gmtime() + (86400 * $expiry));
   $ret = SQL_Query_exec("INSERT INTO warnings (userid, reason, added, expiry, warnedby, type) VALUES ('$userid','$reason','$timenow','$expiretime','".$CURUSER['id']."','$type')");
   $ret = SQL_Query_exec("UPDATE users SET warned='yes' WHERE id='$userid'");
   $msg = sqlesc("You have been warned by " . $CURUSER["username"] . " - Reason: ".$reason." - Expiry: ".$expiretime."");
   $added = sqlesc(get_date_time());
   @SQL_Query_exec("INSERT INTO messages (sender, receiver, msg, added) VALUES(0, $userid, $msg, $added)");
   write_log($CURUSER['username']." has added a warning for user: <a href='account-details.php?id=$userid'>$userid</a>");
   header("Location: account-details.php?id=$userid");
die;
}

if ($action == "deleteaccount"){
   
if ($CURUSER["delete_users"] != "yes")

//only allow admins to delete users

//===| Start Forum Banned |===//
if ($action == 'forumbanned') {
   $curusername = ($CURUSER['username']);
   $curuserid = ($CURUSER['id']);
   $username = sqlesc($_POST["username"]);
   $userid = $_POST["userid"];
   $forumbanned = sqlesc($_POST["forumbanned"]);
   $forumbannedlength = sqlesc($_POST["forumbannedlength"]);
   $forumbanneduntil = get_date_time(gmtime() + $forumbannedlength * 86400);
   $days = $forumbannedlength . " day" . ($forumbannedlength > 1 ? "s" : "");
   $fbreason = $_POST["forbanreason"];
     
if ($_POST["forumbanned"] == 'yes' && $_POST["forumbannedlength"] == '') {
   show_error_msg(T_("ERROR"), "You must specify the number of days! &nbsp [<a href=account-details.php?id=$userid><b>Go Back</b></a>]", 1);
}
     
if ($_POST["forumbanned"] == 'yes' && $_POST["forbanreason"] == '') {
   show_error_msg(T_("ERROR"), "You must provide a Reason for this action! &nbsp [<a href=account-details.php?id=$userid><b>Go Back</b></a>]", 1);
}
   $modcomment = $row['modcomment'];
   
if ($_POST["forumbanned"] != 'yes') {
   $modcomment2 = gmdate("d-M-Y") . " - $curusername has removed ban on Forum n";
} else {
   $modcomment2 = gmdate("d-M-Y") . " - $curusername has added ban on Forum for $daysn- Reason: $fbreason n";
}
   $modcomment = $modcomment2 . "" . $modcomment;
   $modcom = sqlesc($modcomment);

if ($_POST["forumbanned"] != 'yes') {
   SQL_Query_exec("UPDATE users SET forumbanned=$forumbanned, forumbanneduntil = '0000-00-00 00:00:00', modcomment = CONCAT($modcom,modcomment) WHERE id = $userid");
   $msg = sqlesc("Your ban on Forum has been removed by ".$curusername."");
   $added = sqlesc(get_date_time());
   SQL_Query_exec("INSERT INTO messages (sender, receiver, msg, added) VALUES(0, $userid, $msg, $added)");
   write_log("<a href=account-details.php?id=$curuserid><b>$curusername</b></a> has removed ban on Forum for user <a href=account-details.php?id=$userid><b>$username</b></a>");
} else {
   SQL_Query_exec("UPDATE users SET forumbanned=$forumbanned, forumbanneduntil = '$forumbanneduntil', modcomment = CONCAT($modcom,modcomment) WHERE id = $userid");
   $msg = sqlesc("You have received a ".$days." ban on Forum from ".$curusername."nnReason: ".$fbreason."");
   $added = sqlesc(get_date_time());
   SQL_Query_exec("INSERT INTO messages (sender, receiver, msg, added) VALUES(0, $userid, $msg, $added)");
   write_log("<a href=account-details.php?id=$curuserid><b>$curusername</b></a> has banned on Forum user <a href=account-details.php?id=$userid><b>$username</b></a> for $days<br />Reason: $fbreason");
}
header("Location: account-details.php?id=$userid");
die;
}
//====| End Forum Banned |====//

//===| Start Disable/Enable Account |===//
if ($action == 'enabled') {
   $curusername = ($CURUSER['username']);
   $curuserid = ($CURUSER['id']);
   $username = sqlesc($_POST["username"]);
   $userid = $_POST["userid"];
   $enabled = sqlesc($_POST["enabled"]);
   $disablereason = $_POST["disablereason"];
     
if ($_POST["enabled"] != 'yes' && $_POST["disablereason"] == '') {
   show_error_msg(T_("ERROR"), "You must provide a Reason for this action! &nbsp [<a href=account-details.php?id=$userid><b>Go Back</b></a>]", 1);
}
   $modcomment = $row['modcomment'];
   
if ($_POST["enabled"] == 'yes') {
   $modcomment2 = gmdate("d-M-Y") . " - $curusername has enabled this account n";
} else {
   $modcomment2 = gmdate("d-M-Y") . " - $curusername has disabled this accountn- Reason: $disablereason n";
}
   $modcomment = $modcomment2 . "" . $modcomment;
   $modcom = sqlesc($modcomment);
   SQL_Query_exec("UPDATE users SET enabled=$enabled, modcomment = CONCAT($modcom,modcomment) WHERE id = $userid");
           
if ($_POST["enabled"] == 'yes') {
   write_log("<a href=account-details.php?id=$curuserid><b>$curusername</b></a> has enabled user <a href=account-details.php?id=$userid><b>$username</b></a> account");
} else {
   write_log("<a href=account-details.php?id=$curuserid><b>$curusername</b></a> has disabled user <a href=account-details.php?id=$userid><b>$username</b></a> account<br />Reason: $disablereason");
}
   header("Location: account-details.php?id=$userid");
die;
}

//====| End Disable/Enable Account |====//

?>

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6816"]admin-modtasks.php[/url]
copy after the second ?>  ;)

Seeding Bonus: <a href="mybonus.php"><b><?php echo $seedbonus; ?></a></b><br />

gretz thank you UFFEN01
good thank Thib and ArticWolf

but  :mellow:

see you screen



no center
like this Thib?


print Seeding Bonus: ("<a href='mybonus.php'>$CURUSER["seedbonus"]</a>");
hello I have a problem with this line of code that does not seedbonus to Repeat and much more, plus index page

bonjour j'ai un probleme avec cette ligne de code &ccedil;a n'affice pas seedbonus et d'autant plus,plus de page index

print Seeding Bonus:("<a href='mybonus.php'>$seedbonus</a>");




[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6812"]login_block.php[/url]
hello ArticWolf

sorry it's not possible varchar 7

ALTER TABLE `groups` ADD `Color` VARCHAR( 7 ) NOT NULL DEFAULT '#000000' AFTER `level` ;

hex color=6 #000000
exactly Thib the king

(Bigmax,Micromonkey,ArticWolf,Mostvoteplaya,Chris-team,UFFEN01)

long life TT
bien joué Tiloup

you progress to be continued

:rolleyes:
thank you Chris and UFFEN01 greatz good work

y'avais 2 possibilitée  :)
good Chris thank you

it's possible whit IP adress?
Upload Activity — 2013-06-27 01:24:34 in v2.08 Mods Completed
where view stat upload?

other windows?
this code after modified

#======================================================================#
# Nick Name Change
#======================================================================#

if($action == "nick_change")
{
stdhead();
navmenu();
if ($CURUSER["edit_users"]!="yes")
   show_error_msg("STOP", "You cannot acces this function");
if (!isset($_GET['what'])) $_GET['what'] = '';
begin_frame("Change Nick Name");
?>
<script type="text/javascript">
<!--

var newwindow;
function popusers(url) {
newwindow=window.open(url,'popusers','height=70,width=400');
if (window.focus) {newwindow.focus()}
}

// -->
</script>
<form method=post name=edit action=admincp.php>
   <input type='hidden' name='sid' value='<?php echo $sid;?>
       <input type='hidden' name='action' value='sql'>
       <input type='hidden' name='do' value='change_username'>
   <table border=0 cellspacing=0 cellpadding=5>
<?php
   print("<tr><td>Nick:</td>");
   print("<td>");
if (!$receiver) {
   print("<input type="text" name="receiver"
   value="".($_GET["what"]!="new" ? unesc($result["poster"]):urldecode($_GET["to"]))."" size="40" ".($_GET["what"]!="new" ? "READONLY" : "")." />&nbsp;&nbsp;
   <a href="javascript: popusers('userfind_to_nick.php');">Find a NickName</a>");
}
else{
?>
<input type=text name=receiver value="<?php echo $receiver;?>" READONLY>
<?php } ?>      
   <tr>
       <td>New Nickname:</td>
       <td><input name='new_username' type='text' id="new_username" size='20' maxlength='20'></td>
   </tr>
       <tr>
       <td colspan='2' align='center'><input type='submit' value='Make changes'>
       </td>
   </tr>
   </form>
   </table>
   <p>
<?php
end_frame();
stdfoot();
}

if($do == "change_username") {
stdhead();
navmenu();
if ($CURUSER["edit_users"]!="yes")
show_error_msg("STOP", "you Cannot access this function", 1);
begin_frame("Changes have been successful");
   $current_username = $_POST['receiver'];
   $new_username=$_POST['new_username'];
   $q = SQL_Query_exec("UPDATE users SET username = '$new_username' WHERE username = '$current_username'");
if ($q)
   echo '<b> Changes have been successful, User: '.$current_username.' is now '.$new_username.'</b>';
   else
   echo '<b> Changes <font size=1 face=Verdana color=red>not</font> been successful</b>';

end_frame();
stdfoot();
}

///////////////////////////////////////////END CODE CHANGE NICKNAME//////////////////////////////////////////////////



Upload Activity — 2013-06-20 09:45:21 in v2.08 Mods Completed
put file(upload-stats.php)into the root?


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

stdhead("Upload Activity");

if ($CURUSER["control_panel"] == "yes")
{
begin_frame("Upload Activity");
       
   $catorder = $_GET['order'];
   $n_tor = get_row_count("torrents");
   $n_peers = get_row_count("peers");
   $upclass = 4; //===| Set your minimum class that can upload torrents
   $query = "SELECT id, username, added, uploaded, downloaded, class FROM users WHERE class >= $upclass ORDER BY class DESC";
   $result = SQL_Query_exec($query);
   $num = mysql_num_rows($result);
   echo "<div style='margin-top:10px' align=center><font size=2>We have <font color=#0080FF><b>" . $num . "</b></font> members with upload rights</font></div>";
   $zerofix = $num - 1;
   echo "<table class=table_table cellpadding=4 align=center border=0>";

for ($i = 0; $i <= $zerofix; $i++)
{
   if ($num > 0)
{
$class = mysql_result($result, $i, "class");
   if ($i > 0)
   $class2 = mysql_result($result, $i-1, "class");

   if ($class != $class2) {
   echo("<tr><td style=border:none colspan=8 height=15></td></tr>");
   echo("<tr><td style=border:none colspan=8><b>Class</b>: <b>".get_user_class_name($class)."</b></td></tr>
   <tr>
       <td class=table_head align=center><b>Num</b></td>
       <td class=table_head><b>Username</b></td>
       <td class=table_head><b>Uploaded</b></td>
       <td class=table_head><b>Downloaded</b></td>
       <td class=table_head><b>Ratio</b></td>
       <td class=table_head><b>Uploaded Torrents</b></td>
       <td class=table_head><b>Last Upload</b></td>
       <td class=table_head align=center><b>Contact</b></td>
   </tr>");
}

   $id = mysql_result($result, $i, "id");
   $username = mysql_result($result, $i, "username");
   $added = mysql_result($result, $i, "added");
   $uploaded = mksize(mysql_result($result, $i, "uploaded"));
   $downloaded = mksize(mysql_result($result, $i, "downloaded"));
   $uploadedratio = mysql_result($result, $i, "uploaded");
   $downloadedratio = mysql_result($result, $i, "downloaded");

   $res = SQL_Query_exec("SELECT COUNT(*) FROM users WHERE class = $class");
   $arr = mysql_fetch_row($res);
   $liczclass = $arr[0];

   $upperquery = "SELECT added FROM torrents WHERE owner = $id";
   $upperresult = SQL_Query_exec($upperquery);
   $torrentinfo = mysql_fetch_array($upperresult);
   $numtorrents = mysql_num_rows($upperresult);

if ($downloaded > 0)
{
   $ratio = $uploadedratio / $downloadedratio;
   $ratio = number_format($ratio, 2);
   $color = get_ratio_color($ratio);
   if ($color)
   $ratio = "<font color=$color>$ratio</font>";
}
   else
if ($uploaded > 0)
   $ratio = "Inf.";
   else
   $ratio = "---";

if ($class != $class2)
   $counter = 0;
   $counter = $counter + 1;

if ($numtorrents > 0)
   {
   $lastadded = mysql_result($upperresult, $numtorrents - 1, "added");
   $add = "<td class=table_col1>" . get_elapsed_time(sql_timestamp_to_unix_timestamp($lastadded)) . " ago (" . gmdate("d.M.Y",strtotime($lastadded)) . ")</td>";
   }
   else
   $add = "<td class=table_col1><font color=#FF2000><b>Nothing!</b></font></td>";

   echo "<tr>";
   echo "<td class=table_col1 align=center><b>$counter</b></td>";
   echo "<td class=table_col2><a href=/account-details.php?id=$id><b>".$username."</b></a></td>";
   echo "<td class=table_col1><font color=limegreen><b>$uploaded</b></font></td>";
   echo "<td class=table_col2><font color=#FF2000><b>$downloaded</b></font></td>";
   echo "<td class=table_col1><b>$ratio</b></td>";
   echo "<td class=table_col2><b><font color=#0080FF>$numtorrents</font> torrents</b> / total</td>n";
   echo $add;
   echo "<td class=table_col2 align=center><a href=mailbox.php?compose&id=$id><img src=images/button_pm.gif border=0></a></td>";
   echo "</tr>";
}
}
   echo "</table>";
   echo "<div style='margin-top:25px; margin-bottom:15px' align=center><font size=2><b>Torrents Stats</b></font></div>";
   echo "<table class=table_table cellpadding=4 align=center border=0>";
if ($n_tor == 0)
   show_error_msg("Sorry", "There's no category!");
   else
{
if ($catorder == "category")
   $orderby = "c.id";
   else if ($catorder == "lastul")
   $orderby = "last DESC, c.id";
   elseif ($catorder == "torrents")
   $orderby = "n_t DESC, c.id";
   elseif ($catorder == "peers")
   $orderby = "n_p DESC, name";
   else
   $orderby = "c.id";

   $res = SQL_Query_exec("SELECT c.name, c.parent_cat, MAX(t.added) AS last, COUNT(DISTINCT t.id) AS n_t, COUNT(p.id) AS n_p
   FROM categories as c LEFT JOIN torrents as t ON t.category = c.id LEFT JOIN peers as p
   ON t.id = p.torrent GROUP BY c.id ORDER BY $orderby");

   print("<tr>
     <td class=table_head><a href=upload-stats.php?order=category><b>Category</b></a></td>
     <td class=table_head><a href=upload-stats.php?order=lastul><b>Last Upload</b></a></td>
     <td class=table_head align=center><a href=upload-stats.php?order=torrents><b>Total Torrents</b></a></td>
     <td class=table_head align=center><a href=upload-stats.php?order=torrents><b>Torrents Rate</b></td>
     <td class=table_head align=center><a href=upload-stats.php?order=peers><b>Total Peers</b></a></td>
     <td class=table_head align=center><a href=upload-stats.php?order=peers><b>Peers Rate</b></a></td>
 </tr>n");

 while ($cat = mysql_fetch_array($res)) {
 $caty[] = " <tr>
     <td class=table_col1><b><font color=#FF2000>" . $cat['parent_cat'] . "</font> " . $cat['name'] . "</b></a></td>
     <td class=table_col2 " . ($cat['last']?(">".date("<b>d-M-Y</b> H:i", utc_to_tz_time($cat['last']))." (".get_elapsed_time(sql_timestamp_to_unix_timestamp($cat['last']))." ago)"):"><font color=#FF2000><b>Nothing!</b></font>") ."</td>
     <td class=table_col1 align=center>" . $cat['n_t'] . "</td>
     <td class=table_col2 align=center>" . number_format(100 * $cat['n_t']/$n_tor,1) . "%</td>
     <td class=table_col1 align=center>" . $cat['n_p'] . "</td>
     <td class=table_col2 align=center>" . ($n_peers > 0 ? number_format(100 * $cat['n_p']/$n_peers,1)."%":"---") . "</td>
 </tr>n";
}

   echo implode("n",$caty);
   $torrents = number_format($n_tor);

 print(" <td colspan=2 class=table_head align=right><b>Total Results</b>:&nbsp;</td>
     <td class=table_head align=center>".$torrents."</td>
     <td class=table_head align=center>".number_format(100 * $torrents/$n_tor,1) . "%</td>
     <td class=table_head align=center>".$n_peers."</td>
     <td class=table_head align=center>".number_format(100 * $n_peers/$n_peers,1)."%</td>");
}
     echo "</table><br />";
end_frame();
}
   else
   show_error_msg(T_("ERROR"), T_("SORRY_NO_RIGHTS_TO_ACCESS"), 1);

stdfoot();
?>
Show webseed — 2013-06-20 09:27:48 in v2 Only Mods Complete
thank guest666@222

remplaced all the code?or add?
I don't write in the champ :Nick  :(
thank you Thib good work  :rolleyes:

il a fallu que je trouve pour ce code <?php echo ... ;?>

:P
sorry Chris-team is not account-detail

in login_block.php

excuse Chris-team c'etait pas dans account-detail mais dans login_block.php

it's more interresting login_block of Foz1983

give me a little help?
it's work resolved TT2.08

copy exactly this code

#======================================================================#
# Add Users
#======================================================================#
if ($action == "adduser") {
if ($CURUSER["class"] < "9") {
       show_error_msg("Error", "Sorry you do not have the rights to view this page!", 1);
}
if ($_SERVER["REQUEST_METHOD"] == "POST") {
   if ($_POST["username"] == "" || $_POST["password"] == "" || $_POST["email"] == "")
       show_error_msg(T_("ERROR"), T_("DONT_LEAVE_ANY_FIELD_BLANK"),1);
   if ($_POST["password"] != $_POST["password2"])
       show_error_msg(T_("ERROR"), T_("PASSWORDS_NOT_MATCH"),1);
       $username = sqlesc($_POST["username"]);
       $password = $_POST["password"];
       $email = sqlesc($_POST["email"]);
       $secret = mksecret();
       $passhash = sqlesc(passhash($password)); // hash the password
       $secret = sqlesc($secret);
       SQL_Query_exec("INSERT INTO users (added, last_access, secret, username, password, status, email) VALUES(NOW(), NOW(), $secret, $username, $passhash, 'confirmed', $email)");
       $res = SQL_Query_exec("SELECT id FROM users WHERE username=$username");
       $arr = mysql_fetch_row($res);
if (!$arr)
       show_error_msg(T_("ERROR"), "Unable to create the account. The user name is possibly already taken.",1);
       header("Location: account-details.php?id=$arr[0]");
       die;
}

stdhead("Add user");
navmenu();
begin_frame();
?>
<div align=center>
<h1>Add user</h1>
<form method=post action=admincp.php?action=adduser>
<table border=1 cellspacing=0 cellpadding=5>
<tr><td class=rowhead>Username</td><td><input type=text name=username size=40></td></tr>
<tr><td class=rowhead>Password</td><td><input type=password name=password size=40></td></tr>
<tr><td class=rowhead>Re-type password</td><td><input type=password name=password2 size=40></td></tr>
<tr><td class=rowhead>E-mail</td><td><input type=text name=email size=40></td></tr>
<tr><td colspan=2 align=center><input type=submit value="Okay" class=btn></td></tr>
</table>
</form>
</div>
<?php
end_frame();
stdfoot();
}
#======================================================================#
# END Add Users
#======================================================================#


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