confs sur filefunc

This commit is contained in:
abb 2015-12-11 12:14:46 +01:00
parent 05258172aa
commit 613209eadb

View File

@ -80,6 +80,12 @@ if (! empty($_GET['conf']))
$conffile = 'conf/'.$confname.'.php';
}
*/
if (!empty($_GET['conf'])) {
setcookie('dolconf', $_GET['conf']);
$conffile = 'conf/' . $_GET['conf'] . '.php';
} else {
$conffile = 'conf/' . (!empty($_COOKIE['dolconf']) ? $_COOKIE['dolconf'] : 'conf') . '.php';
}
// Include configuration
$result=@include_once $conffile; // Keep @ because with some error reporting this break the redirect