summaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-09-13 15:28:22 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-09-13 15:28:22 +0000
commita524f1f979aae71a5b15bccc1fd84cf9ebc00a97 (patch)
tree9b9f54d5e2833bde6af11863251f071717113d98 /admin
parentb91c750a0b57dc60b0b918b4ea2d9d7f1beaf083 (diff)
downloadampache-a524f1f979aae71a5b15bccc1fd84cf9ebc00a97.tar.gz
ampache-a524f1f979aae71a5b15bccc1fd84cf9ebc00a97.tar.bz2
ampache-a524f1f979aae71a5b15bccc1fd84cf9ebc00a97.zip
threw in add button for single playlist view, added the link for deleting catalogs back, also added back in the ACL page links, they dont work..
Diffstat (limited to 'admin')
-rw-r--r--admin/access.php22
1 files changed, 8 insertions, 14 deletions
diff --git a/admin/access.php b/admin/access.php
index b2ea30b9..b818328e 100644
--- a/admin/access.php
+++ b/admin/access.php
@@ -1,7 +1,7 @@
<?php
/*
- Copyright (c) 2001 - 2006 Ampache.org
+ Copyright (c) 2001 - 2007 Ampache.org
All rights reserved.
This program is free software; you can redistribute it and/or
@@ -19,24 +19,18 @@
*/
-require('../lib/init.php');
+require '../lib/init.php';
-/* Scrub in the Needed vars */
-$action = scrub_in($_REQUEST['action']);
-$access_id = scrub_in($_REQUEST['access_id']);
-$access = new Access($access_id);
-
-if (!$GLOBALS['user']->has_access(100) || conf('demo_mode')) {
+if (!$GLOBALS['user']->has_access(100) || Config::get('demo_mode')) {
access_denied();
exit();
}
-show_template('header');
-
+show_header();
-switch ($action ) {
+switch ($_REQUEST['action']) {
case 'show_confirm_delete':
$title = _('Confirm Delete');
$body = _('Do you really want to delete this Access Record?');
@@ -57,15 +51,15 @@ switch ($action ) {
show_confirmation(_('Entry Updated'),_('Access List Entry updated'),'admin/access.php');
break;
case 'show_add_host':
- include(conf('prefix') . '/templates/show_add_access.inc');
+ require_once Config::get('prefix') . '/templates/show_add_access.inc.php';
break;
case 'show_edit_host':
include(conf('prefix') . '/templates/show_edit_access.inc');
break;
default:
$list = array();
- $list = $access->get_access_list();
- include(conf('prefix') .'/templates/show_access_list.inc');
+// $list = $access->get_access_list();
+ require_once Config::get('prefix') .'/templates/show_access_list.inc.php';
break;
} // end switch on action
show_footer();