297 lines
12 KiB
HTML
Executable File
297 lines
12 KiB
HTML
Executable File
<!--{template common/header}-->
|
|
|
|
|
|
<!--{subtemplate home/spacecp_header}-->
|
|
<!--{if $validate}-->
|
|
<p class="tbmu mb10">{lang validator_comment}</p>
|
|
<form action="member.php?mod=regverify" method="post" autocomplete="off">
|
|
<input type="hidden" value="{FORMHASH}" name="formhash" />
|
|
<table summary="{lang memcp_profile}" cellspacing="0" cellpadding="0" class="tfm">
|
|
<tr>
|
|
<th>{lang validator_remark}</th>
|
|
<td>$validate[remark]</td>
|
|
<td> </td>
|
|
</tr>
|
|
<tr>
|
|
<th>{lang validator_message}</th>
|
|
<td><input type="text" class="px" name="regmessagenew" value="" /></td>
|
|
<td> </td>
|
|
</tr>
|
|
<tr>
|
|
<th> </th>
|
|
<td colspan="2">
|
|
<button type="submit" name="verifysubmit" value="true" class="pn pnc" /><strong>{lang validator_submit}</strong></button>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<!--{else}-->
|
|
<!--{if $operation == 'password'}-->
|
|
<script type="text/javascript" src="{$_G[setting][jspath]}register.js?{VERHASH}"></script>
|
|
<p class="pt10 mb10">
|
|
<!--{if !$_G['member']['freeze']}-->
|
|
<!--{if empty($_G['setting']['connect']['allow']) || !$conisregister}-->{lang old_password_comment}<!--{elseif $wechatuser}-->{lang wechat_config_newpassword_comment}<!--{else}-->{lang connect_config_newpassword_comment}<!--{/if}-->
|
|
<!--{elseif $_G['member']['freeze'] == 1}-->
|
|
<strong class="xi1">{lang freeze_pw_tips}</strong>
|
|
<!--{elseif $_G['member']['freeze'] == 2}-->
|
|
<strong class="xi1">{lang freeze_email_tips}</strong>
|
|
<!--{elseif $_G['member']['freeze'] == -1}-->
|
|
<strong class="xi1">{lang freeze_admincp_tips}</strong>
|
|
<!--{/if}-->
|
|
</p>
|
|
<form action="home.php?mod=spacecp&ac=profile" method="post" autocomplete="off">
|
|
<input type="hidden" value="{FORMHASH}" name="formhash" />
|
|
<table summary="{lang memcp_profile}" cellspacing="0" cellpadding="0" class="tfm">
|
|
<!--{if empty($_G['setting']['connect']['allow']) || !$conisregister}-->
|
|
<tr>
|
|
<th><span class="rq" title="{lang required}">*</span>{lang old_password}</th>
|
|
<td><input type="password" name="oldpassword" id="oldpassword" class="px" /></td>
|
|
</tr>
|
|
<!--{/if}-->
|
|
<tr>
|
|
<th>{lang new_password}</th>
|
|
<td>
|
|
<input type="password" name="newpassword" id="newpassword" class="px" />
|
|
<p class="d" id="chk_newpassword">{lang memcp_profile_passwd_comment}</p>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>{lang new_password_confirm}</th>
|
|
<td>
|
|
<input type="password" name="newpassword2" id="newpassword2"class="px" />
|
|
<p class="d" id="chk_newpassword2">{lang memcp_profile_passwd_comment}</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="contact"{if isset($_GET[from]) && $_GET[from] == 'contact'} style="background-color: {$_G['style']['specialbg']};"{/if}>
|
|
<th>{lang email}</th>
|
|
<td>
|
|
<input type="text" name="emailnew" id="emailnew" value="$space[email]" class="px" />
|
|
<p class="d">
|
|
<!--{if $_G['member']['freeze'] == 2}-->
|
|
<p class="xi1">{lang freeze_email_tips}</p>
|
|
<!--{elseif empty($space['newemail'])}-->
|
|
{lang email_been_active}
|
|
<!--{else}-->
|
|
$acitvemessage
|
|
<!--{/if}-->
|
|
</p>
|
|
<!--{if $_G['setting']['regverify'] == 1 && (($_G['group']['grouptype'] == 'member' && in_array($_G['adminid'], array(0, -1))) || $_G['groupid'] == 8) || $_G['member']['freeze']}--><p class="d">{lang memcp_profile_email_comment}</p><!--{/if}-->
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>{lang secmobile}</th>
|
|
<td>
|
|
<input type="text" name="secmobiccnew" id="secmobiccnew" value="$space[secmobicc]" class="px" style="width: 30px;" />
|
|
<input type="text" name="secmobilenew" id="secmobilenew" value="$space[secmobile]" class="px" style="width: 60%;" />
|
|
<p class="d">{lang memcp_profile_secmobile_comment}</p>
|
|
</td>
|
|
</tr>
|
|
<!--{if $_G['setting']['smsstatus']}-->
|
|
<tr>
|
|
<th>{lang secmobseccode}</th>
|
|
<td>
|
|
<input type="text" name="secmobseccodenew" id="secmobseccodenew" value="" class="px" />
|
|
<button type="button" name="secmobseccodesendnew" id="secmobseccodesendnew" value="true" class="pn pnc" onclick="memcp_sendsecmobseccode();" /><strong>{lang send}</strong></button>
|
|
<p class="d">{lang memcp_profile_secmobseccode_comment}</p>
|
|
</td>
|
|
</tr>
|
|
<!--{/if}-->
|
|
|
|
<!--{if $_G['member']['freeze'] == 2 || $_G['member']['freeze'] == -1}-->
|
|
<tr>
|
|
<th>{lang freeze_reason}</th>
|
|
<td>
|
|
<textarea rows="3" cols="80" name="freezereson" class="pt">$space[freezereson]</textarea>
|
|
<!--{if $_G['member']['freeze'] == 2}--><p class="d" id="chk_newpassword2">{lang freeze_reason_comment}</p><!--{/if}-->
|
|
<!--{if $_G['member']['freeze'] == -1}--><p class="d" id="chk_newpassword2">{lang freeze_reason_admincp_comment}</p><!--{/if}-->
|
|
</td>
|
|
</tr>
|
|
<!--{/if}-->
|
|
|
|
<!--{if ($_G['member']['freeze'] == 2 || $_G['member']['freeze'] == -1) && !empty($space[freezemodremark])}-->
|
|
<tr>
|
|
<th>{lang freeze_remark}</th>
|
|
<td>
|
|
<textarea rows="3" cols="80" name="freezemodremark" class="pt" disabled="disabled">$space[freezemodremark]</textarea>
|
|
<p class="d" id="chk_newpassword2">{lang freeze_remark_comment}</p>
|
|
</td>
|
|
</tr>
|
|
<!--{/if}-->
|
|
|
|
<tr>
|
|
<th>{lang security_question}</th>
|
|
<td>
|
|
<select name="questionidnew" id="questionidnew">
|
|
<option value="" selected>{lang memcp_profile_security_keep}</option>
|
|
<option value="0">{lang security_question_0}</option>
|
|
<option value="1">{lang security_question_1}</option>
|
|
<option value="2">{lang security_question_2}</option>
|
|
<option value="3">{lang security_question_3}</option>
|
|
<option value="4">{lang security_question_4}</option>
|
|
<option value="5">{lang security_question_5}</option>
|
|
<option value="6">{lang security_question_6}</option>
|
|
<option value="7">{lang security_question_7}</option>
|
|
</select>
|
|
<p class="d">{lang memcp_profile_security_comment}</p>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<th>{lang security_answer}</th>
|
|
<td>
|
|
<input type="text" name="answernew" id="answernew" class="px" />
|
|
<p class="d">{lang memcp_profile_security_answer_comment}</p>
|
|
</td>
|
|
</tr>
|
|
<!--{if $secqaacheck || $seccodecheck}-->
|
|
</table>
|
|
<!--{eval $sectpl = '<table cellspacing="0" cellpadding="0" class="tfm"><tr><th><sec></th><td><sec><p class="d"><sec></p></td></tr></table>';}-->
|
|
<!--{subtemplate common/seccheck}-->
|
|
<table summary="{lang memcp_profile}" cellspacing="0" cellpadding="0" class="tfm">
|
|
<!--{/if}-->
|
|
<tr>
|
|
<td colspan="2"><button type="submit" name="pwdsubmit" value="true" class="pn pnc" /><strong>{lang save}</strong></button></td>
|
|
</tr>
|
|
</table>
|
|
<input type="hidden" name="passwordsubmit" value="true" />
|
|
</form>
|
|
<script type="text/javascript">
|
|
var strongpw = new Array();
|
|
<!--{if $_G['setting']['strongpw']}-->
|
|
<!--{loop $_G['setting']['strongpw'] $key $val}-->
|
|
strongpw[$key] = $val;
|
|
<!--{/loop}-->
|
|
<!--{/if}-->
|
|
var pwlength = <!--{if $_G['setting']['pwlength']}-->$_G['setting']['pwlength']<!--{else}-->0<!--{/if}-->;
|
|
checkPwdComplexity($('newpassword'), $('newpassword2'), true);
|
|
</script>
|
|
<!--{if $_G['setting']['smsstatus']}-->
|
|
<script type="text/javascript">
|
|
function memcp_sendsecmobseccode() {
|
|
memcp_svctype = 1;
|
|
memcp_secmobicc = getID("secmobiccnew").value;
|
|
memcp_secmobile = getID("secmobilenew").value;
|
|
return sendsecmobseccode(memcp_svctype, memcp_secmobicc, memcp_secmobile);
|
|
}
|
|
</script>
|
|
<!--{/if}-->
|
|
<!--{else}-->
|
|
<!--{hook/spacecp_profile_top}-->
|
|
<!--{subtemplate home/spacecp_profile_nav}-->
|
|
<!--{if $vid}-->
|
|
<p class="tbms mt10 {if !$showbtn}tbms_r{/if}"><!--{if $showbtn}-->{lang spacecp_profile_message1}<!--{else}-->{lang spacecp_profile_message2}<!--{/if}--></p>
|
|
<!--{/if}-->
|
|
<iframe id="frame_profile" name="frame_profile" style="display: none"></iframe>
|
|
<form action="{if $operation != 'plugin'}home.php?mod=spacecp&ac=profile&op=$operation{else}home.php?mod=spacecp&ac=plugin&op=profile&id=$_GET[id]{/if}" method="post" enctype="multipart/form-data" autocomplete="off"{if $operation != 'plugin'} target="frame_profile"{/if} onsubmit="clearErrorInfo();">
|
|
<input type="hidden" value="{FORMHASH}" name="formhash" />
|
|
<!--{if !empty($_GET[vid])}-->
|
|
<input type="hidden" value="$_GET[vid]" name="vid" />
|
|
<!--{/if}-->
|
|
<table cellspacing="0" cellpadding="0" class="tfm" id="profilelist">
|
|
<tr>
|
|
<th>{lang username}</th>
|
|
<td>$_G[member][username]</td>
|
|
<td> </td>
|
|
</tr>
|
|
<!--{loop $settings $key $value}-->
|
|
<!--{if $value[available]}-->
|
|
<tr id="tr_$key">
|
|
<th id="th_$key"><!--{if $value[required]}--><span class="rq" title="{lang required}">*</span><!--{/if}-->$value[title]</th>
|
|
<td id="td_$key">
|
|
$htmls[$key]
|
|
</td>
|
|
<td class="p">
|
|
<!--{if $vid}-->
|
|
<input type="hidden" name="privacy[$key]" value="3" />
|
|
<!--{else}-->
|
|
<select name="privacy[$key]">
|
|
<option value="0"{if isset($privacy[$key]) && $privacy[$key] == "0"} selected="selected"{/if}>{lang open_privacy}</option>
|
|
<option value="1"{if isset($privacy[$key]) && $privacy[$key] == "1"} selected="selected"{/if}>{lang friend_privacy}</option>
|
|
<option value="3"{if isset($privacy[$key]) && $privacy[$key] == "3"} selected="selected"{/if}>{lang secrecy}</option>
|
|
</select>
|
|
<!--{/if}-->
|
|
</td>
|
|
</tr>
|
|
<!--{/if}-->
|
|
<!--{/loop}-->
|
|
<!--{if $allowcstatus && is_array($allowitems) && in_array('customstatus', $allowitems)}-->
|
|
<tr>
|
|
<th id="th_customstatus">{lang permission_basic_status}</th>
|
|
<td id="td_customstatus">
|
|
<input type="text" value="$space[customstatus]" name="customstatus" id="customstatus" class="px" />
|
|
<div class="rq mtn" id="showerror_customstatus"></div>
|
|
</td>
|
|
<td> </td>
|
|
</tr>
|
|
<!--{/if}-->
|
|
<!--{if $_G['group']['maxsigsize'] && is_array($allowitems) && in_array('sightml', $allowitems)}-->
|
|
<tr>
|
|
<th id="th_sightml">{lang personal_signature}</th>
|
|
<td id="td_sightml">
|
|
<div class="tedt">
|
|
<div class="area">
|
|
<textarea rows="3" cols="80" name="sightml" id="sightmlmessage" class="pt" onkeydown="ctrlEnter(event, 'profilesubmitbtn');">$space[sightml]</textarea>
|
|
</div>
|
|
</div>
|
|
</td>
|
|
<td> </td>
|
|
</tr>
|
|
<!--{/if}-->
|
|
|
|
<!--{if $operation == 'contact'}-->
|
|
<tr>
|
|
<th id="th_sightml">Email</th>
|
|
<td id="td_sightml">$space[email] (<a href="home.php?mod=spacecp&ac=profile&op=password&from=contact#contact">{lang modify}</a>)</td>
|
|
<td> </td>
|
|
</tr>
|
|
<!--{/if}-->
|
|
|
|
<!--{if $operation == 'plugin'}-->
|
|
<!--{eval include(template($_GET['id']));}-->
|
|
<!--{/if}-->
|
|
<!--{hook/spacecp_profile_extra}-->
|
|
<!--{if $showbtn}-->
|
|
<tr>
|
|
<td colspan="3">
|
|
<input type="hidden" name="profilesubmit" value="true" />
|
|
<button type="submit" name="profilesubmitbtn" id="profilesubmitbtn" value="true" class="pn pnc" /><strong>{lang save}</strong></button>
|
|
<span id="submit_result" class="rq"></span>
|
|
</td>
|
|
</tr>
|
|
<!--{/if}-->
|
|
</table>
|
|
<!--{hook/spacecp_profile_bottom}-->
|
|
</form>
|
|
<script type="text/javascript">
|
|
function show_error(fieldid, extrainfo) {
|
|
var elem = getID('th_'+fieldid);
|
|
if(elem) {
|
|
elem.className = "rq";
|
|
fieldname = elem.innerHTML;
|
|
extrainfo = (typeof extrainfo == "string") ? extrainfo : "";
|
|
getID('showerror_'+fieldid).innerHTML = "{lang check_date_item} " + extrainfo;
|
|
getID(fieldid).focus();
|
|
}
|
|
}
|
|
function show_success(message) {
|
|
message = message == '' ? '{lang update_date_success}' : message;
|
|
popup.open(message, 'alert');
|
|
}
|
|
function clearErrorInfo() {
|
|
var spanObj = getID('profilelist').getElementsByTagName("div");
|
|
for(var i in spanObj) {
|
|
if(typeof spanObj[i].id != "undefined" && spanObj[i].id.indexOf("_")) {
|
|
var ids = explode('_', spanObj[i].id);
|
|
if(ids[0] == "showerror") {
|
|
spanObj[i].innerHTML = '';
|
|
getID('th_'+ids[1]).className = '';
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
<!--{/if}-->
|
|
<!--{/if}-->
|
|
</div>
|
|
|
|
<!--{template common/footer}-->
|