summaryrefslogtreecommitdiffstats
path: root/test.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-04-23 07:31:05 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-04-23 07:31:05 +0000
commita31560aec4f004e58930277758f5412d86c62adc (patch)
tree845ff6947d26b22a0f4527901dbefc97bca89d78 /test.php
parent8b27d66add7ca9ba57d7e9488612cb54be4b11c1 (diff)
downloadampache-a31560aec4f004e58930277758f5412d86c62adc.tar.gz
ampache-a31560aec4f004e58930277758f5412d86c62adc.tar.bz2
ampache-a31560aec4f004e58930277758f5412d86c62adc.zip
it technically logs in and streams.. but thats it, complete rewrite almost everything broken
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
-
-
?>