From 12ae034871e23b278de1c7faca9bc96b8d627ada Mon Sep 17 00:00:00 2001 From: opensides Date: Tue, 15 Jun 2004 09:50:09 +0000 Subject: [PATCH] remplace par etape2.php --- htdocs/install/etape3.php | 133 -------------------------------------- 1 file changed, 133 deletions(-) delete mode 100644 htdocs/install/etape3.php diff --git a/htdocs/install/etape3.php b/htdocs/install/etape3.php deleted file mode 100644 index 810b2be4eb3..00000000000 --- a/htdocs/install/etape3.php +++ /dev/null @@ -1,133 +0,0 @@ - - - - - - - -REMPLACE PAR ETAPE 2 - - - -TODO SUPPRIMER LE FICHIER - - - - - - - - - - - - - - - - - - - -Dolibarr Install - - -
-
- -Installation de Dolibarr - Etape $etape/$etapes"; - -$conf = "../conf/conf.php"; -if (file_exists($conf)) -{ - include($conf); -} -require ($dolibarr_main_document_root . "/lib/mysql.lib.php"); -require ($dolibarr_main_document_root . "/conf/conf.class.php"); - -if ($HTTP_POST_VARS["action"] == "set") -{ - umask(0); - print '

Paramétrage des constantes

'; - - print ''; - $error=0; - - $conf = new Conf(); - $conf->db->host = $dolibarr_main_db_host; - $conf->db->name = $dolibarr_main_db_name; - $conf->db->user = $dolibarr_main_db_user; - $conf->db->pass = $dolibarr_main_db_pass; - $db = new DoliDb(); - $ok = 0; - if ($db->connected == 1) - { - $sql[0] = "REPLACE INTO llx_const SET name = 'FAC_OUTPUTDIR', value='".$dolibarr_main_document_root."/document/facture', visible=0, type='chaine'"; - - $sql[1] = "REPLACE INTO llx_const SET name = 'FAC_OUTPUT_URL', value='".$dolibarr_main_url_root."/document/facture', visible=0, type='chaine'"; - - $sql[2] = "REPLACE INTO llx_const SET name = 'PROPALE_OUTPUTDIR', value='".$dolibarr_main_document_root."/document/propale', visible=0, type='chaine'"; - - $sql[3] = "REPLACE INTO llx_const SET name = 'PROPALE_OUTPUT_URL', value='".$dolibarr_main_url_root."/document/propale', visible=0, type='chaine'"; - - $sql[4] = "REPLACE INTO llx_const SET name = 'FICHEINTER_OUTPUTDIR', value='".$dolibarr_main_document_root."/document/ficheinter', visible=0, type='chaine'"; - - $sql[5] = "REPLACE INTO llx_const SET name = 'FICHEINTER_OUTPUT_URL', value='".$dolibarr_main_url_root."/document/ficheinter', visible=0, type='chaine'"; - - $sql[6] = "REPLACE INTO llx_const SET name = 'SOCIETE_OUTPUTDIR', value='".$dolibarr_main_document_root."/document/societe', visible=0, type='chaine'"; - - $sql[7] = "REPLACE INTO llx_const SET name = 'SOCIETE_OUTPUT_URL', value='".$dolibarr_main_url_root."/document/societe', visible=0, type='chaine'"; - $result = 0; - - } - - for ($i=0; $i < sizeof($sql);$i++) - { - - print ""; - - if ($db->query($sql[$i])) - { - print ""; - $result++; - } - else - { - print ""; - } - } - - if ($result == sizeof($sql)) - { - print '
Définitions des constantes ".($i+1)."/8OK
Erreur
'; - - if ($error == 0) - { - - $db->query("DELETE FROM llx_const WHERE name='MAIN_NOT_INSTALLED'"); - - } - } - else - { - print ''; - print $db->error(); - } - $db->close(); -} - -?> -
-
-
-
- - -
- -
- -