New: Ajout test prerequis PHP a l'install sur support des _GET et _POST

This commit is contained in:
Laurent Destailleur 2007-03-06 18:30:16 +00:00
parent 9a816c6ac8
commit 97bc40dd7f
4 changed files with 17 additions and 4 deletions

View File

@ -29,6 +29,14 @@
require_once('../translate.class.php');
require_once('../lib/functions.inc.php');
// Correction PHP_SELF (ex pour apache via caudium) car PHP_SELF doit valoir URL relative
// et non path absolu.
if (isset($_SERVER["DOCUMENT_URI"]) && $_SERVER["DOCUMENT_URI"])
{
$_SERVER["PHP_SELF"]=$_SERVER["DOCUMENT_URI"];
}
$conffile = "../conf/conf.php";
if (file_exists($conffile))
{
@ -100,7 +108,8 @@ function pHeader($soutitre,$next,$action='set')
print '<body>';
print '<span class="titre"><a class="titre" href="'.$_SERVER["PHP_SELF"].'">'.$langs->trans("DolibarrSetup").'</a></span>';
print '<form action="'.$next.'.php" method="POST">';
print '<form action="'.$next.'.php?testget=ok" method="POST">';
print '<input type="hidden" name="testpost" value="ok">';
print '<input type="hidden" name="action" value="'.$action.'">';
print '<table class="main" width="100%"><tr><td>';

View File

@ -33,11 +33,11 @@ include_once("../html.form.class.php");
$err = 0;
// Si fichier conf existe deja, on est pas sur une premiere install,
// Si fichier conf existe deja et rempli, on est pas sur une premiere install,
// on ne passe donc pas par la page de choix de langue
if (file_exists($conffile))
if (file_exists($conffile) && isset($dolibarr_main_url_root))
{
header("Location: check.php");
header("Location: check.php?testget=ok");
exit;
}

View File

@ -9,6 +9,8 @@ ConfFileCouldBeCreated=Configuration file <b>%s</b> could be created.
ConfFileIsNotWritable=Configuration file <b>%s</b> is not writable. Check permissions. For first install, your web server must be granted to be able to write into this file during configuration process ("chmod 666" for example on Unix like OS).
ConfFileIsWritable=Configuration file <b>%s</b> is writable.
PHPSupportSessions=This PHP supports sessions.
PHPSupportPOSTGETOk=This PHP supports variables POST and GET.
PHPSupportPOSTGETKo=This PHP dose not support variables POST and/or GET.
ErrorPHPDoesNotSupportSessions=Your PHP installation does not support sessions. This feature is required to make Dolibarr working. Check your PHP setup.
ErrorDirDoesNotExists=Directory %s does not exists.
ErrorGoBackAndCorrectParameters=Go backward and correct wrong parameters.

View File

@ -9,6 +9,8 @@ ConfFileCouldBeCreated=Le fichier de configuration <b>%s</b> a pu
ConfFileIsNotWritable=Le fichier <b>%s</b> n'est pas modifiable. Pour une première installation, modifiez ses permissions. Le serveur Web doit avoir le droit d'écrire dans ce fichier le temps de la configuration ("chmod 666" par exemple sur un OS compatible Unix).
ConfFileIsWritable=Le fichier <b>%s</b> est modifiable.
PHPSupportSessions=Ce PHP supporte les sessions.
PHPSupportPOSTGETOk=Ce PHP supporte les variables POST et GET.
PHPSupportPOSTGETKo=Ce PHP ne supporte pas les variables POST et/ou GET.
ErrorPHPDoesNotSupportSessions=Votre installation PHP ne supporte pas les sessions. Cette fonctionnalité est requise pour faire fonctionner Dolibarr. Vérifiez votre configuration de PHP.
ErrorDirDoesNotExists=Le répertoire <b>%s</b> n'existe pas ou n'est pas accessible.
ErrorGoBackAndCorrectParameters=Revenez en arrière et corrigez les paramètres invalides.