summaryrefslogtreecommitdiffstats
path: root/test.php
diff options
context:
space:
mode:
Diffstat (limited to 'test.php')
-rw-r--r--test.php28
1 files changed, 10 insertions, 18 deletions
diff --git a/test.php b/test.php
index 66eae11a..0f5a9fc3 100644
--- a/test.php
+++ b/test.php
@@ -1,7 +1,7 @@
<?php
/*
- Copyright 2001 - 2006 Ampache.org
+ Copyright 2001 - 2007 Ampache.org
All Rights Reserved
This program is free software; you can redistribute it and/or
@@ -19,34 +19,26 @@
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
+
// Set the Error level manualy... I'm to lazy to fix notices
error_reporting(E_ALL ^ E_NOTICE);
-
$prefix = dirname(__FILE__);
$configfile = "$prefix/config/ampache.cfg.php";
+$row_classes = array('even','odd');
-require_once($prefix . "/lib/general.lib.php");
-require_once($prefix . "/lib/ui.lib.php");
-require_once($prefix . "/lib/class/error.class.php");
-$error = new error();
-require_once($prefix . "/lib/debug.lib.php");
-
+require_once $prefix . '/lib/general.lib.php';
+require_once $prefix . '/lib/ui.lib.php';
+require_once $prefix . '/lib/class/error.class.php';
+require_once $prefix . '/lib/class/config.class.php';
+require_once $prefix . '/lib/debug.lib.php';
switch ($_REQUEST['action']) {
-
- case 'verify_config':
- // This reads the ampache.cfg and compares the potential options against
- // those in ampache.cfg.dst
- show_compare_config($prefix);
- break;
default:
- require_once($prefix . "/templates/show_test.inc");
- break;
+ require_once $prefix . '/templates/show_test.inc';
+ break;
} // end switch on action
-
-
?>