CREATE TABLE `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` )
) TYPE = MYISAM ;and the admincp.php<td align="center"><a href=staffbox.php><img src="images/admin/contact.png" border=0 width=32 height=32><br />Staff contacts<br /></a></td>"TheDarkDeadChoke, post: 80934":+1 ...how to fix it?is easy to mix with AUTO RATIO WARNING?its working but problem is..whoever download free torrents for increase the ratio..its showing warning to them as well..like
uploaded-12gb and download-inf...
its showing to them as well..how to fix that.. :o
//AUTO RATIO WARNING
$site_config["ratiowarn_enable"] = true; //Enable/Disable auto ratio warning
$site_config["ratiowarn_minratio"] = 0.4; //Min Ratio
$site_config["ratiowarn_mingigs"] = 5; //Min GB Downloaded
$site_config["ratiowarn_daystowarn"] = 14; //Days to ban $trackerurl = $row['announce'];$res = SQL_Query_exec("SELECT filename, external, announce, category FROM torrents WHERE id =".intval($id));
$row = mysql_fetch_array($res);
$torrent_dir = $site_config["torrent_dir"];
$fn = "$torrent_dir/$id.torrent";
///////////////////////////////////////////////////////////////////////////////////////////////
//////////////// VIP
if(($CURUSER["class"]<3) && ($row['category']) == 92){
show_error_msg("Sorry","You can not download, you have to be VIP",1);
}
///////////////////////////////////////////////////////////////////////////////////////////////
//////////////// END VIP //check if IP is already a peer
if ($site_config["ipcheck"] && $site_config["accountmax"] > "0") {
$ip = $_SERVER['REMOTE_ADDR'];
$ipc = SQL_Query_exec("SELECT COUNT(ip) FROM users WHERE ip = '$ip'");
$ipq = mysql_result($ipc, 0);
if ($ipq >= $site_config["accountmax"])
show_error_msg("Error","$site_config[sITENAME] only allows $site_config[accountmax] account per IP. If you would like to create a new account, please contact a staff member via MAIL.<br><br> The error was: <font color=red>maximum account count($site_config[accountmax]) exceeded for $ip($ipq), cannot proceed with signup.</font>",1);
}$ip = $_SERVER["REMOTE_ADDR"];
$a = (@mysql_fetch_row(@SQL_Query_exec("select count(*) from users where ip='$ip'")));
if ($a[0] != 0)
$message = "The IP address (<i>$ip</i>) is already in use."; "stolla, post: 77940":+1Another request for updating code to v2.08
Thanks
$updateset[] = "name = " . sqlesc($_POST["name"]);
add after
$updateset[] = "description = " . sqlesc($_POST["description"]);
and search
echo "<tr><td align='right' width='60'><b>".T_("NAME").": </b></td><td><input type=\"text\" name=\"name\" value=\"" . htmlspecialchars($row["name"]) . "\" size=\"60\" /></td></tr>";
add after
echo "<tr><td align='right' width='60'><b>".T_("DESCRIPTION").": </b></td><td><input type=\"text\" name=\"description\" value=\"" . htmlspecialchars($row["description"]) . "\" size=\"60\" /></td></tr>";