[ Index ] |
|
Code source de e107 0.7.8 |
1 <?php 2 3 function alt_auth_get_authlist() 4 { 5 $authlist = array("e107"); 6 $handle=opendir(e_PLUGIN."alt_auth"); 7 while ($file = readdir($handle)) 8 { 9 if(preg_match("/^(.*)_auth\.php/",$file,$match)) 10 { 11 $authlist[] = $match[1]; 12 } 13 } 14 closedir($handle); 15 return $authlist; 16 } 17 18 function alt_auth_adminmenu() 19 { 20 global $authlist; 21 echo " "; 22 if(!is_array($authlist)) 23 { 24 $authlist = alt_auth_get_authlist(); 25 } 26 define("ALT_AUTH_ACTION", "main"); 27 28 $var['main']['text'] = "Main config"; 29 $var['main']['link'] = e_PLUGIN."alt_auth/alt_auth_conf.php"; 30 show_admin_menu("alt auth", ALT_AUTH_ACTION, $var); 31 $var = array(); 32 foreach($authlist as $a) 33 { 34 if($a != 'e107') 35 { 36 $var[$a]['text'] = "Config {$a}"; 37 $var[$a]['link'] = e_PLUGIN."alt_auth/{$a}_conf.php"; 38 } 39 } 40 show_admin_menu("Auth methods", ALT_AUTH_ACTION, $var); 41 } 42 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Apr 1 01:23:32 2007 | par Balluche grâce à PHPXref 0.7 |