403Webshell
Server IP : 145.239.37.162  /  Your IP : 216.73.217.80
Web Server : Apache
System : Linux webm003.cluster130.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User : verseaa ( 38250)
PHP Version : 7.4.33
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/verseaa/www1/wp-content/plugins/really-simple-ssl/settings/src/Settings/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/verseaa/www1/wp-content/plugins/really-simple-ssl/settings/src/Settings/Host.js
import {
    SelectControl,
} from '@wordpress/components';
import { __ } from '@wordpress/i18n';
import * as rsssl_api from "../utils/api";
import {
    Component,
} from '@wordpress/element';


class Host extends Component {
    constructor() {
        super( ...arguments );
        this.disabled = false
    }

    onChangeHandler(fieldValue) {
        let fields = this.props.fields;
        let field = this.props.field;
        field.value = fieldValue;
        fields[this.props.index]['value'] = fieldValue;

        //force update, and get new fields.
        this.disabled = true;
        let saveFields = [];
        this.props.handleNextButtonDisabled(true);
        saveFields.push(field);
        rsssl_api.setFields(saveFields).then(( response ) => {
            this.props.updateFields(response.fields);
            this.disabled = false;
            this.props.handleNextButtonDisabled(false);
        });
    }


    render(){
        let fieldValue = this.props.field.value;
        let field = this.props.field;
        let options = [];
        if ( field.options ) {
            for (var key in field.options) {
                if (field.options.hasOwnProperty(key)) {
                    let item = {};
                    item.label = field.options[key];
                    item.value = key;
                    options.push(item);
                }
            }
        }
        return (
              <SelectControl
                  label={ field.label }
                  onChange={ ( fieldValue ) => this.onChangeHandler(fieldValue) }
                  value= { fieldValue }
                  options={ options }
                  disabled={this.disabled}
              />
        )


    }
}

export default Host;

Youez - 2016 - github.com/yon3zu
LinuXploit