21 $this->member_config = $oMemberModel->getMemberConfig();
24 $oSecurity->encodeHTML(
'member_config.signupForm..');
26 $skin = $this->member_config->skin;
36 $config_parse = explode(
'|@|',
$skin);
37 if (count($config_parse) > 1)
39 $template_path = sprintf(
'./themes/%s/modules/member/', $config_parse[0]);
50 $layout_info = $oLayoutModel->getLayout($this->member_config->layout_srl);
53 $this->module_info->layout_srl = $this->member_config->layout_srl;
79 $columnList = array(
'member_srl',
'user_id',
'email_address',
'user_name',
'nick_name',
'homepage',
'blog',
'birthday',
'regdate',
'last_login',
'extra_vars');
80 $member_info = $oMemberModel->getMemberInfoByMemberSrl($member_srl, $site_module_info->site_srl, $columnList);
88 $replaceStr = str_repeat(
'*', (strlen(
$member_info->email_address) - $start));
96 $extendForm = $oMemberModel->getCombineJoinForm(
$member_info);
97 unset($extendForm->find_member_account);
98 unset($extendForm->find_member_answer);
109 $displayDatas = array();
110 foreach($memberConfig->signupForm as $no=>$formInfo)
112 if(!$formInfo->isUse)
117 if($formInfo->name ==
'password' || $formInfo->name ==
'find_account_question')
122 if(
$logged_info->is_admin !=
'Y' && $memberInfo->member_srl !=
$logged_info->member_srl && $formInfo->isPublic !=
'Y')
129 if($formInfo->isDefaultForm)
132 $item->value = $memberInfo->{$formInfo->name};
134 if($formInfo->name ==
'profile_image' && $memberInfo->profile_image)
136 $target = $memberInfo->profile_image;
137 $item->value =
'<img src="'.$target->src.
'" />';
139 elseif($formInfo->name ==
'image_name' && $memberInfo->image_name)
141 $target = $memberInfo->image_name;
142 $item->value =
'<img src="'.$target->src.
'" />';
144 elseif($formInfo->name ==
'image_mark' && $memberInfo->image_mark)
146 $target = $memberInfo->image_mark;
147 $item->value =
'<img src="'.$target->src.
'" />';
149 elseif($formInfo->name ==
'birthday' && $memberInfo->birthday)
151 $item->value =
zdate($item->value,
'Y-m-d');
156 $item->title = $extendFormInfo[$formInfo->member_join_form_srl]->column_title;
157 $orgValue = $extendFormInfo[$formInfo->member_join_form_srl]->value;
158 if($formInfo->type==
'tel' && is_array($orgValue))
160 $item->value = implode(
'-', $orgValue);
162 elseif($formInfo->type==
'kr_zip' && is_array($orgValue))
164 $item->value = implode(
' ', $orgValue);
166 elseif($formInfo->type==
'checkbox' && is_array($orgValue))
168 $item->value = implode(
", ",$orgValue);
170 elseif($formInfo->type==
'date')
172 $item->value =
zdate($orgValue,
"Y-m-d");
176 $item->value = nl2br($orgValue);
180 $displayDatas[] = $item;
185 $oSecurity->encodeHTML(
'displayDatas..title',
'displayDatas..description');
186 return $displayDatas;
195 setcookie(
"XE_REDIRECT_URL", $_SERVER[
'HTTP_REFERER']);
197 $member_config = $this->member_config;
201 if($oMemberModel->isLogged())
return $this->stop(
'msg_already_logged');
204 if(!$trigger_output->toBool())
return $trigger_output;
206 if($member_config->enable_join !=
'Y')
return $this->stop(
'msg_signup_disabled');
209 $formTags = $oMemberAdminView->_getMemberInputTag($member_info);
213 $identifierForm =
new stdClass();
214 $identifierForm->title = $lang->{$member_config->identifier};
215 $identifierForm->name = $member_config->identifier;
216 $identifierForm->value = $member_info->{$member_config->identifier};
219 $this->addExtraFormValidatorMessage();
222 $this->setTemplateFile(
'signup_form');
231 return $this->stop(
'msg_not_logged');
234 $_SESSION[
'rechecked_password_step'] =
'INPUT_PASSWORD';
236 $templateFile = $this->getTemplatePath().
'rechecked_password.html';
237 if(!is_readable($templateFile))
239 $templatePath = sprintf(
'%sskins/default', $this->module_path);
240 $this->setTemplatePath($templatePath);
243 if ($this->member_config->identifier ==
'email_address')
254 $this->setTemplateFile(
'rechecked_password');
262 if($_SESSION[
'rechecked_password_step'] !=
'VALIDATE_PASSWORD' && $_SESSION[
'rechecked_password_step'] !=
'INPUT_DATA')
264 $this->dispMemberModifyInfoBefore();
268 $_SESSION[
'rechecked_password_step'] =
'INPUT_DATA';
270 $member_config = $this->member_config;
274 if(!$oMemberModel->isLogged())
return $this->stop(
'msg_not_logged');
279 $columnList = array(
'member_srl',
'user_id',
'user_name',
'nick_name',
'email_address',
'find_account_answer',
'homepage',
'blog',
'birthday',
'allow_mailing');
280 $member_info = $oMemberModel->getMemberInfoByMemberSrl($member_srl, 0, $columnList);
281 $member_info->signature = $oMemberModel->getSignature($member_srl);
285 Context::set(
'extend_form_list', $oMemberModel->getCombineJoinForm($member_info));
288 if($member_info->member_srl)
291 $option =
new stdClass();
292 $option->primary_key_name =
'member_srl';
293 $option->content_key_name =
'signature';
294 $option->allow_fileupload =
false;
295 $option->enable_autosave =
false;
296 $option->enable_default_component =
true;
297 $option->enable_component =
false;
298 $option->resizable =
false;
299 $option->disable_html =
true;
300 $option->height = 200;
301 $option->skin = $member_config->signature_editor_skin;
302 $option->colorset = $member_config->sel_editor_colorset;
303 $editor = $oEditorModel->getEditor($member_info->member_srl, $option);
307 $this->member_info = $member_info;
310 $formTags = $oMemberAdminView->_getMemberInputTag($member_info);
314 $identifierForm =
new stdClass();
315 $identifierForm->title = $lang->{$member_config->identifier};
316 $identifierForm->name = $member_config->identifier;
317 $identifierForm->value = $member_info->{$member_config->identifier};
320 $this->addExtraFormValidatorMessage();
323 $this->setTemplateFile(
'modify_info');
333 if(!$oMemberModel->isLogged())
return $this->stop(
'msg_not_logged');
341 Context::set(
'search_keyword', implode(
',', array($member_srl, $member_srl * -1)));
345 $oDocumentAdminView->dispDocumentAdminList();
348 $oSecurity->encodeHTML(
'document_list...title',
'search_target',
'search_keyword');
351 $this->setTemplateFile(
'document_list');
361 if(!$oMemberModel->isLogged())
return $this->stop(
'msg_not_logged');
364 $args =
new stdClass();
376 $security->encodeHTML(
'..nick_name');
378 $this->setTemplateFile(
'scrapped_list');
388 if(!$oMemberModel->isLogged())
return $this->stop(
'msg_not_logged');
391 $args =
new stdClass();
394 $args->statusList = array(
'TEMP');
404 $this->setTemplateFile(
'saved_list');
415 $this->setTemplatePath($this->module_path.
'tpl');
416 $this->setTemplateFile(
'redirect.html');
422 $config = $this->member_config;
425 $XE_VALIDATOR_MESSAGE =
Context::get(
'XE_VALIDATOR_MESSAGE');
426 $XE_VALIDATOR_ERROR =
Context::get(
'XE_VALIDATOR_ERROR');
427 if($XE_VALIDATOR_ERROR == -11)
428 Context::set(
'XE_VALIDATOR_MESSAGE', $XE_VALIDATOR_MESSAGE . $config->limit_day_description);
430 if($XE_VALIDATOR_ERROR < -10 && $XE_VALIDATOR_ERROR > -21)
433 Context::set(
'referer_url', htmlspecialchars($_SERVER[
'HTTP_REFERER'], ENT_COMPAT | ENT_HTML401,
'UTF-8',
false));
436 $this->setTemplateFile(
'login_form');
446 if(!$oMemberModel->isLogged())
return $this->stop(
'msg_not_logged');
448 $memberConfig = $this->member_config;
453 $columnList = array(
'member_srl',
'user_id');
454 $member_info = $oMemberModel->getMemberInfoByMemberSrl($member_srl, 0, $columnList);
457 if($memberConfig->identifier ==
'user_id')
468 $this->setTemplateFile(
'modify_password');
478 if(!$oMemberModel->isLogged())
return $this->stop(
'msg_not_logged');
480 $memberConfig = $this->member_config;
485 $member_info = $oMemberModel->getMemberInfoByMemberSrl($member_srl);
488 if($memberConfig->identifier ==
'user_id')
499 $this->setTemplateFile(
'leave_form');
508 $output = $oMemberController->procMemberLogout();
512 $this->setRedirectUrl(
$output->redirect_url);
523 return new BaseObject(0,
'Deplicated method');
531 if(
Context::get(
'is_logged'))
return $this->stop(
'already_logged');
533 $config = $this->member_config;
537 $this->setTemplateFile(
'find_member_account');
545 if(
Context::get(
'is_logged'))
return $this->stop(
'already_logged');
548 $temp_password = $_SESSION[
'xe_temp_password_'.$user_id];
549 unset($_SESSION[
'xe_temp_password_'.$user_id]);
551 if(!$user_id||!$temp_password)
return new BaseObject(-1,
'msg_invaild_request');
555 $this->setTemplateFile(
'find_temp_password');
563 $authMemberSrl = $_SESSION[
'auth_member_srl'];
564 unset($_SESSION[
'auth_member_srl']);
568 return $this->stop(
'already_logged');
574 $memberInfo = $oMemberModel->getMemberInfoByMemberSrl($authMemberSrl);
576 $_SESSION[
'auth_member_info'] = $memberInfo;
578 $this->setTemplateFile(
'reset_mail');
582 $this->setTemplateFile(
'resend_auth_mail');
588 if($_SESSION[
'rechecked_password_step'] !=
'VALIDATE_PASSWORD' && $_SESSION[
'rechecked_password_step'] !=
'INPUT_DATA')
591 $this->dispMemberModifyInfoBefore();
595 $_SESSION[
'rechecked_password_step'] =
'INPUT_DATA';
597 $this->setTemplateFile(
'modify_email_address');
607 $extraList = $oMemberModel->getUsedJoinFormList();
610 $js_code[] =
'<script>//<![CDATA[';
611 $js_code[] =
'(function($){';
612 $js_code[] =
'var validator = xe.getApp("validator")[0];';
613 $js_code[] =
'if(!validator) return false;';
615 $errorLang = array();
616 foreach($extraList as $val)
618 $title = str_ireplace(array(
'<script',
'</script'), array(
'<scr"+"ipt',
'</scr"+"ipt'), addslashes($val->column_title));
619 if($val->column_type ==
'kr_zip' || $val->column_type ==
'tel')
621 $js_code[] = sprintf(
'validator.cast("ADD_MESSAGE", ["%s[]","%s"]);', $val->column_name, $title);
625 $js_code[] = sprintf(
'validator.cast("ADD_MESSAGE", ["%s","%s"]);', $val->column_name, $title);
627 $errorLang[$val->column_name] = $val->column_title;
629 $_SESSION[
'XE_VALIDATOR_ERROR_LANG'] = $errorLang;
631 $js_code[] =
'})(jQuery);';
632 $js_code[] =
'//]]></script>';
633 $js_code = implode(
"\n", $js_code);
652 $columnList = array(
'module_srl',
'module');
656 if(!$grant->manager)
return new BaseObject(-1,
'msg_not_permitted');
661 Context::set(
'spammer_info', $oMemberModel->getMemberInfoByMemberSrl($member_srl));
665 $this->setLayoutPath(
'./common/tpl');
666 $this->setLayoutFile(
'popup_layout');
668 $this->setTemplatePath($this->module_path.
'tpl');
669 $this->setTemplateFile(
'spammer');
setTemplateFile($filename)
getController($module_name)
dispMemberModifyEmailAddress()
dispMemberModifyPassword()
Change the user password.
zdate($str, $format= 'Y-m-d H:i:s', $conversion=TRUE)
dispMemberLogout()
Member log-out.
$template_path
a path of directory where template files reside
dispMemberSavedDocument()
Display documents saved by the member.
set($key, $val, $set_to_get_vars=0)
addExtraFormValidatorMessage()
dispMemberInfo()
Display member information.
dispMemberGetTempPassword()
Generate a temporary password.
dispMemberLeave()
Member withdrawl.
dispSavedDocumentList()
Display a list of saved articles - instead Document View - dispTempSavedList method use...
dispMemberResendAuthMail()
Page of re-sending an authentication mail.
dispMemberModifyInfoBefore()
dispMemberScrappedDocument()
Display documents scrapped by the member.
getAdminView($module_name)
dispMemberOwnDocument()
Display documents written by the member.
dispMemberSignUpForm()
Display member join form.
dispMemberLoginForm()
Display the login form.
executeQuery($query_id, $args=NULL, $arg_columns=NULL)
_getDisplayedMemberInfo($memberInfo, $extendFormInfo, $memberConfig)
triggerCall($trigger_name, $called_position, &$obj)
View class of member module.
dispMemberFindAccount()
Find user ID and password.
if(isset($_REQUEST['encode'])) if(isset($_REQUEST['decode'])) $lang
dispMemberModifyInfo()
Modify member information.