HEX
Server: nginx/1.28.0
System: Linux yisu-68a5f20334161 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: www (1000)
PHP: 8.2.28
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/q.autos58.cn/wp-content/plugins/wpformscontact/admin/hugeit_contact_import_export.php
<?php
if ( ! defined( 'ABSPATH' ) ) {
    exit;
}
if ( function_exists( 'current_user_can' ) ) {
    if ( ! current_user_can( 'manage_options' ) ) {
        die( 'Access Denied' );
    }
}
if ( ! function_exists( 'current_user_can' ) ) {
    die( 'Access Denied' );
}
require_once( "hugeit_free_version.php" ); ?>
<style>
    .left-half,.right-half{
        width: 48%;
        float: left;
        box-sizing: border-box;
        padding: 15px;
        background: rgba(211, 211, 211, 0.18);
    }
    .right-half{
        float: right;
    }
    label{
        display: block;
        font-size: 14px;
        font-weight: 500;
        color: #726c6c;
    }
    #hugeit_import_export #post-body-content{
        padding: 15px;
        box-sizing: border-box;
    }

    #hugeit_import_export input[type=submit]{
        background: #1279b9;
        color: #fff;
        border: 1px solid #1279b9;
        padding: 5px 15px;
        transition: all 0.3s;
        cursor: pointer;
        margin-top: 5px;
    }
    #hugeit_import_export input[type=submit]:hover{
        background: transparent;
        color: #1279b9;
    }
    .clear-float:after{
        content: '';
        display: block;
        clear: both;
    }

</style>
    <div class="wrap" id="hugeit_import_export">
        <?php hugeit_contact_drawFreeBanner('yes');?>
        <div id="poststuff" class="clear-float">
            <div id="post-body-content" class="clear-float">
                <form action="" method="POST" enctype="multipart/form-data">
                    <h2><?php _e('Import/Export','hugeit_contact');?></h2>
                    <p class="description">You can export and import forms here to transfer data from one site to another.</p>
                    <div class="clear-float">
                        <div class="left-half">
                            <label for="import-file"><?php _e('Import Form','hugeit_contact');?></label>
                            <input type="file" name="import-file" id="import-file">
                            <br>
                            <input type="submit" name="import-form" value="<?php _e('Import','hugeit_contact');?>">
                        </div>
                        <div class="right-half">
                            <label for="export-file"><?php _e('Select Form to Export','hugeit_contact');?></label>
                            <select  id="export-form" name="export-form">
                                <?php global $wpdb;
                                $forms = $wpdb->get_results('SELECT id,name FROM '.$wpdb->prefix.'huge_it_contact_contacts');
                                foreach ( $forms as $form){ ?>
                                    <option value="<?php echo $form->id;?>"><?php echo $form->name;?></option>
                                <?php } ?>
                            </select>
                            <br>
                            <input name="export-button" type="submit" id="export-button" value="<?php _e('Export','hugeit_contact');?>">
                        </div>
                    </div>

                    <input type="hidden" name="form">
                </form>
            </div>
        </div>
    </div>
<?php