X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=lead-confirm.php;h=34deb6a63f18fcbfd6d33e29dbaa79fa2136b59b;hb=7b06e0c3255e89f45516fac40c70211fecb2c302;hp=47024cf435ab0e061e6c3ad18507ebf7b780dac2;hpb=9f6c30cc0e06098171d773d671292081ecee3d29;p=mailer.git diff --git a/lead-confirm.php b/lead-confirm.php index 47024cf435..34deb6a63f 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); +loadTemplate('lead_code', FALSE, $content); // Footer loadIncludeOnce('inc/footer.php');