diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-05-07 06:23:39 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-05-07 06:23:39 +0000 |
commit | e9f54c8d72bdd6944c87805c87548ff7947b864c (patch) | |
tree | 8414e1284829ccad685029276536f665441ee4fd /admin | |
parent | 1c85db030e548e6bf7434e86070e4ba05917a325 (diff) | |
download | ampache-e9f54c8d72bdd6944c87805c87548ff7947b864c.tar.gz ampache-e9f54c8d72bdd6944c87805c87548ff7947b864c.tar.bz2 ampache-e9f54c8d72bdd6944c87805c87548ff7947b864c.zip |
initial debug work
Diffstat (limited to 'admin')
-rw-r--r-- | admin/index.php | 4 | ||||
-rw-r--r-- | admin/system.php | 16 |
2 files changed, 16 insertions, 4 deletions
diff --git a/admin/index.php b/admin/index.php index ea2d7e14..ee66a291 100644 --- a/admin/index.php +++ b/admin/index.php @@ -1,7 +1,7 @@ <?php /* - Copyright (c) 2001 - 2007 Ampache.org + Copyright (c) Ampache.org All rights reserved. This program is free software; you can redistribute it and/or @@ -21,7 +21,7 @@ require '../lib/init.php'; -if (!$GLOBALS['user']->has_access(100)) { +if (!Access::check('interface',100)) { access_denied(); exit(); } diff --git a/admin/system.php b/admin/system.php index a2ca3012..3b338346 100644 --- a/admin/system.php +++ b/admin/system.php @@ -1,7 +1,7 @@ <?php /* - Copyright (c) 2001 - 2006 Ampache.org + Copyright (c) Ampache.org All rights reserved. This program is free software; you can redistribute it and/or @@ -23,7 +23,7 @@ require '../lib/init.php'; require_once Config::get('prefix') . '/lib/debug.lib.php'; require_once Config::get('prefix') . '/modules/horde/Browser.php'; -if (!$GLOBALS['user']->has_access(100)) { +if (!Access::check('interface',100)) { access_denied(); exit(); } @@ -42,6 +42,18 @@ switch ($_REQUEST['action']) { echo $final; break; + case 'show_debug': + show_header(); + $configuration = Config::get_all(); + require_once Config::get('prefix') . '/templates/show_debug.inc.php'; + show_footer(); + break; + case 'check_php_settings': + + break; + case 'check_iconv': + + break; /* Check this version against ampache.org's record */ case 'check_version': |