403Webshell
Server IP : 104.21.14.103  /  Your IP : 18.217.193.85
Web Server : LiteSpeed
System : Linux business53.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : giankuin ( 1871)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/giankuin/thietke365.net/wp-content/plugins/loco-translate/src/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/giankuin/thietke365.net/wp-content/plugins/loco-translate/src/admin/DebugController.php
<?php
/**
 * @codeCoverageIgnore
 */
class Loco_admin_DebugController extends Loco_mvc_AdminController {

    /**
     * {@inheritdoc}
     */
    public function init(){
        parent::init();
        $this->set('title','DEBUG');
    }
    
    
    /**
     * {@inheritdoc}
     */
    public function render(){
        
        // debug package listener
        $themes = [];
        /* @var $bundle Loco_package_Bundle */
        foreach( Loco_package_Listener::singleton()->getThemes() as $bundle ){
            $themes[] =  [
                'id' => $bundle->getId(),
                'name' => $bundle->getName(),
                'default' => $bundle->getDefaultProject()->getSlug(),
                'count' => count($bundle),
            ];
        }
        $this->set('themes', $themes );

        $plugins = [];
        /* @var $bundle Loco_package_Bundle */
        foreach( Loco_package_Listener::singleton()->getPlugins() as $bundle ){
            $plugins[] =  [
                'id' => $bundle->getId(),
                'name' => $bundle->getName(),
                'default' => $bundle->getDefaultProject()->getSlug(),
                'count' => count($bundle),
            ];
        }
        
        
        // $this->set( 'plugins', Loco_package_Plugin::get_plugins() );
        // $this->set('installed', wp_get_installed_translations('plugins') );
        // $this->set('active', get_option( 'active_plugins', array() ) );
        // $this->set('langs',get_available_languages());

        /*$plugins = get_plugins();
        $plugin_info = get_site_transient( 'update_plugins' );
        foreach( $plugins as $plugin_file => $plugin_data ){
            if ( isset( $plugin_info->response[$plugin_file] ) ) {
                $plugins[$plugin_file]['____'] = $plugin_info->response[$plugin_file];
            }
        }*/
        
        /*/ inspect session and test flash messages
        $session = Loco_data_Session::get();
        $session->flash( 'success', microtime() );
        $this->set('session', $session->getArrayCopy() );
        Loco_data_Session::close();*/
        
        // try some notices
        Loco_error_AdminNotices::add( new Loco_error_Success('This is a sample success message. It should disappear in a moment') );
        Loco_error_AdminNotices::add( new Loco_error_Notice('This is a sample info message') );
        Loco_error_AdminNotices::add( new Loco_error_Warning('This is a sample warning') );
        Loco_error_AdminNotices::add( new Loco_error_Exception('This is a sample error') );
        Loco_error_AdminNotices::add( new Loco_error_Debug('This is a sample debug message') );
        //*/
        
        return $this->view('admin/debug');
        
    }
    
}



Youez - 2016 - github.com/yon3zu
LinuXploit