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

Software: Apache/2.0.54 (Unix) mod_perl/1.99_09 Perl/v5.8.0 mod_ssl/2.0.54 OpenSSL/0.9.7l DAV/2 FrontPage/5.0.2.2635 PHP/4.4.0 mod_gzip/2.0.26.1a 

uname -a: Linux snow.he.net 4.4.276-v2-mono-1 #1 SMP Wed Jul 21 11:21:17 PDT 2021 i686 

uid=99(nobody) gid=98(nobody) groups=98(nobody) 

Safe-mode: OFF (not secure)

/usr/local/lib/php/PEAR/Task/Postinstallscript/   drwxr-xr-x
Free 318.29 GB of 458.09 GB (69.48%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     rw.php (6.23 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * <tasks:postinstallscript> - read/write version
 *
 * PHP versions 4 and 5
 *
 * LICENSE: This source file is subject to version 3.0 of the PHP license
 * that is available through the world-wide-web at the following URI:
 * http://www.php.net/license/3_0.txt.  If you did not receive a copy of
 * the PHP License and are unable to obtain it through the web, please
 * send a note to license@php.net so we can mail you a copy immediately.
 *
 * @category   pear
 * @package    PEAR
 * @author     Greg Beaver <cellog@php.net>
 * @copyright  1997-2005 The PHP Group
 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
 * @version    CVS: $Id: rw.php,v 1.10 2005/10/19 04:47:34 cellog Exp $
 * @link       http://pear.php.net/package/PEAR
 * @since      File available since Release 1.4.0a10
 */
/**
 * Base class
 */
require_once 'PEAR/Task/Postinstallscript.php';
/**
 * Abstracts the postinstallscript file task xml.
 * @category   pear
 * @package    PEAR
 * @author     Greg Beaver <cellog@php.net>
 * @copyright  1997-2005 The PHP Group
 * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
 * @version    Release: 1.4.4
 * @link       http://pear.php.net/package/PEAR
 * @since      Class available since Release 1.4.0a10
 */
class PEAR_Task_Postinstallscript_rw extends PEAR_Task_Postinstallscript
{
    
/**
     * parent package file object
     *
     * @var PEAR_PackageFile_v2_rw
     */
    
var $_pkg;
    
/**
     * Enter description here...
     *
     * @param PEAR_PackageFile_v2_rw $pkg
     * @param PEAR_Config $config
     * @param PEAR_Frontend $logger
     * @param array $fileXml
     * @return PEAR_Task_Postinstallscript_rw
     */
    
function PEAR_Task_Postinstallscript_rw(&$pkg, &$config, &$logger$fileXml)
    {
        
parent::PEAR_Task_Common($config$loggerPEAR_TASK_PACKAGE);
        
$this->_contents $fileXml;
        
$this->_pkg = &$pkg;
        
$this->_params = array();
    }

    function 
validate()
    {
        return 
$this->validateXml($this->_pkg$this->_params$this->config$this->_contents);
    }

    function 
getName()
    {
        return 
'postinstallscript';
    }

    
/**
     * add a simple <paramgroup> to the post-install script
     *
     * Order is significant, so call this method in the same
     * sequence the users should see the paramgroups.  The $params
     * parameter should either be the result of a call to {@link getParam()}
     * or an array of calls to getParam().
     * 
     * Use {@link addConditionTypeGroup()} to add a <paramgroup> containing
     * a <conditiontype> tag
     * @param string $id <paramgroup> id as seen by the script
     * @param array|false $params array of getParam() calls, or false for no params
     * @param string|false $instructions
     */
    
function addParamGroup($id$params false$instructions false)
    {
        if (
$params && isset($params[0]) && !isset($params[1])) {
            
$params $params[0];
        }
        
$stuff =
            array(
                
$this->_pkg->getTasksNs() . ':id' => $id,
            );
        if (
$instructions) {
            
$stuff[$this->_pkg->getTasksNs() . ':instructions'] = $instructions;
        }
        if (
$params) {
            
$stuff[$this->_pkg->getTasksNs() . ':param'] = $params;
        }
        
$this->_params[$this->_pkg->getTasksNs() . ':paramgroup'][] = $stuff;
    }

    
/**
     * add a complex <paramgroup> to the post-install script with conditions
     *
     * This inserts a <paramgroup> with
     *
     * Order is significant, so call this method in the same
     * sequence the users should see the paramgroups.  The $params
     * parameter should either be the result of a call to {@link getParam()}
     * or an array of calls to getParam().
     * 
     * Use {@link addParamGroup()} to add a simple <paramgroup>
     *
     * @param string $id <paramgroup> id as seen by the script
     * @param string $oldgroup <paramgroup> id of the section referenced by
     *                         <conditiontype>
     * @param string $param name of the <param> from the older section referenced
     *                      by <contitiontype>
     * @param string $value value to match of the parameter
     * @param string $conditiontype one of '=', '!=', 'preg_match'
     * @param array|false $params array of getParam() calls, or false for no params
     * @param string|false $instructions
     */
    
function addConditionTypeGroup($id$oldgroup$param$value$conditiontype '=',
                                   
$params false$instructions false)
    {
        if (
$params && isset($params[0]) && !isset($params[1])) {
            
$params $params[0];
        }
        
$stuff =
            array(
                
$this->_pkg->getTasksNs() . ':id' => $id,
            );
        if (
$instructions) {
            
$stuff[$this->_pkg->getTasksNs() . ':instructions'] = $instructions;
        }
        
$stuff[$this->_pkg->getTasksNs() . ':name'] = $oldgroup '::' $param;
        
$stuff[$this->_pkg->getTasksNs() . ':conditiontype'] = $conditiontype;
        
$stuff[$this->_pkg->getTasksNs() . ':value'] = $value;
        if (
$params) {
            
$stuff[$this->_pkg->getTasksNs() . ':param'] = $params;
        }
        
$this->_params[$this->_pkg->getTasksNs() . ':paramgroup'][] = $stuff;
    }

    function 
getXml()
    {
        return 
$this->_params;
    }

    
/**
     * Use to set up a param tag for use in creating a paramgroup
     * @static
     */
    
function getParam($name$prompt$type 'string'$default null)
    {
        if (
$default !== null) {
            return 
            array(
                
$this->_pkg->getTasksNs() . ':name' => $name,
                
$this->_pkg->getTasksNs() . ':prompt' => $prompt,
                
$this->_pkg->getTasksNs() . ':type' => $type,
                
$this->_pkg->getTasksNs() . ':default' => $default
            
);
        }
        return
            array(
                
$this->_pkg->getTasksNs() . ':name' => $name,
                
$this->_pkg->getTasksNs() . ':prompt' => $prompt,
                
$this->_pkg->getTasksNs() . ':type' => $type,
            );
    }
}
?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

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

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