| Server IP : 121.121.20.254 / Your IP : 216.73.216.146 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/wst2024/wp-content/plugins/floating-button/admin/ |
Upload File : |
<?php
/**
* Tools page
*
* @package Wow_Plugin
* @subpackage Admin/Main_page
* @author Wow-Company <helper@wow-company.com>
* @copyright 2019 Wow-Company
* @license GNU Public License
* @version 1.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<div class="wrap">
<div class="box">
<h3><span><?php esc_attr_e( 'Export Settings', $this->plugin['text'] ); ?></span></h3>
<div class="inside">
<p><?php
printf( esc_attr__( 'Export the settings for %s as a .json file. This allows you to easily import the configuration into another site.', $this->plugin['text'] ), '<b>' . esc_attr( $this->plugin['name'] ) . '</b>' );; ?></p>
<form method="post" action="">
<p><input type="hidden" name="wow_action" value="export_database"/></p>
<p>
<?php wp_nonce_field( $this->plugin['slug'] . '_export_nonce', $this->plugin['slug'] . '_export_nonce' ); ?><?php submit_button( __( 'Export', $this->plugin['text'] ), 'secondary', 'submit', false ); ?>
</p>
</form>
</div>
</div>
<div class="box">
<h3><span><?php esc_attr_e( 'Import Settings', $this->plugin['text'] ); ?></span></h3>
<div class="inside">
<p><?php
printf( esc_attr__( 'Import the %s settings from a .json file. This file can be obtained by exporting the settings on another site using the form above.', $this->plugin['text'] ), '<b>' . esc_attr( $this->plugin['name'] ) . '</b> ' );; ?></p>
<form method="post" enctype="multipart/form-data" action="">
<p>
<input type="file" name="import_file"/>
</p>
<p>
<label>
<input type="checkbox" name="wow_import_update" value="1">
<?php esc_attr_e( 'Update item if item already exists.' ); ?>
</label>
</p>
<p>
<input type="hidden" name="wow_action" value="import_database"/>
<?php wp_nonce_field( $this->plugin['slug'] . '_import_nonce', $this->plugin['slug'] . '_import_nonce' ); ?>
<?php submit_button( __( 'Import', $this->plugin['text'] ), 'secondary', 'submit', false ); ?>
</p>
</form>
</div>
</div>
</div>
<?php