prefix.'wpfm_backup'; $backups = $wpdb->get_results("select * from ".$fmdb." order by id desc"); $settings = get_option('wp_file_manager_settings'); if(isset($settings['fm_max_packet_allowed'])){ $default_packet_value = intval($settings['fm_max_packet_allowed']*1000000); }else{ $max_allowed_packet = 'max_allowed_packet'; $packet_obj = $wpdb->get_row( $wpdb->prepare( "SHOW SESSION VARIABLES WHERE (variable_name = %s)", $max_allowed_packet ) ); $default_packet_value = intval($packet_obj->Value); } wp_enqueue_style('fm_backup_css', plugins_url('../css/fm-backup.css', __FILE__), '', $this->ver); wp_register_script( "fm_backup", plugins_url('../js/fm-backup.js', __FILE__ ), array(), rand(0,9999) ); wp_localize_script( 'fm_backup', 'fmbackupparams', array( 'ajaxurl' => admin_url('admin-ajax.php'), 'plugin_url' => plugins_url('lib/', __FILE__), 'packet_error_msg' => __('Error: Unable to restore backup because database backup is heavy in size. Please try to increase Maximum allowed size from Preferences settings.','wp-file-manager'), 'delete_backup' => __('Select backup(s) to delete!','wp-file-manager'), 'confirm_del' => __('Are you sure want to remove selected backup(s)?','wp-file-manager'), 'wpfmbackup' => wp_create_nonce( 'wpfmbackup' ), 'wpfmbackupremove' => wp_create_nonce( 'wpfmbackupremove' ), 'wpfmbackuplogs' => wp_create_nonce( 'wpfmbackuplogs' ), 'wpfmbackuprestore' => wp_create_nonce( 'wpfmbackuprestore' ), 'backup_running' => __('Backup is running, please wait','wp-file-manager'), 'restore_running' => __('Restore is running, please wait','wp-file-manager'), 'backup_empty_error' => __('Nothing selected for backup.','wp-file-manager'), 'backup_baseurl' => $backup_baseurl, 'backupall_baseurl' => $backupall_baseurl, 'default_packet_value' => $default_packet_value, ) ); wp_enqueue_script( 'fm_backup' ); ?>