
01-16-2004, 10:28 AM
|
 |
|
|
Join Date: Jun 2002
Location: Georgia, USA
Posts: 2,519
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by geezzaa
Here ya go.
Congrats on the final .
PHP Code:
// ### INSERT PLUGIN USERGROUP PERMISSIONS BITFIELDS HERE ###
// ----------------------------------------------------------
$_BITFIELD['usergroup']['shoutboxpermissions'] = array(
'shoutview' => 1,
'shoutpost' => 2,
'shoutedit' => 4,
'shoutdelete' => 8,
'shouthdelete' => 16,
'shouteditothers' => 32,
'shoutdeleteothers' => 64,
'shouthdeleteothers' => 128,
'shoutip' => 256,
'shoutcoventry' => 512
);
// ----------------------------------------------------------
// ### END PLUGIN USERGROUP PERMISSIONS BITFIELDS HERE ###
// now take all the usergroup bitfields and define constants for spot permission checks
foreach($_BITFIELD['usergroup'] AS $_permgroup)
{
foreach($_permgroup AS $_constname => $_constval)
{
define(strtoupper($_constname), $_constval);
}
}
unset($_constname, $_constval, $_permgroup);
// Calendar Moderator permissions
$_BITFIELD['calmoderatorpermissions'] = array(
'caneditevents' => 1,
'candeleteevents' => 2,
'canmoderateevents' => 4,
'canviewips' => 8,
'canmoveevents' => 16
);
// Forum Moderator permissions
$_BITFIELD['moderatorpermissions'] = array(
'caneditposts' => 1,
|
As I said before, I see nothing wrong with that code. Does a fresh init.php solve the error? Have you tried to re-hack a fresh init.php?
|