[ Index ] |
|
Code source de SPIP 1.9.2c |
1 <?php 2 3 /***************************************************************************\ 4 * SPIP, Systeme de publication pour l'internet * 5 * * 6 * Copyright (c) 2001-2007 * 7 * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James * 8 * * 9 * Ce programme est un logiciel libre distribue sous licence GNU/GPL. * 10 * Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne. * 11 \***************************************************************************/ 12 13 // http://doc.spip.org/@inc_install_ldap1 14 function install_etape_ldap1_dist() 15 { 16 global $spip_lang_right; 17 18 $protocole_ldap = 3; // on essaie 2 en cas d'echec 19 $adresse_ldap = 'localhost'; 20 $port_ldap = 389; 21 22 // Recuperer les anciennes donnees (si presentes) 23 if (@file_exists(_FILE_CONNECT_INS . _FILE_TMP . '.php')) { 24 $s = @join('', @file(_FILE_CONNECT_INS . _FILE_TMP . '.php')); 25 if (ereg('ldap_connect\("(.*)","(.*)"\)', $s, $regs)) { 26 $adresse_ldap = $regs[1]; 27 $port_ldap = $regs[2]; 28 } 29 } 30 echo install_debut_html(); 31 32 echo info_etape(_T('titre_connexion_ldap'), _T('entree_informations_connexion_ldap')); 33 34 echo generer_url_post_ecrire('install'); 35 echo "<input type='hidden' name='etape' value='ldap2' />"; 36 37 echo fieldset(_T('entree_adresse_annuaire'), 38 array( 39 'adresse_ldap' => array( 40 'label' => _T('texte_adresse_annuaire_1'), 41 'valeur' => $adresse_ldap 42 ), 43 'port_ldap' => array( 44 'label' => _T('entree_port_annuaire').'<br />'._T('texte_port_annuaire'), 45 'valeur' => $port_ldap 46 ), 47 'tls_ldap' => array( 48 'label' => '<b>'._T('tls_ldap').'</b>', 49 'valeur' => 'non', 50 'alternatives' => array( 51 'non' => _T('item_non'), 52 'oui' => _T('item_oui') 53 ) 54 ), 55 'protocole_ldap' => array( 56 'label' => _T('protocole_ldap'), 57 'valeur' => $protocole_ldap, 58 'alternatives' => array( 59 '3' => '3', 60 '2' => '2' 61 ) 62 ) 63 ) 64 ); 65 66 echo '<p>'._T('texte_acces_ldap_anonyme_1').'</p>'; 67 echo fieldset(_T('connexion_ldap'), 68 array( 69 'login_ldap' => array( 70 'label' => _T('texte_login_ldap_1'), 71 'valeur' => '' 72 ), 73 'pass_ldap' => array( 74 'label' => _T('entree_passe_ldap'), 75 'valeur' => '' 76 ) 77 ) 78 ); 79 80 echo bouton_suivant(); 81 echo "</form>"; 82 83 echo install_fin_html(); 84 } 85 86 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Wed Nov 21 10:20:27 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |