[geeklog-cvs] Geeklog-1.x/system lib-security.php,1.66,1.67

Dirk Haun dhaun at qs1489.pair.com
Sun Mar 9 06:23:15 EDT 2008


Update of /cvsroot/geeklog/Geeklog-1.x/system
In directory qs1489.pair.com:/tmp/cvs-serv99049/system

Modified Files:
	lib-security.php 
Log Message:
Moved collection of remote auth modules to a separate function; only display the "Service" dropdown if necessary


Index: lib-security.php
===================================================================
RCS file: /cvsroot/geeklog/Geeklog-1.x/system/lib-security.php,v
retrieving revision 1.66
retrieving revision 1.67
diff -C2 -d -r1.66 -r1.67
*** lib-security.php	9 Mar 2008 09:33:15 -0000	1.66
--- lib-security.php	9 Mar 2008 10:23:13 -0000	1.67
***************
*** 859,862 ****
--- 859,888 ----
  
  /**
+ * Return available modules for Remote Authentication
+ *
+ * @return   array   Names of available remote authentication modules
+ *
+ */
+ function SEC_collectRemoteAuthenticationModules()
+ {
+     global $_CONF;
+ 
+     $modules = array();
+ 
+     $modulespath = $_CONF['path_system'] . 'classes/authentication/';
+     if (is_dir($modulespath)) {
+         $folder = opendir($modulespath);
+         while (($filename = @readdir($folder)) !== false) {
+             $pos = strpos($filename, '.auth.class.php');
+             if ($pos && (substr($filename, strlen($filename) - 4) == '.php')) {
+                 $modules[] = substr($filename, 0, $pos);
+             }
+         }
+     }
+ 
+     return $modules;
+ }
+ 
+ /**
    * Add user to a group
    *




More information about the geeklog-cvs mailing list