Example #1
0
 public function SendSMS()
 {
     $client = new SoapClient($this->wsdl_link);
     $result = $client->send($this->username, $this->password, array(array('number' => implode(",", $this->to))), $this->from, $this->msg);
     if ($result) {
         $this->InsertToDB($this->from, $this->msg, $this->to);
         $this->Hook('wp_sms_send', $result);
     }
     return $result[0]['id'];
 }
Example #2
0
 public function SendSMS()
 {
     $client = new SoapClient($this->wsdl_link);
     foreach ($this->to as $items) {
         $to[] = array('number' => $items);
     }
     $result = $client->send($this->username, $this->password, $to, $this->from, $this->msg);
     if ($result) {
         $this->InsertToDB($this->from, $this->msg, $this->to);
         $this->Hook('wp_sms_send', $result);
     }
     return $result;
 }
Example #3
0
 public function SendSMS()
 {
     // Check credit for the gateway
     if (!$this->GetCredit()) {
         return;
     }
     /**
      * Modify sender number
      *
      * @since 3.4
      * @param string $this->from sender number.
      */
     $this->from = apply_filters('wp_sms_from', $this->from);
     /**
      * Modify Receiver number
      *
      * @since 3.4
      * @param array $this->to receiver number
      */
     $this->to = apply_filters('wp_sms_to', $this->to);
     /**
      * Modify text message
      *
      * @since 3.4
      * @param string $this->msg text message.
      */
     $this->msg = apply_filters('wp_sms_msg', $this->msg);
     $client = new SoapClient($this->wsdl_link);
     foreach ($this->to as $items) {
         $to[] = array('number' => $items);
     }
     $result = $client->send($this->username, $this->password, $to, $this->from, $this->msg);
     if ($result) {
         $this->InsertToDB($this->from, $this->msg, $this->to);
         /**
          * Run hook after send sms.
          *
          * @since 2.4
          * @param string $result result output.
          */
         do_action('wp_sms_send', $result);
         return $result;
     }
 }
Example #4
0
     $_SESSION['error']['nowallet'] = true;
     header('Location:index.php');
     die;
 } else {
     $_SESSION['user']['wallet'] = trim($_POST['wallet']);
     $user = User_id($_SESSION['user']['wallet']);
     $_SESSION['user']['uid'] = $user['uid'];
     $_SESSION['user']['refid'] = $user['refid'];
     $_SESSION['user']['plnum'] = $user['plnum'];
 }
 $solvemedia_response = solvemedia_check_answer($verkey, $_SERVER["REMOTE_ADDR"], $_POST['adcopy_challenge'], $_POST['adcopy_response'], $hashkey);
 if ($solvemedia_response->is_valid) {
     global $apiurl, $apicode;
     $client = new SoapClient($apiurl);
     $prize = chance_creator($rewards);
     $response = $client->send($apicode, $_SESSION['user']['wallet'], $prize, 1);
     if ($response['status'] > 0) {
         $wait = $now + $setinterval * 60;
         $db->query("update tbl_user set `reset`='{$wait}',playnum=playnum+1,earn=earn+'{$prize}',ip='{$ip}' where user_id='" . $_SESSION['user']['uid'] . "'");
         $_SESSION['user']['succ'] = $prize;
         if ($_SESSION['user']['refid']) {
             $refearn = floor($prize * $ref_percent / 100);
             $db2->queryres("select wallet from tbl_user where user_id='" . $_SESSION['user']['refid'] . "'");
             $response = $client->send($apicode, $db2->res['wallet'], $refearn, 2, 'Referral earnings.');
         }
         unset($_SESSION['error']);
         unset($_SESSION['prize']);
     } else {
         $_SESSION['error']['epay'] = true;
     }
     $amount_bb = $client->balance($apicode, $_SESSION['user']['wallet']);
Example #5
0
<?php

require_once "maincore.php";
$client = new SoapClient($apiurl);
$db->query("select user_id,wallet,ref_pending from tbl_user where ref_pending>='{$reflimit}' order by ref_pending desc");
while ($res = $db->fetchArray()) {
    $response = $client->send($apicode, $res['wallet'], $res['ref_pending'], 2, 'Referral earnings.');
    if ($response['status'] > 0) {
        $db2->query("update tbl_user set ref_pending=0 where user_id='" . $res['user_id'] . "'");
    }
}
Example #6
0
<?php

$client = new SoapClient('http://api.epay.info/?wsdl');
// Send a normal prize
$response = $client->send($apicode, $user_wallet, $amount_to_send, 1);
// Send a refferal earning
$response = $client->send($apicode, $user_wallet, $amount_to_send, 2, 'Referral earnings.');
/****
$response['status'] is greater than 0 that means transaction was successful
***/