403Webshell
Server IP : 213.186.33.2  /  Your IP : 216.73.216.39
Web Server : Apache
System : Linux webm005.cluster102.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 : symetry ( 21728)
PHP Version : 8.2.31
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/symetry/www/wp-content/plugins/contact-form-7-honeypot/src/components/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/symetry/www/wp-content/plugins/contact-form-7-honeypot/src/components/CF7AppsSpamCount.js
import { __ } from '@wordpress/i18n';
import { useState, useEffect } from '@wordpress/element';
import CF7AppsSkeletonLoader from "./CF7AppsSkeletonLoader";
import { fetchSpamCount } from '../api/api';
const CF7AppsSpamCount = () => {

    const [ spamCount, setSpamCount ] = useState( 0 );
    const [ since, setSince ]         = useState( null );
    const [ loading, setLoading ]     = useState( true );

    useEffect( () => {
            setLoading( true );

            fetchSpamCount().then( response => {
                    setSpamCount( response.count );
                    setSince( response.since );
                    setLoading( false );
                } ).catch( error => {
                    setSpamCount( 0 );
                    setSince( null );
                    setLoading( false );
                } );
        }, [] );

    return (
        <div className={ 'cf7apps-spam-count' }>
            {
                loading
                ?
                    <>
                        <CF7AppsSkeletonLoader height={ 45 } width={ '100%' } />
                    </>
                :
                    <div className={ 'cf7apps-notice cf7apps-notice-info' }>
                        <p>
                            { __( 'Honeypot has stopped', 'cf7apps' ) }
                            &nbsp;<strong>{ spamCount }</strong>&nbsp;
                            { __( 'spam submissions since', 'cf7apps' ) }
                            &nbsp;<strong>{ since }</strong>&nbsp;
                        </p>
                    </div>
            }
        </div>
    );
}

export default CF7AppsSpamCount;

Youez - 2016 - github.com/yon3zu
LinuXploit