extra permission hack installation problems

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 !

extra permission hack installation problems

Postby sotris99 on Sun 11. Dec, 2005 13:15

I' ve installed easymod because i wanted to install extra permissions hack.

But the installation process failed...

Code: Select all
Critical Error

FIND FAILED: In file [includes/functions_admin.php] could not find:

$sql = "SELECT forum_id, forum_name
FROM " . FORUMS_TABLE . "

MOD script line #371 :: FAQ :: Report


here is the log...

Code: Select all
COPY     #131 
copy extra_perm_db_update.php to extra_perm_db_update.php


OPEN     #149 
index.php


FIND     #154 
// End session management
//


AFTERADD     #160 
// Start add - Extra permission PM 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
//
// End add - Extra permission PM MOD



OPEN     #186 
memberlist.php


FIND     #191 
// End session management
//


AFTERADD     #197 
// Start add - Extra permission PM MOD
//
// Start auth check
//
$is_auth = array();
$is_auth = auth(AUTH_ALL, PAGE_VIEWMEMBERS, $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=memberlist.$phpEx", true));
      exit;
   }
   $message = ( !$is_auth['auth_view'] ) ? $lang['Not_Authorised'] : sprintf ($lang['Sorry_no_auth'],$is_auth['auth_read_type']);
   message_die(GENERAL_MESSAGE, $message);
}
//
// End auth check
//
// End add - Extra permission PM MOD



OPEN     #224 
admin/admin_forumauth.php


FIND     #229 
if(!empty($forum_id))


REPLACE     #234 
// Start replacement - Extra permission PM MOD
if(isset($forum_id))
// End replacement - Extra permission PM MOD



FIND     #242 
$sql = "UPDATE


IN-LINE FIND     #247 
$forum_id


IN-LINE REPLACE     #252 
'$forum_id'


FIND     #257 
$sql = "UPDATE


IN-LINE FIND     #265 
$forum_id


IN-LINE REPLACE     #270 
'$forum_id'


FIND     #275 
// no id was specified or just the requsted if it
// was
//


AFTERADD     #282 
// Start add - Extra permission PM MOD
$sql = "SELECT f.*
   FROM " . FORUMS_TABLE . " f
   WHERE f.cat_id=0
   $forum_sql
   ORDER BY f.forum_name ASC";
if ( !($result = $db->sql_query($sql)) )
{
   message_die(GENERAL_ERROR, "Couldn't obtain special pages list", "", __LINE__, __FILE__, $sql);
}
$forum_rows = $db->sql_fetchrowset($result);
$db->sql_freeresult($result);
// End add - Extra permission PM MOD



FIND     #300 
$forum_rows = $db->sql_fetchrowset($result);


REPLACE     #305 
// Start replacement - Extra permission PM MOD
$forum_rows = array_merge($forum_rows,$db->sql_fetchrowset($result));
// End replacement - Extra permission PM MOD



OPEN     #313 
includes/auth.php


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


IN-LINE FIND     #323 
= $forum_id


IN-LINE REPLACE     #328 
= '$forum_id'


FIND     #333 
$forum_match_sql = ( $forum_id != AUTH_LIST_ALL ) ? "AND a.forum_id = $forum_id"


IN-LINE FIND     #338 
= $forum_id


IN-LINE REPLACE     #343 
= '$forum_id'


OPEN     #348 
includes/constants.php


FIND     #353 
define('PAGE_TOPIC_OFFSET', 5000);


BEFOREADD     #358 
// Start add - Extra permission PM MOD
define('PAGE_INDEX_PERMISSION', -99);
// End add - Extra permission PM MOD



OPEN     #366 
includes/functions_admin.php


Is there any way to complete the installation? I am not an experienced user and i don't know how to do this... The readme file isn't very detailed...

I use phpbb 2.0.18
sotris99
Poster
Poster
 
Posts: 1
Joined: Sun 11. Dec, 2005 12:49

Postby Niels on Tue 13. Dec, 2005 21:49

sadly I haven't updated this mod yet for use with newer versions of PHPBB2, so it can't be installed yet - you will have to wait until I release a updated version (or someone else does)
(if a how-to is EM ready, it will mostly be bullet prof, since a machine is more picky than a human. :D)
User avatar
Niels
Poster
Poster
 
Posts: 4390
Joined: Sat 27. Jul, 2002 15:46


Return to Extra permission [2.0.6/EM]

Who is online

Users browsing this forum: No registered users and 0 guests

cron