fixed path to lam.conf

This commit is contained in:
Roland Gruber 2003-05-15 17:31:18 +00:00
parent a6aadc10e4
commit 01219adb3e
1 changed files with 1 additions and 7 deletions

View File

@ -189,13 +189,7 @@ class Config {
// saves preferences to ../config/lam.conf
function save() {
// Get path of lam.conf
$path = getcwd();
$path = explode("/", substr($path,1));
for($i = 0; $i <= array_search("lam", $path); $i++) {
$conffile .= "/" . $path[$i];
}
$conffile .= "/config/lam.conf";
$conffile = substr(__FILE__, 0, strlen(__FILE__) - 15) . "/config/lam.conf";
if (is_file($conffile) == True) {
// booleans to check if value was already saved
$save_serverURL = $save_passwd = $save_admins = $save_suffusr = $save_suffgrp = $save_suffhst =