
Do you know if the location has been moved? If so could you please let me know.
Thanks
Code: Select all
##############################################################
## MOD Title: Deny Permsission
## MOD Author: LifeIsPain <brian@orvp.net> (Brian Evans)
## MOD Description: Adds an option to a users or groups permissions settings to deny them access
## to a given setting. This will override any setting that would give them
## permission to do that action. The folder permission level must be set to
## Private / ACL for you to deny someone permission. Board Adminis will not be
## denied rights of the group.
## MOD Version: 0.6.2
##
## Installation Level: easy
## Installation Time: 5 Minutes
## Files To Edit: includes/auth.php, language/lang_english/lang_admin.php, admin/admin_ug_auth.php
## Included Files: n/a
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/downloads/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/downloads/
##############################################################
## Author Notes: NEW: Board Admins can be set not to be banned with the rest of the group. If you
## need to be able to ban yourself (remember, any admin can unban himself) for some
## reason, use the commands under [ OR ] for legacy support If you need to ban a
## user from a setting normally for registered users, install Niels Chr. Denmark's
## Auto Group mod as well.
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
includes/auth.php
#
#-----[ FIND ]------------------------------------------
#
switch($type)
{
case AUTH_ACL:
$result = $u_access[$j][$key];
case AUTH_MOD:
$result = $result || $u_access[$j]['auth_mod'];
case AUTH_ADMIN:
$result = $result || $is_admin;
break;
}
$auth_user = $auth_user || $result;
#
#-----[ REPLACE WITH ]------------------------------------------
#
switch($type)
{
case AUTH_ACL:
$result = $u_access[$j][$key];
case AUTH_MOD:
$result = $result | $u_access[$j]['auth_mod'];
break;
}
$auth_user = $auth_user | $result;
#
#-----[ OR ]------------------------------------------
#
switch($type)
{
case AUTH_ACL:
$result = $u_access[$j][$key];
case AUTH_MOD:
$result = $result | $u_access[$j]['auth_mod'];
case AUTH_ADMIN:
$result = $result | $is_admin;
break;
}
$auth_user = $auth_user | $result;
#
#-----[ FIND ]------------------------------------------
#
return $auth_user;
#
#-----[ REPLACE WITH ]------------------------------------------
#
return ( $auth_user == 1 || $is_admin );
#
#-----[ OR ]------------------------------------------
#
return ( $auth_user == 1 );
#
#-----[ OPEN ]------------------------------------------
#
language/lang_english/lang_admin.php
#
#-----[ FIND ]------------------------------------------
#
$lang['OFF'] = 'OFF';
#
#-----[ ADD, AFTER ]------------------------------------------
#
$lang['DENY'] = 'DENY'; // This is for Deny Permission Mod
#
#-----[ FIND ]------------------------------------------
#
$lang['Group_auth_explain']
#
#-----[ IN-LINE FIND ]------------------------------------------
#
entry to forums, etc.
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
unless the group permission is set to deny.
#
#-----[ FIND ]------------------------------------------
#
$lang['User_auth_explain']
#
#-----[ IN-LINE FIND ]------------------------------------------
#
entry to forums, etc.
#
#-----[ IN-LINE AFTER, ADD ]------------------------------------------
#
unless the user permission is set to deny.
#
#-----[ FIND ]------------------------------------------
#
$lang['Disallowed_Access'] = 'Disallowed Access';
#
#-----[ REPLACE WITH ]------------------------------------------
#
$lang['Disallowed_Access'] = 'Default Access';
$lang['Denied_Access'] = 'Denied Access'; // This is for Deny Permission Mod
#
#-----[ OPEN ]------------------------------------------
#
admin/admin_ug_auth.php
#
#-----[ FIND ]------------------------------------------
#
switch($type)
{
case AUTH_ACL:
$result = $u_access[$j][$key];
case AUTH_MOD:
$result = $result || $u_access[$j]['auth_mod'];
case AUTH_ADMIN:
$result = $result || $is_admin;
break;
}
$auth_user = $auth_user || $result;
#
#-----[ REPLACE WITH ]------------------------------------------
#
switch($type)
{
case AUTH_ACL:
$result = $u_access[$j][$key];
case AUTH_MOD:
$result = $result | $u_access[$j]['auth_mod'];
case AUTH_ADMIN:
$result = $result | $is_admin;
break;
}
$auth_user = $auth_user | $result;
#
#-----[ FIND ]------------------------------------------
#
$allowed = 1;
for($j = 0; $j < count($forum_auth_level_fields[$forum_id]); $j++)
{
if ( !$auth_ug[$forum_id][$forum_auth_level_fields[$forum_id][$j]] )
{
$allowed = 0;
}
}
#
#-----[ REPLACE WITH ]------------------------------------------
#
$allowed = 3;
for($j = 0; $j < count($forum_auth_level_fields[$forum_id]); $j++)
{
$allowed = $allowed & $auth_ug[$forum_id][$forum_auth_level_fields[$forum_id][$j]];
}
#
#-----[ FIND ]------------------------------------------
#
else if ( $allowed )
{
$optionlist_acl .= '<option value="1" selected="selected">' . $lang['Allowed_Access'] . '</option><option value="0">'. $lang['Disallowed_Access'] . '</option>';
}
else
{
$optionlist_acl .= '<option value="1">' . $lang['Allowed_Access'] . '</option><option value="0" selected="selected">' . $lang['Disallowed_Access'] . '</option>';
}
#
#-----[ REPLACE WITH ]------------------------------------------
#
else if ( $allowed == 1 )
{
$optionlist_acl .= '<option value="1" selected="selected">' . $lang['Allowed_Access'] . '</option><option value="0">'. $lang['Disallowed_Access'] . '</option><option value="3">' . $lang['Denied_Access'] . '</option>';
}
else if ( $allowed == 0 )
{
$optionlist_acl .= '<option value="1">' . $lang['Allowed_Access'] . '</option><option value="0" selected="selected">' . $lang['Disallowed_Access'] . '</option><option value="3">' . $lang['Denied_Access'] . '</option>';
}
else
{
$optionlist_acl .= '<option value="1">' . $lang['Allowed_Access'] . '</option><option value="0">' . $lang['Disallowed_Access'] . '</option><option value="3" selected="selected">' . $lang['Denied_Access'] . '</option>';
}
#
#-----[ FIND ]------------------------------------------
#
if( !$auth_field_acl[$forum_id][$field_name] )
{
$optionlist_acl_adv[$forum_id][$k] .= '<option value="1">' . $lang['ON'] . '</option><option value="0" selected="selected">' . $lang['OFF'] . '</option>';
}
else
{
$optionlist_acl_adv[$forum_id][$k] .= '<option value="1" selected="selected">' . $lang['ON'] . '</option><option value="0">' . $lang['OFF'] . '</option>';
}
#
#-----[ REPLACE WITH ]------------------------------------------
#
if( $auth_field_acl[$forum_id][$field_name] == 0 )
{
$optionlist_acl_adv[$forum_id][$k] .= '<option value="1">' . $lang['ON'] . '</option><option value="0" selected="selected">' . $lang['OFF'] . '</option><option value="3">' . $lang['DENY'] . '</option>';
}
else if( $auth_field_acl[$forum_id][$field_name] == 1)
{
$optionlist_acl_adv[$forum_id][$k] .= '<option value="1" selected="selected">' . $lang['ON'] . '</option><option value="0">' . $lang['OFF'] . '</option><option value="3">' . $lang['DENY'] . '</option>';
}
else
{
$optionlist_acl_adv[$forum_id][$k] .= '<option value="1">' . $lang['ON'] . '</option><option value="0">' . $lang['OFF'] . '</option><option value="3" selected="selected">' . $lang['DENY'] . '</option>';
}
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM