Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function checkClaimCode($msisdn){
- $dbHost = "10.255.1.232";
- $dbUser = "boltsuper4g";
- $dbPass = "Bol7!_4cC3ss";
- $dbDB = "boltsuper4g_20141105";
- $mysqlCon = mysqli_connect($dbHost, $dbUser, $dbPass, $dbDB);
- $init_uniq = "select uniq_code from claim_code where claim_stat='0' AND msisdn='" . $msisdn . "' limit 1";
- $get_unique = mysqli_query($mysqlCon, $init_uniq);
- $resultuniq = mysqli_fetch_assoc($get_unique);
- $unique_code = $resultuniq['uniq_code'];
- return $unique_code;
- }
- $mailAPI_URL = '10.255.1.232';
- $checkClaimCode = $this->checkClaimCode($allneed['msisdn']);
- if($checkClaimCode==NULL){
- $claimCode = $this->createClaimCode($allneed['msisdn'],$allneed['custinfo_email']);
- }else{
- $claimCode = $this->checkClaimCode($allneed['msisdn']);
- }
- $urlEmail = 'http://' . $mailAPI_URL . '/mailapi/?msisdn=' . $allneed['msisdn'] . '&email=' . urlencode($allneed['custinfo_email']) . '&type=boltclaim&sub=bolthome&code=' . $claimCode;
- $emlCode = $this->curlIt($urlEmail);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement