. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
| Server IP : 162.0.212.4 / Your IP :
216.73.216.14 [
Web Server : LiteSpeed System : Linux premium146.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : alshnoli ( 2431) PHP Version : 8.3.28 Disable Function : NONE Domains : 1 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/alshnoli/www/wp-content/plugins/wp-import-export-lite/includes/classes/ |
Upload File : |
<?php
defined( 'ABSPATH' ) || exit;
if ( !function_exists( "wpie_sanitize_field" ) ) {
function wpie_sanitize_field( $var ) {
if ( empty( $var ) ) {
return $var;
}
if ( is_array( $var ) ) {
return array_map( 'wpie_sanitize_field', $var );
} else {
return is_scalar( $var ) ? sanitize_text_field( $var ) : $var;
}
}
}
if ( !function_exists( "wpie_sanitize_textarea" ) ) {
function wpie_sanitize_textarea( $var ) {
if ( empty( $var ) ) {
return $var;
}
return implode( "\n", array_map( 'wpie_sanitize_field', explode( "\n", $var ) ) );
}
}
add_action( 'init', 'wpie_remove_draft_entries' );
if ( !function_exists( "wpie_remove_draft_entries" ) ) {
function wpie_remove_draft_entries() {
global $wpdb;
$current_time = date( 'Y-m-d H:i:s', strtotime( '-1 hour', strtotime( current_time( "mysql" ) ) ) );
$wpdb->query( $wpdb->prepare( "DELETE FROM {$wpdb->prefix}wpie_template WHERE opration = 'import-draft' AND last_update_date < %s", $current_time ) );
unset( $current_time );
}
}
if ( !function_exists( "wpie_get_export_id" ) ) {
function wpie_get_export_id() {
global $wpie_export_id;
return empty( $wpie_export_id ) ? 0 : absint( $wpie_export_id );
}
}
if ( !function_exists( "wpie_load_vendor_autoloader" ) ) {
function wpie_load_vendor_autoloader() {
$file = "";
if ( version_compare( phpversion(), "7.3", '<' ) ) {
$file = 'vendor_deprecated/autoload.php';
} else {
$file = 'vendor/autoload.php';
}
if ( file_exists( WPIE_PLUGIN_DIR . $file ) ) {
require_once(WPIE_PLUGIN_DIR . $file );
}
}
}