Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. <?php
  2.  
  3. function iwadCheck($files)
  4. {
  5. foreach ($files as $check)
  6. {
  7. if (preg_match ("/.zip\b/i", $check))
  8. {
  9. $zip_o = shell_exec("/home/nukelol/nukelol.com/again/uber/iwad_zip.sh $check");
  10. if ($zip_o = 1)
  11. {
  12. return 1;
  13. }
  14. }
  15. elseif (preg_match ("/.7z\b/i", $check))
  16. {
  17. $sevenz_o = shell_exec("/home/nukelol/nukelol.com/again/uber/iwad_7z.sh $check");
  18. if ($sevenz_o = 1)
  19. {
  20. return 1;
  21. }
  22. }
  23. else
  24. {
  25. return 0;
  26. }
  27. }
  28. }
  29. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement