git-svn-id: http://xe-core.googlecode.com/svn/trunk@1212 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-04-18 04:47:05 +00:00
parent 76f599c69b
commit 713bbfe3d2
16 changed files with 44 additions and 62 deletions

View file

@ -1,9 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<plugin version="0.1">
<title xml:lang="ko">로그인 정보 출력</title>
<title xml:lang="ko">기본 카운터 플러그인</title>
<author email_address="zero@zeroboard.com" link="http://www.zeroboard.com" date="2007. 2. 28">
<name xml:lang="ko">제로</name>
<description xml:lang="ko">로그인 폼이나 로그인 정보를 출력합니다</description>
<description xml:lang="ko">
기본 카운터 모듈을 이용하여 전체, 어제, 오늘의 접속현황을 표시합니다.
counter모듈이 설치되어 있어야 하고 counter 애드온이 켜져 있어야 합니다.
</description>
</author>
<extra_vars />
</plugin>

View file

@ -1,14 +1,12 @@
<?php
/**
* @class login_info
* @class counter_status
* @author zero (zero@nzeo.com)
* @version 0.1
* @brief 로그인 폼을 출력하는 플러그인
*
* $logged_info를 이용하며 이는 미리 설정되어 있음
* @brief counter 모듈의 데이터를 이용하여 counter 현황을 출력
**/
class login_info extends PluginHandler {
class counter_status extends PluginHandler {
/**
* @brief 플러그인의 실행 부분
@ -24,7 +22,7 @@
Context::set('colorset', $args->colorset);
// 템플릿 파일을 지정
$tpl_file = 'login_info';
$tpl_file = 'counter_status';
// 템플릿 컴파일
$oTemplate = new TemplateHandler();

View file

@ -1,14 +0,0 @@
<filter name="plugin_login" module="member" act="procMemberLogin">
<form>
<node target="user_id" required="true" filter="user_id"/>
<node target="password" required="true" />
</form>
<parameter>
<param name="user_id" target="user_id" />
<param name="password" target="password" />
</parameter>
<response callback_func="completeLogin">
<tag name="error" />
<tag name="message" />
</response>
</filter>

View file

@ -1,7 +0,0 @@
<filter name="plugin_logout" module="member" act="procMemberLogout">
<form />
<response>
<tag name="error" />
<tag name="message" />
</response>
</filter>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 556 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 505 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 967 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 559 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 534 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 535 B

View file

@ -1,31 +0,0 @@
/* 로그인 영역에 포커스 */
function doFocusUserId(fo_id) {
var fo_obj = xGetElementById(fo_id);
if(xGetCookie('user_id')) {
fo_obj.user_id.value = xGetCookie('user_id');
fo_obj.remember_user_id.checked = true;
try{
fo_obj.password.focus();
} catch(e) {};
} else {
try{
fo_obj.user_id.focus();
} catch(e) {};
}
}
/* 로그인 후 */
function completeLogin(ret_obj, response_tags, params, fo_obj) {
if(fo_obj.remember_user_id && fo_obj.remember_user_id.checked) {
var expire = new Date();
expire.setTime(expire.getTime()+ (7000 * 24 * 3600000));
xSetCookie('user_id', fo_obj.user_id.value, expire);
}
var url = location.href.setQuery('act','');
location.href = location.href.setQuery('act','');
}

View file

@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<skin>
<title xml:lang="ko">로그인 정보 출력 기본 스킨 </title>
<title xml:lang="ko">접속자 현황 출력 기본 스킨 </title>
<maker email_address="zero@zeroboard.com" link="http://www.zeroboard.com" date="2007. 2. 28">
<name xml:lang="ko">제로</name>
<description xml:lang="ko">newest_document의 기본 스킨</description>
<description xml:lang="ko">counter_status 의 기본 스킨</description>
</maker>
<colorset>
<color name="normal">