is_readable
[mailer.git] / img.php
diff --git a/img.php b/img.php
index 94878c19a323a5083df6d0425ad5b3308d65c34f..8710bd0ba13a908deb43f2d398fa250c59e83645 100644 (file)
--- a/img.php
+++ b/img.php
@@ -37,8 +37,6 @@ require_once("inc/libs/security_functions.php");
 // Init "action" and "what"
 global $what, $action;
 $GLOBALS['what'] = ""; $GLOBALS['action'] = "";
-if (!empty($_GET['action'])) $GLOBALS['action'] = secureString($_GET['action']);
-if (!empty($_GET['what'])) $GLOBALS['what'] = secureString($_GET['what']);
 
 // Set module
 $GLOBALS['module'] = "img"; $CSS = -1;
@@ -46,7 +44,7 @@ $GLOBALS['module'] = "img"; $CSS = -1;
 // Load the required file(s)
 require ("inc/config.php");
 
-if (defined('mxchange_installed') && (mxchange_installed))
+if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_installed')))
 {
        if (!empty($_GET['code']))
        {