Advertisement
Guest User

Untitled

a guest
Oct 17th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.86 KB | None | 0 0
  1. <?php
  2. require_once("/home/brebespedia1807/public_html/openthisconfig.php");
  3. ##################################################
  4. ########## ####### OPERANSOSMED ####### ##########
  5. ##################################################
  6. // Orion Panel
  7. function orionpanelsosmed($kunci,$xcv1,$xcv2,$xcv3,$tipe,$id_pesanan){
  8. if($tipe == 'add'){
  9. $postdata = "key=$kunci&method=order&service=$xcv1&link=$xcv2&quantity=$xcv3";
  10. } else if($tipe == 'status'){
  11. $postdata = "key=$kunci&method=view&order_id=$id_pesanan";
  12. }
  13. $ch = curl_init();
  14. curl_setopt($ch, CURLOPT_URL, "https://all-orionpanel-5.co.id/API?type=sosmed");
  15. curl_setopt($ch, CURLOPT_POST, 1);
  16. curl_setopt($ch, CURLOPT_POSTFIELDS, $postdata);
  17. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  18. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  19. $chresult = curl_exec($ch);
  20. curl_close($ch);
  21. $json_result = json_decode($chresult,true);
  22. return $json_result;
  23. }
  24.  
  25. // irvan
  26. function IRVAN($kunci,$service,$link,$quantity,$tipe,$id_pesanan){
  27. if($tipe == 'add'){
  28. $url = "https://irvankede-smm.co.id/api/order";
  29. $postdata = "api_id=3525&api_key=$kunci&service=$service&target=$link&quantity=$quantity";
  30. } else if($tipe == 'status'){
  31. $url = "https://irvankede-smm.co.id/api/status";
  32. $postdata = "api_id=3525&api_key=$kunci&id=$id_pesanan";
  33. }
  34. $ch = curl_init();
  35. curl_setopt($ch, CURLOPT_URL, $url);
  36. curl_setopt($ch, CURLOPT_POST, 1);
  37. curl_setopt($ch, CURLOPT_POSTFIELDS, $postdata);
  38. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  39. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  40. $chresult = curl_exec($ch);
  41. curl_close($ch);
  42. $json_result = json_decode($chresult,true);
  43. //return $json_result;
  44. print_r($chresult);
  45. }
  46. ##################################################
  47. ########## ####### OPERAN-PULSA ####### ##########
  48. ##################################################
  49. // Orion Panel
  50. function orionpanelpulsa($kunci,$xcv1,$xcv2,$xcv3,$tipe,$id_pesanan){
  51. if($tipe == 'add'){
  52. $postdata = "key=$kunci&method=order&service=$xcv1&target=$xcv2&nometer=$xcv2";
  53. } else if($tipe == 'status'){
  54. $postdata = "key=$kunci&method=view&order_id=$id_pesanan";
  55. }
  56. $ch = curl_init();
  57. curl_setopt($ch, CURLOPT_URL, "https://all-orionpanel-5.co.id/API?type=pulsa");
  58. curl_setopt($ch, CURLOPT_POST, 1);
  59. curl_setopt($ch, CURLOPT_POSTFIELDS, $postdata);
  60. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  61. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  62. $chresult = curl_exec($ch);
  63. curl_close($ch);
  64. $json_result = json_decode($chresult,true);
  65. return $chresult;
  66. }
  67.  
  68. // portal Panel
  69.  
  70. function status_portal($trxid) {
  71. $url = 'https://portalpulsa.com/api/connect/';
  72. $header = array(
  73. 'portal-userid: P69382',
  74. 'portal-key: 32755715893d1529a8e858ae2f2c8b61', // lihat hasil autogenerate di member area
  75. 'portal-secret: 8c31bb4c563f0150cdbd504b36b87b81d1875b4a165cd977b392157f3db75261', // lihat hasil autogenerate di member area
  76. );
  77.  
  78. $data = array(
  79. 'inquiry' => 'STATUS', // konstan
  80. 'trxid_api' => $trxid, // Trxid atau Reffid dari sisi client saat transaksi pengisian
  81. );
  82.  
  83.  
  84. $ch = curl_init();
  85. curl_setopt($ch, CURLOPT_URL, $url);
  86. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  87. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
  88. curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
  89. curl_setopt($ch, CURLOPT_POST, 1);
  90. curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
  91. $result = curl_exec($ch);
  92. $dec = json_decode($result,true);
  93.  
  94. return $dec['message'][0]['status'];
  95.  
  96. }
  97.  
  98. function portalpulsa($xcv1,$xcv2,$xcv3,$urut){
  99.  
  100.  
  101. $url = 'https://portalpulsa.com/api/connect/';
  102. $header = array(
  103. 'portal-userid: P69382',
  104. 'portal-key: 32755715893d1529a8e858ae2f2c8b61', // lihat hasil autogenerate di member area
  105. 'portal-secret: 8c31bb4c563f0150cdbd504b36b87b81d1875b4a165cd977b392157f3db75261', // lihat hasil autogenerate di member area
  106. );
  107. $acak = str_shuffle(rand(00000,999999));
  108. if($xcv3 == false) {
  109. $data = array(
  110. 'inquiry' => 'I', // konstan
  111. 'code' => $xcv1, // kode produk
  112. 'phone' => $xcv2, // nohp pembeli
  113. 'trxid_api' => $acak, // Trxid / Reffid dari sisi client
  114. 'no' => $urut, // untuk isi lebih dari 1x dlm sehari, isi urutan 1,2,3,4,dst
  115. );
  116.  
  117. } else if($xcv3 == true) {
  118. $data = array(
  119. 'inquiry' => 'PLN', // konstan
  120. 'code' => $xcv1, // kode produk
  121. 'phone' => $xcv2, // nohp pembeli
  122. 'idcust' => $xcv3, // nomor meter atau id pln
  123. 'trxid_api' => $acak, // Trxid / Reffid dari sisi client
  124. 'no' => $urut, // untuk isi lebih dari 1x dlm sehari, isi urutan 2,3,4,dst
  125. );
  126. }
  127.  
  128. $ch = curl_init();
  129. curl_setopt($ch, CURLOPT_URL, $url);
  130. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  131. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
  132. curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
  133. curl_setopt($ch, CURLOPT_POST, 1);
  134. curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
  135. $result = curl_exec($ch);
  136. $dec = json_decode($result);
  137. if($dec->result =="success") {
  138. $az=$acak;
  139. } else if($dec->result =="failed") {
  140. $az=false;
  141. }
  142.  
  143. return $az;
  144. }
  145. ##################################################
  146. ########## ######## OPERANBANK ######## ##########
  147. ##################################################
  148. // Orion Panel
  149. function orionpanelbank($kunci,$xcv1,$xcv2,$xcv3,$tipe,$id_pesanan){
  150. if($tipe == 'add'){
  151. $postdata = "key=$kunci&method=order&rekening=$xcv2&atas_nama=$xcv3&service=$xcv1";
  152. } else if($tipe == 'status'){
  153. $postdata = "key=$kunci&method=view&order_id=$id_pesanan";
  154. }
  155. $ch = curl_init();
  156. curl_setopt($ch, CURLOPT_URL, "https://all-orionpanel-5.co.id/API?type=bank");
  157. curl_setopt($ch, CURLOPT_POST, 1);
  158. curl_setopt($ch, CURLOPT_POSTFIELDS, $postdata);
  159. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  160. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  161. $chresult = curl_exec($ch);
  162. curl_close($ch);
  163. $json_result = json_decode($chresult,true);
  164. return $json_result;
  165. }
  166. ##################################################
  167. ########## ####### OPERAN-PASAR ####### ##########
  168. ##################################################
  169. // Orion Panel
  170. function orionpanelpasar($kunci,$xcv1,$xcv2,$xcv3,$xcv34,$xcv5,$xcv6,$xcv7,$xcv8,$xcv9,$tipe,$id_pesanan){
  171. if($tipe == 'add'){
  172. $postdata = "key=$kunci&method=order&service=$xcv1&alamat=$xcv2&pos=$xcv3&kota=$xcv4&kecamatan=$xcv5&desa=$xcv6&phone=$xcv7&penerima=$xcv8&pengantar=$xcv9";
  173. } else if($tipe == 'status'){
  174. $postdata = "key=$kunci&method=view&order_id=$id_pesanan";
  175. }
  176. $ch = curl_init();
  177. curl_setopt($ch, CURLOPT_URL, "https://all-orionpanel-5.co.id/API?type=pasar");
  178. curl_setopt($ch, CURLOPT_POST, 1);
  179. curl_setopt($ch, CURLOPT_POSTFIELDS, $postdata);
  180. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  181. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  182. $chresult = curl_exec($ch);
  183. curl_close($ch);
  184. $json_result = json_decode($chresult,true);
  185. return $json_result;
  186. }
  187. ##################################################
  188. ########## ####### OPERANPANEL ####### ##########
  189. ##################################################
  190. // Orion Panel
  191. function orionpanelpanel($kunci,$xcv1,$xcv2,$xcv3,$tipe,$id_pesanan){
  192. if($tipe == 'add'){
  193. $postdata = "key=$kunci&method=order&username=$xcv2&password=$xcv3&service=$xcv1";
  194. } else if($tipe == 'status'){
  195. $postdata = "key=$kunci&method=view&order_id=$id_pesanan";
  196. }
  197. $ch = curl_init();
  198. curl_setopt($ch, CURLOPT_URL, "https://all-orionpanel-5.co.id/API?type=panel");
  199. curl_setopt($ch, CURLOPT_POST, 1);
  200. curl_setopt($ch, CURLOPT_POSTFIELDS, $postdata);
  201. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  202. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  203. $chresult = curl_exec($ch);
  204. curl_close($ch);
  205. $json_result = json_decode($chresult,true);
  206. return $json_result;
  207. }
  208. ##################################################
  209. ########## ########## -ENDS- ########## ##########
  210. ##################################################
  211. function infojson($url) {
  212. $ch = curl_init();
  213. curl_setopt($ch, CURLOPT_URL, $url);
  214. curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  215. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
  216. $data = curl_exec($ch);
  217. curl_close($ch);
  218. return $data;
  219. }
  220. function rastgele($uzunluk){
  221. $a="ABCDEFGHIJKLMNOPRSTUVYZXabcdefghijklmnoprstuvyzx0123456789";
  222. $b="";
  223. for($i=0;$i<$uzunluk;$i++){
  224. $b.=$a[rand(0,56)];
  225. }
  226. return $b;
  227. }
  228. function cekIndex($teks,$ckata){
  229. $carikata = array($ckata);
  230. $hasil = 0;
  231. $jml_kata = count($carikata);
  232. for ($i=0;$i<$jml_kata;$i++){
  233. if (stristr($teks,$carikata[$i])){
  234. $hasil=1;
  235. }
  236. }
  237. return $hasil;
  238. }
  239. function APIBCA_ORION_OTOMATIS($jumlah){
  240. $mainapi = apikey_bca;
  241. $ch = curl_init();
  242. curl_setopt($ch, CURLOPT_URL,"http://all-orionpanel-5.co.id/api/bca.php");
  243. curl_setopt($ch, CURLOPT_POST, 1);
  244. curl_setopt($ch, CURLOPT_POSTFIELDS, "key=$mainapi&jumlah=$jumlah");
  245. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  246. $data = curl_exec($ch);
  247. curl_close($ch);
  248. return json_decode($data,true);
  249. }
  250. function APIML_ORION_OTOMATIS($userid,$zoneid,$paket,$mainapi){
  251. $ch = curl_init();
  252. curl_setopt($ch, CURLOPT_URL,"https://all-orionpanel-5.co.id/API?type=game");
  253. curl_setopt($ch, CURLOPT_POST, 1);
  254. curl_setopt($ch, CURLOPT_POSTFIELDS, "key=$mainapi&userid=$userid&zoneid=$zoneid&service=$paket&method=order");
  255. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  256. $data = curl_exec($ch);
  257. curl_close($ch);
  258. return json_decode($data,true);
  259. }
  260. function CAPIML_ORION_OTOMATIS($id_orderan,$mainapi){
  261. $ch = curl_init();
  262. curl_setopt($ch, CURLOPT_URL,"https://all-orionpanel-5.co.id/API?type=game");
  263. curl_setopt($ch, CURLOPT_POST, 1);
  264. curl_setopt($ch, CURLOPT_POSTFIELDS, "key=$mainapi&order_id=$id_orderan&method=view");
  265. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  266. $data = curl_exec($ch);
  267. curl_close($ch);
  268. return json_decode($data,true);
  269. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement