[ Index ] |
|
Code source de e107 0.7.8 |
1 <?php 2 3 /* 4 + ----------------------------------------------------------------------------+ 5 | e107 website system 6 | 7 | ©Steve Dunstan 2001-2002 8 | http://e107.org 9 | jalist@e107.org 10 | 11 | Released under the terms and conditions of the 12 | GNU General Public License (http://gnu.org). 13 | 14 | $Source: /cvsroot/e107/e107_0.7/e107_plugins/login_menu/config.php,v $ 15 | $Revision: 1.4 $ 16 | $Date: 2006/11/04 19:09:24 $ 17 | $Author: e107coders $ 18 +----------------------------------------------------------------------------+ 19 */ 20 21 $eplug_admin = TRUE; 22 require_once ("../../class2.php"); 23 if (!getperms("4")) { header("location:".e_BASE."index.php"); exit ;} 24 25 include_lan(e_PLUGIN."login_menu/languages/".e_LANGUAGE.".php"); 26 require_once(e_ADMIN."auth.php"); 27 28 if ($_POST['update_menu']) { 29 unset($menu_pref['login_menu']); 30 $menu_pref['login_menu'] = $_POST['pref']; 31 $tmp = addslashes(serialize($menu_pref)); 32 $sql->db_Update("core", "e107_value='$tmp' WHERE e107_name='menu_pref' "); 33 $ns->tablerender("", '<div style=\'text-align:center\'><b>'.LAN_SETSAVED.'</b></div>'); 34 } 35 36 $text = ' 37 <div style="text-align:center"> 38 <form action="'.e_SELF.'?'.e_QUERY.'" method="post"> 39 <table style="width:85%" class="fborder" > 40 41 <tr> 42 <td style="width:30%" class="forumheader3">'.LOGIN_MENU_L31.'</td> 43 <td style="width:70%" class="forumheader3"> 44 <input type="checkbox" name="pref[new_news]" value="1"'.($menu_pref['login_menu']['new_news'] == 1 ? ' checked="checked"' : '').' /> 45 </td> 46 </tr> 47 48 <tr> 49 <td style="width:30%" class="forumheader3">'.LOGIN_MENU_L32.'</td> 50 <td style="width:70%" class="forumheader3"> 51 <input type="checkbox" name="pref[new_articles]" value="1"'.($menu_pref['login_menu']['new_articles'] == 1 ? ' checked="checked"' : '').' /> 52 </td> 53 </tr> 54 55 <tr> 56 <td style="width:30%" class="forumheader3">'.LOGIN_MENU_L33.'</td> 57 <td style="width:70%" class="forumheader3"> 58 <input type="checkbox" name="pref[new_chatbox]" value="1"'.($menu_pref['login_menu']['new_chatbox'] == 1 ? ' checked="checked"' : '').' /> 59 </td> 60 </tr> 61 62 <tr> 63 <td style="width:30%" class="forumheader3">'.LOGIN_MENU_L34.'</td> 64 <td style="width:70%" class="forumheader3"> 65 <input type="checkbox" name="pref[new_comments]" value="1"'.($menu_pref['login_menu']['new_comments'] == 1 ? ' checked="checked"' : '').' /> 66 </td> 67 </tr> 68 69 70 <tr> 71 <td style="width:30%" class="forumheader3">'.LOGIN_MENU_L35.'</td> 72 <td style="width:70%" class="forumheader3"> 73 <input type="checkbox" name="pref[new_forum]" value="1"'.($menu_pref['login_menu']['new_forum'] == 1 ? ' checked="checked"' : '').' /> 74 </td> 75 </tr> 76 77 <tr> 78 <td style="width:30%" class="forumheader3">'.LOGIN_MENU_L36.'</td> 79 <td style="width:70%" class="forumheader3"> 80 <input type="checkbox" name="pref[new_members]" value="1"'.($menu_pref['login_menu']['new_members'] == 1 ? ' checked="checked"' : '').' /> 81 </td> 82 </tr> 83 84 <tr> 85 <td colspan="2" class="forumheader" style="text-align: center;"><input class="button" type="submit" name="update_menu" value="'.LAN_SAVE.'" /></td> 86 </tr> 87 </table> 88 </form> 89 </div> 90 '; 91 92 $ns->tablerender(LOGIN_MENU_L41, $text); 93 94 require_once(e_ADMIN."footer.php"); 95 96 ?>
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 |