motormichael12
12-10-2006, 08:27 PM
i have a file that someone gave me and it contains:
<?php
if ($eraseuser) {
// Attempt to erase member and all files
//
unlink("./accounts/{$eraseuser}_user.php");
eraseallfiles("./accounts/{$eraseuser}_inbox");
eraseallfiles("./accounts/{$eraseuser}_outbox");
rmdir("./accounts/{$eraseuser}_outbox/");
rmdir("./accounts/{$eraseuser}_inbox/");
$file=file("./id_data/member_names_num.txt");
if ($eraseuser) {
$file=file("./id_data/member_names_num.txt");
$file[$l]="Nonexisting \n";
$file3 = fopen("./id_data/member_names_num.txt", "w+");
foreach($file as $v){
fwrite($file3,"$v");
}
fclose($file3);
}
}
when trying to delete the user it won't delete the inbox folder... I have a script so when they register it makes a file in the inbox folder, so that could cause something, but the eraseallfiles should take care of that...
Any suggestions?
<?php
if ($eraseuser) {
// Attempt to erase member and all files
//
unlink("./accounts/{$eraseuser}_user.php");
eraseallfiles("./accounts/{$eraseuser}_inbox");
eraseallfiles("./accounts/{$eraseuser}_outbox");
rmdir("./accounts/{$eraseuser}_outbox/");
rmdir("./accounts/{$eraseuser}_inbox/");
$file=file("./id_data/member_names_num.txt");
if ($eraseuser) {
$file=file("./id_data/member_names_num.txt");
$file[$l]="Nonexisting \n";
$file3 = fopen("./id_data/member_names_num.txt", "w+");
foreach($file as $v){
fwrite($file3,"$v");
}
fclose($file3);
}
}
when trying to delete the user it won't delete the inbox folder... I have a script so when they register it makes a file in the inbox folder, so that could cause something, but the eraseallfiles should take care of that...
Any suggestions?