/[ludap]/ludap/index.php
ViewVC logotype

Diff of /ludap/index.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by mose, Sun Aug 17 22:34:14 2003 UTC revision 1.7 by mose, Sun Aug 17 23:05:09 2003 UTC
# Line 23  file:        index.php Line 23  file:        index.php
23  description: main processing file for LuDAP  description: main processing file for LuDAP
24  */  */
25    
26  if (!extension_loaded('ldap')) {  
27          if (!dl('ldap.so')) {  if (!function_exists("ldap_connect")) {
28                  echo "LDAP not enabled with PHP. Please fix it.";          if (!extension_loaded('ldap')) {
29                  die;                  if (strtoupper(substr(PHP_OS, 0,3) == 'WIN')) {
30                            $dllso = "ldap.dll";
31                    } else {
32                            $dllso = "ldap.so";
33                    }
34                    if (!dl($dllso)) die("LDAP support not compiled in PHP, and dynamic LDAP module $ddlso unable to load.");
35            } else {
36                    die("LDAP module found, but not working.");
37          }          }
38  }  }
39    
40  include './ludap.lib.php';  include 'ludap.lib.php';
41  $ludap_version = "0.5";  $ludap_version = "0.5";
42  $ludap_conf = '/etc/ludap.conf';  $ludap_conf = '/etc/ludap.conf';
43  $conf = readconf($ludap_conf);  $conf = readconf($ludap_conf);

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26