Guest User

Untitled

a guest
May 2nd, 2020
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. <?php
  2.  
  3. $suannkk = time();
  4. $bitisskk = '154254758536989';
  5. $siteismi = '';
  6. $doo = '';
  7. $ddacikla = '';
  8. $ssacikla = '';
  9.  
  10. if($bitisskk <= $suannkk)
  11. {
  12.  
  13.  
  14. echo $ssacikla;
  15. exit();
  16.  
  17. }
  18. if($doo == 1)
  19. {
  20. if (!stristr( htmlentities($_SERVER["SERVER_NAME"]), $siteismi))
  21. {
  22.  
  23. echo $ddacikla;
  24. exit();
  25. }
  26. }
  27. ?>
  28. <?php
  29. require_once '../sys/BasicDB.php';
  30. require_once '../sys/function.php';
  31. include "../api/api.php";
  32.  
  33. $siparisler = $db->query("SELECT * FROM siparisler where Durum IN ('Processing','Pending', 'In progress', 'Inprogress') ORDER BY BaslangicSayisi ASC", PDO::FETCH_ASSOC );
  34.  
  35. foreach ($siparisler as $key)
  36. {
  37.  
  38. $kullanici = $db->from('kullanicilar')
  39. ->where('KullaniciAdi', $key['Kullanici'])
  40. ->all();
  41.  
  42. if ( $key['SiparisId'] ){
  43.  
  44. $apiBilgileri = $db->from('api')
  45. ->where('Id', $key['ApiId'])
  46. ->all();
  47.  
  48. $api = new Api();
  49. $api->api_url = $apiBilgileri[0]['ApiUrl'];
  50. $api->api_key = $apiBilgileri[0]['ApiKey'];
  51.  
  52. if ($apiBilgileri[0]['ApiUrl'] == "https://smmturk.net/api/v2.php") {
  53. $result = $api->status($key['SiparisId']);
  54. $baslangicSayisi = $result->start_count;
  55. $kalan = $result->remains;
  56. }
  57.  
  58.  
  59. if ($baslangicSayisi < 1) {
  60. $baslangicSayisi = 1;
  61. }
  62.  
  63. if ($result->status == "Processing" || $result->status == "In progress") {
  64. $Durum = "Processing";
  65. }elseif ($result->status == "Pending") {
  66. $Durum = "Pending";
  67. ....................................................................
  68. .........................................
  69. .............
Add Comment
Please, Sign In to add comment