From 3a443725594191bf3c3827a21cb618f6747b8125 Mon Sep 17 00:00:00 2001 From: CaMer0n Date: Sat, 11 Aug 2012 02:05:22 +0000 Subject: [PATCH] More cleanup --- e107_plugins/log/consolidate.php | 3 +++ e107_plugins/log/log.php | 1 + e107_plugins/login_menu/login_menu_template.php | 2 +- e107_plugins/metaweblog/e_help.php | 6 ++---- e107_plugins/pm/url/url.php | 2 ++ e107_plugins/tagwords/tagwords_menu.php | 1 + e107_plugins/tagwords/url/url.php | 2 ++ 7 files changed, 12 insertions(+), 5 deletions(-) diff --git a/e107_plugins/log/consolidate.php b/e107_plugins/log/consolidate.php index dab9ab452..c17b46faa 100644 --- a/e107_plugins/log/consolidate.php +++ b/e107_plugins/log/consolidate.php @@ -17,6 +17,9 @@ /* first thing to do is check if the log file is out of date ... */ // $pathtologs = e_PLUGIN."log/logs/"; + +if (!defined('e107_INIT')){ exit; } + $pathtologs = e_LOG; $date = date("z.Y", time()); $yesterday = date("z.Y",(time() - 86400)); // This makes sure year wraps round OK diff --git a/e107_plugins/log/log.php b/e107_plugins/log/log.php index 9fdd6a721..42d35a1a2 100644 --- a/e107_plugins/log/log.php +++ b/e107_plugins/log/log.php @@ -25,6 +25,7 @@ // Normally the file is 'silent' - if any errors occur, not sure where they'll appear - (file type now text/html instead of text/css) */ +error_reporting(0); define('log_INIT', TRUE); // Array of page names which should have individual query values recorded. diff --git a/e107_plugins/login_menu/login_menu_template.php b/e107_plugins/login_menu/login_menu_template.php index e8ea7e8e1..ec1008fe5 100644 --- a/e107_plugins/login_menu/login_menu_template.php +++ b/e107_plugins/login_menu/login_menu_template.php @@ -23,7 +23,7 @@ * @subpackage login * @version $Id$; */ - +if (!defined('e107_INIT')){ exit; } if ( ! isset($LOGIN_MENU_FORM)) { diff --git a/e107_plugins/metaweblog/e_help.php b/e107_plugins/metaweblog/e_help.php index ec54b76f8..fcd0d274e 100644 --- a/e107_plugins/metaweblog/e_help.php +++ b/e107_plugins/metaweblog/e_help.php @@ -2,10 +2,8 @@ //--------------------------------------------------------------- // BEGIN CONFIGURATION AREA //--------------------------------------------------------------- - -if(file_exists(e_PLUGIN."eXMLRPC/languages/".e_LANGUAGE.".php")){ - @include_once(e_PLUGIN."eXMLRPC/languages/".e_LANGUAGE.".php"); -} +if (!defined('e107_INIT')){ exit; } +include_lan(e_PLUGIN."metaweblog/languages/".e_LANGUAGE.".php"); $helptitle = XMLRPC_HELP_001; // diff --git a/e107_plugins/pm/url/url.php b/e107_plugins/pm/url/url.php index 667728df6..8256f161f 100644 --- a/e107_plugins/pm/url/url.php +++ b/e107_plugins/pm/url/url.php @@ -7,6 +7,8 @@ * PM Default URL configuration * TODO - SEF URL configuration */ +if (!defined('e107_INIT')){ exit; } + class plugin_pm_url extends eUrlConfig { public function config() diff --git a/e107_plugins/tagwords/tagwords_menu.php b/e107_plugins/tagwords/tagwords_menu.php index 0121f567b..41ded1f3d 100644 --- a/e107_plugins/tagwords/tagwords_menu.php +++ b/e107_plugins/tagwords/tagwords_menu.php @@ -14,6 +14,7 @@ * $Author$ * */ +if (!defined('e107_INIT')){ exit; } global $tag; diff --git a/e107_plugins/tagwords/url/url.php b/e107_plugins/tagwords/url/url.php index 7e1f4718f..b41876031 100644 --- a/e107_plugins/tagwords/url/url.php +++ b/e107_plugins/tagwords/url/url.php @@ -6,6 +6,8 @@ * * Tagwords Default URL configuration */ +if (!defined('e107_INIT')){ exit; } + class plugin_tagwords_url extends eUrlConfig { public function config()