PAL.C.T MINI SHELL
<?php
class smsmasking {
protected $to;
protected $text;
public $username;
public $password;
public $idreport;
public $apikey;
public function setTo($to) {
$this->to = $to;
}
public function setText($text) {
$this->text = $text;
}
public function smssend() {
if (!$this->to) {
trigger_error('Error: Phone to required!');
exit();
}
if (!$this->text) {
trigger_error('Error: Text Message required!');
exit();
}
$curlHandle = curl_init();
$url="http://162.211.84.203/sms/smsmasking.php?username=".urlencode($this->username)."&password=".urlencode($this->password)."&key=".$this->apikey."&number=".$this->to."&message=".urlencode($this->text);
curl_setopt($curlHandle, CURLOPT_URL,$url);
curl_setopt($curlHandle, CURLOPT_HEADER, 0);
curl_setopt($curlHandle, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curlHandle, CURLOPT_TIMEOUT,120);
$hasil = curl_exec($curlHandle);
curl_close($curlHandle);
return $hasil;
}
public function smssaldo() {
$curlHandle = curl_init();
$url="http://162.211.84.203/sms/smssaldo.php?username=".urlencode($this->username)."&password=".urlencode($this->password)."&key=".$this->apikey;
curl_setopt($curlHandle, CURLOPT_URL,$url);
curl_setopt($curlHandle, CURLOPT_HEADER, 0);
curl_setopt($curlHandle, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curlHandle, CURLOPT_TIMEOUT,120);
$hasil = curl_exec($curlHandle);
curl_close($curlHandle);
return $hasil;
}
public function smsreport() {
$curlHandle = curl_init();
$url="http://162.211.84.203/sms/smsmaskingreport.php?id=".$this->idreport."&key=".$this->apikey;
curl_setopt($curlHandle, CURLOPT_URL,$url);
curl_setopt($curlHandle, CURLOPT_HEADER, 0);
curl_setopt($curlHandle, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curlHandle, CURLOPT_TIMEOUT,120);
$hasil = curl_exec($curlHandle);
curl_close($curlHandle);
return $hasil;
}
}
class smsreguler {
protected $to;
protected $text;
public $username;
public $password;
public $idreport;
public $apikey;
public function setTo($to) {
$this->to = $to;
}
public function setText($text) {
$this->text = $text;
}
public function smssend() {
if (!$this->to) {
trigger_error('Error: Phone to required!');
exit();
}
if (!$this->text) {
trigger_error('Error: Text Message required!');
exit();
}
$curlHandle = curl_init();
// $url="http://162.211.84.203/sms/smsreguler.php?username=".urlencode($this->username)."&password=".urlencode($this->password)."&key=".$this->apikey."&number=".$this->to."&message=".urlencode($this->text);
$url="http://162.211.84.203/sms/smsreguler.php?username=".urlencode($this->username)."&key=".$this->apikey."&number=".$this->to."&message=".urlencode($this->text);
// http://162.211.84.203/sms/smsreguler.php?username=suyatmo&key=98efe0ffc89b072a3177c39c00c66287&number=$data_referal[phone]&message=$sms1
curl_setopt($curlHandle, CURLOPT_URL,$url);
curl_setopt($curlHandle, CURLOPT_HEADER, 0);
curl_setopt($curlHandle, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curlHandle, CURLOPT_TIMEOUT,120);
$hasil = curl_exec($curlHandle);
curl_close($curlHandle);
return $hasil;
}
public function smssaldo() {
$curlHandle = curl_init();
$url="http://162.211.84.203/sms/smssaldo.php?username=".urlencode($this->username)."&password=".urlencode($this->password)."&key=".$this->apikey;
curl_setopt($curlHandle, CURLOPT_URL,$url);
curl_setopt($curlHandle, CURLOPT_HEADER, 0);
curl_setopt($curlHandle, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curlHandle, CURLOPT_TIMEOUT,120);
$hasil = curl_exec($curlHandle);
curl_close($curlHandle);
return $hasil;
}
public function smsreport() {
$curlHandle = curl_init();
$url="http://162.211.84.203/sms/smsregulerreport.php?id=".$this->idreport."&key=".$this->apikey;
curl_setopt($curlHandle, CURLOPT_URL,$url);
curl_setopt($curlHandle, CURLOPT_HEADER, 0);
curl_setopt($curlHandle, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curlHandle, CURLOPT_TIMEOUT,120);
$hasil = curl_exec($curlHandle);
curl_close($curlHandle);
return $hasil;
}
}
?>
�
y���~�or�5�J�={��E��e�u磝Qk��ᯘG{�?���+�]������ן�?w�M3X^��歌>{�7پ�K�>�o��n�\����j�y��R���g/�=��f�O��r�o��NV�v��~�Y+��NG�u���Ý����HW��y�w�[eQ�ʨ�S�b��>������>�}G�mx[o[<��{���Ϯ_��qF���vMIEND�B`�