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) {
|