have installed the mod and works fine for the memberlist and index page
but how can i add task.php(the new to-do-list mod) as a special page, so only certain usergroups are permitted to access this page
please advise
thank u
Moderator: Moderators

'INSERT IGNORE INTO ' . FORUMS_TABLE . ' (forum_id ,cat_id, forum_name, forum_desc, forum_status )
VALUES ("'.PAGE_TO_DO.'", "0", "TO DO PAGE", "TO DO Control", 1 )',[FIND]
$view_pages_ary = auth(AUTH_VIEW, AUTH_LIST_ALL, $userdata);
[AFTER ADD]
if ($view_pages_ary[''.PAGE_TO_DO]['auth_view'])
{
$template->assign_block_vars('switch_to_do_on', array());
}<!-- BEGIN switch_to_do_on -->
and
<!-- END switch_to_do_on -->[FIND]
// End session management
//
[AFTER ADD]
// Added for Extra permission MOD
// Start auth check
//
$is_auth = array();
$is_auth = auth(AUTH_ALL, PAGE_TO_DO, $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=task.$phpEx", true));
exit;
}
$message = sprintf ($lang['Sorry_no_auth'],$is_auth['auth_read_type']);
message_die(GENERAL_MESSAGE, $message);
}
//
// End auth check
//

"INSERT IGNORE INTO ".FORUMS_TABLE." (forum_id ,cat_id, forum_name, forum_desc, forum_status )
VALUES ('-101', '0', 'PAGE_TVAONLY', 'TVAONLY Control', 1 )", 
VALUES ('-101', '0', 'PAGE_TVAONLY'
define('PAGE_SHOUTBOX_MAX',-101);


Return to Extra permission [2.0.6/EM]
Users browsing this forum: No registered users and 1 guest