Preparation msarty
This commit is contained in:
parent
64e4b61dd2
commit
c724b60321
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2004-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2004-2007 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
* Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
* Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be>
|
||||||
* Copyright (C) 2004 Sebastien Di Cintio <sdicintio@ressource-toi.org>
|
* Copyright (C) 2004 Sebastien Di Cintio <sdicintio@ressource-toi.org>
|
||||||
@ -36,13 +36,10 @@ $langs->setDefaultLang($setuplang);
|
|||||||
$langs->load("admin");
|
$langs->load("admin");
|
||||||
$langs->load("install");
|
$langs->load("install");
|
||||||
|
|
||||||
|
|
||||||
pHeader($langs->trans("ConfigurationFile"),"etape2");
|
pHeader($langs->trans("ConfigurationFile"),"etape2");
|
||||||
|
|
||||||
|
|
||||||
$error = 0;
|
$error = 0;
|
||||||
|
|
||||||
|
|
||||||
// Répertoire des pages dolibarr
|
// Répertoire des pages dolibarr
|
||||||
$main_dir=isset($_POST["main_dir"])?trim($_POST["main_dir"]):'';
|
$main_dir=isset($_POST["main_dir"])?trim($_POST["main_dir"]):'';
|
||||||
|
|
||||||
@ -62,17 +59,13 @@ if (substr($_POST["main_url"], strlen($_POST["main_url"]) -1) == "/")
|
|||||||
$main_data_dir=isset($_POST["main_data_dir"])?$_POST["main_data_dir"]:'';
|
$main_data_dir=isset($_POST["main_data_dir"])?$_POST["main_data_dir"]:'';
|
||||||
if (! $main_data_dir) { $main_data_dir="$main_dir/documents"; }
|
if (! $main_data_dir) { $main_data_dir="$main_dir/documents"; }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Actions
|
* Actions
|
||||||
*/
|
*/
|
||||||
if ($_POST["action"] == "set")
|
if ($_POST["action"] == "set")
|
||||||
{
|
{
|
||||||
umask(0);
|
umask(0);
|
||||||
|
|
||||||
print '<h2>'.$langs->trans("SaveConfigurationFile").'</h2>';
|
print '<h2>'.$langs->trans("SaveConfigurationFile").'</h2>';
|
||||||
|
|
||||||
print '<table cellspacing="0" width="100%" cellpadding="1" border="0">';
|
print '<table cellspacing="0" width="100%" cellpadding="1" border="0">';
|
||||||
|
|
||||||
// Verification validite parametre main_dir
|
// Verification validite parametre main_dir
|
||||||
@ -102,7 +95,7 @@ if ($_POST["action"] == "set")
|
|||||||
{
|
{
|
||||||
clearstatcache();
|
clearstatcache();
|
||||||
|
|
||||||
fwrite($fp, '<?php');
|
fputs($fp, '<?php');
|
||||||
fputs($fp,"\n");
|
fputs($fp,"\n");
|
||||||
|
|
||||||
fputs($fp, '$dolibarr_main_url_root="'.$_POST["main_url"].'";');
|
fputs($fp, '$dolibarr_main_url_root="'.$_POST["main_url"].'";');
|
||||||
@ -129,6 +122,14 @@ if ($_POST["action"] == "set")
|
|||||||
fputs($fp, '$dolibarr_main_db_type="'.$_POST["db_type"].'";');
|
fputs($fp, '$dolibarr_main_db_type="'.$_POST["db_type"].'";');
|
||||||
fputs($fp,"\n");
|
fputs($fp,"\n");
|
||||||
|
|
||||||
|
/* Preparation integration SMARTY, LAISSER en commentaire pour le moment -> Rodo
|
||||||
|
fputs($fp, '$dolibarr_smarty_compile="'.$_POST["smarty_compile"].'";');
|
||||||
|
fputs($fp,"\n");
|
||||||
|
|
||||||
|
fputs($fp, '$dolibarr_smarty_cache="'.$_POST["smarty_cache"].'";');
|
||||||
|
fputs($fp,"\n");
|
||||||
|
*/
|
||||||
|
|
||||||
fputs($fp, '?>');
|
fputs($fp, '?>');
|
||||||
fclose($fp);
|
fclose($fp);
|
||||||
|
|
||||||
@ -223,7 +224,6 @@ if ($_POST["action"] == "set")
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Base de données
|
* Base de données
|
||||||
*
|
*
|
||||||
@ -549,7 +549,6 @@ if ($_POST["action"] == "set")
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
print '</table>';
|
print '</table>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user