Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
commit
c678a31d97
@ -8,6 +8,7 @@
|
|||||||
* Copyright (C) 2005 Simon Tosser <simon@kornog-computing.com>
|
* Copyright (C) 2005 Simon Tosser <simon@kornog-computing.com>
|
||||||
* Copyright (C) 2006 Andre Cianfarani <andre.cianfarani@acdeveloppement.net>
|
* Copyright (C) 2006 Andre Cianfarani <andre.cianfarani@acdeveloppement.net>
|
||||||
* Copyright (C) 2010 Juanjo Menent <jmenent@2byte.es>
|
* Copyright (C) 2010 Juanjo Menent <jmenent@2byte.es>
|
||||||
|
* Copyright (C) 2015 Bahfir Abbes <bafbes@gmail.com>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -66,15 +67,12 @@ $conffiletoshow = "htdocs/conf/conf.php";
|
|||||||
//$conffile = "/etc/dolibarr/conf.php";
|
//$conffile = "/etc/dolibarr/conf.php";
|
||||||
//$conffiletoshow = "/etc/dolibarr/conf.php";
|
//$conffiletoshow = "/etc/dolibarr/conf.php";
|
||||||
|
|
||||||
// Replace conf filename with "conf" parameter on url by GET
|
//replace conf filename with "conf" parameter on url by GET
|
||||||
if (GETPOST('conf'))
|
if (!empty($_GET['conf'])) {
|
||||||
{
|
setcookie('dolconf', $_GET['conf'],0,'/');
|
||||||
setcookie('dolconf', GETPOST('conf'),0,'/');
|
$conffile = 'conf/' . $_GET['conf'] . '.php';
|
||||||
$conffile = 'conf/' . dol_sanitizeFileName(GETPOST('conf')) . '.php';
|
} else {
|
||||||
}
|
$conffile = 'conf/' . (!empty($_COOKIE['dolconf']) ? $_COOKIE['dolconf'] : 'conf') . '.php';
|
||||||
else
|
|
||||||
{
|
|
||||||
$conffile = 'conf/' . dol_sanitizeFileName((!empty($_COOKIE['dolconf']) ? $_COOKIE['dolconf'] : 'conf') . '.php');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user