X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=mailid.php;h=3c851cab1d80c2c5e3d9e00fec31adda3da0a7d7;hp=b268fa82d82ba528a29ef86f66bc88333f7977cf;hb=60494e212a67fe360bfbb481eb4928480a6f379b;hpb=75ad748a68473ace540251427a74fb781b1145e9 diff --git a/mailid.php b/mailid.php index b268fa82d8..3c851cab1d 100644 --- a/mailid.php +++ b/mailid.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']); // Tell everyone we are in this module $GLOBALS['module'] = "mailid"; $CSS = -1; @@ -76,14 +74,14 @@ if (defined('mxchange_installed') && (mxchange_installed)) // Normal-Mails $result = SQL_QUERY_ESC("SELECT link_type FROM "._MYSQL_PREFIX."_user_links WHERE stats_id=%d AND userid=%d LIMIT 1", array($url_mid, $url_uid), __FILE__, __LINE__); - $TYPE = "mailid"; $DATA = $url_mid; + $type = "mailid"; $DATA = $url_mid; } elseif ($url_bid > 0) { // Bonus-Mail $result = SQL_QUERY_ESC("SELECT link_type FROM "._MYSQL_PREFIX."_user_links WHERE bonus_id=%d AND userid=%d LIMIT 1", array($url_bid, $url_uid), __FILE__, __LINE__); - $TYPE = "bonusid"; $DATA = $url_bid; + $type = "bonusid"; $DATA = $url_bid; } else { @@ -92,7 +90,10 @@ if (defined('mxchange_installed') && (mxchange_installed)) } if (SQL_NUMROWS($result) == 1) { + // Load the entry list($ltype) = SQL_FETCHROW($result); + + // Clean result SQL_FREERESULT($result); switch ($ltype) { @@ -165,7 +166,7 @@ if (defined('mxchange_installed') && (mxchange_installed)) // He can confirm this mail! // Export data into constants for the template define('_UID_VALUE' , $url_uid); - define('_TYPE_VALUE', $TYPE); + define('_TYPE_VALUE', $type); define('_DATA_VALUE', $DATA); define('_URL_VALUE' , DEREFERER($URL)); @@ -199,7 +200,7 @@ if (defined('mxchange_installed') && (mxchange_installed)) // Error code is set? if (!empty($msg)) { - LOAD_URL(URL."/modules.php?module=index&msg=".$msg); + LOAD_URL("modules.php?module=index&msg=".$msg); } require_once(PATH."inc/footer.php");