Merge pull request #2633 from bafbes/develop
NEW : dev feature : replace conf filename with "conf" parameter on url b...
This commit is contained in:
commit
21a6fd1cb4
@ -66,6 +66,14 @@ $conffiletoshow = "htdocs/conf/conf.php";
|
||||
//$conffile = "/etc/dolibarr/conf.php";
|
||||
//$conffiletoshow = "/etc/dolibarr/conf.php";
|
||||
|
||||
//replace conf filename with "conf" parameter on url by GET
|
||||
if (!empty($_GET['conf'])) {
|
||||
setcookie('dolconf', $_GET['conf'],0,'/');
|
||||
$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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user