<?Php
/*************************************** ***************************
Check MD5 (md5sumPhp)
2008-11-09
Amxku.net
Verify the accuracy of the file.
After the website is infiltrated, check the file accuracy.
* In UIX, md5sum *> md5sum can be used to obtain the md5 value of all files.
MD5 value for comparison.
InCodeCheck is a little useful, and nothing else can be used.
**************************************** **************************/
Echo<Meta http-equiv = "Content-Type" content = "text/html; charset = UTF-8"/>;
Echo<Title> Check MD5 (md5sumPhp) </Title>;
Check_md5(".");
FunctionCheck_md5($ Directory){
$ Check_md5_dir= @Opendir($ Directory);
Echo<Ul>;
While ($ File= @Readdir($ Check_md5_dir)){
If ($ File! ="."&&$ File! =".."){
If (Is_dir("$ Directory/$ file")){
Echo<Li> <strong>.$ File.</Strong> </li>;
Tree("$ Directory/$ file");
} Else {
Echo<Li>.$ File.==>.Md5_file("$ Directory/$ file").</Li>;
}
}
}
Echo</Ul>;
Closedir($ Check_md5_dir);
}
?>