summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandi <andi@splitbrain.org>2005-02-03 16:17:21 +0100
committerandi <andi@splitbrain.org>2005-02-03 16:17:21 +0100
commit2965ea2f88fd50ea6635f0c73199443c3aaa5c11 (patch)
treea67f2d3b5d82cb2dd979fe4360b9708b74e1ed14
parent825ec23293e024eec12550b41e87d006e9419248 (diff)
downloadrpg-2965ea2f88fd50ea6635f0c73199443c3aaa5c11.tar.gz
rpg-2965ea2f88fd50ea6635f0c73199443c3aaa5c11.tar.bz2
check for needed extensions in auth modules
darcs-hash:20050203151721-9977f-7f2f59d9fbf175bdcec8ed583167a67d55121016.gz
-rw-r--r--inc/auth_ldap.php4
-rw-r--r--inc/auth_mysql.php4
2 files changed, 8 insertions, 0 deletions
diff --git a/inc/auth_ldap.php b/inc/auth_ldap.php
index 825a13ae3..3ae3e49a5 100644
--- a/inc/auth_ldap.php
+++ b/inc/auth_ldap.php
@@ -10,6 +10,10 @@
* @author Andreas Gohr <andi@splitbrain.org>
*/
+//check for LDAP extension on load
+if(!function_exists('ldap_connect'))
+ msg("LDAP extension not found",-1);
+
/**
* Connect to the LDAP server
*
diff --git a/inc/auth_mysql.php b/inc/auth_mysql.php
index 46e175c17..440e55411 100644
--- a/inc/auth_mysql.php
+++ b/inc/auth_mysql.php
@@ -8,6 +8,10 @@
* @author Andreas Gohr <andi@splitbrain.org>
*/
+//check for MySQL extension on load
+if(!function_exists('mysql_connect'))
+ msg("MySQL extension not found",-1);
+
/**
* Execute SQL
*