summaryrefslogtreecommitdiffstats
path: root/test.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-08-13 03:36:29 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-08-13 03:36:29 +0000
commit64fb3786bbe81bc72099f154c59c9c7fefcbd2c9 (patch)
treebdbb61c7fcb3917067c5ca13d2267472ec8781df /test.php
parentf49a78f512b7a8e76d5548f188536f2044c4ec60 (diff)
downloadampache-64fb3786bbe81bc72099f154c59c9c7fefcbd2c9.tar.gz
ampache-64fb3786bbe81bc72099f154c59c9c7fefcbd2c9.tar.bz2
ampache-64fb3786bbe81bc72099f154c59c9c7fefcbd2c9.zip
good number of changes to browse, this breaks more then it fixes...
Diffstat (limited to 'test.php')
-rw-r--r--test.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/test.php b/test.php
index 84d3fbce..9c1465c7 100644
--- a/test.php
+++ b/test.php
@@ -41,6 +41,15 @@ Dba::_auto_init();
switch ($_REQUEST['action']) {
case 'config':
+ $ampache_path = dirname(__FILE__);
+ $prefix = realpath($ampache_path . "/../");
+ $configfile = "$prefix/config/ampache.cfg.php";
+
+ // On every load of the config file check and see if it's working now
+ if (count(parse_ini_file($configfile)) {
+ require_once $prefix . '/templates/show_test.inc.php';
+ break;
+ }
require_once $prefix . '/templates/show_test_config.inc.php';
break;
default: