2006-12-02 04:36:16 +00:00
|
|
|
<?php
|
|
|
|
/*
|
2008-12-21 12:53:48 +00:00
|
|
|
* e107 website system
|
|
|
|
*
|
|
|
|
* Copyright (C) 2001-2008 e107 Inc (e107.org)
|
|
|
|
* Released under the terms and conditions of the
|
|
|
|
* GNU General Public License (http://www.gnu.org/licenses/gpl.txt)
|
|
|
|
*
|
|
|
|
* Plugin Administration - Comment menu
|
|
|
|
*
|
|
|
|
* $Source: /cvs_backup/e107_0.8/e107_plugins/comment_menu/config.php,v $
|
|
|
|
* $Revision: 1.2 $
|
|
|
|
* $Date: 2008-12-21 12:53:48 $
|
|
|
|
* $Author: e107steved $
|
|
|
|
*
|
2006-12-02 04:36:16 +00:00
|
|
|
*/
|
|
|
|
$eplug_admin = TRUE;
|
|
|
|
require_once("../../class2.php");
|
|
|
|
require_once(e_HANDLER."userclass_class.php");
|
|
|
|
|
2008-12-21 12:53:48 +00:00
|
|
|
include_lan(e_PLUGIN."comment_menu/languages/".e_LANGUAGE.".php");
|
|
|
|
if (!getperms("1"))
|
|
|
|
{
|
2006-12-02 04:36:16 +00:00
|
|
|
header("location:".e_BASE."index.php");
|
2008-12-21 12:53:48 +00:00
|
|
|
exit() ;
|
2006-12-02 04:36:16 +00:00
|
|
|
}
|
|
|
|
require_once(e_ADMIN."auth.php");
|
|
|
|
|
2008-12-21 12:53:48 +00:00
|
|
|
if (isset($_POST['update_menu']))
|
|
|
|
{
|
|
|
|
$temp = array();
|
|
|
|
while (list($key, $value) = each($_POST))
|
|
|
|
{
|
|
|
|
if ($value != CM_L9)
|
|
|
|
{
|
|
|
|
$temp[$key] = $value;
|
2006-12-02 04:36:16 +00:00
|
|
|
}
|
|
|
|
}
|
2008-12-21 12:53:48 +00:00
|
|
|
if (!$_POST['comment_title'])
|
|
|
|
{
|
|
|
|
$temp['comment_title'] = 0;
|
|
|
|
}
|
|
|
|
if ($admin_log->logArrayDiffs($temp,$menu_pref,'MISC_04'))
|
|
|
|
{
|
|
|
|
$tmp = addslashes(serialize($menu_pref));
|
|
|
|
$sql->db_Update("core", "e107_value='{$tmp}' WHERE e107_name='menu_pref' ");
|
2006-12-02 04:36:16 +00:00
|
|
|
}
|
|
|
|
$ns->tablerender("", "<div style=\"text-align:center\"><b>".CM_L10."</b></div>");
|
|
|
|
}
|
|
|
|
|
|
|
|
$text = "<div style='text-align:center'>
|
|
|
|
<form method=\"post\" action=\"".e_SELF."?".e_QUERY."\" name=\"menu_conf_form\">
|
|
|
|
<table style=\"width:85%\" class=\"fborder\" >
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td style=\"width:40%\" class='forumheader3'>".CM_L3.": </td>
|
|
|
|
<td style=\"width:60%\" class='forumheader3'>
|
|
|
|
<input class=\"tbox\" type=\"text\" name=\"comment_caption\" size=\"20\" value=\"".$menu_pref['comment_caption']."\" maxlength=\"100\" />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td style=\"width:40%\" class='forumheader3'>".CM_L4.": </td>
|
|
|
|
<td style=\"width:60%\" class='forumheader3'>
|
|
|
|
<input class=\"tbox\" type=\"text\" name=\"comment_display\" size=\"20\" value=\"".$menu_pref['comment_display']."\" maxlength=\"2\" />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td style=\"width:40%\" class='forumheader3'>".CM_L5.": </td>
|
|
|
|
<td style=\"width:60%\" class='forumheader3'>
|
|
|
|
<input class=\"tbox\" type=\"text\" name=\"comment_characters\" size=\"20\" value=\"".$menu_pref['comment_characters']."\" maxlength=\"4\" />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td style=\"width:40%\" class='forumheader3'>".CM_L6.": </td>
|
|
|
|
<td style=\"width:60%\" class='forumheader3'>
|
|
|
|
<input class=\"tbox\" type=\"text\" name=\"comment_postfix\" size=\"30\" value=\"".$menu_pref['comment_postfix']."\" maxlength=\"200\" />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td style=\"width:40%\" class='forumheader3'>".CM_L7.": </td>
|
|
|
|
<td style=\"width:60%\" class='forumheader3'>
|
|
|
|
<input type=\"checkbox\" name=\"comment_title\" value=\"1\"";
|
|
|
|
if ($menu_pref['comment_title']) {
|
|
|
|
$text .= " checked ";
|
|
|
|
}
|
|
|
|
$text .= " />
|
|
|
|
</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>
|
|
|
|
</table>
|
|
|
|
</form>
|
|
|
|
</div>";
|
|
|
|
$ns->tablerender(CM_L8, $text);
|
|
|
|
require_once(e_ADMIN."footer.php");
|
|
|
|
?>
|