!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\ObjectOrientedPHP\   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:     12.php (2.1 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
* A standard header for a web page
*/
class StandardHeader {
    
/**
    * The header HTML is stored here
    */
    
var $header='';

    
/**
    * The constructor, taking the name of the page
    */
    
function StandardHeader ($title) {
        
$html = <<<EOD
<html>
<head>
<title> 
$title </title>
</head>
<body>
<h1>
$title</h1>
EOD;
        
$this->setHeader($html);
    }

    
/**
    * General method for adding to the header
    */
    
function setHeader($string) {
        if ( !empty (
$this->header ) ) {
            
$this->header .= $string;
        } else {
            
$this->header $string;
        }
    }

    
/**
    * Fetch the header
    */
    
function getHeader() {
        return 
$this->header;
    }
}

/**
* Subclass for dealing with Categories, building a breadcrumb menu
*/
class CategoryHeader extends StandardHeader {
    
/**
    * Constructor, taking the category name and the pages base URL
    */
    
function CategoryHeader($category,$baseUrl) {
        
// Call the parent constructor
        
parent::StandardHeader($category);

        
// Build the breadcrumbs
        
$html = <<<EOD
<p><a href="$baseUrl">Home</a> > <a href="$baseUrl?category=$category">$category</a></p>
EOD;
        
// Call the parent setHeader() method
        
$this->setHeader($html);
    }
}

// Set the base URL
$baseUrl '12.php';

// An array of valid categories
$categories = array ('PHP','MySQL','CSS');

// Check to see if we're viewing a valid category
if ( isset ( $_GET['category'] ) && in_array($_GET['category'],$categories) ) {

    
// Instantiate the subclass
    
$header = new CategoryHeader($_GET['category'],$baseUrl);
} else {

    
// Otherwise it's the home page. Instantiate the Parent class
    
$header = new StandardHeader('Home');
}

// Display the header
echo ( $header->getHeader() );
?>
<h2>Categories</h2>
<p><a href="<?php echo ($baseUrl); ?>?category=PHP">PHP</a></p>
<p><a href="<?php echo ($baseUrl); ?>?category=MySQL">MySQL</a></p>
<p><a href="<?php echo ($baseUrl); ?>?category=CSS">CSS</a></p>
</body>
</html>

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