mirror of
https://github.com/phpbb/phpbb.git
synced 2025-10-23 20:56:08 +02:00
Mainly updates for additional/altered admin permission options ... note, you MUST empty your current auth_options table and insert the list from the mysql_basic, you will also need to empty the auth_user/auth_group tables and re-assign permissions, and you should clear the $acl_options array in config_cache
git-svn-id: file:///svn/phpbb/trunk@3020 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -19,9 +19,9 @@
|
||||
*
|
||||
***************************************************************************/
|
||||
|
||||
if ( !empty($setmodules) )
|
||||
if (!empty($setmodules))
|
||||
{
|
||||
if ( !$auth->acl_get('a_general') )
|
||||
if (!$auth->acl_get('a_icons'))
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -34,42 +34,22 @@ if ( !empty($setmodules) )
|
||||
}
|
||||
|
||||
define('IN_PHPBB', 1);
|
||||
//
|
||||
// Include files
|
||||
//
|
||||
$phpbb_root_path = '../';
|
||||
require($phpbb_root_path . 'extension.inc');
|
||||
require('pagestart.' . $phpEx);
|
||||
|
||||
//
|
||||
// Do we have general permissions?
|
||||
//
|
||||
if (!$auth->acl_get('a_general'))
|
||||
if (!$auth->acl_get('a_icons'))
|
||||
{
|
||||
message_die(MESSAGE, $user->lang['No_admin']);
|
||||
}
|
||||
|
||||
//
|
||||
// Check to see what mode we should operate in.
|
||||
//
|
||||
if (isset($_POST['type']) || isset($_GET['type']))
|
||||
{
|
||||
$type = (!empty($_POST['type'])) ? $_POST['type'] : $_GET['type'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$type = '';
|
||||
}
|
||||
|
||||
if (isset($_POST['mode']) || isset($_GET['mode']))
|
||||
{
|
||||
$mode = (!empty($_POST['mode'])) ? $_POST['mode'] : $_GET['mode'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$mode = '';
|
||||
}
|
||||
$type = (!empty($_REQUEST['type'])) ? $_REQUEST['type'] : '';
|
||||
$mode = (!empty($_REQUEST['mode'])) ? $_REQUEST['mode'] : '';
|
||||
|
||||
// What are we doing?
|
||||
switch ($type)
|
||||
{
|
||||
case 'emoticons':
|
||||
@@ -603,7 +583,7 @@ function update_smile_dimensions()
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
$row_class = ( $row_class != 'row1' ) ? 'row1' : 'row2';
|
||||
$row_class = ($row_class != 'row1') ? 'row1' : 'row2';
|
||||
?>
|
||||
<tr>
|
||||
<?php
|
||||
|
||||
Reference in New Issue
Block a user