[ Index ] |
|
Code source de e107 0.7.8 |
1 <?php 2 /* 3 + ----------------------------------------------------------------------------+ 4 | e107 website system 5 | 6 | ©Steve Dunstan 2001-2002 7 | http://e107.org 8 | jalist@e107.org 9 | 10 | Released under the terms and conditions of the 11 | GNU General Public License (http://gnu.org). 12 | 13 | $Source: /cvsroot/e107/e107_0.7/e107_plugins/alt_auth/alt_auth_conf.php,v $ 14 | $Revision: 1.5 $ 15 | $Date: 2006/10/18 16:34:48 $ 16 | $Author: mcfly_e107 $ 17 +----------------------------------------------------------------------------+ 18 */ 19 $eplug_admin = true; 20 require_once ("../../class2.php"); 21 if(!getperms("P")){header("location:".e_BASE."index.php"); exit; } 22 require_once(e_HANDLER."form_handler.php"); 23 require_once(e_ADMIN."auth.php"); 24 include_lan(e_PLUGIN."alt_auth/languages/".e_LANGUAGE."/lan_alt_auth_conf.php"); 25 define("ALT_AUTH_ACTION", "main"); 26 require_once(e_PLUGIN."alt_auth/alt_auth_adminmenu.php"); 27 28 if(isset($_POST['updateprefs'])) 29 { 30 $pref['auth_method'] = $_POST['auth_method']; 31 $pref['auth_noconn'] = intval($_POST['auth_noconn']); 32 $pref['auth_nouser'] = intval($_POST['auth_nouser']); 33 save_prefs(); 34 header("location:".e_SELF); 35 exit; 36 } 37 38 $authlist = alt_auth_get_authlist(); 39 40 $auth_dropdown = "<select class='tbox' name='auth_method'>\n"; 41 foreach($authlist as $a) 42 { 43 $s = ($pref['auth_method'] == $a) ? "selected='selected'" : ""; 44 $auth_dropdown .= "<option value='{$a}' {$s}>".$a."</option>\n"; 45 } 46 $auth_dropdown .= "</select>\n"; 47 48 if(isset($message)) 49 { 50 $ns -> tablerender("", "<div style='text-align:center'><b>".$message."</b></div>"); 51 } 52 53 $text = " 54 <div style='text-align:center'> 55 <form method='post' action='".e_SELF."'> 56 <table style='width:95%' class='fborder' cellspacing='1' cellpadding='0'> 57 58 <tr> 59 <td style='width:70%' class='forumheader3'>".LAN_ALT_1.": </td> 60 <td style='width:30%; text-align:right;' class='forumheader3'>". 61 $auth_dropdown." 62 </td> 63 </tr> 64 65 <tr> 66 <td style='width:70%' class='forumheader3'>".LAN_ALT_6.":<br /> 67 <div class='smalltext'>".LAN_ALT_7."</div> 68 </td> 69 <td style='width:30%; text-align:right;' class='forumheader3'> 70 <select class='tbox' name='auth_noconn'>"; 71 $sel = (isset($pref['auth_noconn']) && $pref['auth_noconn'] ? "" : " selected = 'selected' "); 72 $text .= "<option value='0' {$sel} >".LAN_ALT_FAIL."</option>"; 73 $sel = (isset($pref['auth_noconn']) && $pref['auth_noconn'] ? " selected = 'selected' " : ""); 74 $text .= "<option value='1' {$sel} >".LAN_ALT_FALLBACK."</option> 75 </select> 76 </td> 77 </tr> 78 79 <tr> 80 <td style='width:70%' class='forumheader3'>".LAN_ALT_8.":<br /> 81 <div class='smalltext'>".LAN_ALT_9."</div> 82 </td> 83 <td style='width:30%; text-align:right;' class='forumheader3'> 84 <select class='tbox' name='auth_nouser'>"; 85 $sel = (isset($pref['auth_nouser']) && $pref['auth_nouser'] ? "" : " selected = 'selected' "); 86 $text .= "<option value='0' {$sel} >".LAN_ALT_FAIL."</option>"; 87 $sel = (isset($pref['auth_nouser']) && $pref['auth_nouser'] ? " selected = 'selected' " : ""); 88 $text .= "<option value='1' {$sel} >".LAN_ALT_FALLBACK."</option> 89 </select> 90 </td> 91 </tr> 92 93 <tr style='vertical-align:top'> 94 <td colspan='2' style='text-align:center' class='forumheader3'> 95 <br /> 96 <input class='button' type='submit' name='updateprefs' value='".LAN_ALT_2."' /> 97 </td> 98 </tr> 99 100 </table> 101 </form> 102 </div>"; 103 104 $ns -> tablerender("<div style='text-align:center'>".LAN_ALT_3."</div>", $text); 105 106 107 require_once(e_ADMIN."footer.php"); 108 109 function alt_auth_conf_adminmenu() 110 { 111 alt_auth_adminmenu(); 112 } 113 114 115 ?>
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 |