summaryrefslogtreecommitdiffstats
path: root/templates/show_edit_access.inc.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-10-10 07:30:15 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-10-10 07:30:15 +0000
commitff58181d5b4ddd10b34062a0ad2204435e698cae (patch)
tree60b4654309d0826c81411790efe8448675a038bb /templates/show_edit_access.inc.php
parent32349846fbd66e4ebc44e63d37fbcd8cff5a8a73 (diff)
downloadampache-ff58181d5b4ddd10b34062a0ad2204435e698cae.tar.gz
ampache-ff58181d5b4ddd10b34062a0ad2204435e698cae.tar.bz2
ampache-ff58181d5b4ddd10b34062a0ad2204435e698cae.zip
fixed acls, fixed transcoding issues
Diffstat (limited to 'templates/show_edit_access.inc.php')
-rw-r--r--templates/show_edit_access.inc.php86
1 files changed, 86 insertions, 0 deletions
diff --git a/templates/show_edit_access.inc.php b/templates/show_edit_access.inc.php
new file mode 100644
index 00000000..06a0feb8
--- /dev/null
+++ b/templates/show_edit_access.inc.php
@@ -0,0 +1,86 @@
+<?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&amp;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="xml-rpc"<?php echo $sl_xml-rpc; ?>><?php echo _('XML-RPC'); ?></option>
+ </select>
+ </td>
+
+</tr>
+<tr>
+ <td><?php echo _('Start IP Address'); ?>:</td>
+ <td>
+ <input type="text" name="start" value="<?php echo int2ip($access->start); ?>" size="20" maxlength="15" />
+ </td>
+</tr>
+<tr>
+ <td><?php echo _('End IP Address'); ?>:</td>
+ <td>
+ <input type="text" name="end" value="<?php echo int2ip($access->end); ?>" size="20" maxlength="15" />
+ </td>
+</tr>
+<tr>
+ <td><?php echo _('User'); ?>:</td>
+ <td>
+ <?php show_user_select('user',$access->user); ?>
+ </td>
+</tr>
+<?php if ($access->type == 'xml-rpc') { ?>
+<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>
+<?php } ?>
+</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>
+<tr>
+ <td colspan="2"><input type="submit" value="<?php echo _('Update'); ?>" /></td>
+</tr>
+</table>
+</form>
+<?php show_box_bottom(); ?>