added a checked password page when information of member before modify.

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.3.2@11099 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
devjin 2012-08-27 08:11:43 +00:00
parent 103fe3a2c0
commit 4f984d4f91
6 changed files with 130 additions and 8 deletions

View file

@ -146,12 +146,11 @@
{
$item->title = $extendFormInfo[$formInfo->member_join_form_srl]->column_title;
$orgValue = $extendFormInfo[$formInfo->member_join_form_srl]->value;
if($formInfo->type=='tel')
if($formInfo->type=='tel' && is_array($orgValue))
{
$item->value = implode('-', $orgValue);
}
elseif($formInfo->type=='kr_zip')
elseif($formInfo->type=='kr_zip' && is_array($orgValue))
{
$item->value = implode(' ', $orgValue);
}
@ -211,11 +210,54 @@
$this->setTemplateFile('signup_form');
}
function dispMemberModifyInfoBefore()
{
$logged_info = Context::get('logged_info');
$oMemberModel = &getModel('member');
if(!$oMemberModel->isLogged() || empty($logged_info))
{
return $this->stop('msg_not_logged');
}
$_SESSION['rechecked_password'] = FALSE;
$_SESSION['rechecked_password_step'] = TRUE;
$templateFile = $this->getTemplatePath().'rechecked_password.html';
if(!is_readable($templateFile))
{
$templatePath = sprintf('%sskins/default', $this->module_path);
$this->setTemplatePath($templatePath);
}
if ($this->member_config->identifier == 'email_address')
{
Context::set('identifierTitle', Context::getLang('email_address'));
Context::set('identifierValue', $logged_info->email_address);
}
else
{
Context::set('identifierTitle', Context::getLang('user_id'));
Context::set('identifierValue', $logged_info->user_id);
}
$this->setTemplateFile('rechecked_password');
}
/**
* @brief Modify member information
**/
function dispMemberModifyInfo() {
$member_config = $this->member_config;
function dispMemberModifyInfo()
{
if(!$_SESSION['rechecked_password'])
{
$this->dispMemberModifyInfoBefore();
return;
}
$_SESSION['rechecked_password'] = FALSE;
$member_config = $this->member_config;
$oMemberModel = &getModel('member');
// A message appears if the user is not logged-in