hallo habe ein script welches MD5 werte bei datein auf einem server ändert.
<title>Change md5 Hash</title>
<link href="images/rl_style_pm.css" rel="stylesheet" type="text/css" />
<?
$path = "files";
if (isset($_GET['file'])) {
$handle = fopen("$path/".$_GET['file']."", 'a+');
if ($handle) {
fwrite($handle, '0');
} else {
echo "<br />Error!<br />";
}
fclose($handle);
}
echo "<center><a href='index.php'>Back to Rapidleech</a><br><br><b>Click to change the md5 Hash</b> (In Folder: $path)<br><br><br></center> ";
$handle = opendir ($path);
while (false !== ($file = readdir ($handle))){
if ($file != "."){
if ($file != ".."){
if ($file != "index.html") {
$byte = filesize($path."/".$file);
$byte = md5($byte);
if (! is_dir($path."/".$file)) {
echo "<center><b><a href='md5.php?file=$file'>Change md5</a></B> of $file md5 Hash [ <b>$byte</b> ]<br/></center>";
}
}
}
}
}
closedir($handle);
?>
ich würde gerne aber jetzt alle gefundenen datein mit einem klick ändern.
wie kann ich das machen???
hab leider keine PHP erfahrung hoffe mir kann evtl wer helfen.
gruß
Peter