Example #1
0
 $rtem = array(showIn($sname, 'page'), showIn($smail, 'page'), showIn($sweb, 'page'), showIn($sphone, 'page'), showIn($scompany, 'page'));
 foreach ($sysTemps as $k => $v) {
     $sysTemps[$k]['data'] = str_replace($ftem, $rtem, $sysTemps[$k]['data']);
 }
 # Subscriber is not verified
 if ($sverify == 0) {
     # Check Key
     if ($rt != $sverify_key) {
         echo $sysTemps['erroroccurred']['data'];
     } else {
         # Subscriber Mark As Single Opt-in
         $myconn->query("UPDATE " . db_table_pref . "subscribers SET subscriber_verify=1 WHERE ID=" . $subIDs . "") or die(mysqli_error($myconn));
         # Send Double Opt-in Mail If Organization is Using Double Verification
         if ($orgVerifMode == 2) {
             $unSubLethe->SUBID = $subIDs;
             $unSubLethe->sendVerify(2);
         }
         # Print Thank Template
         echo $sysTemps['thank']['data'];
     }
     # Subscriber is single verified
 } else {
     if ($sverify == 1) {
         # Check If Double Opt-in Active for Organization
         if ($orgVerifMode == 2) {
             # Check Key
             if ($rt != encr($sverify_key)) {
                 echo $sysTemps['erroroccurred']['data'];
             } else {
                 # Subscriber Mark As Double Opt-in
                 $myconn->query("UPDATE " . db_table_pref . "subscribers SET subscriber_verify=2 WHERE ID=" . $subIDs . "") or die(mysqli_error($myconn));
Example #2
0
 /* Re-Send Verification Start */
 if (isset($_POST['resendact'])) {
     /* Org Limit Check */
     if (set_org_max_daily_limit != 0) {
         if (set_org_daily_sent >= set_org_max_daily_limit) {
             die(errMod(letheglobal_daily_limit_exceeded, 'danger'));
         }
     }
     $intDate = date('Y-m-d H:i:s', strtotime($sr->Get('subscriber_verify_sent_interval')));
     if ($intDate > date('Y-m-d H:i:s')) {
         die(errMod(subscribers_you_can_send_new_mail_after_2_min, 'danger'));
     }
     $lt = new lethe();
     $lt->OID = $sr->Get('OID');
     $lt->SUBID = $sr->Get('ID');
     if ($lt->sendVerify()) {
         echo errMod(subscribers_verification_mail_successfully_sent_to_subscriber, 'success');
     } else {
         echo errMod(subscribers_error_occured_while_sending_e_mail, 'danger');
     }
     unset($lt);
     die;
 }
 /* Re-Send Verification End */
 /* New Code Generation Start */
 if (isset($_POST['genVerfyCode'])) {
     $genNew = encr(time() . $sr->Get('subscriber_mail') . $sr->Get('subscriber_verify_key') . uniqid(true));
     $upCode = $myconn->prepare("UPDATE " . db_table_pref . "subscribers SET subscriber_verify_key=? WHERE OID=" . set_org_id . " AND ID=?") or die(mysqli_error($myconn));
     $upCode->bind_param('si', $genNew, $ID);
     if ($upCode->execute()) {
         echo '