function get_currentuserinfo()
{
    global $current_user, $Ktai_Style;
    if (defined('XMLRPC_REQUEST') && XMLRPC_REQUEST) {
        return false;
    }
    if (!empty($current_user)) {
        return;
    }
    $user_id = KtaiStyle_Admin::check_session();
    if (!$user_id) {
        wp_set_current_user(0);
        return false;
    }
    wp_set_current_user($user_id);
}
 function __construct()
 {
     parent::__construct();
     add_filter('get_comment_excerpt', array($this, 'shrink_comment_excerpt'), 99);
 }
function ks_session_id_form()
{
    if (class_exists('KtaiStyle_Admin')) {
        $sid = KtaiStyle_Admin::get_sid();
        if ($sid) {
            echo '<input type="hidden" name="' . KtaiStyle_Admin::SESSION_NAME . '" value="' . htmlspecialchars($sid, ENT_QUOTES) . '" />';
        }
    }
}