fixed maintain.php indenting and removed obsolete code