mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[feature/class-prefix] Rename auth => phpbb_auth
PHPBB3-10609
This commit is contained in:
parent
6deb7b3671
commit
9236dd4c47
11 changed files with 12 additions and 15 deletions
|
@ -74,7 +74,6 @@ if (!empty($load_extensions) && function_exists('dl'))
|
|||
|
||||
// Include files
|
||||
require($phpbb_root_path . 'includes/class_loader.' . $phpEx);
|
||||
require($phpbb_root_path . 'includes/auth.' . $phpEx);
|
||||
|
||||
require($phpbb_root_path . 'includes/functions.' . $phpEx);
|
||||
require($phpbb_root_path . 'includes/functions_content.' . $phpEx);
|
||||
|
@ -102,7 +101,7 @@ $phpbb_class_loader->set_cache($cache->get_driver());
|
|||
$phpbb_dispatcher = new phpbb_event_dispatcher();
|
||||
$request = new phpbb_request();
|
||||
$user = new phpbb_user();
|
||||
$auth = new auth();
|
||||
$auth = new phpbb_auth();
|
||||
$db = new $sql_db();
|
||||
|
||||
// make sure request_var uses this request instance
|
||||
|
|
|
@ -86,7 +86,7 @@
|
|||
<p>To use any methods contained with the <code>auth</code> class it first needs to be instantiated. This is best achieved early in the execution of the script in the following manner:</p>
|
||||
|
||||
<div class="codebox"><pre>
|
||||
$auth = new auth();
|
||||
$auth = new phpbb_auth();
|
||||
</pre></div>
|
||||
|
||||
<p>Once an instance of the class has been created you are free to call the various methods it contains. Please note that should you wish to use the <code>auth_admin</code> methods you will need to instantiate this separately but in the same way.</p>
|
||||
|
|
|
@ -1105,7 +1105,7 @@ class acp_permissions
|
|||
{
|
||||
if ($user_id != $user->data['user_id'])
|
||||
{
|
||||
$auth2 = new auth();
|
||||
$auth2 = new phpbb_auth();
|
||||
$auth2->acl($userdata);
|
||||
$auth_setting = $auth2->acl_get($permission);
|
||||
}
|
||||
|
|
|
@ -1554,7 +1554,7 @@ class acp_users
|
|||
|| $user_row['user_allow_viewonline'] && !$sql_ary['user_allow_viewonline'])
|
||||
{
|
||||
// We also need to check if the user has the permission to cloak.
|
||||
$user_auth = new auth();
|
||||
$user_auth = new phpbb_auth();
|
||||
$user_auth->acl($user_row);
|
||||
|
||||
$session_sql_ary = array(
|
||||
|
|
|
@ -19,7 +19,7 @@ if (!defined('IN_PHPBB'))
|
|||
* ACP Permission/Auth class
|
||||
* @package phpBB3
|
||||
*/
|
||||
class auth_admin extends auth
|
||||
class auth_admin extends phpbb_auth
|
||||
{
|
||||
/**
|
||||
* Init auth settings
|
||||
|
@ -130,7 +130,7 @@ class auth_admin extends auth
|
|||
{
|
||||
if ($user->data['user_id'] != $userdata['user_id'])
|
||||
{
|
||||
$auth2 = new auth();
|
||||
$auth2 = new phpbb_auth();
|
||||
$auth2->acl($userdata);
|
||||
}
|
||||
else
|
||||
|
|
|
@ -19,7 +19,7 @@ if (!defined('IN_PHPBB'))
|
|||
* Permission/Auth class
|
||||
* @package phpBB3
|
||||
*/
|
||||
class auth
|
||||
class phpbb_auth
|
||||
{
|
||||
var $acl = array();
|
||||
var $cache = array();
|
|
@ -343,7 +343,7 @@ function check_rule(&$rules, &$rule_row, &$message_row, $user_id)
|
|||
$userdata = $db->sql_fetchrow($result);
|
||||
$db->sql_freeresult($result);
|
||||
|
||||
$auth2 = new auth();
|
||||
$auth2 = new phpbb_auth();
|
||||
$auth2->acl($userdata);
|
||||
|
||||
if (!$auth2->acl_get('a_') && !$auth2->acl_get('m_') && !$auth2->acl_getf_global('m_'))
|
||||
|
|
|
@ -251,7 +251,7 @@ class mcp_warn
|
|||
// Check if can send a notification
|
||||
if ($config['allow_privmsg'])
|
||||
{
|
||||
$auth2 = new auth();
|
||||
$auth2 = new phpbb_auth();
|
||||
$auth2->acl($user_row);
|
||||
$s_can_notify = ($auth2->acl_get('u_readpm')) ? true : false;
|
||||
unset($auth2);
|
||||
|
@ -374,7 +374,7 @@ class mcp_warn
|
|||
// Check if can send a notification
|
||||
if ($config['allow_privmsg'])
|
||||
{
|
||||
$auth2 = new auth();
|
||||
$auth2 = new phpbb_auth();
|
||||
$auth2->acl($user_row);
|
||||
$s_can_notify = ($auth2->acl_get('u_readpm')) ? true : false;
|
||||
unset($auth2);
|
||||
|
|
|
@ -66,7 +66,7 @@ class ucp_remind
|
|||
}
|
||||
|
||||
// Check users permissions
|
||||
$auth2 = new auth();
|
||||
$auth2 = new phpbb_auth();
|
||||
$auth2->acl($user_row);
|
||||
|
||||
if (!$auth2->acl_get('u_chgpasswd'))
|
||||
|
|
|
@ -84,7 +84,6 @@ if (!empty($load_extensions) && function_exists('dl'))
|
|||
|
||||
// Include files
|
||||
require($phpbb_root_path . 'includes/class_loader.' . $phpEx);
|
||||
require($phpbb_root_path . 'includes/auth.' . $phpEx);
|
||||
|
||||
require($phpbb_root_path . 'includes/functions.' . $phpEx);
|
||||
|
||||
|
|
|
@ -75,7 +75,6 @@ require($phpbb_root_path . 'includes/functions.' . $phpEx);
|
|||
|
||||
phpbb_require_updated('includes/functions_content.' . $phpEx, true);
|
||||
|
||||
include($phpbb_root_path . 'includes/auth.' . $phpEx);
|
||||
include($phpbb_root_path . 'includes/functions_admin.' . $phpEx);
|
||||
include($phpbb_root_path . 'includes/utf/utf_tools.' . $phpEx);
|
||||
require($phpbb_root_path . 'includes/functions_install.' . $phpEx);
|
||||
|
@ -178,7 +177,7 @@ $sub = request_var('sub', '');
|
|||
set_error_handler(defined('PHPBB_MSG_HANDLER') ? PHPBB_MSG_HANDLER : 'msg_handler');
|
||||
|
||||
$user = new phpbb_user();
|
||||
$auth = new auth();
|
||||
$auth = new phpbb_auth();
|
||||
|
||||
// Add own hook handler, if present. :o
|
||||
if (file_exists($phpbb_root_path . 'includes/hooks/index.' . $phpEx))
|
||||
|
|
Loading…
Add table
Reference in a new issue