X-Git-Url: http://git.cyclocoop.org/?p=ptitvelo%2Fweb%2Fwww.git;a=blobdiff_plain;f=www%2Fecrire%2Finstall%2Fetape_3.php;h=5c706ff7cc74018c9440f7094a60ae935bcc63dd;hp=adbaf4732532dbeb161f4d8416aca294d6398374;hb=e847eea4a82a7396dd0abf860f9b30d654f38629;hpb=52cf8ed924d5dcd0c28dde4b6c3196be6ec2d4f7 diff --git a/www/ecrire/install/etape_3.php b/www/ecrire/install/etape_3.php index adbaf47..5c706ff 100644 --- a/www/ecrire/install/etape_3.php +++ b/www/ecrire/install/etape_3.php @@ -3,7 +3,7 @@ /***************************************************************************\ * SPIP, Systeme de publication pour l'internet * * * - * Copyright (c) 2001-2012 * + * Copyright (c) 2001-2014 * * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James * * * * Ce programme est un logiciel libre distribue sous licence GNU/GPL. * @@ -217,12 +217,12 @@ function install_premier_auteur($email, $login, $nom, $pass, $hidden, $auteur_ob . fieldset(_T('entree_identifiants_connexion'), array( 'login' => array( - 'label' => ""._T('entree_login')."
\n"._T('info_plus_trois_car')."\n", + 'label' => ""._T('entree_login')."
\n"._T('info_login_trop_court_car_pluriel', array('nb' => _LOGIN_TROP_COURT))."\n", 'valeur' => $login, 'required' => $auteur_obligatoire, ), 'pass' => array( - 'label' => ""._T('entree_mot_passe')."
\n"._T('info_plus_cinq_car_2')."\n", + 'label' => ""._T('entree_mot_passe')."
\n"._T('info_passe_trop_court_car_pluriel', array('nb' => _PASS_LONGUEUR_MINI))."\n", 'valeur' => $pass, 'required' => $auteur_obligatoire, ), @@ -281,8 +281,8 @@ function install_etape_3_dist() } else { $res = ''; - list($adresse_db, $login_db, $pass_db, $sel_db, $server_db) - = analyse_fichier_connection(_FILE_CONNECT_TMP); + list($adresse_db, $login_db, $pass_db, $sel_db, $server_db) = analyse_fichier_connection(_FILE_CONNECT_TMP); + $GLOBALS['connexions'][$server_db] = spip_connect_db($adresse_db, $sel_db, $login_db, $pass_db, $sel_db, $server_db); } if (!$res) { @@ -300,7 +300,7 @@ function install_etape_3_dist() . (defined('_INSTALL_NAME_DB') ? '' : "\n"); - $auteur_obligatoire = !sql_countsel('spip_auteurs','','','',$server_db); + $auteur_obligatoire = ($ldap_present?0:!sql_countsel('spip_auteurs','','','',$server_db)); $res = "
" . _T('info_base_installee')