403Webshell
Server IP : 198.54.126.161  /  Your IP : 216.73.216.232
Web Server : LiteSpeed
System : Linux premium12.web-hosting.com 4.18.0-553.94.1.lve.el8.x86_64 #1 SMP Thu Jan 22 12:37:22 UTC 2026 x86_64
User : amerfigf ( 898)
PHP Version : 8.2.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/self/cwd/wp-content/plugins/WP-FormBuilder/admin/classes/fields/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/self/cwd/wp-content/plugins/WP-FormBuilder/admin/classes/fields/HashFormFieldUserID.php
<?php
defined('ABSPATH') || die();

class HashFormFieldUserID extends HashFormFieldType {

    protected $type = 'user_id';

    public function field_settings_for_type() {
        return array(
            'max_width' => false,
            'default' => false,
            'css' => false,
            'description' => false,
            'required' => false,
            'label' => false
        );
    }

    public function get_user_id() {
        $user_ID = get_current_user_id();
        return $user_ID;
    }

    public function set_value_before_save($value) {
        $user_ID = $this->get_user_id();
        return $user_ID;
    }

    protected function input_html() {
        if (is_admin() && !HashFormHelper::is_preview_page()) {
            ?>
            <label class="hf-editor-field-label">
                <span class="hf-editor-field-label-text"><?php esc_html_e('User ID', 'hash-form'); ?></span>
            </label>
            <input type="text" value="<?php esc_attr_e('User ID fields will not show in your form.', 'hash-form'); ?>" disabled />
            <?php
        } else {
            ?>
            <input type="hidden" name="<?php echo esc_attr($this->html_name()); ?>" value="<?php echo esc_attr($this->get_user_id()); ?>" />
            <?php
        }
    }

}

Youez - 2016 - github.com/yon3zu
LinuXploit