!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\Tool\Project\Provider\   drwxrwxrwx
Free 7.25 GB of 239.26 GB (3.03%)
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:     View.php (4.5 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_Tool
 * @subpackage Framework
 * @copyright  Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
 * @license    http://framework.zend.com/license/new-bsd     New BSD License
 * @version    $Id: View.php 16971 2009-07-22 18:05:45Z mikaelkael $
 */

/**
 * @see Zend_Tool_Project_Provider_Abstract
 */
require_once 'Zend/Tool/Project/Provider/Abstract.php';

/**
 * @category   Zend
 * @package    Zend_Tool
 * @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_Tool_Project_Provider_View extends Zend_Tool_Project_Provider_Abstract
{

    
/**
     * createResource()
     *
     * @param Zend_Tool_Project_Profile $profile
     * @param string $actionName
     * @param string $controllerName
     * @param string $moduleName
     * @return Zend_Tool_Project_Profile_Resource
     */
    
public static function createResource(Zend_Tool_Project_Profile $profile$actionName$controllerName$moduleName null)
    {
        if (!
is_string($actionName)) {
            require_once 
'Zend/Tool/Project/Provider/Exception.php';
            throw new 
Zend_Tool_Project_Provider_Exception('Zend_Tool_Project_Provider_View::createResource() expects \"actionName\" is the name of a controller resource to create.');
        }

        if (!
is_string($controllerName)) {
            require_once 
'Zend/Tool/Project/Provider/Exception.php';
            throw new 
Zend_Tool_Project_Provider_Exception('Zend_Tool_Project_Provider_View::createResource() expects \"controllerName\" is the name of a controller resource to create.');
        }

        
$profileSearchParams = array();

        if (
$moduleName) {
            
$profileSearchParams = array('modulesDirectory''moduleDirectory' => array('moduleName' => $moduleName));
            
$noModuleSearch null;
        } else {
            
$noModuleSearch = array('ModulesDirectory');
        }

        
$profileSearchParams[] = 'viewsDirectory';
        
$profileSearchParams[] = 'viewScriptsDirectory';

        if ((
$viewScriptsDirectory $profile->search($profileSearchParams$noModuleSearch)) === false) {
            require_once 
'Zend/Tool/Project/Provider/Exception.php';
            throw new 
Zend_Tool_Project_Provider_Exception('This project does not have a viewScriptsDirectory resource.');
        }

        
$profileSearchParams['viewControllerScriptsDirectory'] = array('forControllerName' => $controllerName);

        
// XXXXXXXXX below is failing b/c of above search params
        
if (($viewControllerScriptsDirectory $viewScriptsDirectory->search($profileSearchParams)) === false) {
            
$viewControllerScriptsDirectory $viewScriptsDirectory->createResource('viewControllerScriptsDirectory', array('forControllerName' => $controllerName));
        }

        
$newViewScriptFile $viewControllerScriptsDirectory->createResource('ViewScriptFile', array('forActionName' => $actionName));

        return 
$newViewScriptFile;
    }

    
/**
     * create()
     *
     * @param string $controllerName
     * @param string $actionNameOrSimpleName
     */
    
public function create($controllerName$actionNameOrSimpleName)
    {

        if (
$controllerName == '' || $actionNameOrSimpleName == '') {
            require_once 
'Zend/Tool/Project/Provider/Exception.php';
            throw new 
Zend_Tool_Project_Provider_Exception('ControllerName and/or ActionName are empty.');
        }

        
$profile $this->_loadProfile();

        
$view self::createResource($profile$actionNameOrSimpleName$controllerName);

        if (
$this->_registry->getRequest()->isPretend()) {
            
$this->_registry->getResponse(
                
'Would create a view script in location ' $view->getContext()->getPath()
                );
        } else {
            
$this->_registry->getResponse(
                
'Creating a view script in location ' $view->getContext()->getPath()
                );
            
$view->create();
            
$this->_storeProfile();
        }

    }
}

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