summaryrefslogtreecommitdiffstats
path: root/admin/access.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-09-24 20:42:55 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-09-24 20:42:55 +0000
commit3ad79fc4c9a6718a336fd929e33b6a0ac9bbf173 (patch)
tree155abe19a61dd758cfcfe971146eb01876903a7e /admin/access.php
parentab076e07058f75de17cfdbe311d35753f9da7b43 (diff)
downloadampache-3ad79fc4c9a6718a336fd929e33b6a0ac9bbf173.tar.gz
ampache-3ad79fc4c9a6718a336fd929e33b6a0ac9bbf173.tar.bz2
ampache-3ad79fc4c9a6718a336fd929e33b6a0ac9bbf173.zip
fixed user registration and missing motd and fudged up the access lists for the time being
Diffstat (limited to 'admin/access.php')
-rw-r--r--admin/access.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/admin/access.php b/admin/access.php
index d7bc11c8..74f13d6b 100644
--- a/admin/access.php
+++ b/admin/access.php
@@ -28,7 +28,7 @@ $action = scrub_in($_REQUEST['action']);
$access_id = scrub_in($_REQUEST['access_id']);
$access = new Access($access_id);
-if (!$GLOBALS['user']->has_access(100)) {
+if (!$GLOBALS['user']->has_access(100) || conf('demo_mode')) {
access_denied();
exit();
}
@@ -39,7 +39,9 @@ show_template('header');
switch ($action ) {
case 'show_confirm_delete':
- show_confirmation(_('Confirm Delete'),_('Do you really want to delete this Access Record?'),'admin/access.php?access_id=' . scrub_out($_REQUEST['access_id']) . '&amp;action=delete_host','1');
+ $title = _('Confirm Delete');
+ $body = _('Do you really want to delete this Access Record?');
+ show_confirmation($title,$body,'admin/access.php?access_id=' . scrub_out($_REQUEST['access_id']) . '&amp;action=delete_host','1');
break;
case 'delete_host':
$access->delete($_REQUEST['access_id']);
@@ -47,7 +49,7 @@ switch ($action ) {
show_confirmation(_('Entry Deleted'),_('Your Access List Entry has been removed'),$url);
break;
case 'add_host':
- $access->create($_REQUEST['name'],$_REQUEST['start'],$_REQUEST['end'],$_REQUEST['level']);
+ $access->create($_REQUEST['name'],$_REQUEST['start'],$_REQUEST['end'],$_REQUEST['level'],$_REQUEST['user'],$_REQUEST['key'],$_REQUEST['type']);
$url = conf('web_path') . '/admin/access.php';
show_confirmation(_('Entry Added'),_('Your new Access List Entry has been created'),$url);
break;