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

i tried to install this, mod, a couple things, 1 its in french, and 2, when i installed it the shout bar disappears.
i used, punbb 1.4.2 from http://punbb.informer.com/downloads.php#1.4.2, i used the rar file, uploaded to the root folder, chmod cache to 0777 and img/avatar to 0777,  Then i uploaded both the files in the original rar to the root directory and changed convert.php to



<?php

require_once("backend/functions.php");

dbconn(false);

loggedinonly();

stdhead("PunBB User Import");



$insertusers = mysql_query("INSERT INTO punbb_users (id, group_id, username, realname, password, email, registration_ip) SELECT id, username, username, password, email, ip, class FROM `users`") or die(mysql_error());

if (!$insertusers)

{

show_error_msg("PunBB Import Failed!", "Something Went Wrong Their!!!!", 1);  

}

else

show_error_msg("PunBB Import Successfull", "Everything Was Okai", 1);



stdfoot();

?>



follow the steps in the original rar file at the beginning of the topic, but 1 flaw i've noticed, not only do you have to make a forums folder, u have to copy the contents of the forums folder into another folder called forum.
works
for some reason it isn't letting me check the msgs, set as answered or delete them on staffbox.php

here is my staffbox.php for 2.07



<?

//===========================================================================

// DO NOT EDIT THIS OUT

//===========================================================================

//===========================================================================

// Created by foz  www.basslinebeats.co.uk foz@basslinebeats.co.uk

//===========================================================================

?>

<?

require "backend/functions.php";

dbconn(false);

if (!$CURUSER || $CURUSER["control_panel"]!="yes"){

SHOW_ERROR_MSG("Error", "Permission denied.");

}

$action = $HTTP_GET_VARS["action"];

///////////////////////////

// SHOW PM'S //

/////////////////////////

if (!$action) {

if (!$CURUSER || $CURUSER["control_panel"]!="yes"){

SHOW_ERROR_MSG("Error", "Permission denied.");

}

stdhead("Staff PM's");

$res = mysql_query("SELECT count(id) FROM staffmessages") or die(mysql_error());

$row = mysql_fetch_array($res);

$url = " .$_SERVER[php_SELF]?";

$count = $row[0];

$perpage = 20;

list($pagertop, $pagerbottom, $limit) = pager($perpage, $count, $url);

print("<h1 align=center>Staff PM's</h1>");

if ($count == 0) {

print("<h2>No messages yet!</h2>");

print ("<center>---<a href=http://basslinebeats.co.uk><font color=red><b>Code By foz @ Basslinebeats &copy 2008</a> ---</b></font color></center>");

}

else {

echo $pagertop;

begin_frame();

print("<table width=765 border=1 cellspacing=0 cellpadding=5 align=center>n");

print("

<tr>

<td class=colhead align=left>Subject</td>

<td class=colhead align=left>Sender</td>

<td class=colhead align=left>Added</td>

<td class=colhead align=left>Answered</td>

<td class=colhead align=center>Set Answered</td>

<td class=colhead align=left>Del</td>

</tr>

");

print("<form method=post action=?action=takecontactanswered>");

$res = mysql_query("SELECT staffmessages.id, staffmessages.added, staffmessages.subject, staffmessages.answered, staffmessages.answeredby, staffmessages.sender, staffmessages.answer, users.username FROM staffmessages INNER JOIN users on staffmessages.sender = users.id ORDER BY id desc $limit");

while ($arr = mysql_fetch_assoc($res))

{

if ($arr[answered])

{

$res3 = mysql_query("SELECT username FROM users WHERE id=$arr[answeredby]");

$arr3 = mysql_fetch_assoc($res3);

$answered = "<font color=green><b>Yes - <a href=account-details.php?id=$arr[answeredby]><b>$arr3[username]</b></a> (<a href=staffbox.php?action=viewanswer&pmid=$arr[id]>View Answer</a>)</b></font>";

}

else

$answered = "<font color=red><b>No</b></font>";

$pmid = $arr["id"];

print("<tr>

<td><a href=".$site_config["SITEURL"]."/staffbox.php?action=viewpm&pmid=$pmid><b>$arr[subject]</b></td>

<td><a href=".$site_config["SITEURL"]."/account-details.php?id=$arr[sender]><b>$arr[username]</b></a></td>

<td>$arr[added]</td><td align=left>$answered</td>

<td><input type="checkbox" name="setanswered[]" value="" . $arr[id] . "" /></td>

<td><a href=".$site_config["SITEURL"]."staffbox.php?action=deletestaffmessage&id=$arr[id]>Del</a></td>

</tr>n

");

}

print("</table>n");

print("<p align=right><input type=submit value=Confirm></p>");

print ("<center><a href=http://basslinebeats.co.uk><font color=red><b>--- Code By foz @ Basslinebeats &copy 2008</a> ---</b></font color></center>");

print("</form>");

echo $pagerbottom;

end_frame();

}

stdfoot();

}

//////////////////////////

// VIEW PM'S //

//////////////////////////

if ($action == "viewpm")

{

if (!$CURUSER || $CURUSER["control_panel"]!="yes"){

SHOW_ERROR_MSG("Error", "Permission denied.");

}

$pmid = 0 + $_GET["pmid"];

$ress4 = mysql_query("SELECT id, subject, sender, added, msg, answeredby, answered FROM staffmessages WHERE id=$pmid");

$arr4 = mysql_fetch_assoc($ress4);

$answeredby = $arr4["answeredby"];

$rast = mysql_query("SELECT username FROM users WHERE id=$answeredby");

$arr5 = mysql_fetch_assoc($rast);

$senderr = "" . $arr4["sender"] . "";

if (is_valid_id($arr4["sender"]))

{

$res2 = mysql_query("SELECT username FROM users WHERE id=" . $arr4["sender"]) or sqlerr();

$arr2 = mysql_fetch_assoc($res2);

$sender = "<a href='account-details.php?id=$senderr'>" . ($arr2["username"] ? $arr2["username"]:"[Deleted]") . "</a>";

}

else

$sender = "System";

$subject = $arr4["subject"];

if ($arr4["answered"] == '0') {

$answered = "<font color=red><b>No</b></font>";

}

else {

$answered = "<font color=blue><b>Yes</b></font> by <a href=account-details.php?id=$answeredby>$arr5[username]</a> (<a href=".$site_config["SITEURL"]."/staffbox.php?action=viewanswer&pmid=$pmid>Show Answer</a>)";

}

if ($arr4["answered"] == '0') {

$setanswered = "[<a href=".$site_config["SITEURL"]."/staffbox.php?action=setanswered&id=$arr4[id]>Mark Answered</a>]";

}

else {

$setanswered = "";

}

$iidee = $arr4["id"];



stdhead("Staff PM's");

print("<table class=bottom width=730 border=0 cellspacing=0 cellpadding=10><tr><td class=embedded width=700>n");

print("<h1 align=center>Messages to staff</h1>n");

$elapsed = get_elapsed_time(sql_timestamp_to_unix_timestamp($arr4["added"]));

print("<table width=750 border=1 cellspacing=0 cellpadding=10 style='margin-bottom: 10px'><tr><td class=text>n");

print("From <b>$sender</b> atn" . $arr4["added"] . " ($elapsed ago) GMTn");

print("<br><br style='margin-bottom: -10px'><div align=left><b>Subject: <font color=darkred>$subject</b></font>

&nbsp;&nbsp;<br><b>Answered:</b> $answered&nbsp;&nbsp;$setanswered</div>

<br><table class=main width=730 border=1 cellspacing=0 cellpadding=10><tr><td class=staffpms>n");

print(format_comment($arr4["msg"]));

print("</td></tr></table>n");

print("<table width=730 border=0><tr><td class=embedded>n");

print(($arr4["sender"] ? "<a href=".$site_config["SITEURL"]."/staffbox.php?action=answermessage&receiver=" . $arr4["sender"] . "&answeringto=$iidee><b>Reply</b></a>" : "<font class=gray><b>Reply</b></font>") .

" | <a href=".$site_config["SITEURL"]."staffbox.php?action=deletestaffmessage&id=" . $arr4["id"] . "><b>Delete</b></a></td>");

print ("<center><a href=http://basslinebeats.co.uk><font color=red><b>--- Code By foz @ Basslinebeats &copy 2008</a> ---</b></font color></center>");

print("</table></table>n");

print("</table>n");

stdfoot();

}

//////////////////////////

// VIEW ANSWERS //

//////////////////////////

if ($action == "viewanswer")

{

if (!$CURUSER || $CURUSER["control_panel"]!="yes"){

SHOW_ERROR_MSG("Error", "Permission denied.");

}

$pmid = 0 + $_GET["pmid"];

$ress4 = mysql_query("SELECT id, subject, sender, added, msg, answeredby, answered, answer FROM staffmessages WHERE id=$pmid");

$arr4 = mysql_fetch_assoc($ress4);

$answeredby = $arr4["answeredby"];

$rast = mysql_query("SELECT username FROM users WHERE id=$answeredby");

$arr5 = mysql_fetch_assoc($rast);

if (is_valid_id($arr4["sender"]))

{

$res2 = mysql_query("SELECT username FROM users WHERE id=" . $arr4["sender"]) or sqlerr();

$arr2 = mysql_fetch_assoc($res2);

$sender = "<a href=".$site_config["SITEURL"]."/account-details.php?id=" . $arr4["sender"] . ">" . ($arr2["username"]?$arr2["username"]:"[Deleted]") . "</a>";

}

else

$sender = "System";

if ($arr4['subject'] == "") {

$subject = "No subject";

}

else {

$subject = "<a style='color: darkred' href=staffbox.php?action=viewpm&pmid=$pmid>$arr4[subject]</a>";

}



$iidee = $arr4["id"];

if ($arr4[answer] == "") {

$answer = "This message has not been answered yet!";

}

else {

$answer = $arr4["answer"];

}

stdhead("Staff PM's");

print("<table class=bottom width=730 border=0 cellspacing=0 cellpadding=10><tr><td class=embedded width=700>n");

print("<h1 align=center>Viewing Answer</h1>n");

$elapsed = get_elapsed_time(sql_timestamp_to_unix_timestamp($arr4["added"]));

print("<table width=750 border=1 cellspacing=0 cellpadding=10 style='margin-bottom: 10px'><tr><td class=text>n");

print("<b><a href=account-details.php?id=$answeredby>$arr5[username]</a></b> answered this message sent by $sender");

print("<br><br style='margin-bottom: -10px'><div align=left><b>Subject: $subject</b>

&nbsp;&nbsp;<br><b>Answer:</b></div>

<br><table class=main width=730 border=1 cellspacing=0 cellpadding=10><tr><td class=staffpms>n");

print(format_comment($answer));

print("</td></tr></table>n");

print("</table>n");

print("</table>n");

stdfoot();

}



//////////////////////////

// ANSWER MESSAGE //

//////////////////////////

if ($action == "answermessage") {

if (!$CURUSER || $CURUSER["control_panel"]!="yes"){

SHOW_ERROR_MSG("Error", "Permission denied.");

}

$answeringto = $_GET["answeringto"];

$receiver = 0 + $_GET["receiver"];

if (!is_valid_id($receiver))

die;

$res = mysql_query("SELECT * FROM users WHERE id=$receiver") or die(mysql_error());

$user = mysql_fetch_assoc($res);

if (!$user)

stderr("Error", "No user with that ID.");

$res2 = mysql_query("SELECT * FROM staffmessages WHERE id=$answeringto") or die(mysql_error());

$array = mysql_fetch_assoc($res2);

stdhead("Answer to Staff PM", false);

?>

<table class=main width=450 border=0 cellspacing=0 cellpadding=0><tr><td class=embedded>

<div align=center>

<h2>Answering to <a href=".$site_config["SITEURL"]."/staffbox.php?action=viewpm&pmid=<?=$array['id']?>><i><?=$array["subject"]?></i></a> sent by <i><?=$user["username"]?></i></h2>

<form method=post name=message action=?action=takeanswer>

<? if ($_GET["returnto"] || $_SERVER["HTTP_REFERER"]) { ?>

<? } ?>

<table class=message cellspacing=0 cellpadding=5>

<tr><td colspan=2>

<b><font color=red><h1>Message:</h1></font></b>

<textarea name=msg cols=50 rows=5><?=htmlspecialchars($body)?></textarea>

<center><a href=http://basslinebeats.co.uk><font color=red><b>--- Code By foz @ Basslinebeats &copy 2008</a> ---</b></font color></center>

</td></tr>

<tr><td<?=$replyto?" colspan=2":""?> align=center><input type=submit value="Send it!" class=btn></td></tr>

</table>

<input type=hidden name=receiver value=<?=$receiver?>>

<input type=hidden name=answeringto value=<?=$answeringto?>>

</form>

</div></td></tr></table>

<?

stdfoot();

}

//////////////////////////

// TAKE ANSWER //

//////////////////////////



if ($action == "takeanswer") {



if ($HTTP_SERVER_VARS["REQUEST_METHOD"] != "POST")

stderr("Error", "Method");

if (!$CURUSER || $CURUSER["control_panel"]!="yes"){

SHOW_ERROR_MSG("Error", "Permission denied.");

}

$receiver = 0 + $_POST["receiver"];

$answeringto = $_POST["answeringto"];

if (!is_valid_id($receiver))

Show_error_msg("Error","Invalid ID");

$userid = $CURUSER["id"];

$msg = trim($_POST["msg"]);

$message = sqlesc($msg);

$added = "'" . get_date_time() . "'";

if (!$msg)

stderr("Error","Please enter something!");

mysql_query("INSERT INTO messages (poster, sender, receiver, added, msg) VALUES($userid, $userid, $receiver, $added, $message)") or sqlerr(__FILE__, __LINE__);

mysql_query("UPDATE staffmessages SET answer=$message WHERE id=$answeringto") or sqlerr(__FILE__, __LINE__);

mysql_query("UPDATE staffmessages SET answered='1', answeredby='$userid' WHERE id=$answeringto") or sqlerr(__FILE__, __LINE__);

header("Location: staffbox.php?action=viewpm&pmid=$answeringto");

die;

}

//////////////////////////

// DELETE STAFF MESSAGE //

//////////////////////////

if ($action == "deletestaffmessage") {

$id = 0 + $_GET["id"];

if (!is_numeric($id) || $id < 1 || floor($id) != $id)

die;

if (!$CURUSER || $CURUSER["control_panel"]!="yes"){

SHOW_ERROR_MSG("Error", "Permission denied.");

}

mysql_query("DELETE FROM staffmessages WHERE id=" . sqlesc($id)) or die();

header("Location: ".$site_config["SITEURL"]."/staffbox.php");

}

//////////////////////////

// MARK AS ANSWERED //

//////////////////////////

if ($action == "setanswered") {

if (!$CURUSER || $CURUSER["control_panel"]!="yes"){

SHOW_ERROR_MSG("Error", "Permission denied.");

}

$id = 0 + $_GET["id"];

mysql_query ("UPDATE staffmessages SET answered=1, answeredby = $CURUSER[id] WHERE id = $id") or sqlerr();

header("Refresh: 0; url=staffbox.php?action=viewpm&pmid=$id");

}

//////////////////////////

// MARK AS ANSWERED #2 //

//////////////////////////

if ($action == "takecontactanswered") {

if (!$CURUSER || $CURUSER["control_panel"]!="yes"){

SHOW_ERROR_MSG("Error", "Permission denied.");

}

$res = mysql_query ("SELECT id FROM staffmessages WHERE answered=0 AND id IN (" . implode(", ", $_POST[setanswered]) . ")");

while ($arr = mysql_fetch_assoc($res))

mysql_query ("UPDATE staffmessages SET answered=1, answeredby = $CURUSER[id] WHERE id = $arr[id]") or sqlerr();

header("Refresh: 0; url=staffbox.php");

}

?>

<?

//===========================================================================

// DO NOT EDIT THIS OUT

//===========================================================================

//===========================================================================

// Created by foz  www.basslinebeats.co.uk foz@basslinebeats.co.uk

//===========================================================================

?>

"ArcticWolf, post: 86168":
Oh I see lol Type.......

try this







DROP TABLE IF EXISTS `announcements`;

CREATE TABLE IF NOT EXISTS `announcements` (

`id` int(10) unsigned NOT NULL auto_increment,

`subject` varchar(64) NOT NULL,

`message` text NOT NULL,

`by` varchar(16) NOT NULL default 'Admin',

`added` datetime NOT NULL default '0000-00-00 00:00:00',

`minclassread` tinyint(3) unsigned NOT NULL,

PRIMARY KEY (`id`),

KEY `subject` (`subject`)

) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;



well that worked to input the sql table, but i still get this error when trying to add an announcements

MySQL [url="http://toxictorrents.co.cc/207/announcements.php#"]Error[/url]

MySQL error occured.

Error: (0)


CREATE TABLE `announcements` (

`id` int(10) unsigned NOT NULL auto_increment,

`subject` varchar(64) NOT NULL,

`message` text NOT NULL,

`by` varchar(16) NOT NULL default 'Admin',

`added` datetime NOT NULL default '0000-00-00 00:00:00',

`minclassread` tinyint(3) unsigned NOT NULL,

PRIMARY KEY (`id`),

KEY `subject` (`subject`)

) TYPE=MyISAM;

ALTER TABLE `users` ADD `announce_read` ENUM( 'yes', 'no' ) NOT NULL DEFAULT 'no';

ALTER TABLE `users` ADD INDEX ( `announce_read` ) ;



gives me an error.  It gives me this

Error

SQL query:

[url="http://stevoscomps.co.cc/phpmyadmin/url.php?url=http%3A%2F%2Fdev.mysql.com%2Fdoc%2Frefman%2F5.5%2Fen%2Fcreate-table.html&token=eed2c0a0c9f7c5d0ccf854f67922ea34"]CREATE TABLE[/url] `announcements` (

`id` [url="http://stevoscomps.co.cc/phpmyadmin/url.php?url=http%3A%2F%2Fdev.mysql.com%2Fdoc%2Frefman%2F5.5%2Fen%2Fnumeric-types.html&token=eed2c0a0c9f7c5d0ccf854f67922ea34"]int[/url]( 10 ) unsigned NOT NULL AUTO_INCREMENT ,

`subject` [url="http://stevoscomps.co.cc/phpmyadmin/url.php?url=http%3A%2F%2Fdev.mysql.com%2Fdoc%2Frefman%2F5.5%2Fen%2Fstring-types.html&token=eed2c0a0c9f7c5d0ccf854f67922ea34"]varchar[/url]( 64 ) NOT NULL ,

`message` [url="http://stevoscomps.co.cc/phpmyadmin/url.php?url=http%3A%2F%2Fdev.mysql.com%2Fdoc%2Frefman%2F5.5%2Fen%2Fstring-types.html&token=eed2c0a0c9f7c5d0ccf854f67922ea34"]text[/url] NOT NULL ,

`by` [url="http://stevoscomps.co.cc/phpmyadmin/url.php?url=http%3A%2F%2Fdev.mysql.com%2Fdoc%2Frefman%2F5.5%2Fen%2Fstring-types.html&token=eed2c0a0c9f7c5d0ccf854f67922ea34"]varchar[/url]( 16 ) NOT NULL default 'Admin',

`added` [url="http://stevoscomps.co.cc/phpmyadmin/url.php?url=http%3A%2F%2Fdev.mysql.com%2Fdoc%2Frefman%2F5.5%2Fen%2Fdate-and-time-types.html&token=eed2c0a0c9f7c5d0ccf854f67922ea34"]datetime[/url] NOT NULL default '0000-00-00 00:00:00',

`minclassread` [url="http://stevoscomps.co.cc/phpmyadmin/url.php?url=http%3A%2F%2Fdev.mysql.com%2Fdoc%2Frefman%2F5.5%2Fen%2Fnumeric-types.html&token=eed2c0a0c9f7c5d0ccf854f67922ea34"]tinyint[/url]( 3 ) unsigned NOT NULL ,

PRIMARY KEY ( `id` ) ,

KEY `subject` ( `subject` )

) TYPE = MYISAM ;

MySQL said: [url="http://stevoscomps.co.cc/phpmyadmin/url.php?url=http%3A%2F%2Fdev.mysql.com%2Fdoc%2Frefman%2F5.5%2Fen%2Ferror-messages-server.html&token=eed2c0a0c9f7c5d0ccf854f67922ea34"][/url]

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE=MyISAM' at line 10

can i get some help with this?
mass email — 2012-01-22 18:52:15 in v2 Only Mods Complete
i have it installed on 2.08, and it is comming in as www-data and the subject is fwd: what ever the subject line is.  how do i change that to site name and get rid of the fwd?
"TorrentialStorm, post: 39989":
	$gigs = 25*1073741824; // 25 GB

$res = mysql_query("SELECT id FROM users WHERE class = 1 AND uploaded >= $gigs AND uploaded >= downloaded");

$time = get_date_time();

while ($arr = mysql_fetch_assoc($res)) {

mysql_query("UPDATE users SET class = 2 WHERE id = $arr[id]");

mysql_query("INSERT INTO messages (sender, receiver, added, msg, subject) VALUES(0, $arr[id], '$time', 'You have been automatically promoted from User to Power User, If your ratio drops below 1.00 you will be demoted.', 'You have been promoted to: Power User')");

}



$res = mysql_query("SELECT id FROM users WHERE class = 2 AND uploaded >= $gigs AND uploaded < downloaded");

while ($arr = mysql_fetch_assoc($res)) {

mysql_query("UPDATE users SET class = 1 WHERE id = $arr[id]");

mysql_query("INSERT INTO messages (sender, receiver, added, msg, subject) VALUES(0, $arr[id], '$time', 'You have been automatically demoted from Power User to User.', 'You have been demoted to User')");

}


that should work for any User that has uploaded 25+GBs and has a ratio over 1

and where do i put this?
it doesn't work in 2.07, i bookmarked a user, but i missed

signature='$signature', avatar='$avatar', ip='$ip',
only because i cannot find it in admin-modtask.php



this is my admin-modtask.php file




<?

//

//  TorrentTrader v2.x

// This file was last updated: 6/Sept/2007

//

// http://www.torrenttrader.org

//

//

require_once("backend/functions.php");

dbconn(false);

loggedinonly();





if($CURUSER["edit_users"]!="yes")

show_error_msg("Access Denied","You do not have permission to edit users",1);



$action = $_POST["action"];



if (!$action)

show_error_msg("Error","This task is not found",1);



if ($action == 'edituser'){

$userid = $_POST["userid"];

$title = $_POST["title"];

$logintrys = $_POST["logintrys"];

if (isset($_POST["uploaded"])) {

if (preg_match("/(tb|TB)/", $_POST["uploaded"], $matches) && preg_match("/[0-9]+/", $_POST["uploaded"], $matchesnum)) {

 $nummatch = $matchesnum[0] * 1024 * 1024 * 1024 * 1024;

 $uploaded = $nummatch;

}else if (preg_match("/(gb|GB)/", $_POST["uploaded"], $matches)  && preg_match("/[0-9]+/", $_POST["uploaded"], $matchesnum)) {

 $nummatch = $matchesnum[0] * 1024 * 1024 * 1024;

 $uploaded = $nummatch;

}else if (preg_match("/(mb|MB)/", $_POST["uploaded"], $matches)  && preg_match("/[0-9]+/", $_POST["uploaded"], $matchesnum)) {

 $nummatch = $matchesnum[0] * 1024 * 1024;

 $uploaded = $nummatch;

}else if (preg_match("/(kb|KB)/", $_POST["uploaded"], $matches)  && preg_match("/[0-9]+/", $_POST["uploaded"], $matchesnum)) {

 $nummatch = $matchesnum[0] * 1024;

 $uploaded = $nummatch;

}

}



if (isset($_POST["downloaded"])) {

if (preg_match("/(tb|TB)/", $_POST["downloaded"], $matchesd) && preg_match("/[0-9]+/", $_POST["downloaded"], $matchesnumd)) {

 $nummatchd = $matchesnumd[0] * 1024 * 1024 * 1024 * 1024;

 $downloaded = $nummatchd;

}else if (preg_match("/(gb|GB)/", $_POST["downloaded"], $matchesd) && preg_match("/[0-9]+/", $_POST["downloaded"], $matchesnumd)) {

 $nummatchd = $matchesnumd[0] * 1024 * 1024 * 1024;

 $downloaded = $nummatchd;

}else if (preg_match("/(mb|MB)/", $_POST["downloaded"], $matchesd) && preg_match("/[0-9]+/", $_POST["downloaded"], $matchesnumd)) {

 $nummatchd = $matchesnumd[0] * 1024 * 1024;

 $downloaded = $nummatchd;

}else if (preg_match("/(kb|KB)/", $_POST["downloaded"], $matchesd) && preg_match("/[0-9]+/", $_POST["downloaded"], $matchesnumd)) {

 $nummatchd = $matchesnumd[0] * 1024;

 $downloaded = $nummatchd;

}

}

$signature = $_POST["signature"];

$avatar = $_POST["avatar"];

$ip = $_POST["ip"];

$class = (int) $_POST["class"];

$donated = (float) $_POST["donated"];

$password = $_POST["password"];

$warned = $_POST["warned"];

  $pcoff = $_POST["pcoff"];

$forumbanned = $_POST["forumbanned"];

  $seedbox = $_POST["seedbox"];

  $downloadbanned = $_POST["downloadbanned"];

  $shoutboxbanned = $_POST["shoutboxbanned"];

$modcomment = $_POST["modcomment"];

$addbookmark = $_POST["addbookmark"];

$bookmcomment = $_POST["bookmcomment"];

$enabled = $_POST["enabled"];

$invites = $_POST["invites"];

$class = (int)$_POST["class"];



if (!is_valid_id($userid))

show_error_msg("Editing Failed", "Invalid UserID",1);



//change user class

$res = mysql_query("SELECT class FROM users WHERE id=$userid");

$arr = mysql_fetch_row($res) or show_error_msg("Error","Mysql error",1);

$uc = $arr[0];



// skip if class is same as current

if ($uc != $class && $class > 0) {

// You cant demote admins!

/* if ((get_user_class() == "7") && ($userid == $CURUSER["id"]))

show_error_msg("Editing Failed", "You can't demote admins for security reasons.",1);



// User may not demote someone with same or higher class than himself!

elseif ($uc >= get_user_class())

show_error_msg("Editing Failed", "You may not demote someone with same or higher class than yourself",1);



// All ok, update db

else {*/

 @mysql_query("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());

 @mysql_query("INSERT INTO messages (sender, receiver, msg, added) VALUES(0, $userid, $msg, $added)");

  // }

}

//continue updates





mysql_query("UPDATE users SET title=".sqlesc($title).",logintrys='$logintrys', downloaded='$downloaded', uploaded='$uploaded', signature=".sqlesc($signature).", avatar='$avatar', ip='$ip', donated='$donated', forumbanned='$forumbanned',seedbox='$seedbox',shoutboxbanned='$shoutboxbanned', warned='$warned',  modcomment='$modcomment',downloadbanned='$downloadbanned', enabled='$enabled', invites='$invites' WHERE id=$userid");



write_log($CURUSER['username']." has edited user: $userid details");

 

if ($_POST['resetpasskey']=='yes'){

mysql_query("UPDATE users SET passkey='' WHERE id=$userid");

//write_log($CURUSER['username']." Passkey has been reset for: $userid");

}



$chgpasswd = $_POST['chgpasswd']=='yes' ? true : false;

if ($chgpasswd) {

$passreq = mysql_query("SELECT password FROM users WHERE id=$userid");

$passres = mysql_fetch_assoc($passreq);

if($password != $passres['password']){

$password = md5($password);

mysql_query("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("Editing Failed", "Invalid UserID",1);



if (!$reason || !$expiry || !$type){

show_error_msg("Error", "Missing form data.",1);

}



$timenow = get_date_time();



$expiretime = get_date_time(gmtime() + (86400 * $expiry));



$ret = mysql_query("INSERT INTO warnings (userid, reason, added, expiry, warnedby, type) VALUES ('$userid','$reason','$timenow','$expiretime','".$CURUSER['id']."','$type')");



$ret = mysql_query("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());

@mysql_query("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["level"]!="Administrator")//only allow admins to delete users

show_error_msg("Error", "Only admins can do this",1);



$userid = (int)$_POST["userid"];

$username = sqlesc($_POST["username"]);

$delreason = sqlesc($_POST["delreason"]);



if (!is_valid_id($userid))

show_error_msg("Failed", "Invalid UserID",1);



if (!$delreason){

show_error_msg("Error", "Missing form data.",1);

}



deleteaccount($userid);



write_log($CURUSER['username']." has deleted account: $username");



show_error_msg("Completed", "User has been deleted from the database",1);

die;

}



/*



if ($action == "banuser")

{

 $userid = $_POST["userid"];

 $what = $_POST["what"];

 if (!is_valid_id($userid))

genbark("Not a vaild Userid");

 $comment = $_POST['comment'];

 if (!$comment)

genbark("Error:", "Please explain why you are banning this user!");

 $r = mysql_query("SELECT username,ip FROM users WHERE id=$userid") or sqlerr();

 $a = mysql_fetch_assoc($r);

 $username = $a["username"];

 $ip = $a["ip"];

 if ($what == "subnet")

 $ip = substr($ip, 0, strrpos($ip, ".")) . ".*";

 else

if ($what == 'ip')

 $extra = " OR ip='" . substr($ip, 0, strrpos($ip, ".")) . ".*'";

else

 genbark("Heh", "Select what to ban!");

 $r = mysql_query("SELECT * FROM bans WHERE ip='$ip'$extra") or sqlerr();

 if (mysql_num_rows($r) > 0)

genbark("Error", "IP/subnet is already banned");

 else {

$dt = get_date_time();

$comment = sqlesc($comment);

mysql_query("INSERT INTO bans (userid, first, last, added, addedby, comment) VALUES($userid, '$ip', '$ip', '$dt', $CURUSER[id], $comment)") or sqlerr();

mysql_query("UPDATE users SET secret='' WHERE id=$userid") or sqlerr();

$returnto = $_POST["returnto"];

header("Location: $returnto");

die;

 }

}



if ($action == "enableaccount")

{

 $userid = $_POST["id"];

 $res = mysql_query("SELECT * FROM users WHERE id='$userid'") or sqlerr();

 if (mysql_num_rows($res) != 1)

genbark("User $userid not found!");

 $secret = sqlesc(mksecret());

 mysql_query("UPDATE users SET secret=" . $secret . " WHERE id=$userid") or sqlerr();

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

 die;

}

if ($action == "newpassword")

{

if ($CURUSER["control_panel"] == "no")

show_error_msg("No Permission", "Only administrators can do this.", 1);



$userid = (int)$_POST["userid"];



if (!is_valid_id($userid))

show_error_msg("Error", "Invalid user id.", 1);



$query = mysql_query("SELECT * FROM `users` WHERE `id` = '{$userid}'") or die (mysql_error());

$row = mysql_fetch_array($query);



$passwordnew = mksecret(15);

$passwordmd5 = md5($passwordnew);

$body = "Your account at ".$site_config['SITENAME']." has been allocated a new password.\n\nYou can now login with your username and this password {$passwordnew}.\n\n".$site_config['SITENAME']." Admin";



ini_set("sendmail_from", "");



if (!@mail($row["email"], "Your ".$site_config['SITENAME']." New Password", $body, "From: ".$site_config['SITENAME']." <".$site_config['SITEEMAIL'].">"))

 show_error_msg("Error", "Mail failed to send.", 1);

 

write_log($CURUSER["username"] . " generated a new password for {$row["username"]}");



mysql_query("UPDATE `users` SET `password` = '{$passwordmd5}' WHERE `id` = {$userid}");



show_error_msg("Complete", "new password sent to {$row["email"]}", 1);



}

*/

?>



no where do i see that one chunck.  Can someone help me?
sry to say but that don't work either
Quote:
Now open login_block.php and find:CODE

<? if ($CURUSER["control_panel"]=="yes") {print("<a href=admincp.php>" . STAFFCP . "</a>");}?>

add after:

CODE

<? if (get_user_class() >= 5){print("<br><a href=faqstaff.php><b>F.A.Q Staff</b></a>");}?>

When trying to add that part in, it doesn't like the code, here's my section where i would add the code after,

print("<a href=admincp.php>" . STAFFCP . "</a><br>");


i believe in have 2.06, ive tried a couple variations, and it doesn't work.
does it have to be port 25 or can it be like a gmail account? or another e-mail address, i should probably mention its a free hosting company im using.  Cjb.net
the 2nd part of your code didn't work for me so i just used what i posted and it works perfect
if it doesn't send then there is an issue with ur smtp or e-mail setting, mine works fine using this code in my admincp.php

<td align="center"><a href=mass-mail.php><img src="images/admin/massmail.gif" border=0 width=32 height=32><br>Mass mail</a><BR></td>
thanx walker buddy.  Works great.  Thanks
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: 9
  • Members: 0
  • Guests online: 9
  • Comments: 3
  • Messages: 1,728