!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/squirrelmail/plugins/test/   drwxr-xr-x
Free 129.89 GB of 142.11 GB (91.4%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     decodeheader.php (3.12 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

/**
 * SquirrelMail Test Plugin
 *
 * This page tests the decodeHeader function.
 *
 * @copyright 2006-2010 The SquirrelMail Project Team
 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
 * @version $Id$
 * @package plugins
 * @subpackage test
 */

define('SM_PATH''../../');
include_once(
SM_PATH 'include/validate.php');
include_once(
SM_PATH 'functions/mime.php');

global 
$oTemplate$color;

displayPageHeader($color'none');


$header = array("< &  \xC3",                   // plain text
                
'=?iso-8859-1?Q?=3C_&__=C3?='// Q encoding
                
'=?iso-8859-1?B?PCAmICDD?=',   // B encoding
                
'=?utf-8?Q?=3C_&__=C3=80?=',   // Q encoding other charset
                
'=?utf-8?B?PCAmICDDgA==?=',    // B encoding other charset
);


if (
sqGetGlobalVar('lossy'$lossySQ_GET)) {
    if (
$lossy) {
        
$lossy_encoding true;
    } else {
        if (
$default_charset == 'utf-8'
            
$default_charset 'iso-8859-1';
        
$lossy_encoding false;
    }
}


echo 
"<strong>decodeHeader() Test:</strong>\n";


if (
$default_charset == 'utf-8' || $lossy_encoding) {
    echo 
'<p><a href="decodeheader.php?lossy=0">Test with lossy_encoding OFF</a></p>';
} else {
    echo 
'<p><a href="decodeheader.php?lossy=1">Test with lossy_encoding ON</a></p>';
}


echo 
'<p>Default charset: ' $default_charset "<br />\n"
   
'Lossy_encoding: ' . ($lossy_encoding 'true' 'false') . '</p>';


echo 
'<p>The results of this test depend on your current language (translation) selection (see Options==>Display Preferences) (and the character set it employs) and your $lossy_encoding setting (see config/config.php or conf.pl ==> 10 ==> 5).</p>';


echo 
'<pre>';


echo 
"(MDN) 000:\n html chars are not encoded,\n space is not encoded,\n 8bit chars are unmodified\n";
foreach (
$header as $test) {
    echo 
htmlentities(decodeHeader($testfalsefalsefalse));
    echo 
"\n";
}
echo 
"--------\n";


echo 
"(compose) 001:\n html chars are not encoded,\n space is not encoded,\n 8bit chars may be converted or not (depends on \$lossy_encoding and \$default_charset)\n";
foreach (
$header as $test) {
    echo 
htmlentities(decodeHeader($testfalsefalsetrue));
    echo 
"\n";
}
echo 
"--------\n";


echo 
"010\n";
foreach (
$header as $test) {
    echo 
htmlentities(decodeHeader($testfalsetruefalse));
    echo 
"\n";
}
echo 
"--------\n";


echo 
"011\n";
foreach (
$header as $test) {
    echo 
htmlentities(decodeHeader($testfalsetruetrue));
    echo 
"\n";
}
echo 
"--------\n";


echo 
"(download) 100\n";
foreach (
$header as $test) {
    echo 
htmlentities(decodeHeader($testtruefalsefalse));
    echo 
"\n";
}
echo 
"--------\n";


echo 
"101\n";
foreach (
$header as $test) {
    echo 
htmlentities(decodeHeader($testtruefalsetrue));
    echo 
"\n";
}
echo 
"--------\n";


echo 
"(default) 110\n";
foreach (
$header as $test) {
    echo 
htmlentities(decodeHeader($testtruetruefalse));
    echo 
"\n";
}
echo 
"--------\n";


echo 
"111\n";
foreach (
$header as $test) {
    echo 
htmlentities(decodeHeader($testtruetruetrue));
    echo 
"\n";
}
echo 
"--------\n";


echo 
'</pre></body></html>';



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