!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/frontend/   drwxr-xr-x
Free 180.5 GB of 490.84 GB (36.77%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     frontend-filters-search.php (4.18 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/**
 * filters search forms when using permalinks
 *
 * @since 1.2
 */
class PLL_Frontend_Filters_Search {
    public 
$links_model$curlang;

    
/**
     * constructor
     *
     * @since 1.2
     *
     * @param object $polylang
     */
    
public function __construct( &$polylang ) {
        
$this->links_model = &$polylang->links_model;
        
$this->curlang = &$polylang->curlang;

        
// adds the language information in the search form
        // low priority in case the search form is created using the same filter as described in http://codex.wordpress.org/Function_Reference/get_search_form
        
add_filter'get_search_form', array( $this'get_search_form' ), 99 );

        
// adds the language information in admin bar search form
        
add_action'add_admin_bar_menus', array( $this'add_admin_bar_menus' ) );

        
// adds javascript at the end of the document
        // was used for WP < 3.6. kept just in case
        
if ( defined'PLL_SEARCH_FORM_JS' ) && PLL_SEARCH_FORM_JS ) {
            
add_action'wp_footer', array( $this'wp_print_footer_scripts' ) );
        }
    }

    
/**
     * adds the language information in the search form
     * does not work if searchform.php ( prior to WP 3.6 ) is used or if the search form is hardcoded in another template file
     *
     * @since 0.1
     *
     * @param string $form search form
     * @return string modified search form
     */
    
public function get_search_form$form ) {
        if ( 
$form ) {
            if ( 
$this->links_model->using_permalinks ) {
                
// take care to modify only the url in the <form> tag
                
preg_match'#<form.+>#'$form$matches );
                
$old reset$matches );
                
$new preg_replace'#' esc_url$this->links_model->home ) . '\/?#'esc_url$this->curlang->search_url ), $old );
                
$form str_replace$old$new$form );
            }
            else {
                
$form str_replace'</form>''<input type="hidden" name="lang" value="'.esc_attr$this->curlang->slug ).'" /></form>'$form );
            }
        }

        return 
$form;
    }

    
/**
     * adds the language information in admin bar search form
     *
     * @since 1.2
     */
    
function add_admin_bar_menus() {
        
remove_action'admin_bar_menu''wp_admin_bar_search_menu');
        
add_action'admin_bar_menu', array( $this'admin_bar_search_menu' ), );
    }

    
/**
     * rewrites the admin bar search form to pass our get_search form filter. See #21342
     * code base is WP 4.3.1
     *
     * @since 0.9
     *
     * @param object $wp_admin_bar
     */
    
public function admin_bar_search_menu$wp_admin_bar ) {
        
$form  '<form action="' esc_urlhome_url'/' ) ) . '" method="get" id="adminbarsearch">';
        
$form .= '<input class="adminbar-input" name="s" id="adminbar-search" type="text" value="" maxlength="150" />';
        
$form .= '<label for="adminbar-search" class="screen-reader-text">' esc_html__'Search' ) . '</label>';
        
$form .= '<input type="submit" class="adminbar-button" value="' esc_attr__'Search' ) . '"/>';
        
$form .= '</form>';

        
$wp_admin_bar->add_menu( array(
            
'parent' => 'top-secondary',
            
'id'     => 'search',
            
'title'  => $this->get_search_form$form ), // pass the get_search_form filter
            
'meta'   => array( 'class' => 'admin-bar-search''tabindex' => -),
        ) );
    }

    
/**
     * allows modifying the search form if it does not pass get_search_form
     *
     * @since 0.1
     */
    
public function wp_print_footer_scripts() {
        
// don't use directly e[0] just in case there is somewhere else an element named 's'
        // check before if the hidden input has not already been introduced by get_search_form ( FIXME: is there a way to improve this ) ?
        // thanks to AndyDeGroo for improving the code for compatility with old browsers
        // http://wordpress.org/support/topic/development-of-polylang-version-08?replies=6#post-2645559
        
$lang esc_js$this->curlang->slug );
        
$js "//<![CDATA[
        e = document.getElementsByName( 's' );
        for ( i = 0; i < e.length; i++ ) {
            if ( e[i].tagName.toUpperCase() == 'INPUT' ) {
                s = e[i].parentNode.parentNode.children;
                l = 0;
                for ( j = 0; j < s.length; j++ ) {
                    if ( s[j].name == 'lang' ) {
                        l = 1;
                    }
                }
                if ( l == 0 ) {
                    var ih = document.createElement( 'input' );
                    ih.type = 'hidden';
                    ih.name = 'lang';
                    ih.value = '
$lang';
                    e[i].parentNode.appendChild( ih );
                }
            }
        }
        //]]>"
;
        echo 
'<script type="text/javascript">' $js '</script>';
    }
}

:: 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.0186 ]--