X-Git-Url: http://git.cyclocoop.org/?p=velocampus%2Fweb%2Fwww.git;a=blobdiff_plain;f=www%2Fecrire%2Finstall%2Fetape_ldap5.php;fp=www%2Fecrire%2Finstall%2Fetape_ldap5.php;h=d4e044c588f61a590a8670baa9da8ef09701f551;hp=0000000000000000000000000000000000000000;hb=80b4d3e85f78d402ed2e73f8f5d1bf4c19962eed;hpb=aaf970bf4cdaf76689ecc10609048e18d073820c diff --git a/www/ecrire/install/etape_ldap5.php b/www/ecrire/install/etape_ldap5.php new file mode 100644 index 0000000..d4e044c --- /dev/null +++ b/www/ecrire/install/etape_ldap5.php @@ -0,0 +1,86 @@ + $v ) { + $nom = 'ldap_' . $champ; + $val = trim(_request($nom)); + if (preg_match('/^\w*$/', $val)) { + if ($val) $val = _q($val); + } else $val = "array(" . _q(preg_split('/\W+/', $val)) . ')';; + if ($val) $res .= "'$champ' => " . $val . ","; + } + $conn .= "\$GLOBALS['ldap_champs'] = array($res);\n"; + + install_fichier_connexion(_DIR_CONNECT . _FILE_LDAP, $conn); +} + +function etape_ldap5_suite() +{ + echo install_debut_html('AUTO', ' onload="document.getElementById(\'suivant\').focus();return false;"'); + + echo info_etape(_T('info_ldap_ok'), info_progression_etape(5,'etape_ldap','install/'), _T('info_terminer_installation')); + + echo generer_form_ecrire('install', ( + "" . + "" + . bouton_suivant())); + + echo install_fin_html(); +} + + +?>