Advertisement
Guest User

Untitled

a guest
Dec 28th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.28 KB | None | 0 0
  1. public function checkClaimCode($msisdn){
  2.         $dbHost = "10.255.1.232";
  3.         $dbUser = "boltsuper4g";
  4.         $dbPass = "Bol7!_4cC3ss";
  5.         $dbDB = "boltsuper4g_20141105";
  6.         $mysqlCon = mysqli_connect($dbHost, $dbUser, $dbPass, $dbDB);
  7.         $init_uniq = "select uniq_code from claim_code where claim_stat='0' AND msisdn='" . $msisdn . "' limit 1";
  8.         $get_unique = mysqli_query($mysqlCon, $init_uniq);
  9.         $resultuniq = mysqli_fetch_assoc($get_unique);
  10.         $unique_code = $resultuniq['uniq_code'];
  11.         return $unique_code;
  12.     }
  13. $mailAPI_URL = '10.255.1.232';
  14.                             $checkClaimCode = $this->checkClaimCode($allneed['msisdn']);
  15.                             if($checkClaimCode==NULL){
  16.                                 $claimCode = $this->createClaimCode($allneed['msisdn'],$allneed['custinfo_email']);
  17.                             }else{
  18.                                 $claimCode = $this->checkClaimCode($allneed['msisdn']);
  19.                             }
  20.                             $urlEmail = 'http://' . $mailAPI_URL . '/mailapi/?msisdn=' . $allneed['msisdn'] . '&email=' . urlencode($allneed['custinfo_email']) . '&type=boltclaim&sub=bolthome&code=' . $claimCode;
  21.                             $emlCode = $this->curlIt($urlEmail);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement