芝麻web文件管理V1.00
编辑当前文件:/www/wwwroot/shphe-en.com/wp-content/plugins/easyiit_auto_cache_html/inc/functions.php
post_name.".html"; } function get_page_static_filename($page){ global $home_url_length; return substr (get_page_link ($page->ID),$home_url_length)."index.html"; } function del_dir_and_file($path, $delDir = FALSE) { $safe_dirs_arr = get_option('eac_safe_dirs')?get_option('eac_safe_dirs'):array('admin','wp-admin','wp-content','wp-includes'); if(ABSPATH == $path){ return FALSE; } if(in_array(str_replace(ABSPATH,'',$path),$safe_dirs_arr)){ return FALSE; } $handle = opendir($path); if ($handle) { while (false !== ( $item = readdir($handle) )) { if ($item != "." && $item != "..") is_dir("$path/$item") ? del_dir_and_file("$path/$item", $delDir) : unlink("$path/$item"); } closedir($handle); if ($delDir) return rmdir($path); }else { if (file_exists($path)) { return unlink($path); } else { return FALSE; } } }