| Server IP : 151.101.66.159 / Your IP : 216.73.216.66 Web Server : Flywheel/5.1.0 System : Linux wordpress 6.12.113+ #1 SMP Thu Oct 22 02:38:20 UTC 2026 x86_64 User : root ( ) PHP Version : 7.4.33.18 Disable Function : disk_free_space,diskfreespace,dl,exec,fpassthru,getmypid,getmyuid,highlight_file,link,opcache_compile_file,opcache_get_configuration,opcache_is_script_cached,passthru,pcntl_alarm,pcntl_exec,pcntl_fork,pcntl_get_last_error,pcntl_getpriority,pcntl_setpriority,pcntl_signal,pcntl_signal_dispatch,pcntl_sigprocmask,pcntl_sigtimedwait,pcntl_sigwaitinfo,pcntl_strerror,pcntl_wait,pcntl_waitpid,pcntl_wexitstatus,pcntl_wifcontinued,pcntl_wifexited,pcntl_wifsignaled,pcntl_wifstopped,pcntl_wstopsig,pcntl_wtermsig,phpinfo,popen,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix_getppid,posix_getpwnam,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,shell_exec,show_source,socket_listen,source,system,virtual MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wp-content/plugins/adminimize/inc-options/ |
Upload File : |
<?php
/**
* @package Adminimize
* @subpackage Im/Export options
* @author Frank Bültge
*/
if ( ! function_exists( 'add_action' ) ) {
echo "Hi there! I'm just a part of plugin, not much I can do when called directly.";
exit;
}
?>
<div id="poststuff" class="ui-sortable meta-box-sortables">
<div class="postbox">
<div class="handlediv" title="<?php esc_attr_e( 'Click to toggle', 'adminimize' ); ?>"><br /></div>
<h3 class="hndle" id="import"><?php esc_attr_e( 'Export/Import Options', 'adminimize' ) ?></h3>
<div class="inside">
<h4><?php esc_attr_e( 'Export', 'adminimize' ) ?></h4>
<p><?php esc_attr_e(
'You can save a JSON formatted ".json" file with your settings.', 'adminimize'
) ?></p>
<form method="post">
<p><input type="hidden" name="_mw_adminimize_export" value="true" /></p>
<p>
<?php wp_nonce_field( 'mw_adminimize_export_nonce', 'mw_adminimize_export_nonce' ); ?>
<?php
$submit_text = esc_html__( 'Export »', 'adminimize' );
submit_button( $submit_text, 'primary', '_mw_adminimize_save', false ); ?>
</p>
</form>
<br class="clear" />
<?php /*
<form name="export_options" method="get" action="">
<p><?php esc_attr_e(
'You can save a JSON formatted ".json" file with your settings.', 'adminimize'
) ?></p>
<p>
<?php wp_nonce_field( 'mw_adminimize_export_nonce', 'mw_adminimize_export_nonce' ); ?>
<input type="hidden" name="_mw_adminimize_export" value="true" />
<?php
$submit_text = esc_html__( 'Export »', 'adminimize' );
submit_button(
$text = $submit_text, $type = 'primary', $name = '_mw_adminimize_save', $wrap = FALSE,
$other_attributes = NULL
);
?>
</p>
</form>
*/ ?>
<h4><?php esc_attr_e( 'Import', 'adminimize' ) ?></h4>
<form name="import_options" enctype="multipart/form-data" method="post" action="?page=<?php echo esc_attr(
$_GET[ 'page' ]
); ?>">
<?php wp_nonce_field( 'mw_adminimize_nonce' ); ?>
<p><?php _e(
'Choose a Adminimize (<em>.json</em>) file to upload, then click <em>Upload file and import</em>.',
'adminimize'
);
esc_html_e( 'After import please reload the page to display also all global values from WordPress.', 'adminimize' ); ?>
</p>
<p>
<label for="datei_id">
<?php esc_html_e(
'Choose a ".json" file from your computer:', 'adminimize'
) ?>
</label>
<input name="import_file" id="datei_id" type="file" />
</p>
<p>
<?php wp_nonce_field( 'mw_adminimize_import_nonce', 'mw_adminimize_import_nonce' ); ?>
<input type="hidden" name="_mw_adminimize_action" value="_mw_adminimize_import" />
<?php
$submit_text = esc_html__( 'Upload file and import »', 'adminimize' );
submit_button(
$text = $submit_text, $type = 'primary', $name = '_mw_adminimize_save', $wrap = FALSE,
$other_attributes = NULL
);
?>
</p>
</form>
<p>
<a class="alignright button adminimize-scroltop" href="#" style="margin:3px 0 0 30px;">
<?php esc_html_e(
'scroll to top', 'adminimize'
); ?>
</a><br class="clear" />
</p>
</div>
</div>
</div>