mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Enhance installer
This commit is contained in:
parent
e813448bb9
commit
27f19fd577
|
|
@ -30,6 +30,8 @@
|
|||
define('DONOTLOADCONF',1); // To avoid loading conf by file inc.php
|
||||
|
||||
include("./inc.php");
|
||||
|
||||
$action=GETPOST('action');
|
||||
$setuplang=isset($_POST["selectlang"])?$_POST["selectlang"]:(isset($_GET["selectlang"])?$_GET["selectlang"]:'auto');
|
||||
$langs->setDefaultLang($setuplang);
|
||||
|
||||
|
|
@ -78,7 +80,7 @@ $main_data_dir=isset($_POST["main_data_dir"])?$_POST["main_data_dir"]:'';
|
|||
if (! $main_data_dir) { $main_data_dir="$main_dir/documents"; }
|
||||
|
||||
|
||||
if ($_POST["action"] == "set")
|
||||
if ($action == "set")
|
||||
{
|
||||
umask(0);
|
||||
foreach($_POST as $cle=>$valeur)
|
||||
|
|
|
|||
|
|
@ -41,6 +41,7 @@ error_reporting(0); // Disable all errors
|
|||
@set_time_limit(300); // Need more than 240 on Windows 7/64
|
||||
error_reporting($err);
|
||||
|
||||
$action=GETPOST('action');
|
||||
$setuplang=isset($_POST["selectlang"])?$_POST["selectlang"]:(isset($_GET["selectlang"])?$_GET["selectlang"]:'auto');
|
||||
$langs->setDefaultLang($setuplang);
|
||||
|
||||
|
|
@ -72,7 +73,7 @@ if (! is_writable($conffile))
|
|||
exit;
|
||||
}
|
||||
|
||||
if ($_POST["action"] == "set")
|
||||
if ($action == "set")
|
||||
{
|
||||
print '<h3>'.$langs->trans("Database").'</h3>';
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user