!C99Shell v.2.1 [PHP 7 Update] [1.12.2019]!

Software: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16. PHP/5.4.16 

uname -a: Linux roko-bkp 3.10.0-1160.102.1.el7.x86_64 #1 SMP Tue Oct 17 15:42:21 UTC 2023 x86_64 

uid=48(apache) gid=48(apache) groups=48(apache),1003(webmaster) 

Safe-mode: OFF (not secure)

/var/www/html/site/ipanel/app/core/doctrine/Doctrine/   drwxr-xr-x
Free 9.19 GB of 93.48 GB (9.83%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     Node.php (6.51 KB)      -rwxr-xr-x
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/*
 *  $Id: Node.php 5876 2009-06-10 18:43:12Z piccoloprincipe $
 *
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 *
 * This software consists of voluntary contributions made by many individuals
 * and is licensed under the LGPL. For more information, see
 * <http://www.phpdoctrine.org>.
 */

/**
 * Doctrine_Node
 *
 * @package     Doctrine
 * @subpackage  Node
 * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
 * @link        www.phpdoctrine.org
 * @since       1.0
 * @version     $Revision: 5876 $
 * @author      Joe Simms <joe.simms@websites4.com>
 */
class Doctrine_Node implements IteratorAggregate
{
    
/**
     * @param object    $record   reference to associated Doctrine_Record instance
     */
    
protected $record;

    
/**
     * @param array     $options
     */
    
protected $options;

    
/**
     * @param string     $iteratorType  (Pre | Post | Level)
     */
    
protected $iteratorType;

    
/**
     * @param array     $iteratorOptions
     */
    
protected $iteratorOptions;

    
/**
     * The tree to which the node belongs.
     *
     * @var unknown_type
     */
    
protected $_tree;

    
/**
     * contructor, creates node with reference to record and any options
     *
     * @param object $record                    instance of Doctrine_Record
     * @param array $options                    options
     */
    
public function __construct(Doctrine_Record $record$options)
    {
        
$this->record $record;
        
$this->options $options;
        
        
// Make sure that the tree object of the root class is used in the case
        // of column aggregation inheritance (single table inheritance).
        
$class $record->getTable()->getComponentName();
        
$thisTable $record->getTable();
        
$table $thisTable;
        if (
$thisTable->getOption('inheritanceMap')) {
            
// Move up the hierarchy until we find the "subclasses" option. This option
            // MUST be set on the root class of the user's hierarchy that uses STI.
            
while ( ! $subclasses $table->getOption('subclasses')) {
                
$class get_parent_class($class);
                
$reflectionClass = new ReflectionClass($class);
                if (
$reflectionClass->isAbstract()) {
                    continue;
                }
                if (
$class == 'Doctrine_Record') {
                    throw new 
Doctrine_Node_Exception("No subclasses specified. You are "
                            
"using Single Table Inheritance with NestedSet but you have "
                            
"not specified the subclasses correctly. Make sure you use "
                            
"setSubclasses() in the root class of your hierarchy.");
                }
                
$table $table->getConnection()->getTable($class);
            }
        }
        if (
$thisTable !== $table) {
            
$this->_tree $table->getTree();
        } else {
            
$this->_tree $thisTable->getTree();
        }
    }

    
/**
     * Factory method for creating a Node.
     *
     * This is a factory method that returns node instance based upon chosen
     * implementation.
     *
     * @param object $record                    instance of Doctrine_Record
     * @param string $implName                  implementation (NestedSet, AdjacencyList, MaterializedPath)
     * @param array $options                    options
     * @return Doctrine_Node
     * @throws Doctrine_Node_Exception          if $implName is not a valid class
     */
    
public static function factory(Doctrine_Record $record$implName$options = array())
    {
        
$class 'Doctrine_Node_' $implName;

        if ( ! 
class_exists($class)) {
            throw new 
Doctrine_Node_Exception("The class $class must exist and extend Doctrine_Node");
        }

        return new 
$class($record$options);
    }

    
/**
     * setter for record attribute
     *
     * @param object $record                    instance of Doctrine_Record
     */
    
public function setRecord(Doctrine_Record $record)
    {
        
$this->record $record;
    }

    
/**
     * getter for record attribute
     *
     * @return Doctrine_Record
     */
    
public function getRecord()
    {
        return 
$this->record;
    }

    
/**
     * convenience function for getIterator
     *
     * @param string $type                      type of iterator (Pre | Post | Level)
     * @param array $options                    options
     */
    
public function traverse($type 'Pre'$options = array())
    {
        return 
$this->getIterator($type$options);
    }

    
/**
     * get iterator
     *
     * @param string $type                      type of iterator (Pre | Post | Level)
     * @param array $options                    options
     */
    
public function getIterator($type null$options null)
    {
        if (
$type === null) {
            
$type = (isset($this->iteratorType) ? $this->iteratorType 'Pre');
        }

        if (
$options === null) {
            
$options = (isset($this->iteratorOptions) ? $this->iteratorOptions : array());
        }

        
$implName $this->record->getTable()->getOption('treeImpl');
        
$iteratorClass 'Doctrine_Node_' $implName '_' ucfirst(strtolower($type)) . 'OrderIterator';

        return new 
$iteratorClass($this->record$options);
    }

    
/**
     * sets node's iterator type
     *
     * @param int
     */
    
public function setIteratorType($type)
    {
        
$this->iteratorType $type;
    }

    
/**
     * sets node's iterator options
     *
     * @param int
     */
    
public function setIteratorOptions($options)
    {
        
$this->iteratorOptions $options;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0048 ]--