PluginProbe ʕ •ᴥ•ʔ
WP All Export – Drag & Drop Export to Any Custom CSV, XML & Excel / 1.1.5
WP All Export – Drag & Drop Export to Any Custom CSV, XML & Excel v1.1.5
trunk 0.9.0 0.9.1 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.2.0 1.2.1 1.2.10 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 1.4.1 1.4.10 1.4.11 1.4.12 1.4.13 1.4.14 1.4.15 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.4.8 1.4.9 1.5.0
wp-all-export / helpers / wp_all_export_remove_source.php
wp-all-export / helpers Last commit date
backward.php 8 years ago get_taxonomies_by_object_type.php 8 years ago pmxe_filter.php 8 years ago pmxe_functions.php 8 years ago pmxe_render_xml_attributes.php 8 years ago pmxe_render_xml_element.php 8 years ago pmxe_render_xml_text.php 8 years ago str_getcsv.php 8 years ago wp_all_export_check_children_assign.php 8 years ago wp_all_export_generate_export_file.php 8 years ago wp_all_export_get_cpt_name.php 8 years ago wp_all_export_get_export_format.php 8 years ago wp_all_export_is_compatible.php 8 years ago wp_all_export_parse_field_name.php 8 years ago wp_all_export_posts_join.php 8 years ago wp_all_export_posts_where.php 8 years ago wp_all_export_prepare_template_csv.php 8 years ago wp_all_export_prepare_template_xml.php 8 years ago wp_all_export_rand_char.php 8 years ago wp_all_export_remove_colons.php 8 years ago wp_all_export_remove_source.php 8 years ago wp_all_export_reverse_rules_html.php 8 years ago wp_all_export_rmdir.php 8 years ago wp_all_export_secure_file.php 8 years ago wp_all_export_url_title.php 8 years ago wp_all_export_write_article.php 8 years ago wp_redirect_or_javascript.php 8 years ago
wp_all_export_remove_source.php
22 lines
1 <?php
2 if ( ! function_exists('wp_all_export_remove_source')){
3 function wp_all_export_remove_source($file, $remove_dir = true){
4
5 @unlink($file);
6
7 $path_parts = pathinfo($file);
8 if ( ! empty($path_parts['dirname'])){
9 $path_all_parts = explode('/', $path_parts['dirname']);
10 $dirname = array_pop($path_all_parts);
11
12 if ( wp_all_export_isValidMd5($dirname)){
13 if ($remove_dir){
14 @unlink($path_parts['dirname'] . DIRECTORY_SEPARATOR . 'index.php' );
15 }
16 if ($remove_dir or count(@scandir($path_parts['dirname'])) == 2)
17 wp_all_export_rmdir($path_parts['dirname']);
18 }
19 }
20
21 }
22 }