// recommended torrents
begin_frame("Staff Recommended Torrents");
$news = SQL_Query_exec("SELECT id, name, added, image1, image2 FROM torrents WHERE banned ='no' AND visible='yes' AND torrents.recommended='yes' ORDER BY torrents.id DESC LIMIT 60"); ///limit number of images
if (mysql_num_rows($news) > 0) {
print("<marquee scrollAmount=3 onmouseover=this.scrollAmount=0 onmouseout=this.scrollAmount=3 scrolldelay=0 direction=MARQUEE BEHAVIOR=ALTERNATE><table align=center cellpadding=0 cellspacing=0 width=100% border=0><tr>");
while ($row2 = mysql_fetch_array($news, MYSQL_NUM)) {
$tor = $row2['0'];
$altname = $row2['1'];
$where = "WHERE banned = 'no' AND visible='yes' AND torrents.id='$tor'";
$res = SQL_Query_exec("SELECT torrents.id, torrents.image1, torrents.image2, torrents.added, torrents.seeders, torrents.leechers, torrents.filename, torrents.name , categories.name AS cat_name FROM torrents LEFT JOIN categories ON torrents.category = categories.id $where $orderby $limit");
$row = mysql_fetch_array($res);
$cat = $row['cat_name'];
$shortname = $row['filename'];
$img1 = "<small><i><b>".$cat."</b></i></small><br><br><a href='{$site_config[sITEURL]}/torrents-details.php?id=$row[id]'><img class ='corner iradius20 ishadow33' border='0' src='uploads/images/{$row[image1]}' alt=\"$name / $cat\" title=$shortname height=160 width=113></a><br><br><img src=images/gore.png title=Seeders height=16 width=16 border=0><b>".$row['seeders']." </b>-- <b>".$row['leechers']."</b><img src=images/dole.png title=Leechers height=17 width=17 border=0>";
if ($row["image1"] != ""){
print("<td align=center>". $img1 ."</td>");
}
}
print("</tr></table></marquee>");
}
end_frame();
// recommended torrents

$LANG["MOD_CP"] = "Mod CP";
$LANG["MODO_CP"] = "Modo CP";
"ArcticWolf, post: 84159":not tried this version.. i got an custom 1 i use inside account-details, before people ask no its not avail..
but anyway looks like $reciever is not defined in 2.08 due to no global vars.
changing this in admincp should work in thery
to
if($do == "change_username")
{
stdhead();
navmenu();
if ($CURUSER["edit_users"]!="yes")
show_error_msg("STOP", "you Cannot access this function");
begin_frame("Changes have been successful");
$current_username = $receiver;
$new_username=$_POST['new_username'];
$q = mysql_query("UPDATE users SET username = '$new_username' WHERE username = '$current_username'");
echo '<b> Changes have been successful</b>';
end_frame();
stdfoot();
}
if($do == "change_username")
{
stdhead();
navmenu();
if ($CURUSER["edit_users"]!="yes")
show_error_msg("STOP", "you Cannot access this function",1);
begin_frame("Changes have been successful");
$current_username = $_POST['receiver'];
$new_username=$_POST['new_username'];
$q = SQL_Query_exec("UPDATE users SET username = '$new_username' WHERE username = '$current_username'");
if ($q)
echo '<b> Changes have been successful, User: '.$current_username.' is now '.$new_username.'</b>';
else
echo '<b> Changes <font size=1 face=Verdana color=red>not</font> been successful</b>';
end_frame();
stdfoot();
}
side note lol no idea why people changes like this dont need an modcomment.. but what ever lol



--
-- Table structure for table `ajshoutchat`
--
CREATE TABLE IF NOT EXISTS `ajshoutchat` (
`id` mediumint(9) NOT NULL AUTO_INCREMENT,
`uid` mediumint(9) NOT NULL,
`date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`name` tinytext NOT NULL,
`text` text NOT NULL,
UNIQUE KEY `id` (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
--
-- Dumping data for table `ajshoutchat`
--
-- --------------------------------------------------------
@admincp.php fined
if (!$action){
stdhead("Admin CP");
navmenu();
stdfoot();
}
LOOK IN THEAD BELOW REPLACE BY
@admincp.php Add
<td align="center"><a href=admincp.php?action=clearShoutchats><img src="images/admin/clearshout.png" border=0 width=32 height=32><BR>Clear SaffShoutbox</a><BR></td>
@admincp.php Add at the end tag
if ($action == "clearShoutchats") {
stdhead("Clear Shoutchats");
navmenu();
begin_frame("Clear shoutchat", center);
if ($yes == "yes") {
$res = mysql_query("TRUNCATE `ajshoutchat`");
if ($res) echo "<center>Site Shoutchats cleared";
} else {
echo "<div align=center>Are you sure you want to clear the Shoutchats?<br>";
echo "<a href='admincp.php?action=clearShoutchats&yes=yes'><b>Yes</b></a></div>";
}
end_frame();
stdfoot();
$query = SQL_Query_exec("SELECT `id`, `descr`, `time`, `last_time` FROM `shoutannounce` WHERE `active` = 'yes'");
while ($row = mysql_fetch_array($query)) {
if ($row['last_time'] + $row['time'] > gmtime())
continue;
SQL_Query_exec("INSERT INTO ajshoutbox (uid, date, name, text) VALUES(0,NOW(), 'System', '" . $row['descr'] . "')");
SQL_Query_exec("UPDATE `shoutannounce` SET `last_time` = '" . gmtime() . "' WHERE `id` = " . $row['id'] . "");
}