[ 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_admin/ugflag.php,v $ 14 | $Revision: 1.11 $ 15 | $Date: 2006/07/08 02:21:51 $ 16 | $Author: e107coders $ 17 +----------------------------------------------------------------------------+ 18 */ 19 require_once ("../class2.php"); 20 if (!getperms("9")) { 21 header("location:".e_BASE."index.php"); 22 exit; 23 } 24 25 require_once(e_HANDLER."ren_help.php"); 26 27 if (isset($_POST['updatesettings'])) { 28 $pref['maintainance_flag'] = intval($_POST['maintainance_flag']); 29 $pref['maintainance_text'] = $tp->toDB($_POST['maintainance_text']); 30 save_prefs(); 31 header("location:".e_SELF."?u"); 32 exit; 33 } 34 35 require_once ("auth.php"); 36 37 if (e_QUERY == "u") { 38 $ns->tablerender("", "<div style='text-align:center'><b>".UGFLAN_1.".</b></div>"); 39 } 40 41 $maintainance_flag = $pref['maintainance_flag']; 42 43 $text = "<div style='text-align:center'> 44 <form method='post' action='".e_SELF."' id='dataform'> 45 <table style='".ADMIN_WIDTH."' class='fborder'> 46 <tr> 47 <td style='width:30%' class='forumheader3'>".UGFLAN_2.": </td> 48 <td style='width:70%' class='forumheader3'>"; 49 50 51 if ($maintainance_flag == 1) { 52 $text .= "<input type='checkbox' name='maintainance_flag' value='1' checked='checked' />"; 53 } else { 54 $text .= "<input type='checkbox' name='maintainance_flag' value='1' />"; 55 } 56 57 $text .= "</td> 58 </tr> 59 60 <tr> 61 <td style='width:30%' class='forumheader3'>".UGFLAN_5."<br /><span class='smalltext'>".UGFLAN_6."</span></td> 62 <td style='width:70%' class='forumheader3'> 63 <textarea id='maintainance_text' class='tbox' name='maintainance_text' cols='63' style='max-width:80%' rows='10' onselect='storeCaret(this);' onclick='storeCaret(this);' onkeyup='storeCaret(this);'>".$pref['maintainance_text']."</textarea> 64 <br />".display_help("","maintenance")." </td> 65 </tr> 66 67 68 <tr style='vertical-align:top'> 69 <td colspan='2' style='text-align:center' class='forumheader'> 70 <input class='button' type='submit' name='updatesettings' value='".UGFLAN_3."' /> 71 </td> 72 </tr> 73 </table> 74 </form> 75 </div>"; 76 77 $ns->tablerender(UGFLAN_4, $text); 78 require_once ("footer.php"); 79 80 ?>
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 |