| Server IP : 121.121.20.254 / Your IP : 216.73.217.51 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/inetpub/wwwroot/6pocketz/wp-content/plugins/wp-file-manager-pro/classes/ |
Upload File : |
<?php
/**
* Package: WP File Manager Pro
* Common funcion Class
* Class: wp_file_manager_common_function
*/
if(!class_exists('wp_file_manager_common_function')) {
class wp_file_manager_common_function {
/**
* Get Short Code Data
*/
public function get_shortcode_info($attrs){
global $wpdb;
$shortcode_attributes = '';
if(!empty( $attrs['id'])){
$shortcode_data = $wpdb->get_row(
$wpdb->prepare(
'SELECT * FROM ' . $wpdb->prefix . 'wpfm_shortcodes WHERE shotcode_key = %s',
$attrs['id']
)
);
if(!empty($shortcode_data)){
$shortcode_attributes = unserialize($shortcode_data->attributes);
$shortcode_attributes = apply_filters( 'fm_shortcode_attr_'.$shortcode_data->shotcode_key, $shortcode_attributes );
$shortcode_attributes['shotcode_key'] = $attrs['id'];
$shortcode_attributes['ac_path'] = $shortcode_attributes['access_folder'] ?? '';
$opt = get_option('wp_filemanager_options');
}
}
return $shortcode_attributes ;
}
}
}