mirror of
https://github.com/e107inc/e107.git
synced 2025-08-13 01:54:12 +02:00
new module creation
This commit is contained in:
80
e107_admin/ugflag.php
Normal file
80
e107_admin/ugflag.php
Normal file
@@ -0,0 +1,80 @@
|
||||
<?php
|
||||
/*
|
||||
+ ----------------------------------------------------------------------------+
|
||||
| e107 website system
|
||||
|
|
||||
| <20>Steve Dunstan 2001-2002
|
||||
| http://e107.org
|
||||
| jalist@e107.org
|
||||
|
|
||||
| Released under the terms and conditions of the
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_admin/ugflag.php,v $
|
||||
| $Revision: 1.1.1.1 $
|
||||
| $Date: 2006-12-02 04:33:28 $
|
||||
| $Author: mcfly_e107 $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
require_once("../class2.php");
|
||||
if (!getperms("9")) {
|
||||
header("location:".e_BASE."index.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
require_once(e_HANDLER."ren_help.php");
|
||||
|
||||
if (isset($_POST['updatesettings'])) {
|
||||
$pref['maintainance_flag'] = intval($_POST['maintainance_flag']);
|
||||
$pref['maintainance_text'] = $tp->toDB($_POST['maintainance_text']);
|
||||
save_prefs();
|
||||
header("location:".e_SELF."?u");
|
||||
exit;
|
||||
}
|
||||
|
||||
require_once("auth.php");
|
||||
|
||||
if (e_QUERY == "u") {
|
||||
$ns->tablerender("", "<div style='text-align:center'><b>".UGFLAN_1.".</b></div>");
|
||||
}
|
||||
|
||||
$maintainance_flag = $pref['maintainance_flag'];
|
||||
|
||||
$text = "<div style='text-align:center'>
|
||||
<form method='post' action='".e_SELF."' id='dataform'>
|
||||
<table style='".ADMIN_WIDTH."' class='fborder'>
|
||||
<tr>
|
||||
<td style='width:30%' class='forumheader3'>".UGFLAN_2.": </td>
|
||||
<td style='width:70%' class='forumheader3'>";
|
||||
|
||||
|
||||
if ($maintainance_flag == 1) {
|
||||
$text .= "<input type='checkbox' name='maintainance_flag' value='1' checked='checked' />";
|
||||
} else {
|
||||
$text .= "<input type='checkbox' name='maintainance_flag' value='1' />";
|
||||
}
|
||||
|
||||
$text .= "</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<td style='width:30%' class='forumheader3'>".UGFLAN_5."<br /><span class='smalltext'>".UGFLAN_6."</span></td>
|
||||
<td style='width:70%' class='forumheader3'>
|
||||
<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>
|
||||
<br />".display_help("","maintenance")." </td>
|
||||
</tr>
|
||||
|
||||
|
||||
<tr style='vertical-align:top'>
|
||||
<td colspan='2' style='text-align:center' class='forumheader'>
|
||||
<input class='button' type='submit' name='updatesettings' value='".UGFLAN_3."' />
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</div>";
|
||||
|
||||
$ns->tablerender(UGFLAN_4, $text);
|
||||
require_once("footer.php");
|
||||
|
||||
?>
|
Reference in New Issue
Block a user