!C99Shell v.2.1 [PHP 7 Update] [1.12.2019]!

Software: Apache. PHP/5.6.40-67+ubuntu20.04.1+deb.sury.org+1 

uname -a: Linux hosting1.erectacloud.it 5.4.0-182-generic #202-Ubuntu SMP Fri Apr 26 12:29:36 UTC
2024 x86_64
 

uid=5229(web473) gid=5117(client172) groups=5117(client172),5002(sshusers) 

Safe-mode: OFF (not secure)

/var/www/clients/client172/web473/web/OLD_WP/wp-content/plugins/wp-multibyte-patch/ext/ja/   drwxr-xr-x
Free 180.05 GB of 490.84 GB (36.68%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     class.php (7.14 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/**
 * WP Multibyte Patch Japanese Locale Extension
 *
 * @package WP_Multibyte_Patch
 * @version 2.8.1
 * @author Seisuke Kuraishi <210pura@gmail.com>
 * @copyright Copyright (c) 2016 Seisuke Kuraishi, Tinybit Inc.
 * @license http://opensource.org/licenses/gpl-2.0.php GPLv2
 * @link http://eastcoder.com/code/wp-multibyte-patch/
 */

/**
 * This class extends multibyte_patch.
 *
 * @package WP_Multibyte_Patch
 */
if ( class_exists'multibyte_patch' ) ) :
    class 
multibyte_patch_ext extends multibyte_patch {

    public function 
get_jis_name() {
        if ( 
function_exists'mb_list_encodings' ) ) {
            
$list "\t" implode"\t"mb_list_encodings() ) . "\t";
            return ( 
preg_match"/\tISO-2022-JP-MS\t/i"$list ) ) ? 'ISO-2022-JP-MS' 'ISO-2022-JP';
        }
        else
            return 
'ISO-2022-JP';
    }

    public function 
UTF8toJIS$string ) {
        return 
$this->convenc$string$this->get_jis_name(), 'UTF-8' );
    }

    public function 
JIStoUTF8$string ) {
        return 
$this->convenc$string'UTF-8'$this->get_jis_name() );
    }

    public function 
encode_mimeheader_b_uncut$string ''$charset 'UTF-8' ) {
        if ( 
== strlen$string ) || strlen$string ) == mb_strlen$string$charset ) )
            return 
$string;

        return 
"=?$charset?B?" base64_encode$string ) . '?=';
    }

    public function 
get_phpmailer_properties$phpmailer ) {
        
$array = (array) $phpmailer;
        
$new = array();
        foreach ( 
$array as $key => $value ) {
            
$key preg_replace"/^\\0[^\\0]+\\0/"""$key );
            
$new[$key] = $value;
        }
        return 
$new;
    }

    public function 
wp_mail$phpmailer ) {
        
$blog_encoding $this->blog_encoding;

        
$phpmailer->FromName preg_replace"/[\r\n]/"""trim$phpmailer->FromName ) );
        
$phpmailer->FromName $this->convenc$phpmailer->FromName'UTF-8'$blog_encoding );
        
$phpmailer->Subject preg_replace"/[\r\n]/"""trim$phpmailer->Subject ) );
        
$phpmailer->Subject $this->convenc$phpmailer->Subject'UTF-8'$blog_encoding );
        
$phpmailer->Body $this->convenc$phpmailer->Body'UTF-8'$blog_encoding );

        if ( 
'UTF-8' == strtouppertrim$this->conf['mail_mode'] ) ) )
            
$mode 'UTF-8';
        elseif ( 
'JIS' == strtouppertrim$this->conf['mail_mode'] ) ) )
            
$mode 'JIS';
        else { 
// Check unmappable characters and decide what to do.
            
$test_str_before $phpmailer->FromName $phpmailer->Subject $phpmailer->Body;
            
$test_str_after $this->UTF8toJIS$test_str_before );
            
$test_str_after $this->JIStoUTF8$test_str_after );
            
$mode = ( $test_str_after != $test_str_before ) ? 'UTF-8' 'JIS';
        }

        
$phpmailer_props $this->get_phpmailer_properties$phpmailer );
        
$recipient_methods = array(
            
'to' => array(
                
'add' => 'addAddress',
                
'clear' => 'clearAddresses',
            ),
            
'cc' => array(
                
'add' => 'addCC',
                
'clear' => 'clearCCs',
            ),
            
'bcc' => array(
                
'add' => 'addBCC',
                
'clear' => 'clearBCCs',
            ),
            
'ReplyTo' => array(
                
'add' => 'addReplyTo',
                
'clear' => 'clearReplyTos',
            ),
        );

        if ( 
'UTF-8' == $mode ) {
            
$phpmailer->CharSet 'UTF-8';
            
$phpmailer->Encoding 'base64';
            
$phpmailer->AddCustomHeader'Content-Disposition: inline' );
            
$phpmailer->FromName $this->encode_mimeheader_b_uncut$phpmailer->FromName'UTF-8' );
            
$phpmailer->Subject $this->encode_mimeheader_b_uncut$phpmailer->Subject'UTF-8' );

            foreach ( 
$recipient_methods as $name => $method ) {
                if ( isset( 
$phpmailer_props[$name] ) && is_array$phpmailer_props[$name] ) ) {
                    
$phpmailer->{$method['clear']}();

                    foreach ( 
$phpmailer_props[$name] as $recipient ) {
                        if ( ! empty( 
$recipient[1] ) ) {
                            
$recipient[1] = $this->encode_mimeheader_b_uncut$recipient[1], 'UTF-8' );
                        }

                        
$phpmailer->{$method['add']}( $recipient[0], $recipient[1] );
                    }
                }
            }
        }
        elseif ( 
'JIS' == $mode ) {
            
$phpmailer->CharSet 'ISO-2022-JP';
            
$phpmailer->Encoding '7bit';
            
$phpmailer->FromName $this->UTF8toJIS$phpmailer->FromName );
            
$phpmailer->FromName $this->encode_mimeheader_b_uncut$phpmailer->FromName'ISO-2022-JP' );
            
$phpmailer->Subject $this->UTF8toJIS$phpmailer->Subject );
            
$phpmailer->Subject $this->encode_mimeheader_b_uncut$phpmailer->Subject'ISO-2022-JP' );
            
$phpmailer->Body $this->UTF8toJIS$phpmailer->Body );

            foreach ( 
$recipient_methods as $name => $method ) {
                if ( isset( 
$phpmailer_props[$name] ) && is_array$phpmailer_props[$name] ) ) {
                    
$phpmailer->{$method['clear']}();

                    foreach ( 
$phpmailer_props[$name] as $recipient ) {
                        if ( ! empty( 
$recipient[1] ) ) {
                            
$recipient[1] = $this->UTF8toJIS$recipient[1] );
                            
$recipient[1] = $this->encode_mimeheader_b_uncut$recipient[1], 'ISO-2022-JP' );
                        }

                        
$phpmailer->{$method['add']}( $recipient[0], $recipient[1] );
                    }
                }
            }
        }
    }

    public function 
process_search_terms() {
        
$blog_encoding $this->blog_encoding;

        if ( isset( 
$_GET['s'] ) ) {
            
$_GET['s'] = wp_unslash$_GET['s'] );
            
$_GET['s'] = mb_convert_kana$_GET['s'], 's'$blog_encoding );
            
$_GET['s'] = preg_replace"/ +/"" "$_GET['s'] );
            
$_GET['s'] = wp_slash$_GET['s'] );
        }
    }

    public function 
guess_encoding$string$encoding '' ) {
        
$guess_list 'UTF-8, eucJP-win, SJIS-win';

        if ( 
preg_match"/^utf-8$/i"$encoding ) )
            return 
'UTF-8';
        elseif ( 
preg_match"/^euc-jp$/i"$encoding ) )
            return 
'eucJP-win';
        elseif ( 
preg_match"/^(sjis|shift_jis)$/i"$encoding ) )
            return 
'SJIS-win';
        elseif ( !
$encoding )
            return 
mb_detect_encoding$string$guess_list );
        else
            return 
$encoding;
    }

    public function 
admin_custom_css() {
        if ( empty( 
$this->conf['admin_custom_css_url'] ) )
            
$url plugin_dir_url__FILE__ ) . 'admin.css';
        else
            
$url $this->conf['admin_custom_css_url'];

        
wp_enqueue_style'wpmp-admin-custom'$url, array(), '20131223' );
    }

    public function 
wp_trim_words$text ''$num_words 110$more ''$original_text '' ) {
        if ( 
!== strpos_x'words''Word count type. Do not translate!' ), 'characters' ) )
            return 
$text;

        
// If the caller is wp_dashboard_recent_drafts()
        
if ( false !== $this->conf['patch_dashboard_recent_drafts'] && 10 === $num_words && is_admin() && strposwp_debug_backtrace_summary(), 'wp_dashboard_recent_drafts' ) )
            
$num_words $this->conf['dashboard_recent_drafts_mblength'];

        
$text $original_text;
        
$text wp_strip_all_tags$text );
        
$text trimpreg_replace"/[\n\r\t ]+/"' '$text ), ' ' );

        if ( 
mb_strlen$text$this->blog_encoding ) > $num_words )
            
$text mb_substr$text0$num_words$this->blog_encoding ) . $more;

        return 
$text;
    }

    public function 
__construct() {
        
// mbstring functions are always required for ja.
        
$this->mbfunctions_required true;

        
$this->conf['patch_wp_mail'] = true;
        
$this->conf['patch_incoming_trackback'] = true;
        
$this->conf['patch_incoming_pingback'] = true;
        
$this->conf['patch_process_search_terms'] = true;
        
$this->conf['patch_admin_custom_css'] = true;
        
$this->conf['patch_force_character_count'] = true;
        
$this->conf['patch_force_twentytwelve_open_sans_off'] = true;
        
$this->conf['patch_wp_trim_words'] = true;
        
// auto, JIS, UTF-8
        
$this->conf['mail_mode'] = 'JIS';
        
$this->conf['admin_custom_css_url'] = '';

        
parent::__construct();
    }
}
endif;

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

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

--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0628 ]--