it does delete the outbox folder and account file... and if by eraseallfiles code you mean what it is set to do, it is:
Code:
function eraseallfiles($dir) {
$countstuff = opendir("$dir");
while($file = readdir($countstuff)){
if($file != '.' && $file != '..'){
@unlink("{$dir}$file");
}
}
closedir($countstuff);
}
Code:
$dir = "./accounts/";
if ($dh = opendir($dir)) {
while (($file = readdir($dh)) !== false) {
if ($file != "." || $file != "..") {
if(!is_dir("./accounts/$file")) {
include("./accounts/$file");
$list.= "$email, ";
}
}
}
closedir($dh);
}
Bookmarks