is-jewish 339 B

123456789101112
  1. #!/usr/bin/php
  2. # CC 4.0 BY @istvan@noagendasocial.com
  3. <?php
  4. // enable allow_url_fopen in php.ini
  5. $name = $argv[1];
  6. $early_life = file_get_contents("https://en.wikipedia.org/w/api.php?action=parse&format=json&page=$name&prop=wikitext&section=1&disabletoc=1");
  7. if(stripos($early_life, "jew"))
  8. echo "(((".$name.")))";
  9. else
  10. echo $name;
  11. ?>