forked from Wavyzz/dolibarr
ajout commentaire pour doxygen
This commit is contained in:
90
doc/dev/php/html/ldap_8lib_8php-source.html
Normal file
90
doc/dev/php/html/ldap_8lib_8php-source.html
Normal file
@@ -0,0 +1,90 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
|
||||
<title>dolibarr: htdocs/lib/ldap.lib.php Source File</title>
|
||||
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
||||
</head><body>
|
||||
<!-- G<>n<EFBFBD>r<EFBFBD> par Doxygen 1.3.7 -->
|
||||
<div class="qindex"><a class="qindex" href="index.html">Page principale</a> | <a class="qindex" href="files.html">Liste des fichiers</a> | <a class="qindex" href="globals.html">Membres de fichier</a></div>
|
||||
<h1>htdocs/lib/ldap.lib.php</h1><a href="ldap_8lib_8php.html">Aller <20> la documentation de ce fichier.</a><pre class="fragment"><div>00001 <?PHP
|
||||
00002 <span class="comment">/* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org></span>
|
||||
00003 <span class="comment"> * Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be></span>
|
||||
00004 <span class="comment"> *</span>
|
||||
00005 <span class="comment"> * This program is free software; you can redistribute it and/or modify</span>
|
||||
00006 <span class="comment"> * it under the terms of the GNU General Public License as published by</span>
|
||||
00007 <span class="comment"> * the Free Software Foundation; either version 2 of the License, or</span>
|
||||
00008 <span class="comment"> * (at your option) any later version.</span>
|
||||
00009 <span class="comment"> *</span>
|
||||
00010 <span class="comment"> * This program is distributed in the hope that it will be useful,</span>
|
||||
00011 <span class="comment"> * but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
|
||||
00012 <span class="comment"> * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the</span>
|
||||
00013 <span class="comment"> * GNU General Public License for more details.</span>
|
||||
00014 <span class="comment"> *</span>
|
||||
00015 <span class="comment"> * You should have received a copy of the GNU General Public License</span>
|
||||
00016 <span class="comment"> * along with this program; if not, write to the Free Software</span>
|
||||
00017 <span class="comment"> * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.</span>
|
||||
00018 <span class="comment"> * or see http://www.gnu.org/</span>
|
||||
00019 <span class="comment"> *</span>
|
||||
00020 <span class="comment"> * $Id$</span>
|
||||
00021 <span class="comment"> * $Source$</span>
|
||||
00022 <span class="comment"> *</span>
|
||||
00023 <span class="comment"> */</span>
|
||||
00024
|
||||
<a name="l00040"></a><a class="code" href="ldap_8lib_8php.html#a0">00040</a> function <a class="code" href="ldap_8lib_8php.html#a0">dolibarr_ldap_connect</a>()
|
||||
00041 {
|
||||
00042 $ldapconnect = ldap_connect(LDAP_SERVER_HOST);
|
||||
00043
|
||||
00044 <span class="keywordflow">return</span> $ldapconnect;
|
||||
00045 }
|
||||
00046
|
||||
<a name="l00054"></a><a class="code" href="ldap_8lib_8php.html#a1">00054</a> function <a class="code" href="ldap_8lib_8php.html#a1">dolibarr_ldap_bind</a>($ds)
|
||||
00055 {
|
||||
00056 <span class="keywordflow">if</span> (defined(<span class="stringliteral">"LDAP_SERVER_PASS"</span>) && LDAP_SERVER_DN && LDAP_SERVER_PASS)
|
||||
00057 {
|
||||
00058 $ldapbind = ldap_bind($ds, LDAP_SERVER_DN, LDAP_SERVER_PASS);
|
||||
00059 }
|
||||
00060
|
||||
00061 <span class="keywordflow">return</span> $ldapbind;
|
||||
00062 }
|
||||
00063
|
||||
<a name="l00070"></a><a class="code" href="ldap_8lib_8php.html#a2">00070</a> function <a class="code" href="ldap_8lib_8php.html#a2">dolibarr_ldap_unbind</a>($ds)
|
||||
00071 {
|
||||
00072
|
||||
00073 $ldapunbind = ldap_unbind($ds);
|
||||
00074
|
||||
00075 <span class="keywordflow">return</span> $ldapunbind;
|
||||
00076 }
|
||||
00077
|
||||
<a name="l00084"></a><a class="code" href="ldap_8lib_8php.html#a3">00084</a> function <a class="code" href="ldap_8lib_8php.html#a3">dolibarr_ldap_getversion</a>($ds)
|
||||
00085 {
|
||||
00086 $version = 0;
|
||||
00087
|
||||
00088 ldap_get_option($ds, LDAP_OPT_PROTOCOL_VERSION, $version);
|
||||
00089
|
||||
00090 <span class="keywordflow">return</span> $version;
|
||||
00091 }
|
||||
00092
|
||||
<a name="l00101"></a><a class="code" href="ldap_8lib_8php.html#a4">00101</a> function <a class="code" href="ldap_8lib_8php.html#a4">dolibarr_ldap_setversion</a>($ds,$version)
|
||||
00102 {
|
||||
00103 $ldapsetversion = ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, $version);
|
||||
00104
|
||||
00105 <span class="keywordflow">return</span> $ldapsetversion;
|
||||
00106 }
|
||||
00107
|
||||
<a name="l00114"></a><a class="code" href="ldap_8lib_8php.html#a5">00114</a> function <a class="code" href="ldap_8lib_8php.html#a5">dolibarr_ldap_unacc</a>($str)
|
||||
00115 {
|
||||
00116 $stu = ereg_replace(<span class="stringliteral">"<22>"</span>,<span class="stringliteral">"e"</span>,$str);
|
||||
00117 $stu = ereg_replace(<span class="stringliteral">"<22>"</span>,<span class="stringliteral">"e"</span>,$stu);
|
||||
00118 $stu = ereg_replace(<span class="stringliteral">"<22>"</span>,<span class="stringliteral">"e"</span>,$stu);
|
||||
00119 $stu = ereg_replace(<span class="stringliteral">"<22>"</span>,<span class="stringliteral">"a"</span>,$stu);
|
||||
00120 $stu = ereg_replace(<span class="stringliteral">"<22>"</span>,<span class="stringliteral">"c"</span>,$stu);
|
||||
00121 $stu = ereg_replace(<span class="stringliteral">"<22>"</span>,<span class="stringliteral">"i"</span>,$stu);
|
||||
00122 $stu = ereg_replace(<span class="stringliteral">"<22>"</span>,<span class="stringliteral">"a"</span>,$stu);
|
||||
00123 <span class="keywordflow">return</span> $stu;
|
||||
00124 }
|
||||
00125
|
||||
00126 ?>
|
||||
</div></pre><hr size="1"><address style="align: right;"><small>G<EFBFBD>n<EFBFBD>r<EFBFBD> le Thu Jul 15 14:51:57 2004 pour dolibarr par
|
||||
<a href="http://www.doxygen.org/index.html">
|
||||
<img src="doxygen.png" alt="doxygen" align="middle" border=0 ></a> 1.3.7 </small></address>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user