diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-08-13 03:36:29 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2008-08-13 03:36:29 +0000 |
commit | 64fb3786bbe81bc72099f154c59c9c7fefcbd2c9 (patch) | |
tree | bdbb61c7fcb3917067c5ca13d2267472ec8781df /test.php | |
parent | f49a78f512b7a8e76d5548f188536f2044c4ec60 (diff) | |
download | ampache-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.php | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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: |