mirror of
https://github.com/e107inc/e107.git
synced 2025-06-10 21:21:03 +02:00
Welcome message - code and LAN cleanup
This commit is contained in:
@ -2,16 +2,10 @@
|
|||||||
/*
|
/*
|
||||||
* e107 website system
|
* e107 website system
|
||||||
*
|
*
|
||||||
* Copyright (C) 2008-2009 e107 Inc (e107.org)
|
* Copyright (C) 2008-2013 e107 Inc (e107.org)
|
||||||
* Released under the terms and conditions of the
|
* Released under the terms and conditions of the
|
||||||
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
||||||
*
|
*
|
||||||
*
|
|
||||||
*
|
|
||||||
* $Source: /cvs_backup/e107_0.8/e107_admin/wmessage.php,v $
|
|
||||||
* $Revision$
|
|
||||||
* $Date$
|
|
||||||
* $Author$
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once("../class2.php");
|
require_once("../class2.php");
|
||||||
@ -120,13 +114,6 @@ if (isset($_POST['main_delete']))
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
if (isset($message))
|
|
||||||
{
|
|
||||||
$ns->tablerender("", "<div style='text-align:center'><b>".$message."</b></div>");
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
$ns->tablerender($caption, $mes->render() . $text);
|
$ns->tablerender($caption, $mes->render() . $text);
|
||||||
|
|
||||||
// Show Existing -------
|
// Show Existing -------
|
||||||
@ -135,7 +122,6 @@ if ($action == "main" || $action == "")
|
|||||||
if ($wm_total = $sql->db_Select("generic", "*", "gen_type='wmessage' ORDER BY gen_id ASC"))
|
if ($wm_total = $sql->db_Select("generic", "*", "gen_type='wmessage' ORDER BY gen_id ASC"))
|
||||||
{
|
{
|
||||||
$wmList = $sql->db_getList();
|
$wmList = $sql->db_getList();
|
||||||
// $text = $rs->form_open('post', e_SELF, 'myform_wmessage', '', '');
|
|
||||||
$text = $frm->open('myform_wmessage','post',e_SELF);
|
$text = $frm->open('myform_wmessage','post',e_SELF);
|
||||||
$text .= "
|
$text .= "
|
||||||
<table class='table adminlist'>
|
<table class='table adminlist'>
|
||||||
@ -173,7 +159,6 @@ if ($action == "main" || $action == "")
|
|||||||
$text .= $frm->close();
|
$text .= $frm->close();
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
//$text .= "<div style='text-align:center'>".WMLAN_09."</div>";
|
|
||||||
$mes->addInfo(WMLAN_09);
|
$mes->addInfo(WMLAN_09);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -198,33 +183,24 @@ if ($action == "create" || $action == "edit")
|
|||||||
<col class='col-label' />
|
<col class='col-label' />
|
||||||
<col class='col-control' />
|
<col class='col-control' />
|
||||||
</colgroup>
|
</colgroup>
|
||||||
";
|
|
||||||
|
|
||||||
$text .= "
|
|
||||||
<tr>
|
<tr>
|
||||||
<td>".WMLAN_10."</td>
|
<td>".WMLAN_10."</td>
|
||||||
<td>
|
<td>".$frm->text(wm_caption, $tp->toForm(vartrue($row['gen_ip'])), 80)."</td>
|
||||||
<input type='text' class='tbox' id='wm_caption' name='wm_caption' maxlength='80' style='width:95%' value=\"".$tp->toForm(vartrue($row['gen_ip']))."\" />
|
</tr>
|
||||||
</td>
|
<tr>
|
||||||
</tr>";
|
|
||||||
|
|
||||||
$text .= "<tr>
|
|
||||||
<td>".WMLAN_04."</td>
|
<td>".WMLAN_04."</td>
|
||||||
<td>
|
<td><textarea class='e-wysiwyg tbox' id='data' name='data' cols='70' rows='15' style='width:95%' onselect='storeCaret(this);' onclick='storeCaret(this);' onkeyup='storeCaret(this)'>".$tp->toForm(vartrue($row['gen_chardata']))."</textarea></td>
|
||||||
<textarea class='e-wysiwyg tbox' id='data' name='data' cols='70' rows='15' style='width:95%' onselect='storeCaret(this);' onclick='storeCaret(this);' onkeyup='storeCaret(this)'>".$tp->toForm(vartrue($row['gen_chardata']))."</textarea>
|
</tr>";
|
||||||
<br />";
|
|
||||||
|
|
||||||
// $text .= display_help("helpb", "admin"); //XXX Serves as BC Check
|
// $text .= display_help("helpb", "admin"); //XXX Serves as BC Check
|
||||||
|
|
||||||
|
|
||||||
$text .= "
|
$text .= "
|
||||||
</td>
|
<tr>
|
||||||
|
<td>".LAN_VISIBILITY."</td>
|
||||||
|
<td>".r_userclass("wm_active", vartrue($row['gen_intdata']), "off", "public,guest,nobody,member,admin,classes")."</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr><td>".LAN_VISIBILITY."</td>
|
</table>
|
||||||
<td>".r_userclass("wm_active", vartrue($row['gen_intdata']), "off", "public,guest,nobody,member,admin,classes")."</td></tr>
|
|
||||||
</table>";
|
|
||||||
|
|
||||||
$text .= "
|
|
||||||
<div class='buttons-bar center'>";
|
<div class='buttons-bar center'>";
|
||||||
|
|
||||||
if($sub_action == "edit")
|
if($sub_action == "edit")
|
||||||
@ -239,10 +215,9 @@ if ($action == "create" || $action == "edit")
|
|||||||
$text .= "<input type='hidden' name='wm_id' value='".$id."' />";
|
$text .= "<input type='hidden' name='wm_id' value='".$id."' />";
|
||||||
$text .= "</div>
|
$text .= "</div>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</form>
|
</form>";
|
||||||
";
|
|
||||||
|
|
||||||
$ns->tablerender(WMLAN_01.SEP.LAN_CREATE, $mes->render() . $text);
|
$ns->tablerender(WMLAN_00.SEP.LAN_CREATE, $mes->render() . $text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -259,21 +234,12 @@ if ($action == "opt") {
|
|||||||
<col class='col-control' />
|
<col class='col-control' />
|
||||||
</colgroup>
|
</colgroup>
|
||||||
<tr>
|
<tr>
|
||||||
|
<td>".WMLAN_05."</td>
|
||||||
<td>
|
<td>".$frm->checkbox('wm_enclose', 1, varset($pref['wm_enclose'],0))."<span class='field-help'>".WMLAN_06."</span></td>
|
||||||
".WMLAN_05."<br />
|
|
||||||
<span class='smalltext'>".WMLAN_06."</span>
|
|
||||||
</td>
|
|
||||||
<td>". (varset($pref['wm_enclose'], 0) ? "<input type='checkbox' name='wm_enclose' value='1' checked='checked' />" : "<input type='checkbox' name='wm_enclose' value='1' />")."
|
|
||||||
</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
<td>".WMLAN_07."</td>
|
||||||
<td>
|
<td>".$frm->checkbox('wmessage_sc', 1, varset($pref['wmessage_sc'],0))."</td>
|
||||||
".WMLAN_07."
|
|
||||||
</td>
|
|
||||||
<td>". (varset($pref['wmessage_sc'], 0) ? "<input type='checkbox' name='wmessage_sc' value='1' checked='checked' />" : "<input type='checkbox' name='wmessage_sc' value='1' />")."
|
|
||||||
</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
@ -285,8 +251,6 @@ if ($action == "opt") {
|
|||||||
";
|
";
|
||||||
|
|
||||||
$ns->tablerender(WMLAN_00.SEP.LAN_PREFS, $mes->render() . $text);
|
$ns->tablerender(WMLAN_00.SEP.LAN_PREFS, $mes->render() . $text);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function wmessage_adminmenu()
|
function wmessage_adminmenu()
|
||||||
@ -323,6 +287,4 @@ function welcome_adminlog($msg_num='00', $id=0, $woffle='')
|
|||||||
}
|
}
|
||||||
$admin_log->log_event('WELCOME_'.$msg_num,$msg,E_LOG_INFORMATIVE,'');
|
$admin_log->log_event('WELCOME_'.$msg_num,$msg,E_LOG_INFORMATIVE,'');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
?>
|
?>
|
@ -18,7 +18,7 @@
|
|||||||
// define("WMGLAN_7", "Welcome message settings updated.");
|
// define("WMGLAN_7", "Welcome message settings updated.");
|
||||||
|
|
||||||
define("WMLAN_00","Welcome Messages");
|
define("WMLAN_00","Welcome Messages");
|
||||||
define("WMLAN_01","Create New Message");
|
//define("WMLAN_01","Create New Message");
|
||||||
define("WMLAN_02","Message");
|
define("WMLAN_02","Message");
|
||||||
//define("WMLAN_03","Visibility");
|
//define("WMLAN_03","Visibility");
|
||||||
define("WMLAN_04","Message Text");
|
define("WMLAN_04","Message Text");
|
||||||
|
Reference in New Issue
Block a user