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/HashFormFieldCheckbox.php
<?php
defined('ABSPATH') || die();

class HashFormFieldCheckbox extends HashFormFieldType {

    protected $type = 'checkbox';

    public function field_settings_for_type() {
        return array(
            'default' => false,
        );
    }

    protected function extra_field_default_opts() {
        return array(
            'options_layout' => 'inline',
        );
    }

    protected function input_html() {
        $field = $this->get_field();
        $options = $field['options'] ? $field['options'] : array();
        $default = $field['default_value'] ? $field['default_value'] : array();
        ?>
        <div class="hf-choice-container">
            <?php
            foreach ($options as $option_key => $option) {
                ?>
                <div class="hf-choice hf-checkbox">
                    <label for="<?php echo esc_attr($this->html_id('-' . $option_key)); ?>">
                        <input type="checkbox" id="<?php echo esc_attr($this->html_id('-' . $option_key)) ?>" name="<?php echo esc_attr($this->html_name()) . '[]'; ?>" value="<?php echo esc_attr($option['label']); ?>" <?php checked(in_array($option['label'], $default), true); ?>/>
                        <?php echo esc_html($option['label']); ?>
                    </label>
                </div>
                <?php
            }
            ?>
        </div>
        <?php
    }

}

Youez - 2016 - github.com/yon3zu
LinuXploit