403Webshell
Server IP : 145.239.37.162  /  Your IP : 216.73.216.251
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/Support.js
import {
    Button,
    TextareaControl,
} from '@wordpress/components';
import { __ } from '@wordpress/i18n';

import {
    Component,
} from '@wordpress/element';
import Placeholder from '../Placeholder/Placeholder';
import * as rsssl_api from "../utils/api";

class Support extends Component {
    constructor() {
        super( ...arguments );
                this.state = {
                    message :'',
                    sending :false,
                };
    }
    componentDidMount() {
        this.onChangeHandler = this.onChangeHandler.bind(this);
        this.onClickHandler = this.onClickHandler.bind(this);
    }

    onChangeHandler(message) {
        this.setState({
            message :message,
        });
    }

    onClickHandler(event) {
            this.setState({
                sending :true,
            });
        return rsssl_api.runTest('supportData', 'refresh').then( ( response ) => {
            const {
                message,
            } = this.state;
            let encodedMessage = message.replace(/(?:\r\n|\r|\n)/g, '--br--');
            let url = 'https://really-simple-ssl.com/support'
            +'?customername=' + encodeURIComponent(response.customer_name)
            + '&email=' + response.email
            + '&domain=' + response.domain
            + '&scanresults=' + encodeURIComponent(response.scan_results)
            + '&licensekey=' + encodeURIComponent(response.license_key)
            + '&supportrequest=' + encodeURIComponent(encodedMessage)
            + '&htaccesscontents=' + response.htaccess_contents
            + '&debuglog=' + response.system_status;
            window.location.assign(url);
        });
    }

    render(){
        const {
            message,
            sending,
        } = this.state;
        let disabled = sending || message.length==0;
        let textAreaDisabled = sending;
        return (
            <>
                <TextareaControl
                        disabled={textAreaDisabled}
                        placeholder={__("Type your question here","really-simple-ssl")}
                        onChange={ ( message ) => this.onChangeHandler(message) }
                />
                <Button
                    disabled={disabled}
                    variant="secondary"
                    onClick={ ( e ) => this.onClickHandler(e) }>
                    { __( 'Send', 'really-simple-ssl' ) }
                </Button>
            </>
        );

    }
}

export default Support;

Youez - 2016 - github.com/yon3zu
LinuXploit