From 5290bb8ea450a7e52c339766298c03d38f1a6dd7 Mon Sep 17 00:00:00 2001 From: Tijn Kuyper Date: Sat, 8 Dec 2012 13:52:05 +0100 Subject: [PATCH] More notice removal --- e107_admin/cron.php | 2 +- e107_admin/db.php | 4 +- e107_admin/fileinspector.php | 10 ++--- e107_admin/mailout.php | 2 +- e107_admin/newspost.php | 38 +++++++++--------- e107_admin/prefs.php | 6 +-- e107_admin/search.php | 4 +- e107_admin/ugflag.php | 2 +- e107_admin/userclass2.php | 2 +- e107_admin/users.php | 25 +++++++----- e107_admin/wmessage.php | 8 ++-- .../shortcodes/batch/bbcode_shortcodes.php | 4 +- e107_core/shortcodes/single/imageselector.php | 4 +- e107_core/url/user/url.php | 2 +- e107_handlers/admin_ui.php | 6 +-- e107_handlers/bbcode_handler.php | 4 +- e107_handlers/db_verify_class.php | 2 +- e107_handlers/form_handler.php | 40 +++++++++---------- e107_handlers/userclass_class.php | 4 +- .../English/admin/help/userclass2.php | 2 +- e107_plugins/alt_auth/alt_auth_adminmenu.php | 2 +- e107_plugins/banner/admin_banner.php | 4 +- e107_plugins/download/admin_download.php | 26 ++++++------ e107_plugins/download/e_help.php | 3 +- e107_plugins/download/includes/admin.php | 10 ++--- e107_plugins/forum/forum_admin.php | 6 +-- e107_plugins/forum/forum_admin_class.php | 20 +++++----- .../links_page/admin_linkspage_config.php | 2 +- e107_plugins/links_page/e_help.php | 2 +- e107_plugins/links_page/link_class.php | 4 +- e107_plugins/linkwords/e_tohtml.php | 2 +- e107_plugins/metaweblog/admin_config.php | 2 +- e107_plugins/newsfeed/admin_config.php | 4 +- e107_plugins/newsfeed/e_frontpage.php | 2 +- e107_plugins/poll/poll_class.php | 2 +- e107_plugins/siteinfo/e_shortcode.php | 2 +- 36 files changed, 134 insertions(+), 130 deletions(-) diff --git a/e107_admin/cron.php b/e107_admin/cron.php index c81b2e4e8..daa1acb29 100644 --- a/e107_admin/cron.php +++ b/e107_admin/cron.php @@ -157,7 +157,7 @@ class cron_admin_ui extends e_admin_ui ), ); - if(!$_GET['action'] || $_GET['action'] == 'refresh') + if(!vartrue($_GET['action']) || $_GET['action'] == 'refresh') { $this->cronImport($cronDefaults); // import Core Crons (if missing) diff --git a/e107_admin/db.php b/e107_admin/db.php index e8329ff0c..dd0a0a74b 100644 --- a/e107_admin/db.php +++ b/e107_admin/db.php @@ -605,7 +605,7 @@ class system_tools foreach($pref_types as $key=>$description) { - $checked = ($_POST['xml_prefs'][$key] == $key) ? 1: 0; + $checked = (vartrue($_POST['xml_prefs'][$key]) == $key) ? 1: 0; $text .= " @@ -636,7 +636,7 @@ class system_tools foreach($tables as $name=>$count) { - $checked = ($_POST['xml_tables'][$name] == $name) ? 1: 0; + $checked = (vartrue($_POST['xml_tables'][$name]) == $name) ? 1: 0; $text .= " ".$frm->checkbox("xml_tables[".$name."]", $name, $checked)." Table Data: ".$name." diff --git a/e107_admin/fileinspector.php b/e107_admin/fileinspector.php index bfef5d35b..a7182f845 100644 --- a/e107_admin/fileinspector.php +++ b/e107_admin/fileinspector.php @@ -82,7 +82,7 @@ if(isset($_GET['scan'])) $_POST = $_GET; - if($_GET['exploit']) + if(vartrue($_GET['exploit'])) { $fi->exploit(); } @@ -141,7 +141,7 @@ class file_inspector { if ($_POST['core'] == 'fail') { $_POST['integrity'] = TRUE; } - if (MAGIC_QUOTES_GPC && $_POST['regex']) { + if (MAGIC_QUOTES_GPC && vartrue($_POST['regex'])) { $_POST['regex'] = stripslashes($_POST['regex']); } if ($_POST['regex']) { @@ -410,7 +410,7 @@ class file_inspector { - $this->sendProgress($this->count['core']['num'],$this->totalFiles,FR_LAN_1); + $this->sendProgress(vartrue($this->count['core']['num']),$this->totalFiles,FR_LAN_1); foreach ($list as $key => $value) { @@ -431,7 +431,7 @@ class file_inspector { } else { - $this->sendProgress($this->count['core']['num'],$this->totalFiles,FR_LAN_1); + $this->sendProgress(vartrue($this->count['core']['num']),$this->totalFiles,FR_LAN_1); $path = $dir.'/'.$key; $fid = strtolower($key); @@ -1208,7 +1208,7 @@ function sh(showid) {