!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\htdocs\jaime\Xcode\SPLIB\UI\   drwxrwxrwx
Free 7.96 GB of 239.26 GB (3.33%)
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:     CollapsingTree.php (2.92 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
* @package SPLIB
* @version $Id: CollapsingTree.php,v 1.1 2003/12/12 08:06:02 kevin Exp $
*/
/**
* CollapsingTree class
* <pre>
*  Home
*    - About
*    - Contact
*  Products
*  Etc
* </pre>
* @access public
* @package SPLIB
*/
class CollapsingTree extends Menu {
    
/**
    * All parent nodes from the current location
    * @access private
    * @var array
    */
    
var $parents;

    
/**
    * The children of the select parents
    * @access private
    * @var array
    */
    
var $children;

    
/**
    * CollapsingTree constructor
    * @param object database connection
    * @param string URL fragment
    * @access public
    */
    
function CollapsingTree (&$db,$location='') {
        
Menu::Menu($db);
        
$treeItem=$this->locate($location);
        
$this->parents=array($treeItem->name()=>$treeItem);
        
$this->getParents($treeItem);
        
$this->getChildren();
        
$this->build();
    }

    
/**
    * Resursive function that fetches all parents
    * above the current location
    * @param object instance of MenuItem
    * @return void
    * @access private
    */
    
function getParents($treeItem) {
        foreach ( 
$this->items as $item ) {
            if (
$treeItem->parent_id() == $item->id()) {
                
$this->parents[$item->name()]=$item;
                
$this->getParents($item);
            }
        }
    }

    
/**
    * Gets the children of each selected parent
    * @return void
    * @access private
    */
    
function getChildren() {
        foreach ( 
$this->parents as $parent ) {
            
$this->children[$parent->name()]=array();
            foreach ( 
$this->items as $item ) {
                if ( 
$item->parent_id() == $parent->id() ) {
                    
$this->children[$parent->name()][]=$item;
                }
            }
        }
    }

    
/**
    * Resursive function that adds any children to the
    * current node
    * @param object instance of MenuItem
    * @return void
    * @access private
    */
    
function appendChildren ($item) {
        if (
array_key_exists($item->name(),$this->parents)) {
            
$this->menu[]=new Marker('start');
            foreach ( 
$this->children[$item->name()] as $child ) {
                
$this->menu[]=$child;
                
$this->appendChildren($child);
            }
            
$check=end($this->menu);
            if ( 
$check->isStart() )
                
array_pop($this->menu);
            else
                
$this->menu[]=new Marker('end');
        }
    }

    
/**
    * Starts construction, building the root elements
    * @return void
    * @access private
    */
    
function build () {
        foreach ( 
$this->items as $item ) {
            if ( 
$item->isRoot() ) {
                
$this->menu[]=$item;
                
$this->appendChildren($item);
            }
        }
        
reset $this->menu );
    }
}
?>

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