@@ 1046-1063 (lines=18) @@ | ||
1043 | $member_config = $oModuleModel->getModuleConfig('member'); |
|
1044 | $memberInfo = array(); |
|
1045 | global $lang; |
|
1046 | if(is_array($member_config->signupForm)) |
|
1047 | { |
|
1048 | $exceptForm=array('password', 'find_account_question'); |
|
1049 | foreach($member_config->signupForm as $form) |
|
1050 | { |
|
1051 | if(!in_array($form->name, $exceptForm) && $form->isDefaultForm && ($form->required || $form->mustRequired)) |
|
1052 | { |
|
1053 | $memberInfo[$lang->{$form->name}] = $member_info->{$form->name}; |
|
1054 | } |
|
1055 | } |
|
1056 | } |
|
1057 | else |
|
1058 | { |
|
1059 | $memberInfo[$lang->user_id] = $args->user_id; |
|
1060 | $memberInfo[$lang->user_name] = $args->user_name; |
|
1061 | $memberInfo[$lang->nick_name] = $args->nick_name; |
|
1062 | $memberInfo[$lang->email_address] = $args->email_address; |
|
1063 | } |
|
1064 | Context::set('memberInfo', $memberInfo); |
|
1065 | ||
1066 | if(!$member_config->skin) $member_config->skin = "default"; |
|
@@ 1299-1316 (lines=18) @@ | ||
1296 | ||
1297 | $memberInfo = array(); |
|
1298 | global $lang; |
|
1299 | if(is_array($member_config->signupForm)) |
|
1300 | { |
|
1301 | $exceptForm=array('password', 'find_account_question'); |
|
1302 | foreach($member_config->signupForm as $form) |
|
1303 | { |
|
1304 | if(!in_array($form->name, $exceptForm) && $form->isDefaultForm && ($form->required || $form->mustRequired)) |
|
1305 | { |
|
1306 | $memberInfo[$lang->{$form->name}] = $member_info->{$form->name}; |
|
1307 | } |
|
1308 | } |
|
1309 | } |
|
1310 | else |
|
1311 | { |
|
1312 | $memberInfo[$lang->user_id] = $member_info->user_id; |
|
1313 | $memberInfo[$lang->user_name] = $member_info->user_name; |
|
1314 | $memberInfo[$lang->nick_name] = $member_info->nick_name; |
|
1315 | $memberInfo[$lang->email_address] = $member_info->email_address; |
|
1316 | } |
|
1317 | ||
1318 | // Get content of the email to send a member |
|
1319 | Context::set('memberInfo', $memberInfo); |
|
@@ 1425-1442 (lines=18) @@ | ||
1422 | $memberInfo = array(); |
|
1423 | ||
1424 | global $lang; |
|
1425 | if(is_array($member_config->signupForm)) |
|
1426 | { |
|
1427 | $exceptForm=array('password', 'find_account_question'); |
|
1428 | foreach($member_config->signupForm as $form) |
|
1429 | { |
|
1430 | if(!in_array($form->name, $exceptForm) && $form->isDefaultForm && ($form->required || $form->mustRequired)) |
|
1431 | { |
|
1432 | $memberInfo[$lang->{$form->name}] = $member_info->{$form->name}; |
|
1433 | } |
|
1434 | } |
|
1435 | } |
|
1436 | else |
|
1437 | { |
|
1438 | $memberInfo[$lang->user_id] = $member_info->user_id; |
|
1439 | $memberInfo[$lang->user_name] = $member_info->user_name; |
|
1440 | $memberInfo[$lang->nick_name] = $member_info->nick_name; |
|
1441 | $memberInfo[$lang->email_address] = $member_info->email_address; |
|
1442 | } |
|
1443 | Context::set('memberInfo', $memberInfo); |
|
1444 | ||
1445 | if(!$member_config->skin) $member_config->skin = "default"; |