$otpsend = false; } elseif (strlen($name) != 10) { //echo ""; $shwmsg = "Invalid mobile no."; $otpsend = false; } else { $resultlg = mysqli_query($kcon, "select uid,uname from usrdt where umob='" . $name . "'"); $rowlg = mysqli_fetch_array($resultlg); if ($rowlg['uid'] > 0) { $otpvrfd = true; $_SESSION["lguid"] = $rowlg['uid']; $_SESSION["lgunme"] = $rowlg['uname']; $_SESSION["lgmob"] = $name; print "<script type='text/javascript' language='javascript'>window.location='index.php?id=chk&sc=" . $src . "&action=ok';</script>"; } else { $PTO = genPwd(6, 4); $msgstruser = "******" . $PTO; $msgstruser = str_replace(' ', '%20', $msgstruser); $smsurl = "http://sms.blueapplelabs.com/api/sendmsg.php?user=VYPARY&pass=bavy123&sender=VYPARY&phone=" . $name . "&text=" . $msgstruser . "&priority=ndnd&stype=normal"; // echo $smsurl; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $smsurl); curl_setopt($ch, CURLOPT_HEADER, 0); // grab URL and pass it to the browser //$response= ?> <div class="no-display"><?php curl_exec($ch); ?> </div> <?php
$status = getPostVar('payment_status'); if ($status != "Completed") { doError("invalid payment_status (is {$status}, should be Completed)\n"); } $myEmail = getPostVar('receiver_email'); if (0 != strcasecmp($myEmail, MYEMAIL)) { doError("invalid receiver_email (is {$myEmail}, should be arslexis@pobox.com)\n"); } $txnId = getPostVar('txn_id'); if (!isTxnUnique($txnId)) { doError("txn_id ({$txnId}) is not unique\n"); } # this was a succesful transaction. Log details in the database # and notify me with an e-mail $id = logTransactionDetails(); $pwd = genPwd(); insertOneVar($id, 'dl_pwd', $pwd); $customerEmail = getPostVar('payer_email'); $body = getLoggedVars($id); $subject = "[PP] TD {$customerEmail}"; $ret = sendEmail(MYEMAIL, $subject, $body); # update the database with products to download $login = $customerEmail; foreach ($productsBought as $prod) { insertProduct($login, $pwd, $prod); } # send confirmation e-mail to the customer $body = "Thank you for purchasing ArsLexis software.\n"; $body .= "To download the software please go to http://www.arslexis.com/dl.html\n"; $body .= "and use '{$login}' as login and '{$pwd}' as a password.\n"; $body .= "\n";