Quote:
Originally Posted by zemic
Parse error: parse error, unexpected T_STRING in /home/fhlinux199/k/kroozing.com/user/htdocs/forum/modcp/banning.php on line 279
I get that error message when I open banning.php . "View Banned Users" link under "Users" menu in Admin CP.
Any ideas?
I've checked the instructions and it seems like I've copied it correctly :s
|
Here is what my file looks like, in that area. Compare it with yours.
PHP Code:
// there is already a record - just update this record
$DB_site->query("
UPDATE " . TABLE_PREFIX . "userban SET
adminid = $bbuserinfo[userid],
bandate = " . TIMENOW . ",
liftdate = $liftdate,
reason = '" . addslashes($reason) . "'
WHERE userid = $user[userid]
");
}
else
{
// insert a record into the userban table
$DB_site->query("
INSERT INTO " . TABLE_PREFIX . "userban
(userid, usergroupid, displaygroupid, customtitle, usertitle, adminid, bandate, liftdate, reason)
VALUES
($user[userid], $user[usergroupid], $user[displaygroupid], $user[customtitle], '" . addslashes($user['usertitle']) . "', $bbuserinfo[userid], " . TIMENOW . ", $liftdate, '" . addslashes($reason) . "')
");
}
// update the user record
$DB_site->query("
UPDATE " . TABLE_PREFIX . "user SET
$bantitlesql
usergroupid = $usergroupid,
displaygroupid = 0
WHERE userid = $user[userid]
");
define('CP_REDIRECT', 'banning.php');
if ($period == 'PERMANENT')
{
print_stop_message('user_x_has_been_banned_permanently', $user['username']);
}
else
{
print_stop_message('user_x_has_been_banned_until_y', $user['username'], vbdate("$vboptions[dateformat] $vboptions[timeformat]", $liftdate));
}
Rgds