X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mailid.php;h=fcb310d01b8b4b8c744f3a8be48a575fab4d3f6c;hb=44aadef1eae9767d1d54da2821119aa60a5ee4f6;hp=97f943890e53dc2699f34a4b03a805d07015891e;hpb=f01652b7b8efac92d97889e312402c4a845c2f14;p=mailer.git diff --git a/mailid.php b/mailid.php index 97f943890e..fcb310d01b 100644 --- a/mailid.php +++ b/mailid.php @@ -44,12 +44,12 @@ $GLOBALS['module'] = "mailid"; $CSS = -1; // Load the required file(s) require ("inc/config.php"); -if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_installed'))) +if (isBooleanConstantAndTrue('mxchange_installed')) { // Is the extension active if (!EXT_IS_ACTIVE("mailid", true)) { // Is not activated/installed yet! - LOAD_URL("modules.php?module=index&msg=".CODE_EXTENSION_PROBLEM); + LOAD_URL("modules.php?module=index&msg=".CODE_EXTENSION_PROBLEM."&ext=mailid"); } // END - if // Init @@ -99,7 +99,7 @@ if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_install // Is the bonus extension active? if (!EXT_IS_ACTIVE("bonus")) { // Abort here - LOAD_URL("modules.php?module=index&msg=".CODE_EXTENSION_PROBLEM); + LOAD_URL("modules.php?module=index&msg=".CODE_EXTENSION_PROBLEM."&ext=mailid"); } // END - if // Bonus-Mails @@ -111,8 +111,13 @@ if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_install if (SQL_NUMROWS($result) == 1) { // Load data list($pool, $URL, $EXTRA_TITLE) = SQL_FETCHROW($result); + + // Free result SQL_FREERESULT($result); + // Compile extra title + $EXTRA_TITLE = COMPILE_CODE($EXTRA_TITLE); + // Is the user's ID unlocked? $result = SQL_QUERY_ESC("SELECT status, gender, surname, family FROM "._MYSQL_PREFIX."_user_data WHERE userid=%s LIMIT 1", array($url_uid), __FILE__, __LINE__); @@ -200,12 +205,16 @@ if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_install if (!empty($msg)) { switch ($_CONFIG['mailid_error_redirect']) { case "INDEX": // Redirect to index page - LOAD_URL("modules.php?module=index&msg=".$msg); + LOAD_URL("modules.php?module=index&msg=".$msg."&ext=mailid"); break; case "REJECT": // Redirect to rejection page LOAD_URL($_CONFIG['reject_url']); break; + + default: + LOAD_URL("modules.php?module=index&msg=".CODE_UNKNOWN_STATUS."&ext=mailid"); + break; } } else { // Include footer