mirror of
https://github.com/Yetangitu/ampache
synced 2025-10-05 19:41:55 +02:00
86 lines
3.1 KiB
PHP
86 lines
3.1 KiB
PHP
<?php
|
|
/*
|
|
|
|
Copyright (c) 2001 - 2007 Ampache.org
|
|
All rights reserved.
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
modify it under the terms of the GNU General Public License v2
|
|
as published by the Free Software Foundation.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with this program; if not, write to the Free Software
|
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
?>
|
|
<?php show_box_top(_('Edit ACL')); ?>
|
|
<form name="edit_access" method="post" enctype="multipart/form-data" action="<?php echo Config::get('web_path'); ?>/admin/access.php?action=update_record&access_id=<?php echo intval($access->id); ?>">
|
|
<table class="table-data">
|
|
<tr>
|
|
<td><?php echo _('Name'); ?>: </td>
|
|
<td><input type="textbox" name="name" value="<?php echo scrub_out($access->name); ?>" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td><?php echo _('ACL Type'); ?>: </td>
|
|
<td>
|
|
<select name="type">
|
|
<?php $name = 'sl_' . $access->type; ${$name} = ' selected="selected"'; ?>
|
|
<option value="stream"<?php echo $sl_stream; ?>><?php echo _('Stream Access'); ?></option>
|
|
<option value="interface"<?php echo $sl_interface; ?>><?php echo _('Web Interface'); ?></option>
|
|
<option value="network"<?php echo $sl_network; ?>><?php echo _('Local Network Definition'); ?></option>
|
|
<option value="rpc"<?php echo $sl_rpc; ?>><?php echo _('RPC'); ?></option>
|
|
</select>
|
|
</td>
|
|
|
|
</tr>
|
|
<tr>
|
|
<td><?php echo _('Start IP Address'); ?>:</td>
|
|
<td>
|
|
<input type="text" name="start" value="<?php echo long2ip($access->start); ?>" size="20" maxlength="15" />
|
|
<span class="information">(0.0.0.0)</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><?php echo _('End IP Address'); ?>:</td>
|
|
<td>
|
|
<input type="text" name="end" value="<?php echo long2ip($access->end); ?>" size="20" maxlength="15" />
|
|
<span class="information">(0.0.0.0)</span>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><?php echo _('User'); ?>:</td>
|
|
<td>
|
|
<?php show_user_select('user',$access->user); ?>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><?php echo _('Remote Key'); ?></td>
|
|
<td>
|
|
<input type="text" name="key" value="<?php echo scrub_out($access->key); ?>" size="32" maxlength="32" />
|
|
</td>
|
|
</tr>
|
|
</tr>
|
|
<tr>
|
|
<td><?php echo _('Level'); ?>:</td>
|
|
<td>
|
|
<select name="level">
|
|
<?php $name = 'level_' . $access->level; ${$name} = 'selected="selected"'; ?>
|
|
<option value="5" <?php echo $level_5; ?>><?php echo _('View'); ?></option>
|
|
<option value="25" <?php echo $level_25; ?>><?php echo _('Read'); ?></option>
|
|
<option value="50" <?php echo $level_50; ?>><?php echo _('Read/Write'); ?></option>
|
|
<option value="75" <?php echo $level_75; ?>><?php echo _('All'); ?></option>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<div class="formValidation">
|
|
<input type="submit" value="<?php echo _('Update'); ?>" />
|
|
</div>
|
|
</form>
|
|
<?php show_box_bottom(); ?>
|