[ 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/forum/newforumposts_menu_config.php,v $ 14 | $Revision: 1.1 $ 15 | $Date: 2005/09/05 03:23:13 $ 16 | $Author: mcfly_e107 $ 17 +----------------------------------------------------------------------------+ 18 */ 19 $eplug_admin = TRUE; 20 require_once ("../../class2.php"); 21 if (!getperms("1")) { 22 header("location:".e_BASE."index.php"); 23 exit ; 24 } 25 require_once(e_ADMIN."auth.php"); 26 27 $lan_file = e_PLUGIN."forum/languages/".e_LANGUAGE."/lan_newforumposts_menu.php"; 28 require_once(file_exists($lan_file) ? $lan_file : e_PLUGIN."forum/languages/English/lan_newforumposts_menu.php"); 29 30 if (isset($_POST['update_menu'])) { 31 while (list($key, $value) = each($_POST)) { 32 if ($value != NFP_9) { 33 $menu_pref[$key] = $value; 34 } 35 } 36 if (!$_POST['newforumposts_title']) { 37 $menu_pref['newforumposts_title'] = 0; 38 } 39 $tmp = addslashes(serialize($menu_pref)); 40 $sql->db_Update("core", "e107_value='$tmp' WHERE e107_name='menu_pref' "); 41 $ns->tablerender("", "<div style=\"text-align:center\"><b>".NFP_3."</b></div>"); 42 } 43 44 $text = "<div style='text-align:center'> 45 <form method=\"post\" action=\"".e_SELF."?".e_QUERY."\" name=\"menu_conf_form\"> 46 <table style=\"width:85%\" class=\"fborder\"> 47 48 <tr> 49 <td style=\"width:40%\" class='forumheader3'>".NFP_4.": </td> 50 <td style=\"width:60%\" class='forumheader3'> 51 <input class=\"tbox\" type=\"text\" name=\"newforumposts_caption\" size=\"20\" value=\"".$menu_pref['newforumposts_caption']."\" maxlength=\"100\" /> 52 </td> 53 </tr> 54 55 <tr> 56 <td style=\"width:40%\" class='forumheader3'>".NFP_5.": 57 </td> 58 <td style=\"width:60%\" class='forumheader3'> 59 <input class=\"tbox\" type=\"text\" name=\"newforumposts_display\" size=\"20\" value=\"".$menu_pref['newforumposts_display']."\" maxlength=\"2\" /> 60 </td> 61 </tr> 62 63 <tr> 64 <td style=\"width:40%\" class='forumheader3'>".NFP_6.": </td> 65 <td style=\"width:60%\" class='forumheader3'> 66 <input class=\"tbox\" type=\"text\" name=\"newforumposts_characters\" size=\"20\" value=\"".$menu_pref['newforumposts_characters']."\" maxlength=\"4\" /> 67 </td> 68 </tr> 69 70 <tr> 71 <td style=\"width:40%\" class='forumheader3'>".NFP_7.": 72 </td> 73 <td style=\"width:60%\" class='forumheader3'> 74 <input class=\"tbox\" type=\"text\" name=\"newforumposts_postfix\" size=\"30\" value=\"".$menu_pref['newforumposts_postfix']."\" maxlength=\"200\" /> 75 </td> 76 </tr> 77 78 <tr> 79 <td style=\"width:40%\" class='forumheader3'>".NFP_8.":</td> 80 <td style=\"width:60%\" class='forumheader3'> 81 <input type=\"checkbox\" name=\"newforumposts_title\" value=\"1\" "; 82 if ($menu_pref['newforumposts_title']) { 83 $text .= " checked "; 84 } 85 $text .= " 86 </td> 87 </tr> 88 89 <tr style=\"vertical-align:top\"> 90 <td colspan=\"2\" style=\"text-align:center\" class='forumheader'> 91 <input class=\"button\" type=\"submit\" name=\"update_menu\" value=\"".NFP_9."\" /> 92 </td> 93 </tr> 94 </table> 95 </form> 96 </div>"; 97 $ns->tablerender(NFP_10, $text); 98 require_once(e_ADMIN."footer.php"); 99 ?>
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 |