Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require_once("/home/brebespedia1807/public_html/openthisconfig.php");
- ##################################################
- ########## ####### OPERANSOSMED ####### ##########
- ##################################################
- // Orion Panel
- function orionpanelsosmed($kunci,$xcv1,$xcv2,$xcv3,$tipe,$id_pesanan){
- if($tipe == 'add'){
- $postdata = "key=$kunci&method=order&service=$xcv1&link=$xcv2&quantity=$xcv3";
- } else if($tipe == 'status'){
- $postdata = "key=$kunci&method=view&order_id=$id_pesanan";
- }
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, "https://all-orionpanel-5.co.id/API?type=sosmed");
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_POSTFIELDS, $postdata);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
- $chresult = curl_exec($ch);
- curl_close($ch);
- $json_result = json_decode($chresult,true);
- return $json_result;
- }
- // irvan
- function IRVAN($kunci,$service,$link,$quantity,$tipe,$id_pesanan){
- if($tipe == 'add'){
- $url = "https://irvankede-smm.co.id/api/order";
- $postdata = "api_id=3525&api_key=$kunci&service=$service&target=$link&quantity=$quantity";
- } else if($tipe == 'status'){
- $url = "https://irvankede-smm.co.id/api/status";
- $postdata = "api_id=3525&api_key=$kunci&id=$id_pesanan";
- }
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, $url);
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_POSTFIELDS, $postdata);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
- $chresult = curl_exec($ch);
- curl_close($ch);
- $json_result = json_decode($chresult,true);
- //return $json_result;
- print_r($chresult);
- }
- ##################################################
- ########## ####### OPERAN-PULSA ####### ##########
- ##################################################
- // Orion Panel
- function orionpanelpulsa($kunci,$xcv1,$xcv2,$xcv3,$tipe,$id_pesanan){
- if($tipe == 'add'){
- $postdata = "key=$kunci&method=order&service=$xcv1&target=$xcv2&nometer=$xcv2";
- } else if($tipe == 'status'){
- $postdata = "key=$kunci&method=view&order_id=$id_pesanan";
- }
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, "https://all-orionpanel-5.co.id/API?type=pulsa");
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_POSTFIELDS, $postdata);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
- $chresult = curl_exec($ch);
- curl_close($ch);
- $json_result = json_decode($chresult,true);
- return $chresult;
- }
- // portal Panel
- function status_portal($trxid) {
- $url = 'https://portalpulsa.com/api/connect/';
- $header = array(
- 'portal-userid: P69382',
- 'portal-key: 32755715893d1529a8e858ae2f2c8b61', // lihat hasil autogenerate di member area
- 'portal-secret: 8c31bb4c563f0150cdbd504b36b87b81d1875b4a165cd977b392157f3db75261', // lihat hasil autogenerate di member area
- );
- $data = array(
- 'inquiry' => 'STATUS', // konstan
- 'trxid_api' => $trxid, // Trxid atau Reffid dari sisi client saat transaksi pengisian
- );
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, $url);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
- curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
- $result = curl_exec($ch);
- $dec = json_decode($result,true);
- return $dec['message'][0]['status'];
- }
- function portalpulsa($xcv1,$xcv2,$xcv3,$urut){
- $url = 'https://portalpulsa.com/api/connect/';
- $header = array(
- 'portal-userid: P69382',
- 'portal-key: 32755715893d1529a8e858ae2f2c8b61', // lihat hasil autogenerate di member area
- 'portal-secret: 8c31bb4c563f0150cdbd504b36b87b81d1875b4a165cd977b392157f3db75261', // lihat hasil autogenerate di member area
- );
- $acak = str_shuffle(rand(00000,999999));
- if($xcv3 == false) {
- $data = array(
- 'inquiry' => 'I', // konstan
- 'code' => $xcv1, // kode produk
- 'phone' => $xcv2, // nohp pembeli
- 'trxid_api' => $acak, // Trxid / Reffid dari sisi client
- 'no' => $urut, // untuk isi lebih dari 1x dlm sehari, isi urutan 1,2,3,4,dst
- );
- } else if($xcv3 == true) {
- $data = array(
- 'inquiry' => 'PLN', // konstan
- 'code' => $xcv1, // kode produk
- 'phone' => $xcv2, // nohp pembeli
- 'idcust' => $xcv3, // nomor meter atau id pln
- 'trxid_api' => $acak, // Trxid / Reffid dari sisi client
- 'no' => $urut, // untuk isi lebih dari 1x dlm sehari, isi urutan 2,3,4,dst
- );
- }
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, $url);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
- curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
- $result = curl_exec($ch);
- $dec = json_decode($result);
- if($dec->result =="success") {
- $az=$acak;
- } else if($dec->result =="failed") {
- $az=false;
- }
- return $az;
- }
- ##################################################
- ########## ######## OPERANBANK ######## ##########
- ##################################################
- // Orion Panel
- function orionpanelbank($kunci,$xcv1,$xcv2,$xcv3,$tipe,$id_pesanan){
- if($tipe == 'add'){
- $postdata = "key=$kunci&method=order&rekening=$xcv2&atas_nama=$xcv3&service=$xcv1";
- } else if($tipe == 'status'){
- $postdata = "key=$kunci&method=view&order_id=$id_pesanan";
- }
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, "https://all-orionpanel-5.co.id/API?type=bank");
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_POSTFIELDS, $postdata);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
- $chresult = curl_exec($ch);
- curl_close($ch);
- $json_result = json_decode($chresult,true);
- return $json_result;
- }
- ##################################################
- ########## ####### OPERAN-PASAR ####### ##########
- ##################################################
- // Orion Panel
- function orionpanelpasar($kunci,$xcv1,$xcv2,$xcv3,$xcv34,$xcv5,$xcv6,$xcv7,$xcv8,$xcv9,$tipe,$id_pesanan){
- if($tipe == 'add'){
- $postdata = "key=$kunci&method=order&service=$xcv1&alamat=$xcv2&pos=$xcv3&kota=$xcv4&kecamatan=$xcv5&desa=$xcv6&phone=$xcv7&penerima=$xcv8&pengantar=$xcv9";
- } else if($tipe == 'status'){
- $postdata = "key=$kunci&method=view&order_id=$id_pesanan";
- }
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, "https://all-orionpanel-5.co.id/API?type=pasar");
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_POSTFIELDS, $postdata);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
- $chresult = curl_exec($ch);
- curl_close($ch);
- $json_result = json_decode($chresult,true);
- return $json_result;
- }
- ##################################################
- ########## ####### OPERANPANEL ####### ##########
- ##################################################
- // Orion Panel
- function orionpanelpanel($kunci,$xcv1,$xcv2,$xcv3,$tipe,$id_pesanan){
- if($tipe == 'add'){
- $postdata = "key=$kunci&method=order&username=$xcv2&password=$xcv3&service=$xcv1";
- } else if($tipe == 'status'){
- $postdata = "key=$kunci&method=view&order_id=$id_pesanan";
- }
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, "https://all-orionpanel-5.co.id/API?type=panel");
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_POSTFIELDS, $postdata);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
- $chresult = curl_exec($ch);
- curl_close($ch);
- $json_result = json_decode($chresult,true);
- return $json_result;
- }
- ##################################################
- ########## ########## -ENDS- ########## ##########
- ##################################################
- function infojson($url) {
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL, $url);
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
- $data = curl_exec($ch);
- curl_close($ch);
- return $data;
- }
- function rastgele($uzunluk){
- $a="ABCDEFGHIJKLMNOPRSTUVYZXabcdefghijklmnoprstuvyzx0123456789";
- $b="";
- for($i=0;$i<$uzunluk;$i++){
- $b.=$a[rand(0,56)];
- }
- return $b;
- }
- function cekIndex($teks,$ckata){
- $carikata = array($ckata);
- $hasil = 0;
- $jml_kata = count($carikata);
- for ($i=0;$i<$jml_kata;$i++){
- if (stristr($teks,$carikata[$i])){
- $hasil=1;
- }
- }
- return $hasil;
- }
- function APIBCA_ORION_OTOMATIS($jumlah){
- $mainapi = apikey_bca;
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL,"http://all-orionpanel-5.co.id/api/bca.php");
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_POSTFIELDS, "key=$mainapi&jumlah=$jumlah");
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- $data = curl_exec($ch);
- curl_close($ch);
- return json_decode($data,true);
- }
- function APIML_ORION_OTOMATIS($userid,$zoneid,$paket,$mainapi){
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL,"https://all-orionpanel-5.co.id/API?type=game");
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_POSTFIELDS, "key=$mainapi&userid=$userid&zoneid=$zoneid&service=$paket&method=order");
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- $data = curl_exec($ch);
- curl_close($ch);
- return json_decode($data,true);
- }
- function CAPIML_ORION_OTOMATIS($id_orderan,$mainapi){
- $ch = curl_init();
- curl_setopt($ch, CURLOPT_URL,"https://all-orionpanel-5.co.id/API?type=game");
- curl_setopt($ch, CURLOPT_POST, 1);
- curl_setopt($ch, CURLOPT_POSTFIELDS, "key=$mainapi&order_id=$id_orderan&method=view");
- curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
- $data = curl_exec($ch);
- curl_close($ch);
- return json_decode($data,true);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement