Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $s='/home/vit/plint/modules/';$a = dir('/home/vit/plint/modules'); while (FALSE !== ($b = $a->read())) { if( ($b === '.' || $b === '..') || is_dir($s.$b)) continue; if (preg_match('/\.php$/',$b)) { $c=substr($b, 0, strlen($b) - 4); print($b . "\t--->\t" . $c . "\t\t\t\t" . (rename($s . $b, $s . $c) ? "OK" : "FAILED!") . "\n"); } }
Advertisement
Add Comment
Please, Sign In to add comment