[ Index ] |
|
Code source de Dolibarr 2.0.1 |
1 <?php 2 /* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org> 3 * Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> 4 * Copyright (C) 2004 Sebastien DiCintio <sdicintio@ressource-toi.org> 5 * Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net> 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation; either version 2 of the License, or 10 * (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 20 * 21 * $Id: etape4.php,v 1.17.2.1 2006/01/04 16:19:36 eldy Exp $ 22 * $Source: /cvsroot/dolibarr/dolibarr/htdocs/install/etape4.php,v $ 23 */ 24 25 /** 26 \file htdocs/install/etape4.php 27 \brief Demande le login et mot de passe de l'administrateur Dolibarr 28 \version $Revision: 1.17.2.1 $ 29 */ 30 31 32 include_once ("./inc.php"); 33 34 $setuplang=isset($_POST["selectlang"])?$_POST["selectlang"]:(isset($_GET["selectlang"])?$_GET["selectlang"]:'auto'); 35 $langs->setDefaultLang($setuplang); 36 37 $langs->load("admin"); 38 $langs->load("install"); 39 40 41 pHeader($langs->trans("AdminAccountCreation"),"etape5"); 42 43 if (file_exists($conffile)) 44 { 45 include_once($conffile); 46 } 47 48 if($dolibarr_main_db_type == "mysql") 49 require_once($dolibarr_main_document_root . "/lib/mysql.lib.php"); 50 else 51 require_once($dolibarr_main_document_root . "/lib/pgsql.lib.php"); 52 53 54 55 require_once($dolibarr_main_document_root . "/conf/conf.class.php"); 56 57 print '<table cellspacing="0" cellpadding="2" width="100%">'; 58 59 $err=0; 60 61 $conf = new Conf(); 62 $conf->db->type = $dolibarr_main_db_type; 63 $conf->db->host = $dolibarr_main_db_host; 64 $conf->db->name = $dolibarr_main_db_name; 65 $conf->db->user = $dolibarr_main_db_user; 66 $conf->db->pass = $dolibarr_main_db_pass; 67 68 $db = new DoliDb($conf->db->type,$conf->db->host,$conf->db->user,$conf->db->pass,$conf->db->name); 69 $ok = 0; 70 if ($db->ok == 1) 71 { 72 73 print '<tr><td>'.$langs->trans("DolibarrAdminLogin").' :</td><td>'; 74 print '<input name="login"></td></tr>'; 75 print '<tr><td>'.$langs->trans("Password").' :</td><td>'; 76 print '<input type="password" name="pass"></td></tr>'; 77 print '<tr><td>'.$langs->trans("PasswordAgain").' :</td><td>'; 78 print '<input type="password" name="pass_verif"></td></tr>'; 79 print '</table>'; 80 81 if (isset($_GET["error"]) && $_GET["error"] == 1) 82 { 83 print '<br>'; 84 print '<div class="error">'.$langs->trans("PasswordsMismatch").'</div>'; 85 } 86 87 if (isset($_GET["error"]) && $_GET["error"] == 2) 88 { 89 print '<br>'; 90 print '<div class="error">'; 91 print $langs->trans("PleaseTypePassword"); 92 print '</div>'; 93 } 94 95 if (isset($_GET["error"]) && $_GET["error"] == 3) 96 { 97 print '<br>'; 98 print '<div class="error">'.$langs->trans("PleaseTypeALogin").'</div>'; 99 } 100 101 } 102 103 $db->close(); 104 105 pFooter($err,$setuplang); 106 107 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 12:29:37 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |