mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-31 00:59:58 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1212 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
76f599c69b
commit
713bbfe3d2
16 changed files with 44 additions and 62 deletions
11
modules/counter/queries/getTodayStatus.xml
Normal file
11
modules/counter/queries/getTodayStatus.xml
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
<query id="getTodayStatus" action="select">
|
||||||
|
<tables>
|
||||||
|
<table name="counter_status" />
|
||||||
|
</tables>
|
||||||
|
<columns>
|
||||||
|
<column name="count(*)" alias="count"/>
|
||||||
|
</columns>
|
||||||
|
<conditions>
|
||||||
|
<condition operation="equal" column="regdate" var="regdate" notnull="notnull" />
|
||||||
|
</conditions>
|
||||||
|
</query>
|
||||||
10
modules/counter/queries/insertTodayStatus.xml
Normal file
10
modules/counter/queries/insertTodayStatus.xml
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
<query id="insertTodayStatus" action="insert">
|
||||||
|
<tables>
|
||||||
|
<table name="counter_status" />
|
||||||
|
</tables>
|
||||||
|
<columns>
|
||||||
|
<column name="regdate" var="regdate" notnull="notnull" />
|
||||||
|
<column name="unique_visitor" default="0" />
|
||||||
|
<column name="pageview" default="0" />
|
||||||
|
</columns>
|
||||||
|
</query>
|
||||||
12
modules/counter/tpl/js/counter.js
Normal file
12
modules/counter/tpl/js/counter.js
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
/**
|
||||||
|
* @brief 카운터 정보 수집 javascript
|
||||||
|
* window.onload 이벤트 후에 counter 모듈을 호출한다.
|
||||||
|
**/
|
||||||
|
|
||||||
|
// 이벤트 등록
|
||||||
|
xAddEventListener(window,'load',doCallCounter);
|
||||||
|
|
||||||
|
// counter 모듈을 호출하는 함수
|
||||||
|
function doCallCounter() {
|
||||||
|
exec_xml('counter','procCounterExecute');
|
||||||
|
}
|
||||||
|
|
@ -1,9 +1,12 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<plugin version="0.1">
|
<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">
|
<author email_address="zero@zeroboard.com" link="http://www.zeroboard.com" date="2007. 2. 28">
|
||||||
<name xml:lang="ko">제로</name>
|
<name xml:lang="ko">제로</name>
|
||||||
<description xml:lang="ko">로그인 폼이나 로그인 정보를 출력합니다</description>
|
<description xml:lang="ko">
|
||||||
|
기본 카운터 모듈을 이용하여 전체, 어제, 오늘의 접속현황을 표시합니다.
|
||||||
|
counter모듈이 설치되어 있어야 하고 counter 애드온이 켜져 있어야 합니다.
|
||||||
|
</description>
|
||||||
</author>
|
</author>
|
||||||
<extra_vars />
|
<extra_vars />
|
||||||
</plugin>
|
</plugin>
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,12 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* @class login_info
|
* @class counter_status
|
||||||
* @author zero (zero@nzeo.com)
|
* @author zero (zero@nzeo.com)
|
||||||
* @version 0.1
|
* @version 0.1
|
||||||
* @brief 로그인 폼을 출력하는 플러그인
|
* @brief counter 모듈의 데이터를 이용하여 counter 현황을 출력
|
||||||
*
|
|
||||||
* $logged_info를 이용하며 이는 미리 설정되어 있음
|
|
||||||
**/
|
**/
|
||||||
|
|
||||||
class login_info extends PluginHandler {
|
class counter_status extends PluginHandler {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief 플러그인의 실행 부분
|
* @brief 플러그인의 실행 부분
|
||||||
|
|
@ -24,7 +22,7 @@
|
||||||
Context::set('colorset', $args->colorset);
|
Context::set('colorset', $args->colorset);
|
||||||
|
|
||||||
// 템플릿 파일을 지정
|
// 템플릿 파일을 지정
|
||||||
$tpl_file = 'login_info';
|
$tpl_file = 'counter_status';
|
||||||
|
|
||||||
// 템플릿 컴파일
|
// 템플릿 컴파일
|
||||||
$oTemplate = new TemplateHandler();
|
$oTemplate = new TemplateHandler();
|
||||||
|
|
@ -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>
|
|
||||||
|
|
@ -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 |
|
|
@ -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','');
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<skin>
|
<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">
|
<maker email_address="zero@zeroboard.com" link="http://www.zeroboard.com" date="2007. 2. 28">
|
||||||
<name xml:lang="ko">제로</name>
|
<name xml:lang="ko">제로</name>
|
||||||
<description xml:lang="ko">newest_document의 기본 스킨</description>
|
<description xml:lang="ko">counter_status 의 기본 스킨</description>
|
||||||
</maker>
|
</maker>
|
||||||
<colorset>
|
<colorset>
|
||||||
<color name="normal">
|
<color name="normal">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue