mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 00:37:42 +02:00
language additions
some small fixes git-svn-id: file:///svn/phpbb/trunk@4893 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -76,6 +76,10 @@ switch ($mode)
|
||||
// $l_title = 'KARMA_SETTINGS';
|
||||
// $which_auth = 'a_user';
|
||||
// break;
|
||||
case 'message':
|
||||
$l_title = 'MESSAGE_SETTINGS';
|
||||
$which_auth = 'a_defaults';
|
||||
break;
|
||||
case 'message':
|
||||
$l_title = 'MESSAGE_SETTINGS';
|
||||
$which_auth = 'a_defaults';
|
||||
|
@@ -75,6 +75,9 @@ if ($update)
|
||||
|
||||
delete_forum($forum_id, $action_posts, $action_subforums, $posts_to_id, $subforums_to_id);
|
||||
|
||||
//
|
||||
$auth->acl_clear_prefetch();
|
||||
|
||||
trigger_error($user->lang['FORUM_DELETED']);
|
||||
break;
|
||||
|
||||
@@ -118,6 +121,9 @@ if ($update)
|
||||
break;
|
||||
}
|
||||
|
||||
//
|
||||
$auth->acl_clear_prefetch();
|
||||
|
||||
// Redirect to permissions
|
||||
$message = ($mode == 'add') ? $user->lang['FORUM_CREATED'] : $user->lang['FORUM_UPDATED'];
|
||||
$message .= '<br /><br />' . sprintf($user->lang['REDIRECT_ACL'], "<a href=\"admin_permissions.$phpEx$SID&mode=forum&submit_usergroups=true&ug_type=forum&action=usergroups&f[forum][]=" . $forum_data['forum_id'] . '">', '</a>');
|
||||
|
@@ -308,7 +308,7 @@ switch ($submit)
|
||||
|
||||
// Do we need to recache the moderator lists? We do if the mode
|
||||
// was mod or auth_settings['mod'] is a non-zero size array
|
||||
if ($mode == 'mod' || sizeof($auth_settings['mod']))
|
||||
if ($mode == 'mod' || (isset($auth_settings['mod']) && sizeof($auth_settings['mod'])))
|
||||
{
|
||||
cache_moderators();
|
||||
}
|
||||
@@ -738,7 +738,7 @@ if (in_array($submit, array('add_options', 'edit_options', 'presetsave', 'preset
|
||||
|
||||
// Grab the list of options ... if we're in deps mode we want all options,
|
||||
// else we skip the master options
|
||||
$sql_founder = ($user->data['user_founder']) ? ' AND founder_only <> 1' : '';
|
||||
$sql_founder = ($user->data['user_type'] == USER_FOUNDER) ? ' AND founder_only <> 1' : '';
|
||||
$sql_limit_option = ($mode == 'deps') ? '' : "AND auth_option <> '" . $sql_option_mode . "_'";
|
||||
$sql = "SELECT auth_option_id, auth_option
|
||||
FROM " . ACL_OPTIONS_TABLE . "
|
||||
@@ -760,6 +760,7 @@ if (in_array($submit, array('add_options', 'edit_options', 'presetsave', 'preset
|
||||
// Now we'll build a list of preset options ...
|
||||
$preset_options = $preset_js = $preset_update_options = '';
|
||||
$holding = array();
|
||||
$holding['allow'] = $holding['deny'] = $holding['inherit'] = '';
|
||||
|
||||
// Do we have a parent forum? If so offer option to inherit from that
|
||||
if ($forum_data['parent_id'] != 0)
|
||||
@@ -830,7 +831,7 @@ if (in_array($submit, array('add_options', 'edit_options', 'presetsave', 'preset
|
||||
}
|
||||
|
||||
$preset_js .= "\tpresets['preset_" . $row['preset_id'] . "'] = new Array();" . "\n";
|
||||
$preset_js .= "\tpresets['preset_" . $row['preset_id'] . "'] = new preset_obj('" . $holding['yes'] . "', '" . $holding['no'] . "', '" . $holding['unset'] . "');\n";
|
||||
$preset_js .= "\tpresets['preset_" . $row['preset_id'] . "'] = new preset_obj('" . $holding['allow'] . "', '" . $holding['deny'] . "', '" . $holding['inherit'] . "');\n";
|
||||
}
|
||||
while ($row = $db->sql_fetchrow($result));
|
||||
}
|
||||
@@ -841,7 +842,7 @@ if (in_array($submit, array('add_options', 'edit_options', 'presetsave', 'preset
|
||||
|
||||
// If we aren't looking @ deps then we try and grab existing sessions for
|
||||
// the given forum and user/group
|
||||
if (empty($auth_settings[$which_mode]))
|
||||
if (!is_array($auth_settings) || empty($auth_settings[$which_mode]))
|
||||
{
|
||||
if ($which_mode == $mode)
|
||||
{
|
||||
@@ -1141,7 +1142,8 @@ if (in_array($submit, array('add_options', 'edit_options', 'presetsave', 'preset
|
||||
</tr>
|
||||
<?php
|
||||
|
||||
for($i = 0; $i < sizeof($auth_options); $i++)
|
||||
$row_class = 'row2';
|
||||
for ($i = 0; $i < sizeof($auth_options); $i++)
|
||||
{
|
||||
$row_class = ($row_class == 'row1') ? 'row2' : 'row1';
|
||||
|
||||
@@ -1317,7 +1319,7 @@ adm_page_footer();
|
||||
//
|
||||
function update_foes()
|
||||
{
|
||||
global $db;
|
||||
global $db, $auth;
|
||||
|
||||
$perms = array();
|
||||
foreach ($auth->acl_get_list(false, array('a_', 'm_'), false) as $forum_id => $forum_ary)
|
||||
|
@@ -130,7 +130,7 @@ else if ($pane == 'left')
|
||||
elseif ($pane == 'right')
|
||||
{
|
||||
$action = request_var('action', '');
|
||||
$mark = implode(', ', request_var('mark', 0));
|
||||
$mark = (isset($_REQUEST['mark'])) ? implode(', ', request_var('mark', 0)) : '';
|
||||
|
||||
if ($mark)
|
||||
{
|
||||
|
@@ -149,9 +149,9 @@ function adm_page_footer($copyright_html = true)
|
||||
exit;
|
||||
}
|
||||
|
||||
function adm_page_message($title, $message, $show_header = false)
|
||||
function adm_page_message($title, $message, $show_header = false, $show_prev_info = true)
|
||||
{
|
||||
global $phpEx, $SID, $user;
|
||||
global $phpEx, $SID, $user, $_SERVER, $_ENV;
|
||||
|
||||
if ($show_header)
|
||||
{
|
||||
@@ -169,6 +169,7 @@ function adm_page_message($title, $message, $show_header = false)
|
||||
|
||||
}
|
||||
|
||||
$page = (!empty($_SERVER['REQUEST_URI'])) ? $_SERVER['REQUEST_URI'] : $_ENV['REQUEST_URI'];
|
||||
?>
|
||||
|
||||
<br /><br />
|
||||
@@ -178,7 +179,14 @@ function adm_page_message($title, $message, $show_header = false)
|
||||
<th><?php echo $title; ?></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="row1" align="center"><?php echo $message; ?></td>
|
||||
<td class="row1" align="center"><?php echo $message; ?>
|
||||
<?php
|
||||
if ($page && $show_prev_info)
|
||||
{
|
||||
echo '<br /><br />';
|
||||
echo sprintf($user->lang['RETURN_PAGE'], '<a href="' . $page . '">', '</a>');
|
||||
}
|
||||
?> </td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
Reference in New Issue
Block a user