Advertisement
alexx876

Untitled

Jan 12th, 2019
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. <?php
  2. $all = file('all.txt');
  3. /*
  4. foreach ($all as $a) {
  5. $a = explode(' - ', $a)[1];
  6. if (trim($a)) echo $a;
  7. }
  8. die();
  9. */
  10. $now = json_decode(file_get_contents('now.txt'));
  11. $used = [];
  12. $i = 0;
  13. foreach ($all as $a) {
  14. $used[$i] = ['proxy' => $a];
  15. foreach ($now as $index=>$pack) {
  16. foreach (explode("\n",$pack) as $item) {
  17. if (strripos($item, trim($a)) !== false) {
  18. $used[$i]['used'][] = $index;
  19. }
  20. }
  21. }
  22. $i++;
  23. }
  24. print_R($used);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement