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

"bolzen, post: 67519":
hi all a little hack from me


           go in shoutbox.php and find this
         
if (isset($_GET['history'])) {

if (isset($_GET['page'])) {

if($_GET['page'] > '1') {

$lowerlimit = $_GET['page'] * 100 - 100;

$upperlimit = $_GET['page'] * 100;

} else {

$lowerlimit = 0;

$upperlimit = 100;

}

} else {

$lowerlimit = 0;

$upperlimit = 100;

}

$query = 'SELECT * FROM shoutbox ORDER BY msgid DESC LIMIT '.$lowerlimit.','.$upperlimit;

} else {

$query = 'SELECT * FROM shoutbox ORDER BY msgid DESC LIMIT 20';

}

           and under it make this
         

//Check staffmessage
if ($CURUSER["class"] >= "5") {
$staffmessres= mysql_query("SELECT * FROM staffmessages WHERE answered=0");
if (mysql_num_rows($staffmessres)>0)
{
if ($unreadmail) print ("<br>");

print("<font color=#FF0000 size=3><B><center>Neue Team-Pm </font></b>[<a href=staffbox.php class=link2 target=_blank><font color=#FF0000>".mysql_num_rows($staffmessres)."</font></a>]</center>");

}
}
//Check staffmessage ende

   

   

       


if ($CURUSER["class"] >= "5") {


           musst replace with you moderator group id

           thats it have a nice day greets bolzen




go in shoutbox.php and find this
 

if (isset($_GET['history'])) {
if (isset($_GET['page'])) {
if($_GET['page'] > '1') {
$lowerlimit = $_GET['page'] * 100 - 100;
$upperlimit = $_GET['page'] * 100;
} else {
$lowerlimit = 0;
$upperlimit = 100;
}
} else {
$lowerlimit = 0;
$upperlimit = 100;
}
$query = 'SELECT * FROM shoutbox ORDER BY msgid DESC LIMIT '.$lowerlimit.','.$upperlimit;
} else {
$query = 'SELECT * FROM shoutbox ORDER BY msgid DESC LIMIT 20';
}


   and under it make this
 


//Check staffmessage
if ($CURUSER["class"] >= "5") {
   $staffmessres= SQL_Query_exec("SELECT * FROM staffmessages WHERE answered=0");
if (mysql_num_rows($staffmessres)>0) {
if ($unreadmail)
   print("<br>");
   print("<font color=#FF0000 size=3><b><center>New PM Staff </font></b>[<a href=staffbox.php class=link2 target=_blank><font color=#FF0000>".mysql_num_rows($staffmessres)."</font></a>]</center>");
}
}
//Check staffmessage ende
SQL :

ALTER TABLE `users` ADD `uploadbanned` CHAR(3) NOT NULL DEFAULT 'no';
ALTER TABLE `users` ADD `uploadbanneduntil` datetime NOT NULL DEFAULT '0000-00-00 00:00:00';

ALTER TABLE `users` ADD `forumbanned` CHAR(3) NOT NULL DEFAULT 'no';
ALTER TABLE `users` ADD `forumbanneduntil` datetime NOT NULL DEFAULT '0000-00-00 00:00:00';

ALTER TABLE `users` ADD `commentbanned` char(3) NOT NULL DEFAULT 'no';
ALTER TABLE `users` ADD `commentbanneduntil` datetime NOT NULL DEFAULT '0000-00-00 00:00:00';

ALTER TABLE `users` ADD `mailbanned` char(3) NOT NULL DEFAULT 'no';
ALTER TABLE `users` ADD `mailbanneduntil` datetime NOT NULL DEFAULT '0000-00-00 00:00:00';

ALTER TABLE `users` ADD `downloadbanned` char(3) NOT NULL DEFAULT 'no';
ALTER TABLE `users` ADD `downloadbanneduntil` datetime NOT NULL DEFAULT '0000-00-00 00:00:00';

ALTER TABLE `users` ADD `shoutboxbanned` CHAR(3) NOT NULL DEFAULT 'no';
ALTER TABLE `users` ADD `shoutboxbanneduntil` datetime NOT NULL DEFAULT '0000-00-00 00:00:00';

Open account-details and find:

print ("<tr><td>".T_("PASSKEY").":</td><td align='left'>$user[passkey]<br /><input name='resetpasskey' value='yes' type='checkbox' />".T_("RESET_PASSKEY")." (".T_("RESET_PASSKEY_MSG").")</td></tr>\n");
   print ("<tr><td colspan='2' align='right'><input type='submit' value='".T_("SUBMIT")."' /></td></tr>\n");
   print ("</table>\n");
   print ("</form>\n");

add after

// Download Banned
   $downloadbanned = $user["downloadbanned"] == 'yes';
 
if ($downloadbanneduntil != "0000-00-00 00:00:00") {
   $bandownloaduntil = "Compte a rebour: <font color='FF0000'><b>".mkprettytime(strtotime($downloadbanneduntil) - gmtime())."</b></font> to go...";
} else {
   $bandownloaduntil = "";
}
   print("<tr><td height='4'></td></tr>\n"); //===| 5px space here!

if (get_user_class() >= 5) {
   print ("<form method='post' action='admin-modtasks.php'>\n");
   print ("<input type='hidden' name='action' value='downloadbanned' />\n");
   print ("<input type='hidden' name='userid' value='$id' />\n");
   print ("<input type='hidden' name='username' value='".$user["username"]."' />\n");
   print ("<tr><td>".T_("DOWNLOAD_BANNED").": </td><td class='table_col2' align='left'><input name='downloadbanned' value='yes' type='radio' " . ($downloadbanned ? " checked='checked'" : "") . " /><font color='FF0000'> Oui </font>&nbsp;<input name='downloadbanned' value='no' type='radio' " . (!$downloadbanned ? " checked='checked'" : "") . " /><font color=limegreen> Non</font>\n");
   print ("<font style='margin-left:15px; margin-right:20px'>Banni pour: <input type='text' size='4' name='downloadbannedlength' /> Jours</font>$downloadbanneduntil\n");
   print ("<div style='margin-top:4px'>Raison: <input type='text' size='70' name='forbanreason'>\n");
   print ("<font style='margin-left:10px; margin-right:20px'><input type='submit' value='".T_("SUBMIT")."' /></font></div>\n");
   print ("</td></tr>\n");
   print ("</form>\n");
}
//End download banned[code]//upload banned
   $uploadbanned = $user["uploadbanned"] == 'yes';

if ($uploadbanneduntil != "0000-00-00 00:00:00") {
   $banuploaduntil = "Compte a rebour: <font color='FF0000'><b>".mkprettytime(strtotime($uploadbanneduntil) - gmtime())."</b></font> to go...";
} else {
   $banuploaduntil = "";
}
   print("<tr><td height='4'></td></tr>\n"); //===| 5px space here!

if (get_user_class() >= 5) {
   print ("<form method='post' action='admin-modtasks.php'>\n");
   print ("<input type='hidden' name='action' value='uploadbanned' />\n");
   print ("<input type='hidden' name='userid' value='$id' />\n");
   print ("<input type='hidden' name='username' value='".$user["username"]."' />\n");
   print ("<tr><td>".T_("UPLOAD_BANNED").": </td><td class='table_col2' align='left'><input name='uploadbanned' value='yes' type='radio' " . ($uploadbanned ? " checked='checked'" : "") . " /><font color='FF0000'> Oui </font>&nbsp;<input name='uploadbanned' value='no' type='radio' " . (!$uploadbanned ? " checked='checked'" : "") . " /><font color=limegreen> Non</font>\n");
   print ("<font style='margin-left:15px; margin-right:20px'>Banni pour: <input type='text' size='4' name='uploadbannedlength' /> Jours</font>$banuploaduntil\n");
   print ("<div style='margin-top:4px'>Raison: <input type='text' size='70' name='forbanreason'>\n");
   print ("<font style='margin-left:10px; margin-right:20px'><input type='submit' value='".T_("SUBMIT")."' /></font></div>\n");
   print ("</td></tr>\n");
   print ("</form>\n");
}
//End upload banned


//forum banned
   $forumbanned = $user["forumbanned"] == 'yes';

if ($forumbanneduntil != "0000-00-00 00:00:00") {
   $banforumuntil = "Compte a rebour: <font color='FF0000'><b>".mkprettytime(strtotime($forumbanneduntil) - gmtime())."</b></font> to go...";
} else {
   $banforumuntil = "";
}
   print("<tr><td height='4'></td></tr>\n"); //===| 5px space here!

if (get_user_class() >= 5) {
   print ("<form method='post' action='admin-modtasks.php'>\n");
   print ("<input type='hidden' name='action' value='uploadbanned' />\n");
   print ("<input type='hidden' name='userid' value='$id' />\n");
   print ("<input type='hidden' name='username' value='".$user["username"]."' />\n");
   print ("<tr><td>".T_("FORUM_BANNED").": </td><td class='table_col2' align='left'><input name='uploadbanned' value='yes' type='radio' " . ($forumbanned ? " checked='checked'" : "") . " /><font color='FF0000'> Oui </font>&nbsp;<input name='forumbanned' value='no' type='radio' " . (!$forumbanned ? " checked='checked'" : "") . " /><font color=limegreen> Non</font>\n");
   print ("<font style='margin-left:15px; margin-right:20px'>Banni pour: <input type='text' size='4' name='forumbannedlength' /> Jours</font>$banforumuntil\n");
   print ("<div style='margin-top:4px'>Raison: <input type='text' size='70' name='forbanreason'>\n");
   print ("<font style='margin-left:10px; margin-right:20px'><input type='submit' value='".T_("SUBMIT")."' /></font></div>\n");
   print ("</td></tr>\n");
   print ("</form>\n");
}  
//End forum banned


//shoutbox banned
   $shoutboxbanned = $user["shoutboxbanned"] == 'yes';

if ($shoutboxbanneduntil != "0000-00-00 00:00:00") {
   $banshoutboxuntil = "Compte a rebour: <font color='FF0000'><b>".mkprettytime(strtotime($shoutboxbanneduntil) - gmtime())."</b></font> to go...";
} else {
   $banshoutboxuntil = "";
}
   print("<tr><td height='4'></td></tr>\n"); //===| 5px space here!

if (get_user_class() >= 5) {
   print ("<form method='post' action='admin-modtasks.php'>\n");
   print ("<input type='hidden' name='action' value='shoutboxbanned' />\n");
   print ("<input type='hidden' name='userid' value='$id' />\n");
   print ("<input type='hidden' name='username' value='".$user["username"]."' />\n");
   print ("<tr><td>".T_("SHOUTBOX_BANNED").": </td><td class='table_col2' align='left'><input name='shoutboxbanned' value='yes' type='radio' " . ($shoutboxbanned ? " checked='checked'" : "") . " /><font color='FF0000'> Oui </font>&nbsp;<input name='shoutboxbanned' value='no' type='radio' " . (!$shoutboxbanned ? " checked='checked'" : "") . " /><font color=limegreen> Non</font>\n");
   print ("<font style='margin-left:15px; margin-right:20px'>Banni pour: <input type='text' size='4' name='shoutboxbannedlength' /> Jours</font>$banshoutboxuntil\n");
   print ("<div style='margin-top:4px'>Raison: <input type='text' size='70' name='forbanreason'>\n");
   print ("<font style='margin-left:10px; margin-right:20px'><input type='submit' value='".T_("SUBMIT")."' /></font></div>\n");
   print ("</td></tr>\n");
   print ("</form>\n");
}
//End shoutbox banned


//Comment banned
   $commentbanned = $user["commentbanned"] == 'yes';
 
if ($commentbanneduntil != "0000-00-00 00:00:00") {
   $bancommentuntil = "Compte a rebour: <font color='FF0000'><b>".mkprettytime(strtotime($commentbanneduntil) - gmtime())."</b></font> to go...";
} else {
   $bancommentuntil = "";
}
   print("<tr><td height='4'></td></tr>\n"); //===| 5px space here!

if (get_user_class() >= 5) {
   print ("<form method='post' action='admin-modtasks.php'>\n");
   print ("<input type='hidden' name='action' value='commentbanned' />\n");
   print ("<input type='hidden' name='userid' value='$id' />\n");
   print ("<input type='hidden' name='username' value='".$user["username"]."' />\n");
   print ("<tr><td>".T_("COMMENT_BANNED").": </td><td class='table_col2' align='left'><input name='commentbanned' value='yes' type='radio' " . ($commentbanned ? " checked='checked'" : "") . " /><font color='FF0000'> Oui </font>&nbsp;<input name='commentbanned' value='no' type='radio' " . (!$commentbanned ? " checked='checked'" : "") . " /><font color=limegreen> Non</font>\n");
   print ("<font style='margin-left:15px; margin-right:20px'>Banni pour: <input type='text' size='4' name='commentbannedlength' /> Jours</font>$bancommentuntil\n");
   print ("<div style='margin-top:4px'>Raison: <input type='text' size='70' name='forbanreason'>\n");
   print ("<font style='margin-left:10px; margin-right:20px'><input type='submit' value='".T_("SUBMIT")."' /></font></div>\n");
   print ("</td></tr>\n");
   print ("</form>\n");
}
//End Comment banned


//Mail Banned
   $mailbanned = $user["mailbanned"] == 'yes';
 
if ($mailbanneduntil != "0000-00-00 00:00:00") {
   $banmailuntil = "Compte a rebour: <font color='FF0000'><b>".mkprettytime(strtotime($mailbanneduntil) - gmtime())."</b></font> to go...";
} else {
   $banmailuntil = "";
}
   print("<tr><td height='4'></td></tr>\n"); //===| 5px space here!

if (get_user_class() >= 5) {
   print ("<form method='post' action='admin-modtasks.php'>\n");
   print ("<input type='hidden' name='action' value='mailbanned' />\n");
   print ("<input type='hidden' name='userid' value='$id' />\n");
   print ("<input type='hidden' name='username' value='".$user["username"]."' />\n");
   print ("<tr><td>".T_("MAIL_BANNED").": </td><td class='table_col2' align='left'><input name='mailbanned' value='yes' type='radio' " . ($mailbanned ? " checked='checked'" : "") . " /><font color='FF0000'> Oui </font>&nbsp;<input name='mailbanned' value='no' type='radio' " . (!$mailbanned ? " checked='checked'" : "") . " /><font color=limegreen> Non</font>\n");
   print ("<font style='margin-left:15px; margin-right:20px'>Banni pour: <input type='text' size='4' name='mailbannedlength' /> Jours</font>$banmailuntil\n");
   print ("<div style='margin-top:4px'>Raison: <input type='text' size='70' name='forbanreason'>\n");
   print ("<font style='margin-left:10px; margin-right:20px'><input type='submit' value='".T_("SUBMIT")."' /></font></div>\n");
   print ("</td></tr>\n");
   print ("</form>\n");
}
//End Mail banned

Open admin-modtasks.php

find this line :

SQL_Query_exec("UPDATE users SET email='$email', title=$title, downloaded='$downloaded', uploaded='$uploaded', signature=$signature, avatar=$avatar, ip=$ip, donated=$donated,

and the same line add this

shoutboxbanned=$shoutboxbanned, uploadbanned=$uploadbanned, forumbanned=$forumbanned, commentbanned=$commentbanned, mailbanned=$mailbanned, downloadbanned=$downloadbanned,

find the code

header("Location: account-details.php?id=$userid");
 die;
}

add after

//===| Start Download Banned |===//
if ($action == 'downloadbanned') {
   $curusername = ($CURUSER['username']);
   $curuserid = ($CURUSER['id']);
   $username = sqlesc($_POST["username"]);
   $userid = $_POST["userid"];
   $downloadbanned = sqlesc($_POST["downloadbanned"]);
   $downloadbannedlength = sqlesc($_POST["downloadbannedlength"]);
   $downloadbanneduntil = get_date_time(gmtime() + $downloadbannedlength * 86400);
   $days = $downloadbannedlength . " day" . ($downloadbannedlength > 1 ? "s" : "");
   $fbreason = $_POST["forbanreason"];

if ($_POST["downloadbanned"] == 'yes' && $_POST["downloadbannedlength"] == '') {
   show_error_msg(T_("ERROR"), "Vous devez sp&eacute;cifier le nombre de jours! &nbsp [<a href=account-details.php?id=$userid><b>Retour</b></a>]", 1);
}

if ($_POST["downloadbanned"] == 'yes' && $_POST["forbanreason"] == '') {
   show_error_msg(T_("ERROR"), "Vous devez fournir une raison pour cette action! &nbsp [<a href=account-details.php?id=$userid><b>Retour</b></a>]", 1);
}
   $modcomment = $row['modcomment'];

if ($_POST["downloadbanned"] != 'yes') {
   $modcomment2 = gmdate("d-M-Y") . " - $curusername a supprim&eacute; l'interdiction de t&eacute;l&eacute;chargement. \n";
} else {
   $modcomment2 = gmdate("d-M-Y") . " - $curusername a ajout&eacute; l'interdiction de t&eacute;l&eacute;chargement. pour $days\n- Reason: $fbreason \n";
}
   $modcomment = $modcomment2 . "" . $modcomment;
   $modcom = sqlesc($modcomment);

if ($_POST["downloadbanned"] != 'yes') {
   SQL_Query_exec("UPDATE users SET downloadbanned=$downloadbanned, downloadbanneduntil = '0000-00-00 00:00:00', modcomment = CONCAT($modcom,modcomment) WHERE id = $userid");
   $msg = sqlesc("Votre interdiction t&eacute;l&eacute;chargement a &eacute;t&eacute; supprim&eacute; par ".$curusername."");
   $added = sqlesc(get_date_time());
   SQL_Query_exec("INSERT INTO messages (sender, receiver, msg, added, subject) VALUES(0, $userid, $msg, $added, 'Ban ShoutBox')");
   write_log("<a href=account-details.php?id=$curuserid><b>$curusername</b></a> a supprim&eacute; l'interdiction sur la ShoutBox pour l'utilisateur <a href=account-details.php?id=$userid><b>$username</b></a>");
} else {
   SQL_Query_exec("UPDATE users SET downloadbanned=$downloadbanned, downloadbanneduntil = '$downloadbanneduntil', modcomment = CONCAT($modcom,modcomment) WHERE id = $userid");
   $msg = sqlesc("Vous etes banni de t&eacute;l&eacute;chargement pour ".$days." par ".$curusername."\n\nReason: ".$fbreason."");
   $added = sqlesc(get_date_time());
   SQL_Query_exec("INSERT INTO messages (sender, receiver, msg, added, subject) VALUES(0, $userid, $msg, $added, 'Ban ShoutBox')");
   write_log("<a href=account-details.php?id=$curuserid><b>$curusername</b></a> a interdit &agrave; l'utilisateur de t&eacute;l&eacute;chargement. <a href=account-details.php?id=$userid><b>$username</b></a> pour $days<br />Reason: $fbreason");
}
header("Location: account-details.php?id=$userid");
die;
}
//====| End Download Banned |====//


//===| Start Mail Banned |===//
if ($action == 'mailbanned') {
   $curusername = ($CURUSER['username']);
   $curuserid = ($CURUSER['id']);
   $username = sqlesc($_POST["username"]);
   $userid = $_POST["userid"];
   $mailbanned = sqlesc($_POST["mailbanned"]);
   $mailbannedlength = sqlesc($_POST["mailbannedlength"]);
   $mailbanneduntil = get_date_time(gmtime() + $mailbannedlength * 86400);
   $days = $mailbannedlength . " day" . ($mailbannedlength > 1 ? "s" : "");
   $fbreason = $_POST["forbanreason"];

if ($_POST["mailbanned"] == 'yes' && $_POST["mailbannedlength"] == '') {
   show_error_msg(T_("ERROR"), "Vous devez sp&eacute;cifier le nombre de jours! &nbsp [<a href=account-details.php?id=$userid><b>Retour</b></a>]", 1);
}

if ($_POST["mailbanned"] == 'yes' && $_POST["forbanreason"] == '') {
   show_error_msg(T_("ERROR"), "Vous devez fournir une raison pour cette action! &nbsp [<a href=account-details.php?id=$userid><b>Retour</b></a>]", 1);
}
   $modcomment = $row['modcomment'];

if ($_POST["mailbanned"] != 'yes') {
   $modcomment2 = gmdate("d-M-Y") . " - $curusername a supprim&eacute; l'interdiction de t&eacute;l&eacute;chargement. \n";
} else {
   $modcomment2 = gmdate("d-M-Y") . " - $curusername a ajout&eacute; l'interdiction de t&eacute;l&eacute;chargement. pour $days\n- Reason: $fbreason \n";
}
   $modcomment = $modcomment2 . "" . $modcomment;
   $modcom = sqlesc($modcomment);

if ($_POST["mailbanned"] != 'yes') {
   SQL_Query_exec("UPDATE users SET mailbanned=$mailbanned, mailbanneduntil = '0000-00-00 00:00:00', modcomment = CONCAT($modcom,modcomment) WHERE id = $userid");
   $msg = sqlesc("Votre interdiction t&eacute;l&eacute;chargement a &eacute;t&eacute; supprim&eacute; par ".$curusername."");
   $added = sqlesc(get_date_time());
   SQL_Query_exec("INSERT INTO messages (sender, receiver, msg, added, subject) VALUES(0, $userid, $msg, $added, 'Ban ShoutBox')");
   write_log("<a href=account-details.php?id=$curuserid><b>$curusername</b></a> a supprim&eacute; l'interdiction sur la ShoutBox pour l'utilisateur <a href=account-details.php?id=$userid><b>$username</b></a>");
} else {
   SQL_Query_exec("UPDATE users SET mailbanned=$mailbanned, mailbanneduntil = '$mailbanneduntil', modcomment = CONCAT($modcom,modcomment) WHERE id = $userid");
   $msg = sqlesc("Vous etes banni de t&eacute;l&eacute;chargement pour ".$days." par ".$curusername."\n\nReason: ".$fbreason."");
   $added = sqlesc(get_date_time());
   SQL_Query_exec("INSERT INTO messages (sender, receiver, msg, added, subject) VALUES(0, $userid, $msg, $added, 'Ban ShoutBox')");
   write_log("<a href=account-details.php?id=$curuserid><b>$curusername</b></a> a interdit &agrave; l'utilisateur de t&eacute;l&eacute;chargement. <a href=account-details.php?id=$userid><b>$username</b></a> pour $days<br />Reason: $fbreason");
}
header("Location: account-details.php?id=$userid");
die;
}
//====| End Mail Banned |====//


//===| Start Upload Banned |===//
if ($action == 'uploadbanned') {
   $curusername = ($CURUSER['username']);
   $curuserid = ($CURUSER['id']);
   $username = sqlesc($_POST["username"]);
   $userid = $_POST["userid"];
   $uploadbanned = sqlesc($_POST["uploadbanned"]);
   $uploadbannedlength = sqlesc($_POST["uploadbannedlength"]);
   $uploadbanneduntil = get_date_time(gmtime() + $uploadbannedlength * 86400);
   $days = $uploadbannedlength . " day" . ($uploadbannedlength > 1 ? "s" : "");
   $fbreason = $_POST["forbanreason"];

if ($_POST["uploadbanned"] == 'yes' && $_POST["uploadbannedlength"] == '') {
   show_error_msg(T_("ERROR"), "Vous devez sp&eacute;cifier le nombre de jours! &nbsp [<a href=account-details.php?id=$userid><b>Retour</b></a>]", 1);
}

if ($_POST["uploadbanned"] == 'yes' && $_POST["forbanreason"] == '') {
   show_error_msg(T_("ERROR"), "Vous devez fournir une raison pour cette action! &nbsp [<a href=account-details.php?id=$userid><b>Retour</b></a>]", 1);
}
   $modcomment = $row['modcomment'];
if ($_POST["uploadbanned"] != 'yes') {
   $modcomment2 = gmdate("d-M-Y") . " - $curusername a supprim&eacute; l'interdiction de upload. \n";
} else {
   $modcomment2 = gmdate("d-M-Y") . " - $curusername a ajout&eacute; l'interdiction de upload. for $days\n- Reason: $fbreason \n";
}
   $modcomment = $modcomment2 . "" . $modcomment;
   $modcom = sqlesc($modcomment);

if ($_POST["uploadbanned"] != 'yes') {
   SQL_Query_exec("UPDATE users SET uploadbanned=$uploadbanned, uploadbanneduntil = '0000-00-00 00:00:00', modcomment = CONCAT($modcom,modcomment) WHERE id = $userid");
   $msg = sqlesc("Votre interdiction Upload a &eacute;t&eacute; supprim&eacute; par ".$curusername."");
   $added = sqlesc(get_date_time());
   SQL_Query_exec("INSERT INTO messages (sender, receiver, msg, added, subject) VALUES(0, $userid, $msg, $added, 'Ban Upload')");
   write_log("<a href=account-details.php?id=$curuserid><b>$curusername</b></a> a supprim&eacute; l'interdiction sur le Upload pour l'utilisateur <a href=account-details.php?id=$userid><b>$username</b></a>");
} else {
   SQL_Query_exec("UPDATE users SET uploadbanned=$uploadbanned, uploadbanneduntil = '$uploadbanneduntil', modcomment = CONCAT($modcom,modcomment) WHERE id = $userid");
   $msg = sqlesc("Vous etes banni de Upload pour ".$days." par ".$curusername."\n\nReason: ".$fbreason."");
   $added = sqlesc(get_date_time());
   SQL_Query_exec("INSERT INTO messages (sender, receiver, msg, added, subject) VALUES(0, $userid, $msg, $added, 'Ban Upload')");
   write_log("<a href=account-details.php?id=$curuserid><b>$curusername</b></a> a interdit &agrave; l'utilisateur du Upload. <a href=account-details.php?id=$userid><b>$username</b></a> pour $days<br />Reason: $fbreason");
}
   header("Location: account-details.php?id=$userid");
die;
}
//====| End Upload Banned |====//

//===| 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"), "Vous devez sp&eacute;cifier le nombre de jours! &nbsp [<a href=account-details.php?id=$userid><b>Retour</b></a>]", 1);
}

if ($_POST["forumbanned"] == 'yes' && $_POST["forbanreason"] == '') {
   show_error_msg(T_("ERROR"), "Vous devez fournir une raison pour cette action! &nbsp [<a href=account-details.php?id=$userid><b>Retour</b></a>]", 1);
}
   $modcomment = $row['modcomment'];

if ($_POST["forumbanned"] != 'yes') {
   $modcomment2 = gmdate("d-M-Y") . " - $curusername a supprim&eacute; l'interdiction de forum. \n";
} else {
   $modcomment2 = gmdate("d-M-Y") . " - $curusername a ajout&eacute; l'interdiction de forum. for $days\n- Reason: $fbreason \n";
}
   $modcomment = $modcomment2 . "" . $modcomment;
   $modcom = sqlesc($modcomment);

if ($_POST["forumbanned"] != 'yes') {
   SQL_Query_exec("UPDATE users SET uploadbanned=$uploadbanned, uploadbanneduntil = '0000-00-00 00:00:00', modcomment = CONCAT($modcom,modcomment) WHERE id = $userid");
   $msg = sqlesc("Votre interdiction Forum a &eacute;t&eacute; supprim&eacute; par ".$curusername."");
   $added = sqlesc(get_date_time());
   SQL_Query_exec("INSERT INTO messages (sender, receiver, msg, added, subject) VALUES(0, $userid, $msg, $added, 'Ban Forum')");
   write_log("<a href=account-details.php?id=$curuserid><b>$curusername</b></a> a supprim&eacute; l'interdiction sur le Forum pour l'utilisateur <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("Vous etes banni du Forum pour ".$days." par ".$curusername."\n\nReason: ".$fbreason."");
   $added = sqlesc(get_date_time());
   SQL_Query_exec("INSERT INTO messages (sender, receiver, msg, added, subject) VALUES(0, $userid, $msg, $added, 'Ban Forum')");
   write_log("<a href=account-details.php?id=$curuserid><b>$curusername</b></a> a interdit &agrave; l'utilisateur du Forum. <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 ShoutBox Banned |===//
if ($action == 'shoutboxbanned') {
   $curusername = ($CURUSER['username']);
   $curuserid = ($CURUSER['id']);
   $username = sqlesc($_POST["username"]);
   $userid = $_POST["userid"];
   $shoutboxbanned = sqlesc($_POST["shoutboxbanned"]);
   $shoutboxbannedlength = sqlesc($_POST["shoutboxbannedlength"]);
   $shoutboxbanneduntil = get_date_time(gmtime() + $shoutboxbannedlength * 86400);
   $days = $shoutboxbannedlength . " day" . ($shoutboxbannedlength > 1 ? "s" : "");
   $fbreason = $_POST["forbanreason"];

if ($_POST["shoutboxbanned"] == 'yes' && $_POST["shoutboxbannedlength"] == '') {
   show_error_msg(T_("ERROR"), "Vous devez sp&eacute;cifier le nombre de jours! &nbsp [<a href=account-details.php?id=$userid><b>Retour</b></a>]", 1);
}

if ($_POST["shoutboxbanned"] == 'yes' && $_POST["forbanreason"] == '') {
   show_error_msg(T_("ERROR"), "Vous devez fournir une raison pour cette action! &nbsp [<a href=account-details.php?id=$userid><b>Retour</b></a>]", 1);
}
   $modcomment = $row['modcomment'];

if ($_POST["shoutboxbanned"] != 'yes') {
   $modcomment2 = gmdate("d-M-Y") . " - $curusername a supprim&eacute; l'interdiction de shoutbox. \n";
} else {
   $modcomment2 = gmdate("d-M-Y") . " - $curusername a ajout&eacute; l'interdiction de shoutbox. pour $days\n- Reason: $fbreason \n";
}
   $modcomment = $modcomment2 . "" . $modcomment;
   $modcom = sqlesc($modcomment);

if ($_POST["shoutboxbanned"] != 'yes') {
   SQL_Query_exec("UPDATE users SET shoutboxbanned=$shoutboxbanned, shoutboxbanneduntil = '0000-00-00 00:00:00', modcomment = CONCAT($modcom,modcomment) WHERE id = $userid");
   $msg = sqlesc("Votre interdiction ShoutBox a &eacute;t&eacute; supprim&eacute; par ".$curusername."");
   $added = sqlesc(get_date_time());
   SQL_Query_exec("INSERT INTO messages (sender, receiver, msg, added, subject) VALUES(0, $userid, $msg, $added, 'Ban ShoutBox')");
   write_log("<a href=account-details.php?id=$curuserid><b>$curusername</b></a> a supprim&eacute; l'interdiction sur la ShoutBox pour l'utilisateur <a href=account-details.php?id=$userid><b>$username</b></a>");
} else {
   SQL_Query_exec("UPDATE users SET shoutboxbanned=$shoutboxbanned, shoutboxbanneduntil = '$shoutboxbanneduntil', modcomment = CONCAT($modcom,modcomment) WHERE id = $userid");
   $msg = sqlesc("Vous etes banni de ShoutBox pour ".$days." par ".$curusername."\n\nReason: ".$fbreason."");
   $added = sqlesc(get_date_time());
   SQL_Query_exec("INSERT INTO messages (sender, receiver, msg, added, subject) VALUES(0, $userid, $msg, $added, 'Ban ShoutBox')");
   write_log("<a href=account-details.php?id=$curuserid><b>$curusername</b></a> a interdit &agrave; l'utilisateur de ShoutBox. <a href=account-details.php?id=$userid><b>$username</b></a> pour $days<br />Reason: $fbreason");
}
header("Location: account-details.php?id=$userid");
die;
}
//====| End ShoutBox Banned |====//

Open backend/funtions.php find this :

function passhash ($text) {
   GLOBAL $site_config;

   switch (strtolower($site_config["passhash_method"])) {
       case "sha1":
           return sha1($text);
       break;
       case "md5":
           return md5($text);
       break;
       case "hmac":
           $ret = hash_hmac($site_config["passhash_algorithm"], $text, $site_config["passhash_salt"]);
           return $ret ? $ret : die("Config Error: Unknown algorithm '$site_config[passhash_algorithm]'");
       break;
       default:
           die("Unrecognised passhash_method. Check your config.");
   }
}

add after this code

function showerror2($heading = "BANNISSEMENT", $text, $sort = "BANNISSEMENT")  {
stdhead("$sort: $heading");
begin_frame("<center><b><font color=orange>$sort: $heading</font></center></b>");
echo $text;
end_frame();
stdfoot();
die;
Open torrents-upload.php and find :

require_once("backend/functions.php");
dbconn();

Add after :
 if ($CURUSER["uploadbanned"] == "yes" )
showerror2("Desol&eacute; pour vous", "<b><center>Vous avez &eacute;t&eacute; interdit d'upload</center></b>");
}


Open torrents-details.php and find :

require_once("backend/functions.php");
require_once("backend/BDecode.php");
dbconn();



Add after :

if ($CURUSER["downloadbanned"] == "yes" )
showerror2("Desol&eacute; pour vous", "<b><center>Vous avez &eacute;t&eacute; interdit de T&eacute;l&eacute;chargement</center></b>");

find:

begin_frame(T_("COMMENTS"));


Add above :

if ($CURUSER["commentbanned"] == "yes" )
showerror2("Desol&eacute; pour vous", "<b><center>Vous avez &eacute;t&eacute; interdit de commentaire</center></b>");


Open download.php and find :

require_once("backend/functions.php");
dbconn();

Add after :

if ($CURUSER["downloadbanned"] == "yes" )
showerror2("Desol&eacute; pour vous", "<b><center>Vous avez &eacute;t&eacute; interdit de T&eacute;l&eacute;chargement</center></b>");


Open comments.php find :

if ($site_config["MEMBERSONLY"]) {
   loggedinonly();
}



Add after :

if ($CURUSER["commentbanned"] == "yes" )
   showerror2("Desol&eacute; pour vous", "<b><center>Vous avez &eacute;t&eacute; interdit de commentaire</center></b>")
Open forums.php find :

require_once("backend/functions.php");
require_once("backend/bbcode.php");
dbconn();

Add after :
if ($CURUSER["forumbanned"] == "yes" )
   showerror2("Desol&eacute; pour vous", "<b><center>Vous avez &eacute;t&eacute; interdit de Forum</center></b>");


Open index.php and find :

if ($site_config['SHOUTBOX'] && !($CURUSER['hideshoutbox'] == 'yes')){



replace for :

if ($CURUSER["shoutboxbanned"] == "yes" ) {
showerror2("Desol&eacute; pour vous", "<b><center>Vous avez &eacute;t&eacute; interdit de shoutbox</center></b>");
} else {
if ($site_config['SHOUTBOX'] && !($CURUSER['hideshoutbox'] == 'yes' && $CURUSER["shoutboxbanned"] == "yes"))
Open backend/cleanup.php find :

while ($arr1 = mysql_fetch_assoc($res1)) {
   write_log("Auto Leech warning has been removed for: <a href='account-details.php?id=".$arr1["id"]."'>".$arr1["username"]."</a>");
             
   SQL_Query_exec("UPDATE users SET warned = 'no' WHERE id = '".$arr1["id"]."'");
   SQL_Query_exec("UPDATE warnings SET expiry = '$timenow', active = 'no' WHERE userid = $arr1[id]");
   SQL_Query_exec("INSERT INTO messages (sender, receiver, added, msg, poster) VALUES ('0', '".$arr1["id"]."', '".$timenow."', '".$reason."', '0')");
}
}



Add after :

//BAN WARNED USERS
   $res = SQL_Query_exec("SELECT users.id, users.username, UNIX_TIMESTAMP(warnings.expiry) AS expiry FROM users INNER JOIN warnings ON users.id=warnings.userid WHERE type='Poor Ratio' AND active = 'yes' AND class = 1 AND enabled='yes' AND warned = 'yes' AND uploaded / downloaded < $minratio AND downloaded >= $downloaded");

if (mysql_num_rows($res) > 0) {
   $timenow = get_date_time();
   $expires = (86400 * $length);
 
while ($arr = mysql_fetch_assoc($res)) {
         
if (gmtime() - $arr["expiry"] >= 0) {
   SQL_Query_exec("UPDATE users SET enabled='no', warned='no' WHERE id='".$arr["id"]."'");
   write_log("User <a href='account-details.php?id=".$arr["id"]."'>".$arr["username"]."</a> has been banned (Auto Leech warning).");
}
}
}
 
}

// REMOVE WARNINGS
   $res = SQL_Query_exec("SELECT users.id, users.username, warnings.expiry FROM users INNER JOIN warnings ON users.id=warnings.userid WHERE type != 'Poor Ratio' AND warned = 'yes'  AND enabled='yes' AND warnings.active = 'yes' AND warnings.expiry < '".get_date_time()."'");

while ($arr1 = mysql_fetch_assoc($res)) {
   SQL_Query_exec("UPDATE users SET warned = 'no' WHERE id = $arr1[id]");
   SQL_Query_exec("UPDATE warnings SET active = 'no' WHERE userid = $arr1[id] AND expiry < '".get_date_time()."'");
   write_log("Removed warning for $arr1[username]. Expiry: $arr1[expiry]");
}

       // Remove ban on shoutbox
   $res32 = SQL_Query_exec("SELECT id FROM users WHERE shoutboxbanned='yes' AND shoutboxbanneduntil < NOW() AND shoutboxbanneduntil <> '0000-00-00 00:00:00'");

if (mysql_num_rows($res32) > 0) {
   $dt = sqlesc(get_date_time());
   $msg = sqlesc("Votre ban de shoutbox a &eacute;t&eacute; enlev&eacute;.\n");

while ($arr = mysql_fetch_assoc($res32)) {
   SQL_Query_exec("UPDATE users SET shoutboxbanned = 'no', shoutboxbanneduntil = '0000-00-00 00:00:00' WHERE id = $arr[id]");
   SQL_Query_exec("INSERT INTO messages (sender, receiver, added, msg, poster) VALUES(0, $arr[id], $dt, $msg, 0)");
}
}
// End removed ban on shoutbox

// Remove ban on upload
   $res32 = SQL_Query_exec("SELECT id FROM users WHERE uploadbanned='yes' AND uploadbanneduntil < NOW() AND uploadbanneduntil <> '0000-00-00 00:00:00'");

if (mysql_num_rows($res32) > 0) {
   $dt = sqlesc(get_date_time());
   $msg = sqlesc("Votre ban d'upload a &eacute;t&eacute; enlev&eacute;.\n");

while ($arr = mysql_fetch_assoc($res32)) {
   SQL_Query_exec("UPDATE users SET uploadbanned = 'no', uploadbanneduntil = '0000-00-00 00:00:00' WHERE id = $arr[id]");
   SQL_Query_exec("INSERT INTO messages (sender, receiver, added, msg, poster) VALUES(0, $arr[id], $dt, $msg, 0)");
}
}
// End removed ban on upload

// Remove ban on forum
   $res32 = SQL_Query_exec("SELECT id FROM users WHERE forumbanned='yes' AND forumbanneduntil < NOW() AND forumbanneduntil <> '0000-00-00 00:00:00'");

if (mysql_num_rows($res32) > 0) {
   $dt = sqlesc(get_date_time());
   $msg = sqlesc("Votre ban de forum a &eacute;t&eacute; enlev&eacute;.\n");

while ($arr = mysql_fetch_assoc($res32)) {
   SQL_Query_exec("UPDATE users SET forumbanned = 'no', forumbanneduntil = '0000-00-00 00:00:00' WHERE id = $arr[id]");
   SQL_Query_exec("INSERT INTO messages (sender, receiver, added, msg, poster) VALUES(0, $arr[id], $dt, $msg, 0)");
}
}
// End removed ban on forum

// Remove ban on download
   $res32 = SQL_Query_exec("SELECT id FROM users WHERE downloadbanned='yes' AND downloadbanneduntil < NOW() AND downloadbanneduntil <> '0000-00-00 00:00:00'");

if (mysql_num_rows($res32) > 0) {
   $dt = sqlesc(get_date_time());
   $msg = sqlesc("Votre ban de t&eacute;l&eacute;chargement a &eacute;t&eacute; enlev&eacute;.\n");

while ($arr = mysql_fetch_assoc($res32)) {
   SQL_Query_exec("UPDATE users SET downloadbanned = 'no', downloadbanneduntil = '0000-00-00 00:00:00' WHERE id = $arr[id]");
   SQL_Query_exec("INSERT INTO messages (sender, receiver, added, msg, poster) VALUES(0, $arr[id], $dt, $msg, 0)");
}
}
// End removed ban on download

// Remove ban on comment
   $res32 = SQL_Query_exec("SELECT id FROM users WHERE commentbanned='yes' AND commentbanneduntil < NOW() AND commentbanneduntil <> '0000-00-00 00:00:00'");

if (mysql_num_rows($res32) > 0) {
   $dt = sqlesc(get_date_time());
   $msg = sqlesc("Votre ban de commentaire a &eacute;t&eacute; enlev&eacute;.\n");

while ($arr = mysql_fetch_assoc($res32)) {
   SQL_Query_exec("UPDATE users SET commentbanned = 'no', commentbanneduntil = '0000-00-00 00:00:00' WHERE id = $arr[id]");
   SQL_Query_exec("INSERT INTO messages (sender, receiver, added, msg, poster) VALUES(0, $arr[id], $dt, $msg, 0)");
}
}
// End removed ban on comment

// Remove ban on mail
   $res32 = SQL_Query_exec("SELECT id FROM users WHERE mailbanned='yes' AND mailbanneduntil < NOW() AND mailbanneduntil <> '0000-00-00 00:00:00'");

if (mysql_num_rows($res32) > 0) {
   $dt = sqlesc(get_date_time());
   $msg = sqlesc("Votre ban de mail a &eacute;t&eacute; enlev&eacute;.\n");

while ($arr = mysql_fetch_assoc($res32)) {
   SQL_Query_exec("UPDATE users SET mailbanned = 'no', mailbanneduntil = '0000-00-00 00:00:00' WHERE id = $arr[id]");
   SQL_Query_exec("INSERT INTO messages (sender, receiver, added, msg, poster) VALUES(0, $arr[id], $dt, $msg, 0)");
}
}
// End removed ban on mail

greats ,easy thib and bigmax thanks you

mod excluded — 2015-05-08 03:41:22 in v2.08 Mods Completed
exactly uffen

i don't understand ??????

align="center%"
mod excluded — 2015-05-07 08:11:11 in v2.08 Mods Completed
[code]begin_frame("Les exclusivit&eacute;s du site");

echo "<center><table align='center' width='100%' height='200' border='0'><tr>";

$res = SQL_Query_exec("SELECT id, image1 FROM torrents WHERE banned='no' AND visible='yes' AND exclue='yes' ORDER BY id DESC LIMIT 20");

echo "<td> ";
echo "<MARQUEE behavior=scroll direction='left' height='150' scrollamount='2' scrolldelay='1' onmouseover='this.stop()' onmouseout='this.start()'>";
while ($arr=mysql_fetch_assoc($res))
{
if($arr[image1]=="")
{
echo '<a title="'.$arr['name'].'" href="'.$site_config['SITEURL'].'/torrents-details.php?id='.$arr['id'].'&hit=1"><img class="corner" border="0" src="images/nocover.jpg" alt="'.$arr['name'].'" title="'.$arr['name'].'" width="112" height="152"></a>&nbsp;&nbsp;';
}else{
echo '<a title="'.$arr['name'].'" href="'.$site_config['SITEURL'].'/torrents-details.php?id='.$arr['id'].'&hit=1"><img class="corner" border="0" src="uploads/images/'.$arr['image1'].'" alt="'.$arr['name'].'" title="'.$arr['name'].'" width="100" height="177"></a>&nbsp;&nbsp;';
}
}
echo "</marquee></td></tr></table><br></center>";

end_frame();

[/code]
New mailbox.php — 2015-04-24 00:21:11 in v2.08 Mods Completed
:)

[ATTACH]2433._xfImport[/ATTACH]
New mailbox.php — 2015-04-22 13:34:53 in v2.08 Mods Completed
good and very good uffen  :)
in function

if ($i == 0 || $i == 5 || $i == 10 || $i == 15) return "<img src=".$site_config['SITEURL']."/themes/$THEME/images/polls/bar1-l.png border="0">";

should be

if ($i == 0 || $i == 5 || $i == 10 || $i == 15) return "<img src=".$site_config['SITEURL']."/themes/$THEME/images/polls/bar1-l.png border=0>";

all them
 
<?php
   
if ($CURUSER) {
       
begin_block(T_("THEME")." / ".T_("LANGUAGE"));

   $ss_r = SQL_Query_exec("SELECT * from stylesheets");
   $ss_sa = array();

while ($ss_a = mysql_fetch_assoc($ss_r)) {
   $ss_id = $ss_a["id"];
   $ss_name = $ss_a["name"];
   $ss_sa[$ss_name] = $ss_id;
}    
       ksort($ss_sa);
       reset($ss_sa);
           
while (list($ss_name, $ss_id) = each($ss_sa)) {

if ($ss_id == $CURUSER["stylesheet"])
   $ss = " selected='selected'";
else
   $ss = "";
   $stylesheets .= "<option value='$ss_id'$ss>$ss_name</option>n";
}
   $lang_r = SQL_Query_exec("SELECT * from languages");
   $lang_sa = array();

while ($lang_a = mysql_fetch_assoc($lang_r)) {
   $lang_id = $lang_a["id"];
   $lang_name = $lang_a["name"];
   $lang_sa[$lang_name] = $lang_id;
}
       ksort($lang_sa);
       reset($lang_sa);

while (list($lang_name, $lang_id) = each($lang_sa)) {
               
if ($lang_id == $CURUSER["language"])
   $lang = " selected='selected'";
else
   $lang = "";
   $languages .= "<option value='$lang_id'$lang>$lang_name</option>n";
}
?>
           
   <div style="font:normal 11px Tahoma" align="center">
   <form method="post" action="take-theme.php">
<table>
<tr>
   <td><?php echo T_("LANGUAGE"); ?>:</td>
   <td><select name="language" onchange="this.form.submit();"><?php echo $languages?></select><input type="hidden" name="Submit" value="ok"></td>
</tr>
<tr>
   <td><?php echo T_("THEME"); ?>:</td>
   <td><select name="stylesheet" onchange="this.form.submit();"><?php echo $stylesheets?></select><input type="hidden" name="Submit" value="ok"></td>
</tr>
</table>
</form>
</div>
<?php
       
end_block();
}
?>

thx you
Anti-Flood — 2015-03-30 09:56:54 in v2.08 Mods Completed
thx Big
Snatchlist — 2015-03-26 14:56:31 in v2.08 Mods Completed
thanks you BigMax
here teamfsx

<tr class='b-row'>
   <td class='bb-comment' align='center' valign='top'><textarea name="<?php echo $name; ?>" rows="25" cols="80"><?php echo $content; echo generation(); ?></textarea></td>
   <td class='bb-btn' width='130' align="center" valign='top'>
     <table border="0" cellpadding="3" cellspacing="3" align="center">
<tr>
   <td align="center"><input type="button" name="center" value="CENTER " onclick="javascript: BBTag('[align=center]','center','<?php echo $name; ?>','<?php echo $form; ?>')" /></td>
   <td width="26"><a href="javascript:SmileIT(':)','<?php echo $form; ?>','<?php echo $name; ?>')"><img src="images/smilies/smile.png" border="0" alt=':)' title=':)' /></a></td>
   <td width="26"><a href="javascript:SmileIT(':(','<?php echo $form; ?>','<?php echo $name; ?>')"><img src="images/smilies/sad.png" border="0" alt=':(' title=':(' /></a></td>
   <td width="26"><a href="javascript:SmileIT(':D','<?php echo $form; ?>','<?php echo $name; ?>')"><img src="images/smilies/grin.png" border="0" alt=':D' title=':D' /></a></td>
   <td width="26"><a href="javascript:SmileIT(':P','<?php echo $form; ?>','<?php echo $name; ?>')"><img src="images/smilies/razz.png" border="0" alt=':P' title=':P' /></a></td>  
     
</tr>
thanks teamfsx
hello teamfsx

where put this code in bbcode? if yes where exactly

<td align="center"><input type="button" name="center" value="CENTER " onclick="javascript: BBTag('[align=center]','center','<?php echo $name; ?>','<?php echo $form; ?>')" /></td>
it's not nessessary all delet file in account-datail.php lolll
comment Artic aurais pu oublier le "echo"?

add admincp

<td align="center"><a href="topten.php"><img src="images/admin/topten.png" border="0" width="32" height="32" alt="" /><br /><?php echo T_("TOP_TEN"); ?></a><br /></td>

[url="http://devscorner.xyz/applications/core/interface/file/attachment.php?id=7175"]topten.php[/url]
TT 2.08


First time SQL


CREATE TABLE IF NOT EXISTS `staffmessages` (
`id` int(10) unsigned NOT NULL auto_increment,
`sender` int(10) unsigned NOT NULL default '0',
`added` datetime default NULL,
`msg` text,
`subject` varchar(100) NOT NULL default '',
`answeredby` int(10) unsigned NOT NULL default '0',
`answered` tinyint(1) NOT NULL default '0',
`answer` text,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;



and add to admincp.php

this line


<td align="center"><a href="staffbox.php"><img src="images/admin/contact.png" border="0" width="32" height="32" alt="" /><br /><?php echo T_("STAFF_CONTACT"); ?></a><br /></td>



add to navigate_block


echo "<li><a href='contactstaff.php'>".T_("CONTACT_STAFF")."</a></li>";


[url='http://devscorner.xyz/applications/core/interface/file/attachment.php?id=7171']staffbox.php[/url]

[url='http://devscorner.xyz/applications/core/interface/file/attachment.php?id=7172']takecontact.php[/url]

[url='http://devscorner.xyz/applications/core/interface/file/attachment.php?id=7173']contactstaff.php[/url]
very small forget

<td class=table_head align=right><?=$what?></td>


change to

<td class=table_head align=right><?php echo $what;?></td>
yes leech24 it's possible add to your admincp

<td align="center"><a href="clients.php"><img src="images/admin/clients.png" border="0" width="32" height="32" alt="" /><br /><?php echo T_("CLIENTS"); ?></a><br /></td>


you find google image client torrent

good search

and no finish lolll

clients.php

for restriction

add after

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


add this code

if ($CURUSER["class"]  < 6)
   show_error_msg("Error", "Access denied.");
i think have found



ALTER TABLE `users` ADD `uploadbanned` CHAR(3) NOT NULL DEFAULT 'no';

ALTER TABLE `users` ADD `uploadbanneduntil` datetime NOT NULL DEFAULT '0000-00-00 00:00:00';

ALTER TABLE `users` ADD `forumbanned` CHAR(3) NOT NULL DEFAULT 'no';

ALTER TABLE `users` ADD `forumbanneduntil` datetime NOT NULL DEFAULT '0000-00-00 00:00:00';

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