1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-05 19:41:55 +02:00

Fix for bug 397 and 498 thanks pb1dft

This commit is contained in:
xgizzmo 2006-07-24 22:14:54 +00:00
parent 5ca15d0423
commit 5204485094
6 changed files with 53 additions and 27 deletions

View file

@ -34,6 +34,8 @@
file is readable, overkill I know..
@param level 0 is readable, 1 detailed info
*/
function read_config_file($file,$level=0) {
$fp = @fopen($file, 'r');
@ -186,7 +188,7 @@ function check_php_pcre() {
least set the needed variables
*/
function check_config_values($conf) {
$error = new Error();
if (!$conf['local_host']) {
return false;
}
@ -211,7 +213,13 @@ function check_config_values($conf) {
if (!isset($conf['sess_cookiesecure'])) {
return false;
}
if (isset($conf['debug'])) {
if (!isset($conf['log_path'])) {
$error->add_error('log_path',_("You defined the option \"debug = on\" but didn't define a log path for the log to be stored"));
return false;
}
}
return true;
} // check_config_values