X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=mailid.php;h=fe2c59e7ab54ee16c4c52073eacb77fa80a43c6a;hp=d530bb2a3b839450f3dae768a6aa55562f21a99d;hb=b537cec0ec5107ef3b6cc59dc36f4a0713a27677;hpb=9cb3095b94feae69d53a847696c017ebda809212 diff --git a/mailid.php b/mailid.php index d530bb2a3b..fe2c59e7ab 100644 --- a/mailid.php +++ b/mailid.php @@ -42,10 +42,9 @@ $GLOBALS['what'] = ""; $GLOBALS['action'] = ""; $GLOBALS['module'] = "mailid"; $CSS = -1; // Load the required file(s) -require ("inc/config.php"); +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! @@ -111,8 +110,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__); @@ -206,6 +210,11 @@ if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_install case "REJECT": // Redirect to rejection page LOAD_URL($_CONFIG['reject_url']); break; + + default: + DEBUG_LOG(__FILE__, __LINE__, sprintf("Unknown status %s detected in mailid_error_redirect.", $_CONFIG['mailid_error_redirect'])); + LOAD_URL("modules.php?module=index&msg=".CODE_UNKNOWN_STATUS."&ext=mailid"); + break; } } else { // Include footer