Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $all = file('all.txt');
- /*
- foreach ($all as $a) {
- $a = explode(' - ', $a)[1];
- if (trim($a)) echo $a;
- }
- die();
- */
- $now = json_decode(file_get_contents('now.txt'));
- $used = [];
- $i = 0;
- foreach ($all as $a) {
- $used[$i] = ['proxy' => $a];
- foreach ($now as $index=>$pack) {
- foreach (explode("\n",$pack) as $item) {
- if (strripos($item, trim($a)) !== false) {
- $used[$i]['used'][] = $index;
- }
- }
- }
- $i++;
- }
- foreach ($used as $us) {
- if ($us['used']) echo 'Прокси '.trim($us['proxy']).', пачки: '.json_encode($us['used'])."\n";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement