mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-24 04:08:51 +00:00
Removed limit ... wasn't a "bad" idea but ultimately created more work than I expected :D
git-svn-id: file:///svn/phpbb/trunk@3294 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
cf96f8dcfb
commit
77e09080dc
1 changed files with 6 additions and 22 deletions
|
@ -154,8 +154,6 @@ else if (isset($_POST['delete']))
|
||||||
}
|
}
|
||||||
else if (isset($_POST['presetsave']))
|
else if (isset($_POST['presetsave']))
|
||||||
{
|
{
|
||||||
print_r($_POST['option']);
|
|
||||||
|
|
||||||
$holding_ary = array();
|
$holding_ary = array();
|
||||||
foreach ($_POST['option'] as $acl_option => $allow_deny)
|
foreach ($_POST['option'] as $acl_option => $allow_deny)
|
||||||
{
|
{
|
||||||
|
@ -440,15 +438,14 @@ if (!empty($forum_id) || $mode == 'administrators' || $mode == 'supermoderators'
|
||||||
ORDER BY preset_id ASC";
|
ORDER BY preset_id ASC";
|
||||||
$result = $db->sql_query($sql);
|
$result = $db->sql_query($sql);
|
||||||
|
|
||||||
$preset_options = $preset_js = '';
|
$preset_options = $preset_js = $preset_update_options = '';
|
||||||
$holding = $preset_ary = array();
|
$holding = array();
|
||||||
if ($row = $db->sql_fetchrow($result))
|
if ($row = $db->sql_fetchrow($result))
|
||||||
{
|
{
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
$preset_ary[$row['preset_id']] = $row['preset_name'];
|
$preset_update_options .= '<option value="' . $row['preset_id'] . '">' . $row['preset_name'] . '</option>';
|
||||||
|
$preset_options .= '<option style="color:red" value="preset_' . $row['preset_id'] . '">* ' . $row['preset_name'] . '</option>';
|
||||||
$preset_options .= '<option value="preset_' . $row['preset_id'] . '">* ' . $row['preset_name'] . '</option>';
|
|
||||||
|
|
||||||
$preset_data = unserialize($row['preset_data']);
|
$preset_data = unserialize($row['preset_data']);
|
||||||
|
|
||||||
|
@ -543,7 +540,7 @@ if (!empty($forum_id) || $mode == 'administrators' || $mode == 'supermoderators'
|
||||||
|
|
||||||
<form method="post" name="acl" action="<?php echo "admin_permissions.$phpEx$SID&mode=$mode"; ?>"><table cellspacing="2" cellpadding="0" border="0" align="center">
|
<form method="post" name="acl" action="<?php echo "admin_permissions.$phpEx$SID&mode=$mode"; ?>"><table cellspacing="2" cellpadding="0" border="0" align="center">
|
||||||
<tr>
|
<tr>
|
||||||
<td align="right">Quick settings: <select name="set" onchange="use_preset(this.options[this.selectedIndex].value);"><option><?php echo '-- ' . $user->lang['Select'] . ' --'; ?></option><option value="all_allow"><?php echo $user->lang['All_Allow']; ?></option><option value="all_deny"><?php echo $user->lang['All_Deny']; ?></option><option value="all_inherit"><?php echo $user->lang['All_Inherit']; ?></option><?php echo $preset_options; ?></select></td>
|
<td align="right">Quick settings: <select name="set" onchange="use_preset(this.options[this.selectedIndex].value);"><option><?php echo '-- ' . $user->lang['Select'] . ' --'; ?></option><option value="all_allow"><?php echo $user->lang['All_Allow']; ?></option><option value="all_deny"><?php echo $user->lang['All_Deny']; ?></option><option value="all_inherit"><?php echo $user->lang['All_Inherit']; ?></option><?php echo ($preset_options) ? '<option>--' . $user->lang['PRESETS'] . '--</option>' . $preset_options : ''; ?></select></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><table class="bg" width="100%" cellspacing="1" cellpadding="4" border="0" align="center">
|
<td><table class="bg" width="100%" cellspacing="1" cellpadding="4" border="0" align="center">
|
||||||
|
@ -564,9 +561,7 @@ if (!empty($forum_id) || $mode == 'administrators' || $mode == 'supermoderators'
|
||||||
if (!empty($_POST['presetsave']) || !empty($_POST['presetdel']))
|
if (!empty($_POST['presetsave']) || !empty($_POST['presetdel']))
|
||||||
{
|
{
|
||||||
$allow_type = ($_POST['option'][$auth_options[$i]['auth_value']] == ACL_ALLOW) ? ' checked="checked"' : '';
|
$allow_type = ($_POST['option'][$auth_options[$i]['auth_value']] == ACL_ALLOW) ? ' checked="checked"' : '';
|
||||||
|
|
||||||
$deny_type = ($_POST['option'][$auth_options[$i]['auth_value']] == ACL_DENY) ? ' checked="checked"' : '';
|
$deny_type = ($_POST['option'][$auth_options[$i]['auth_value']] == ACL_DENY) ? ' checked="checked"' : '';
|
||||||
|
|
||||||
$inherit_type = ($_POST['option'][$auth_options[$i]['auth_value']] == ACL_INHERIT) ? ' checked="checked"' : '';
|
$inherit_type = ($_POST['option'][$auth_options[$i]['auth_value']] == ACL_INHERIT) ? ' checked="checked"' : '';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -641,18 +636,7 @@ if (!empty($forum_id) || $mode == 'administrators' || $mode == 'supermoderators'
|
||||||
<td nowrap="nowrap"><?php echo $user->lang['SELECT_PRESET']; ?>: </td>
|
<td nowrap="nowrap"><?php echo $user->lang['SELECT_PRESET']; ?>: </td>
|
||||||
<td><select name="presetoption"><option value="-1"><?php echo '-- ' . $user->lang['Select'] . ' --'; ?></option><?php
|
<td><select name="presetoption"><option value="-1"><?php echo '-- ' . $user->lang['Select'] . ' --'; ?></option><?php
|
||||||
|
|
||||||
$preset_options = '';
|
echo $preset_update_options;
|
||||||
foreach ($preset_ary as $preset_id => $preset_name)
|
|
||||||
{
|
|
||||||
$preset_options .= '<option value="' . $preset_id . '">' . $preset_name . '</option>';
|
|
||||||
}
|
|
||||||
|
|
||||||
for ($i = 0; $i < 10 - sizeof($preset_ary); $i++)
|
|
||||||
{
|
|
||||||
$preset_options .= '<option value="-1">-- ' . $user->lang['EMPTY'] . ' --</option>';
|
|
||||||
}
|
|
||||||
|
|
||||||
echo $preset_options;
|
|
||||||
|
|
||||||
?></select></td>
|
?></select></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
Loading…
Add table
Reference in a new issue