function codeing($out, $getcode = 'ub') { require_once admin_ROOT . 'public/class.Chinese.php'; $codechange = new Chinese(admin_ROOT . 'public/config/'); if ($getcode == 'ub') { $out = $codechange->u2g($out); $out = $codechange->g2b($out); } elseif ($getcode == 'bu') { $out = $codechange->b2u($out); } elseif ($getcode == 'ug') { $out = $codechange->u2g($out); } elseif ($getcode == 'gu') { $out = $codechange->g2u($out); } elseif ($getcode == 'gb') { $out = $codechange->g2b($out); } elseif ($getcode == 'bg') { $out = $codechange->b2g($out); } return $out; }