Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $suannkk = time();
- $bitisskk = '154254758536989';
- $siteismi = '';
- $doo = '';
- $ddacikla = '';
- $ssacikla = '';
- if($bitisskk <= $suannkk)
- {
- echo $ssacikla;
- exit();
- }
- if($doo == 1)
- {
- if (!stristr( htmlentities($_SERVER["SERVER_NAME"]), $siteismi))
- {
- echo $ddacikla;
- exit();
- }
- }
- ?>
- <?php
- require_once '../sys/BasicDB.php';
- require_once '../sys/function.php';
- include "../api/api.php";
- $siparisler = $db->query("SELECT * FROM siparisler where Durum IN ('Processing','Pending', 'In progress', 'Inprogress') ORDER BY BaslangicSayisi ASC", PDO::FETCH_ASSOC );
- foreach ($siparisler as $key)
- {
- $kullanici = $db->from('kullanicilar')
- ->where('KullaniciAdi', $key['Kullanici'])
- ->all();
- if ( $key['SiparisId'] ){
- $apiBilgileri = $db->from('api')
- ->where('Id', $key['ApiId'])
- ->all();
- $api = new Api();
- $api->api_url = $apiBilgileri[0]['ApiUrl'];
- $api->api_key = $apiBilgileri[0]['ApiKey'];
- if ($apiBilgileri[0]['ApiUrl'] == "https://smmturk.net/api/v2.php") {
- $result = $api->status($key['SiparisId']);
- $baslangicSayisi = $result->start_count;
- $kalan = $result->remains;
- }
- if ($baslangicSayisi < 1) {
- $baslangicSayisi = 1;
- }
- if ($result->status == "Processing" || $result->status == "In progress") {
- $Durum = "Processing";
- }elseif ($result->status == "Pending") {
- $Durum = "Pending";
- ....................................................................
- .........................................
- .............
Add Comment
Please, Sign In to add comment