From cee0b1e80243822a311a19eb6a1f55f5b4d07c76 Mon Sep 17 00:00:00 2001 From: e107steved Date: Sat, 6 Dec 2008 11:13:55 +0000 Subject: [PATCH] Add admin logging to metas, slight correction to language logging --- e107_admin/language.php | 12 ++++++------ e107_admin/meta.php | 19 +++++++++++-------- .../English/admin/lan_log_messages.php | 8 ++++++-- 3 files changed, 23 insertions(+), 16 deletions(-) diff --git a/e107_admin/language.php b/e107_admin/language.php index c5bceee6a..2f8ed7a61 100644 --- a/e107_admin/language.php +++ b/e107_admin/language.php @@ -11,8 +11,8 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_admin/language.php,v $ -| $Revision: 1.8 $ -| $Date: 2008-12-06 10:57:19 $ +| $Revision: 1.9 $ +| $Date: 2008-12-06 11:13:50 $ | $Author: e107steved $ +----------------------------------------------------------------------------+ */ @@ -63,7 +63,7 @@ if (isset($_POST['submit_prefs']) && isset($_POST['mainsitelanguage'])) $changes[] = $k.'=>'.$v; } } - $admin_log->log_event('LAN_AL_LANG_01',implode('[!br!]',$changes),E_LOG_INFORMATIVE,''); + $admin_log->log_event('LANG_01',implode('[!br!]',$changes),E_LOG_INFORMATIVE,''); save_prefs(); $ns->tablerender(LAN_SAVED, "
".LAN_SETSAVED."
"); @@ -91,7 +91,7 @@ if (isset($_POST['del_existing']) && $_POST['lang_choices']) } } } - $admin_log->log_event('LAN_AL_LANG_02',str_replace('
','[!br!]',$message),E_LOG_INFORMATIVE,''); + $admin_log->log_event('LANG_02',str_replace('
','[!br!]',$message),E_LOG_INFORMATIVE,''); global $cachevar; unset($cachevar['table_list']); @@ -133,7 +133,7 @@ if (isset($_POST['create_tables']) && $_POST['language']) } } } - $admin_log->log_event('LAN_AL_LANG_03',str_replace('
','[!br!]',$message),E_LOG_INFORMATIVE,''); + $admin_log->log_event('LANG_03',str_replace('
','[!br!]',$message),E_LOG_INFORMATIVE,''); global $cachevar; unset($cachevar['table_list']); } @@ -164,7 +164,7 @@ if ($action == 'db') if($_POST['ziplang'] && $_POST['language']) { $text = zip_up_lang($_POST['language']); - $admin_log->log_event('LAN_AL_LANG_04',$_POST['language'],E_LOG_INFORMATIVE,''); + $admin_log->log_event('LANG_04',$_POST['language'],E_LOG_INFORMATIVE,''); $ns -> tablerender(LANG_LAN_25, $text); } diff --git a/e107_admin/meta.php b/e107_admin/meta.php index ec244f4e6..b66324ac8 100644 --- a/e107_admin/meta.php +++ b/e107_admin/meta.php @@ -11,9 +11,9 @@ | GNU General Public License (http://gnu.org). | | $Source: /cvs_backup/e107_0.8/e107_admin/meta.php,v $ -| $Revision: 1.2 $ -| $Date: 2007-03-23 21:46:41 $ -| $Author: lisa_ $ +| $Revision: 1.3 $ +| $Date: 2008-12-06 11:13:50 $ +| $Author: e107steved $ +----------------------------------------------------------------------------+ */ require_once("../class2.php"); @@ -26,11 +26,12 @@ require_once("auth.php"); $current_lang = ($sql->mySQLlanguage != "") ? $sql->mySQLlanguage : $pref['sitelanguage']; -if (isset($_POST['metasubmit'])) { - +if (isset($_POST['metasubmit'])) +{ $tmp = $pref['meta_tag']; $langs = explode(",",e_LANLIST); - foreach($langs as $lan){ + foreach($langs as $lan) + { $meta_tag[$lan] = $tmp[$lan]; $meta_diz[$lan] = $pref['meta_description'][$lan]; $meta_keywords[$lan] = $pref['meta_keywords'][$lan]; @@ -44,7 +45,7 @@ if (isset($_POST['metasubmit'])) { $meta_copyright[$current_lang] = strip_if_magic(chop($_POST['meta_copyright'])); $meta_author[$current_lang] = strip_if_magic(chop($_POST['meta_author'])); - $pref['meta_news_summary'] = $_POST['meta_news_summary']; + $pref['meta_news_summary'] = intval($_POST['meta_news_summary']); $pref['meta_tag'] = $meta_tag; $pref['meta_description'] = $meta_diz; $pref['meta_keywords'] = $meta_keywords; @@ -56,11 +57,13 @@ if (isset($_POST['metasubmit'])) { unset($meta_tag[$current_lang]); }*/ + $admin_log->log_event('META_01','meta_news_summary=>'.$pref['meta_news_summary'].'[!br!]'.$current_lang,E_LOG_INFORMATIVE,''); save_prefs(); $message = METLAN_1; } -if ($message) { +if ($message) +{ $ns->tablerender(METLAN_4, "
".METLAN_1." (".$current_lang.").
"); } diff --git a/e107_languages/English/admin/lan_log_messages.php b/e107_languages/English/admin/lan_log_messages.php index bb06bce21..d4162c433 100644 --- a/e107_languages/English/admin/lan_log_messages.php +++ b/e107_languages/English/admin/lan_log_messages.php @@ -1,6 +1,6 @@