All files have successfully been removed!"; show($tags); } else { $tags["CONTENT"] = "

The install password you entered was incorrect!

"; $tags["CONTENT"] .= "

Please enter your installation password:

"; show($tags); } } else { $tags["CONTENT"] = "

Please enter your installation password:

"; show($tags); } } else { header("set_config.php"); } function show($tags) { $tpl = new HTML_Template_IT("."); $tpl->loadTemplatefile("clean.tpl", TRUE, TRUE); $tpl->setVariable($tags); echo $tpl->get(); }// END FUNC show function clean_directory($dir) { if(is_dir($dir)) { $handle = opendir($dir); while($file = readdir($handle)) { if($file == "." || $file == "..") { continue; } elseif(is_dir($dir . $file)) { clean_directory($dir . $file . "/"); } elseif(is_file($dir . $file)) { unlink($dir . "/" . $file); } } closedir($handle); @rmdir($dir); return TRUE; } else { return FALSE; } }// END FUNC clean_directory ?>