X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=lead-confirm.php;h=0ec4891877be98f3c092ca9eb67217a455665f56;hp=47024cf435ab0e061e6c3ad18507ebf7b780dac2;hb=0b3c15320cbefa1ae2ab0a0d6b6df525d08836d7;hpb=9f6c30cc0e06098171d773d671292081ecee3d29 diff --git a/lead-confirm.php b/lead-confirm.php index 47024cf435..0ec4891877 100644 --- a/lead-confirm.php +++ b/lead-confirm.php @@ -1,7 +1,7 @@ -1, - 'lead_email' => 'INVALID@EMAIL' + 'lead_userid' => '0', + 'lead_email' => '{?WEBMASTER?}' ); // Is the cookie set? -if (isSessionVariableSet('lead_userid')) { - // Is the user-account unlocked and valid? - if (fetchUserData(getSession('lead_userid'))) { - // Secure the id number - $content['lead_userid'] = bigintval(getSession('lead_userid')); +if ((isSessionVariableSet('lead_userid')) && (fetchUserData(getSession('lead_userid')))) { + // Secure the id number + $content['lead_userid'] = bigintval(getSession('lead_userid')); - // Load the email address - $content['lead_email'] = getUserData('email'); - } else { - // Not found! - $content['lead_userid'] = 0; - } -} else { - // Maybe spider? - $content['lead_email'] = getConfig('WEBMASTER'); -} + // Load the email address + $content['lead_email'] = getUserData('email'); +} // END - if // Load the lead template loadTemplate('lead_code', false, $content);