$user to the file"); } else { echo($error); } }else{ print("Nothing was added"); } } // [ DELETE ] if ($_POST['action'] == "delete") { if($todelete != ''){ if($filehandle = fopen("$file_directory/.htpasswd", "w")) { for($i=0; $i < $sizeof; $i++) { if($file_contents[$i] != $todelete) { fputs($filehandle, "$file_contents[$i]"); } else { $flag = 1; } } fclose($filehandle); if($flag) { print("Successfully deleted $todelete from the file"); } else { print("I didn't find $todelete to delete from file"); } } else { echo($error); } }else{ print("Nothing to Delete"); } } ?>

Username:
Password:

See if your username/password works !



Index

Index