mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 04:10:38 +02:00
@@ -2,18 +2,17 @@
|
|||||||
/*
|
/*
|
||||||
* 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)
|
||||||
*
|
*
|
||||||
* Plugin Administration - Comment menu
|
* Plugin Administration - Comment menu
|
||||||
*
|
*
|
||||||
* $Source: /cvs_backup/e107_0.8/e107_plugins/comment_menu/config.php,v $
|
|
||||||
* $Revision$
|
|
||||||
* $Date$
|
|
||||||
* $Author$
|
|
||||||
*
|
*
|
||||||
*/
|
* $URL$
|
||||||
|
* $Id$
|
||||||
|
*/
|
||||||
|
|
||||||
$eplug_admin = TRUE;
|
$eplug_admin = TRUE;
|
||||||
require_once("../../class2.php");
|
require_once("../../class2.php");
|
||||||
require_once(e_HANDLER."userclass_class.php");
|
require_once(e_HANDLER."userclass_class.php");
|
||||||
@@ -25,8 +24,12 @@ if (!getperms("1"))
|
|||||||
exit() ;
|
exit() ;
|
||||||
}
|
}
|
||||||
require_once(e_ADMIN."auth.php");
|
require_once(e_ADMIN."auth.php");
|
||||||
|
require_once(e_HANDLER.'form_handler.php');
|
||||||
|
require_once(e_HANDLER.'message_handler.php');
|
||||||
|
$frm = e107::getForm();
|
||||||
|
$mes = e107::getMessage();
|
||||||
$menu_config = e107::getConfig('menu');
|
$menu_config = e107::getConfig('menu');
|
||||||
|
|
||||||
if (isset($_POST['update_menu']))
|
if (isset($_POST['update_menu']))
|
||||||
{
|
{
|
||||||
$temp = $old = $menu_config->getPref();
|
$temp = $old = $menu_config->getPref();
|
||||||
@@ -34,7 +37,7 @@ if (isset($_POST['update_menu']))
|
|||||||
$tp = e107::getParser();
|
$tp = e107::getParser();
|
||||||
while (list($key, $value) = each($_POST))
|
while (list($key, $value) = each($_POST))
|
||||||
{
|
{
|
||||||
if ($value != CM_L9)
|
if ($value != LAN_UPDATE)
|
||||||
{
|
{
|
||||||
$temp[$tp->toDB($key)] = $tp->toDB($value);
|
$temp[$tp->toDB($key)] = $tp->toDB($value);
|
||||||
}
|
}
|
||||||
@@ -49,62 +52,54 @@ if (isset($_POST['update_menu']))
|
|||||||
{
|
{
|
||||||
if($menu_config->save(false))
|
if($menu_config->save(false))
|
||||||
{
|
{
|
||||||
e107::getMessage()->add(CM_L10, E_MESSAGE_SUCCESS);
|
$mes->addSuccess();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
e107::getMessage()->add(LAN_NO_CHANGE);
|
$mes->addInfo(LAN_NO_CHANGE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO - 0.8 aware markup, e_form usage
|
$text = "
|
||||||
$text = "<div style='text-align:center'>
|
<form method='post' action='".e_SELF."?".e_QUERY."' id='plugin-menu-config-form'>
|
||||||
<form method=\"post\" action=\"".e_SELF."?".e_QUERY."\" id=\"plugin-menu-config-form\">
|
<table class='table adminform'>
|
||||||
<table style=\"width:85%\" class=\"fborder\" >
|
<colgroup span='2'>
|
||||||
|
<col class='col-label' />
|
||||||
|
<col class='col-control' />
|
||||||
|
</colgroup>
|
||||||
<tr>
|
<tr>
|
||||||
<td style=\"width:40%\" class='forumheader3'>".CM_L3.": </td>
|
<td>".CM_L3.":</td>
|
||||||
<td style=\"width:60%\" class='forumheader3'>
|
<td><input class='tbox' type='text' name='comment_caption' size='20' value='".$menu_config->get('comment_caption')."' maxlength='100' /></td>
|
||||||
<input class=\"tbox\" type=\"text\" name=\"comment_caption\" size=\"20\" value=\"".$menu_config->get('comment_caption')."\" maxlength=\"100\" />
|
|
||||||
</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td style=\"width:40%\" class='forumheader3'>".CM_L4.": </td>
|
<td>".CM_L4.":</td>
|
||||||
<td style=\"width:60%\" class='forumheader3'>
|
<td><input class='tbox' type='text' name='comment_display' size='20' value='".$menu_config->get('comment_display')."' maxlength='2' /></td>
|
||||||
<input class=\"tbox\" type=\"text\" name=\"comment_display\" size=\"20\" value=\"".$menu_config->get('comment_display')."\" maxlength=\"2\" />
|
|
||||||
</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td style=\"width:40%\" class='forumheader3'>".CM_L5.": </td>
|
<td>".CM_L5.":</td>
|
||||||
<td style=\"width:60%\" class='forumheader3'>
|
<td><input class='tbox' type='text' name='comment_characters' size='20' value='".$menu_config->get('comment_characters')."' maxlength='4' /></td>
|
||||||
<input class=\"tbox\" type=\"text\" name=\"comment_characters\" size=\"20\" value=\"".$menu_config->get('comment_characters')."\" maxlength=\"4\" />
|
|
||||||
</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td style=\"width:40%\" class='forumheader3'>".CM_L6.": </td>
|
<td>".CM_L6.":</td>
|
||||||
<td style=\"width:60%\" class='forumheader3'>
|
<td><input class='tbox' type='text' name='comment_postfix' size='30' value='".$menu_config->get('comment_postfix')."' maxlength='200' /></td>
|
||||||
<input class=\"tbox\" type=\"text\" name=\"comment_postfix\" size=\"30\" value=\"".$menu_config->get('comment_postfix')."\" maxlength=\"200\" />
|
|
||||||
</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td style=\"width:40%\" class='forumheader3'>".CM_L7.": </td>
|
<td>".CM_L7.":</td>
|
||||||
<td style=\"width:60%\" class='forumheader3'>
|
<td><input type='checkbox' name='comment_title' value='1'".($menu_config->get('comment_title') ? ' checked="checked"' : '')." /></td>
|
||||||
<input type=\"checkbox\" name=\"comment_title\" value=\"1\"".($menu_config->get('comment_title') ? ' checked="checked"' : '')." />
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
<tr>
|
|
||||||
<td colspan=\"2\" class='forumheader' style=\"text-align:center\"><input class=\"button\" type=\"submit\" name=\"update_menu\" value=\"".CM_L9."\" /></td>
|
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</form>
|
|
||||||
</div>";
|
<div class='buttons-bar center'>
|
||||||
|
".$frm->admin_button('update_menu', LAN_UPDATE, 'update')."
|
||||||
|
</div>
|
||||||
|
</form>";
|
||||||
|
|
||||||
e107::getRender()->tablerender(CM_L8, e107::getMessage()->render().$text);
|
$ns->tablerender(CM_L8, $mes->render() . $text);
|
||||||
|
|
||||||
require_once(e_ADMIN."footer.php");
|
require_once(e_ADMIN."footer.php");
|
||||||
?>
|
?>
|
@@ -2,17 +2,13 @@
|
|||||||
/*
|
/*
|
||||||
* 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)
|
||||||
*
|
*
|
||||||
*
|
* $URL$
|
||||||
*
|
* $Id$
|
||||||
* $Source: /cvs_backup/e107_0.8/e107_plugins/comment_menu/languages/English.php,v $
|
*/
|
||||||
* $Revision$
|
|
||||||
* $Date$
|
|
||||||
* $Author$
|
|
||||||
*/
|
|
||||||
|
|
||||||
define("CM_L1", "No comments yet.");
|
define("CM_L1", "No comments yet.");
|
||||||
define("CM_L2", "");
|
define("CM_L2", "");
|
||||||
@@ -22,8 +18,8 @@ define("CM_L5", "Number of characters to display?");
|
|||||||
define("CM_L6", "Postfix for too long comments?");
|
define("CM_L6", "Postfix for too long comments?");
|
||||||
define("CM_L7", "Show original news title in menu?");
|
define("CM_L7", "Show original news title in menu?");
|
||||||
define("CM_L8", "New Comments Menu Configuration");
|
define("CM_L8", "New Comments Menu Configuration");
|
||||||
define("CM_L9", "Update Menu Settings");
|
//define("CM_L9", "Update Menu Settings");
|
||||||
define("CM_L10", "Comments menu configuration saved");
|
//define("CM_L10", "Comments menu configuration saved");
|
||||||
define("CM_L11", "on");
|
define("CM_L11", "on");
|
||||||
define("CM_L12", "Re:");
|
define("CM_L12", "Re:");
|
||||||
define("CM_L13", "Posted by");
|
define("CM_L13", "Posted by");
|
||||||
|
Reference in New Issue
Block a user