argh please help on extra permissions mod

This mod will make it posible to specify permissions to all "special pages, like MEMBERLIST, PROFILE VIEW and so on.
The permissions support USERGROUP, making this tool very powerfull

Moderator: Moderators

Forum rules
The content in this forum is dated Dec. 21 2005 and can be used as Archive only. This Forum is LOCKED and READ ONLY !

argh please help on extra permissions mod

Postby lilg on Tue 16. Dec, 2003 21:39

hi my site is http://www.welshsidebmx.co.uk/forums/index.php
i have installed the shoutbox hack then re-reading the install file to check if i had dun everything rite i found when i ssee that i have to install this hack so after a few hours i installed it and i get this problem
Parse error: parse error in /home/wsbmx/public_html/forums/includes/auth.php on line 146

Fatal error: Call to undefined function: auth() in /home/wsbmx/public_html/forums/index.php on line 40
lilg
Poster
Poster
 
Posts: 6
Joined: Tue 16. Dec, 2003 21:16

Postby lilg on Wed 17. Dec, 2003 18:16

in the auth .php this is wats on the line

$forum_match_sql = ( $forum_id != AUTH_LIST_ALL ) ? "WHERE a.forum_id = '$forum_id'" : '';

$sql = "SELECT a.forum_id, $a_sqlFROM " . FORUMS_TABLE . " a$forum_match_sql";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Failed obtaining forum access control lists', '', __LINE__, __FILE__, $sql);
}

$sql_fetchrow = ( $forum_id != AUTH_LIST_ALL ) ? 'sql_fetchrow' : 'sql_fetchrowset';

if ( !($f_access = $db->$sql_fetchrow($result)) )
lilg
Poster
Poster
 
Posts: 6
Joined: Tue 16. Dec, 2003 21:16

Postby lilg on Wed 17. Dec, 2003 18:17

and this is wat is on the index.php lines

// Added for Extra permission MOD
// Start auth check
//
$is_auth = array();
$is_auth = auth(AUTH_READ, PAGE_INDEX_PERMISSION, $userdata);
if( !$is_auth['auth_read'] )
{
if ( !$userdata['session_logged_in'] )
{
$header_location = ( @preg_match("/Microsoft|WebSTAR|Xitami/", getenv("SERVER_SOFTWARE")) ) ? "Refresh: 0; URL=" : "Location: ";
header($header_location . append_sid("login.$phpEx?redirect=index.$phpEx", true));
exit;
}
$message = sprintf ($lang['Sorry_no_auth'],$is_auth['auth_read_type']);
message_die(GENERAL_MESSAGE, $message);
}
//
// End auth check
//

CAN ANYONE SEE THE PROBLEM ANYONES HELP WOUKD BE APRECIATED
lilg
Poster
Poster
 
Posts: 6
Joined: Tue 16. Dec, 2003 21:16


Return to Extra permission [2.0.6/EM]

Who is online

Users browsing this forum: No registered users and 1 guest

cron