[ 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/newforumposts_main/admin_config.php,v $ 14 | $Revision: 1.3 $ 15 | $Date: 2005/01/27 19:53:09 $ 16 | $Author: streaky $ 17 +----------------------------------------------------------------------------+ 18 */ 19 require_once ("../../class2.php"); 20 require_once(e_HANDLER."userclass_class.php"); 21 22 $lan_file = e_PLUGIN."newforumposts_main/languages/".e_LANGUAGE.".php"; 23 if (file_exists($lan_file)) { 24 require_once($lan_file); 25 } else { 26 require_once(e_PLUGIN."newforumposts_main/languages/English.php"); 27 } 28 if (!getperms("1")) { 29 header("location:".e_BASE."index.php"); 30 exit ; 31 } 32 require_once(e_ADMIN."auth.php"); 33 34 if (isset($_POST['updatesettings'])) { 35 $pref['nfp_display'] = $_POST['nfp_display']; 36 $pref['nfp_caption'] = $_POST['nfp_caption']; 37 $pref['nfp_amount'] = $_POST['nfp_amount']; 38 $pref['nfp_layer'] = $_POST['nfp_layer']; 39 $pref['nfp_posts'] = $_POST['nfp_posts']; 40 $pref['nfp_layer_height'] = ($_POST['nfp_layer_height'] ? $_POST['nfp_layer_height'] : 200); 41 save_prefs(); 42 $message = "".NFPM_L14.""; 43 } 44 45 if ($message) { 46 $ns->tablerender("", "<div style='text-align:center'><b>$message</b></div>"); 47 } 48 49 50 51 $text = "<div style='text-align:center'> 52 <form method='post' action='".e_SELF."?".e_QUERY."' id='menu_conf_form'> 53 <table style='width:85%' class='fborder'> 54 55 <tr> 56 <td style='width:40%' class='forumheader3'>".NFPM_L4."</td> 57 <td style='width:60%' class='forumheader3'> 58 <select class='tbox' name='nfp_display'>" .($pref['nfp_display'] == "0" ? "<option value='0' selected='selected'>".NFPM_L5."</option>" : "<option value='0'>".NFPM_L5."</option>") 59 .($pref['nfp_display'] == "1" ? "<option value='1' selected='selected'>".NFPM_L6."</option>" : "<option value='1'>".NFPM_L6."</option>") 60 .($pref['nfp_display'] == "2" ? "<option value='2' selected='selected'>".NFPM_L7."</option>" : "<option value='2'>".NFPM_L7."</option>") 61 ."</select> 62 </td> 63 </tr> 64 65 <tr> 66 <td style='width:40%' class='forumheader3'>".NFPM_L8.": </td> 67 <td style='width:60%' class='forumheader3'> 68 <input class='tbox' type='text' name='nfp_caption' size='20' value='".$pref['nfp_caption']."' maxlength='100' /> 69 </td> 70 </tr> 71 72 <tr> 73 <td style='width:40%' class='forumheader3'>".NFPM_L9.": </td> 74 <td style='width:60%' class='forumheader3'> 75 <input class='tbox' type='text' name='nfp_amount' size='6' value='".$pref['nfp_amount']."' maxlength='3' /> 76 </td> 77 </tr> 78 79 <tr> 80 <td class='forumheader3' style='width:40%'>".NFPM_L15." </td> 81 <td class='forumheader3' style='width:60%'>". ($pref['nfp_posts'] ? "<input type='checkbox' name='nfp_posts' value='1' checked='checked' />" : "<input type='checkbox' name='nfp_posts' value='1' />")." 82 </td> 83 </tr> 84 85 <tr> 86 <td class='forumheader3' style='width:40%'>".NFPM_L10.": </td> 87 <td class='forumheader3' style='width:60%'>". ($pref['nfp_layer'] ? "<input type='checkbox' name='nfp_layer' value='1' checked='checked' />" : "<input type='checkbox' name='nfp_layer' value='1' />")." ".NFPM_L11.": <input class='tbox' type='text' name='nfp_layer_height' size='8' value='".$pref['nfp_layer_height']."' maxlength='3' /> 88 </td> 89 </tr> 90 91 <tr> 92 <td colspan='2' class='forumheader' style='text-align:center'><input class='button' type='submit' name='updatesettings' value='".NFPM_L13."' /></td> 93 </tr> 94 </table> 95 </form> 96 </div>"; 97 $ns->tablerender(NFPM_L12, $text); 98 99 require_once(e_ADMIN."footer.php"); 100 ?>
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 |