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
Recorded actions for changes into accoun
Controls ·  Search New posts · Mark unread

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

Unknown User
2013-03-03 04:23:47
hi guys this is what i got if some 1 can help me add this mod i be thanks as i have try and i am getting DB error but i am sure i am not doing it right and that what i have on my tools if some 1 could update if you could update for me the sec look the one with screenshot it for me i be really thanks

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6616"]account-details.php[/url]

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6617"]admin-modtasks.php[/url]
account-details.php
Download
admin-modtasks.php
Download
Unknown User
2013-03-04 05:17:49
[size=18px]OK, I have modified these files for you EZEL, so you can upload a beer on my tracker[/size]  

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6620"]account-details.php[/url]

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6621"]admin-modtasks.php[/url]

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6622"]code for cleanup.php[/url]
account-details.php
Download
admin-modtasks.php
Download
code for cleanup.php
Download
Unknown User
2013-03-04 05:26:41
thanks mate its really nice
Unknown User
2013-03-04 05:36:03
EZEL, notes that the aspect of this mod depends on the theme used.
Unknown User
2013-03-04 05:58:10
it works and everything but the other tools i have its not there like the modcomment yes ore no and the download banned yes or no and xxx view yes or no they all going
Unknown User
2013-03-04 06:08:26
Sorry but I not have all these, you must to install them again.
Unknown User
2013-03-04 06:11:12
ok mate i will do that thanks for the help awsome work mate keep up the good work
Unknown User
2013-03-07 09:24:18
i have add it all the mod but its not working can some 1 check this files for me if there is bugs or some thing the account-detail.php show up but the class change not there and when i click on change some thing it wont load just give me blank page in admin-modtasks.php i have add it the clean up aswel strang please get this done for me i need it the way i did it now just need fix up thanks

my old files it on the other commend if you wana take look  and that is the 2 file need to be fix thanks

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6630"]account-details.php[/url]

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=6631"]admin-modtasks.php[/url]
account-details.php
Download
admin-modtasks.php
Download
Unknown User
2013-06-26 12:57:48
just a question

in admin-modtasks.php

after the "edit user" part , you use :

$modcomment = $row['modcomment'];
$modcomment2 = "...text...";
$modcomment = $modcomment2 . "" . $modcomment;
$modcom = sqlesc($modcomment);
I think it is useless because you use

modcomment = CONCAT($modcom,modcomment)

I think that would be enough


$modcomment = "..text...";
$modcom = sqlesc($modcomment);
Unknown User
2013-06-28 14:11:10
in admin-modtasks.php

to check if the username is already in use

find :

$newname = sqlesc($_POST["name"]);
$oldname = sqlesc($_POST["username"]);

add after:


//check username isnt in use

$a = (@mysql_fetch_row(@SQL_Query_exec("select count(*) from users where username=$newname")));
if ($a[0] != 0)
show_error_msg(T_("ERROR"), T_("USERNAME_INUSE_S"), 1);

Unknown User
2013-07-15 09:59:49
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]
admin-modtasks.php
Download
Unknown User
2013-07-15 11:01:24
missing a big part of the section:

if ($action == "deleteaccount"){

check the original code and don't miss :


}
Unknown User
2013-07-15 19:22:41
This code is good, but i would like to add ban to ...
Unknown User
2013-07-16 02:41:24
do the same than forumbanned and change forum in shout
Unknown User
2013-07-19 17:59:23
This is something I am working on for 2.08.  Its an highly work in progress right now.

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