mirror of
https://github.com/e107inc/e107.git
synced 2025-08-16 11:36:08 +02:00
Add admin logging to the 'pseudo-plugins' (configurable menus)
This commit is contained in:
@@ -1,48 +1,50 @@
|
||||
<?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_plugins/comment_menu/config.php,v $
|
||||
| $Revision: 1.1.1.1 $
|
||||
| $Date: 2006-12-02 04:34:52 $
|
||||
| $Author: mcfly_e107 $
|
||||
+----------------------------------------------------------------------------+
|
||||
* 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 $
|
||||
*
|
||||
*/
|
||||
$eplug_admin = TRUE;
|
||||
require_once("../../class2.php");
|
||||
require_once(e_HANDLER."userclass_class.php");
|
||||
|
||||
$lan_file = e_PLUGIN."comment_menu/languages/".e_LANGUAGE.".php";
|
||||
if (file_exists($lan_file)) {
|
||||
require_once($lan_file);
|
||||
} else {
|
||||
require_once(e_PLUGIN."comment_menu/languages/English.php");
|
||||
}
|
||||
if (!getperms("1")) {
|
||||
include_lan(e_PLUGIN."comment_menu/languages/".e_LANGUAGE.".php");
|
||||
if (!getperms("1"))
|
||||
{
|
||||
header("location:".e_BASE."index.php");
|
||||
exit ;
|
||||
exit() ;
|
||||
}
|
||||
require_once(e_ADMIN."auth.php");
|
||||
|
||||
if (isset($_POST['update_menu'])) {
|
||||
while (list($key, $value) = each($_POST)) {
|
||||
if ($value != CM_L9) {
|
||||
$menu_pref[$key] = $value;
|
||||
if (isset($_POST['update_menu']))
|
||||
{
|
||||
$temp = array();
|
||||
while (list($key, $value) = each($_POST))
|
||||
{
|
||||
if ($value != CM_L9)
|
||||
{
|
||||
$temp[$key] = $value;
|
||||
}
|
||||
}
|
||||
if (!$_POST['comment_title']) {
|
||||
$menu_pref['comment_title'] = 0;
|
||||
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' ");
|
||||
}
|
||||
$tmp = addslashes(serialize($menu_pref));
|
||||
$sql->db_Update("core", "e107_value='$tmp' WHERE e107_name='menu_pref' ");
|
||||
$ns->tablerender("", "<div style=\"text-align:center\"><b>".CM_L10."</b></div>");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user