mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@1022 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
8345304333
commit
5bb93cd38a
14 changed files with 135 additions and 4 deletions
|
|
@ -18,7 +18,7 @@
|
|||
/**
|
||||
* @brief debug mode = true 일때 files/_debug_message.php 에 디버그 내용이 쌓임
|
||||
**/
|
||||
define('__DEBUG__', false);
|
||||
define('__DEBUG__', true);
|
||||
if(__DEBUG__) {
|
||||
|
||||
// php5이상이면 error handling을 handleError() 로 set
|
||||
|
|
|
|||
|
|
@ -126,6 +126,7 @@
|
|||
* @return string
|
||||
**/
|
||||
function zdate($str, $format = "Y-m-d H:i:s") {
|
||||
if(!$str) return;
|
||||
return date($format, mktime(substr($str,8,2), substr($str,10,2), substr($str,12,2), substr($str,4,2), substr($str,6,2), substr($str,0,4)));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -107,6 +107,9 @@
|
|||
$lang->about_password = '비밀번호는 6~20자로 되어야 합니다';
|
||||
$lang->about_user_name = '이름은 2~20자 이내여야 합니다';
|
||||
$lang->about_nick_name = '닉네임은 2~20자 이내여야 합니다';
|
||||
$lang->about_homepage = '홈페이지가 있을 경우 입력해주세요';
|
||||
$lang->about_blog = '운영하는 블로그가 있을 경우 입력해주세요';
|
||||
$lang->about_birthday = '생년월일을 입력해주세요';
|
||||
$lang->about_allow_mailing = '메일링 가입이 체크되지 않으면 단체메일 발송시 메일을 받지 않습니다';
|
||||
$lang->about_denied = '체크시 아이디를 사용할 수 없도록 합니다';
|
||||
$lang->about_is_admin = '체크시 최고 관리자 권한을 가지게 됩니다';
|
||||
|
|
|
|||
|
|
@ -375,7 +375,7 @@
|
|||
**/
|
||||
function procMemberAdminInsert() {
|
||||
// 필수 정보들을 미리 추출
|
||||
$args = Context::gets('member_srl','user_id','user_name','nick_name','email_address','password','allow_mailing','denied','is_admin','description','group_srl_list');
|
||||
$args = Context::gets('member_srl','user_id','user_name','nick_name','homepage','blog','birthday','email_address','password','allow_mailing','denied','is_admin','description','group_srl_list');
|
||||
|
||||
// 넘어온 모든 변수중에서 몇가지 불필요한 것들 삭제
|
||||
$all_args = Context::getRequestVars();
|
||||
|
|
@ -595,7 +595,7 @@
|
|||
if($config->enable_join != 'Y') return $this->stop('msg_signup_disabled');
|
||||
|
||||
// 필수 정보들을 미리 추출
|
||||
$args = Context::gets('user_id','user_name','nick_name','email_address','password','allow_mailing');
|
||||
$args = Context::gets('user_id','user_name','nick_name','homepage','blog','birthday','email_address','password','allow_mailing');
|
||||
$args->member_srl = getNextSequence();
|
||||
|
||||
// 넘어온 모든 변수중에서 몇가지 불필요한 것들 삭제
|
||||
|
|
@ -629,7 +629,7 @@
|
|||
if(!Context::get('is_logged')) return $this->stop('msg_not_logged');
|
||||
|
||||
// 필수 정보들을 미리 추출
|
||||
$args = Context::gets('nick_name','email_address','allow_mailing');
|
||||
$args = Context::gets('nick_name','homepage','blog','birthday','email_address','allow_mailing');
|
||||
|
||||
// 로그인 정보
|
||||
$logged_info = Context::get('logged_info');
|
||||
|
|
@ -866,6 +866,10 @@
|
|||
if($args->is_admin!='Y') $args->is_admin = 'N';
|
||||
list($args->email_id, $args->email_host) = explode('@', $args->email_address);
|
||||
|
||||
// 홈페이지, 블로그의 주소 검사
|
||||
if($args->homepage && !eregi("^http:\/\/",$args->homepage)) $args->homepage = 'http://'.$args->homepage;
|
||||
if($args->blog && !eregi("^http:\/\/",$args->blog)) $args->blog = 'http://'.$args->blog;
|
||||
|
||||
// 모델 객체 생성
|
||||
$oMemberModel = &getModel('member');
|
||||
|
||||
|
|
@ -928,6 +932,9 @@
|
|||
if(!$args->is_admin) unset($args->is_admin);
|
||||
list($args->email_id, $args->email_host) = explode('@', $args->email_address);
|
||||
|
||||
// 홈페이지, 블로그의 주소 검사
|
||||
if($args->homepage && !eregi("^http:\/\/",$args->homepage)) $args->homepage = 'http://'.$args->homepage;
|
||||
if($args->blog && !eregi("^http:\/\/",$args->blog)) $args->blog = 'http://'.$args->blog;
|
||||
|
||||
// 아이디, 닉네임, email address 의 중복 체크
|
||||
$member_srl = $oMemberModel->getMemberSrlByUserID($args->user_id);
|
||||
|
|
|
|||
|
|
@ -11,6 +11,9 @@
|
|||
<column name="email_host" var="email_host" notnull="notnull" />
|
||||
<column name="user_name" var="user_name" notnull="notnull" minlength="2" maxlength="40" />
|
||||
<column name="nick_name" var="nick_name" notnull="notnull" minlength="2" maxlength="40" />
|
||||
<column name="homepage" var="homepage" />
|
||||
<column name="blog" var="blog" />
|
||||
<column name="birthday" var="birthday" />
|
||||
<column name="allow_mailing" var="allow_mailing" default="Y" />
|
||||
<column name="unread_message" var="unread_message" default="0" />
|
||||
<column name="denied" var="denied" default="N" />
|
||||
|
|
|
|||
|
|
@ -9,6 +9,9 @@
|
|||
<column name="email_host" var="email_host" notnull="notnull" />
|
||||
<column name="user_name" var="user_name" notnull="notnull" minlength="2" maxlength="40" />
|
||||
<column name="nick_name" var="nick_name" notnull="notnull" minlength="2" maxlength="40" />
|
||||
<column name="homepage" var="homepage" />
|
||||
<column name="blog" var="blog" />
|
||||
<column name="birthday" var="birthday" />
|
||||
<column name="allow_mailing" var="allow_mailing" default="Y" />
|
||||
<column name="denied" var="denied" />
|
||||
<column name="is_admin" var="is_admin" />
|
||||
|
|
|
|||
|
|
@ -6,6 +6,9 @@
|
|||
<parameter>
|
||||
<param name="accept_agreement" target="accept_agreement" />
|
||||
<param name="nick_name" target="nick_name" />
|
||||
<param name="homepage" target="homepage" />
|
||||
<param name="blog" target="blog" />
|
||||
<param name="birthday" target="birthday" />
|
||||
<param name="allow_mailing" target="allow_mailing" />
|
||||
<param name="email_address" target="email_address" />
|
||||
<param name="signature" target="content" />
|
||||
|
|
|
|||
|
|
@ -14,6 +14,9 @@
|
|||
<param name="password" target="password1" />
|
||||
<param name="user_name" target="user_name" />
|
||||
<param name="nick_name" target="nick_name" />
|
||||
<param name="homepage" target="homepage" />
|
||||
<param name="blog" target="blog" />
|
||||
<param name="birthday" target="birthday" />
|
||||
<param name="allow_mailing" target="allow_mailing" />
|
||||
<param name="email_address" target="email_address" />
|
||||
</parameter>
|
||||
|
|
|
|||
|
|
@ -29,6 +29,18 @@
|
|||
<td><img src="{$member_info->image_mark->src}" border="0" alt="image_mark" /></td>
|
||||
</tr>
|
||||
<!--@end-->
|
||||
<tr>
|
||||
<th>{$lang->homepage}</th>
|
||||
<td><!--@if($member_info->homepage)--><a href="#" onclick="winopen('{$member_info->homepage}'); return false;">{$member_info->homepage}</a><!--@end--></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{$lang->blog}</th>
|
||||
<td><!--@if($member_info->blog)--><a href="#" onclick="winopen('{$member_info->blog}'); return false;">{$member_info->blog}</a><!--@end--></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{$lang->birthday}</th>
|
||||
<td>{zdate($member_info->birthday,"Y-m-d")}</td>
|
||||
</tr>
|
||||
<!--@if($member_info->signature)-->
|
||||
<tr>
|
||||
<th>{$lang->signature}</th>
|
||||
|
|
|
|||
|
|
@ -77,6 +77,33 @@
|
|||
</td>
|
||||
</tr>
|
||||
<!--@end-->
|
||||
<tr>
|
||||
<th rowspan="2">{$lang->homepage}</th>
|
||||
<td>
|
||||
<input type="text" name="homepage" value="{$member_info->homepage}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{$lang->about_homepage}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th rowspan="2">{$lang->blog}</th>
|
||||
<td>
|
||||
<input type="text" name="blog" value="{$member_info->blog}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{$lang->about_blog}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th rowspan="2">{$lang->birthday}</th>
|
||||
<td>
|
||||
<input type="text" name="birthday" value="{$member_info->birthday}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{$lang->about_birthday}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th rowspan="2">{$lang->allow_mailing}</th>
|
||||
<td><input type="checkbox" name="allow_mailing" value="Y" <!--@if($member_info->allow_mailing!='N')-->checked="true"<!--@end-->/></td>
|
||||
|
|
|
|||
|
|
@ -77,6 +77,33 @@
|
|||
<input type="text" name="email_address" value="{$member_info->email_address}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th rowspan="2">{$lang->homepage}</th>
|
||||
<td>
|
||||
<input type="text" name="homepage" value="{$member_info->homepage}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{$lang->about_homepage}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th rowspan="2">{$lang->blog}</th>
|
||||
<td>
|
||||
<input type="text" name="blog" value="{$member_info->blog}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{$lang->about_blog}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th rowspan="2">{$lang->birthday}</th>
|
||||
<td>
|
||||
<input type="text" name="birthday" value="{$member_info->birthday}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{$lang->about_birthday}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th rowspan="2">{$lang->allow_mailing}</th>
|
||||
<td><input type="checkbox" name="allow_mailing" value="Y" checked="true" /></td>
|
||||
|
|
|
|||
|
|
@ -12,6 +12,9 @@
|
|||
<param name="password" target="password" />
|
||||
<param name="user_name" target="user_name" />
|
||||
<param name="nick_name" target="nick_name" />
|
||||
<param name="homepage" target="homepage" />
|
||||
<param name="blog" target="blog" />
|
||||
<param name="birthday" target="birthday" />
|
||||
<param name="email_address" target="email_address" />
|
||||
<param name="allow_mailing" target="allow_mailing" />
|
||||
<param name="denied" target="denied" />
|
||||
|
|
|
|||
|
|
@ -64,6 +64,33 @@
|
|||
<input type="text" name="email_address" value="{$member_info->email_address}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th rowspan="2">{$lang->homepage}</th>
|
||||
<td>
|
||||
<input type="text" name="homepage" value="{$member_info->homepage}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{$lang->about_homepage}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th rowspan="2">{$lang->blog}</th>
|
||||
<td>
|
||||
<input type="text" name="blog" value="{$member_info->blog}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{$lang->about_blog}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th rowspan="2">{$lang->birthday}</th>
|
||||
<td>
|
||||
<input type="text" name="birthday" value="{$member_info->birthday}" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>{$lang->about_birthday}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th rowspan="2">{$lang->allow_mailing}</th>
|
||||
<td><input type="checkbox" name="allow_mailing" value="Y" <!--@if($member_info->allow_mailing!='N')-->checked="true"<!--@end-->/></td>
|
||||
|
|
|
|||
|
|
@ -64,6 +64,18 @@
|
|||
<th>{$lang->email_address}</th>
|
||||
<td>{$member_info->email_address}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{$lang->homepage}</th>
|
||||
<td><!--@if($member_info->homepage)--><a href="#" onclick="winopen('{$member_info->homepage}'); return false;">{$member_info->homepage}</a><!--@end--></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{$lang->blog}</th>
|
||||
<td><!--@if($member_info->blog)--><a href="#" onclick="winopen('{$member_info->blog}'); return false;">{$member_info->blog}</a><!--@end--></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{$lang->birthday}</th>
|
||||
<td>{zdate($member_info->birthday,'Y-m-d')}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>{$lang->allow_mailing}</th>
|
||||
<td>{$member_info->allow_mailing}</td>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue