Site->Path.'/'; /** * Delete index.html */ $GLOBALS['level'] = 0; $filename = $target.'index.html'; if (file_exists($filename)) unlink( $filename ); /** * Delete All HTML Files */ if ($handle = @opendir($target)) { while (($file = readdir($handle)) !== false) { if ($file == "." || $file == "..") { continue; } if (!is_dir($target.$file)) { if (substr($target.$file,-5) == '.html') { chmod($target.$file,0777); unlink($target.$file); // remove this file } } } } @closedir($handle); /** * Clean cached data */ delete_all_from_dir( $GLOBALS['Conf']->Site->Path.'/~data/' ); /** * Clean last update info */ $str = '$point=\'2000-01-01\';'; write_to_inc( 'point.inc', &$str ); ?>