CMS솔루션마켓, 이온디 - 워드프레스, 라이믹스, 카페24, 그누보드, 엑셀

홈페이지 제작팁

/**
     * Update or create session information
     */
    function setSessionInfo()
    {
        // If your information came through the current session information to extract information from the users
        $member_info = Rhymix\Framework\Session::getMemberInfo(true);
        if (!$member_info->member_srl)
        {
            return;
        }
        // Information stored in the session login user
        // 세션 로그인 사용자에 저장된 정보
        Context::set('is_logged', true);  // is_logged Context::set으로 등록하고 truer값을 넣음
        Context::set('logged_info', $member_info);  // logged_info Context::set으로 등록하고 $member_info값을 넣음
        // Only the menu configuration of the user (such as an add-on to the menu can be changed)
        $config = MemberModel::getMemberConfig();
        $this->addMemberMenu( 'dispMemberInfo', 'cmd_view_member_info');
        if ($config->features['scrapped_documents'] !== false)
        {
            $this->addMemberMenu( 'dispMemberScrappedDocument', 'cmd_view_scrapped_document');
        }
        if ($config->features['saved_documents'] !== false)
        {
            $this->addMemberMenu( 'dispMemberSavedDocument', 'cmd_view_saved_document');
        }
        if ($config->features['my_documents'] !== false)
        {
            $this->addMemberMenu( 'dispMemberOwnDocument', 'cmd_view_own_document');
        }
        if ($config->features['my_comments'] !== false)
        {
            $this->addMemberMenu( 'dispMemberOwnComment', 'cmd_view_own_comment');
        }
        if ($config->features['active_logins'] !== false)
        {
            $this->addMemberMenu( 'dispMemberActiveLogins', 'cmd_view_active_logins');
        }
        if ($config->features['nickname_log'] !== false && $config->update_nickname_log == 'Y')
        {
            $this->addMemberMenu( 'dispMemberModifyNicknameLog', 'cmd_modify_nickname_log');
        }
    }
    /**
     * Logged method for providing a personalized menu
     * Login information is used in the output widget, or personalized page
     */
    public static function addMemberMenu($act, $str)
    {
        $logged_info = Context::get('logged_info');
        if(is_object($logged_info))
        {
            $logged_info->menu_list[$act] = $str;
            Context::set('logged_info', $logged_info);
        }
    } 
 
댓글은 로그인 사용자만 작성 가능합니다. 로그인하기