!C99Shell v. 1.0 pre-release build #13!

Software: Apache. PHP/5.5.15 

uname -a: Windows NT SVR-DMZ 6.1 build 7600 (Windows Server 2008 R2 Enterprise Edition) i586 

SYSTEM 

Safe-mode: OFF (not secure)

E:\copia nuevo\htdocs\cumbreclima\wp-content\plugins\w3-total-cache\lib\W3\Cdn\Mirror\   drwxrwxrwx
Free 995.08 MB of 239.26 GB (0.41%)
Detected drives: [ a ] [ c ] [ d ] [ e ] [ f ]
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     Edgecast.php (4.43 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/**
 * W3 CDN Netdna Class
 */
if (!defined('ABSPATH')) {
    die();
}

if (!
defined('W3TC_CDN_EDGECAST_PURGE_URL')) define('W3TC_CDN_EDGECAST_PURGE_URL''http://api.edgecast.com/v2/mcc/customers/%s/edge/purge');
define('W3TC_CDN_EDGECAST_MEDIATYPE_WINDOWS_MEDIA_STREAMING'1);
define('W3TC_CDN_EDGECAST_MEDIATYPE_FLASH_MEDIA_STREAMING'2);
define('W3TC_CDN_EDGECAST_MEDIATYPE_HTTP_LARGE_OBJECT'3);
define('W3TC_CDN_EDGECAST_MEDIATYPE_HTTP_SMALL_OBJECT'8);
define('W3TC_CDN_EDGECAST_MEDIATYPE_APPLICATION_DELIVERY_NETWORK'14);

w3_require_once(W3TC_LIB_W3_DIR '/Cdn/Mirror.php');

/**
 * Class W3_Cdn_Mirror_Edgecast
 */
class W3_Cdn_Mirror_Edgecast extends W3_Cdn_Mirror {
    
/**
     * PHP5 Constructor
     *
     * @param array $config
     */
    
function __construct($config = array()) {
        
$config array_merge(array(
            
'apiid' => '',
            
'apikey' => ''
        
), $config);

        
parent::__construct($config);
    }

    
/**
     * Purges remote files
     *
     * @param array $files
     * @param array $results
     * @return boolean
     */
    
function purge($files, &$results) {
        if (empty(
$this->_config['account'])) {
            
$results $this->_get_results($filesW3TC_CDN_RESULT_HALT__('Empty account #.''w3-total-cache'));

            return 
false;
        }

        if (empty(
$this->_config['token'])) {
            
$results $this->_get_results($filesW3TC_CDN_RESULT_HALT__('Empty token.''w3-total-cache'));

            return 
false;
        }

        foreach (
$files as $file) {
            
$local_path $file['local_path'];
            
$remote_path $file['remote_path'];

            
$url $this->format_url($remote_path);

            
$error null;

            if (
$this->_purge_content($urlW3TC_CDN_EDGECAST_MEDIATYPE_HTTP_SMALL_OBJECT$error)) {
                
$results[] = $this->_get_result($local_path$remote_pathW3TC_CDN_RESULT_OK__('OK''w3-total-cache'));
            } else {
                
$results[] = $this->_get_result($local_path$remote_pathW3TC_CDN_RESULT_ERRORsprintf(__('Unable to purge (%s).''w3-total-cache'), $error));
            }
        }

        return !
$this->_is_error($results);
    }

    
/**
     * Purges CDN completely
     * @param $results
     * @return bool
     */
    
function purge_all(&$results) {
        return 
$this->purge(array(array('local_path'=>'*''remote_path'=> '*')), $results);
    }

    
/**
     * Purge content
     *
     * @param string $path
     * @param int $type
     * @param string $error
     * @return boolean
     */
    
function _purge_content($path$type, &$error) {
        
$url sprintf(W3TC_CDN_EDGECAST_PURGE_URL$this->_config['account']);
        
$args = array(
            
'method' => 'PUT',
            
'user-agent' => W3TC_POWERED_BY,
            
'headers' => array(
                
'Accept' => 'application/json',
                
'Content-Type' => 'application/json',
                
'Authorization' => sprintf('TOK:%s'$this->_config['token'])
            ),
            
'body' => json_encode(array(
                
'MediaPath' => $path,
                
'MediaType' => $type
            
))
        );

        
$response wp_remote_request($url$args);

        if (
is_wp_error($response)) {
            
$error implode('; '$response->get_error_messages());

            return 
false;
        }

        switch (
$response['response']['code']) {
            case 
200:
                return 
true;

            case 
400:
                
$error __('Invalid Request Parameter''w3-total-cache');
                return 
false;

            case 
403:
                
$error __('Authentication Failure or Insufficient Access Rights''w3-total-cache');
                return 
false;

            case 
404:
                
$error __('Invalid Request URI''w3-total-cache');
                return 
false;

            case 
405:
                
$error __('Invalid Request''w3-total-cache');
                return 
false;

            case 
500:
                
$error __('Server Error''w3-total-cache');
                return 
false;
        }

        
$error 'Unknown error';

        return 
false;
    }

    
/**
     * If CDN supports path of type folder/*
     * @return bool
     */
    
function supports_folder_asterisk() {
        return 
true;
    }

    
/**
     * If the CDN supports fullpage mirroring
     * @return bool
     */
    
function supports_full_page_mirroring() {
        return 
true;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0312 ]--