版本請(qǐng)自測(cè)
1、第一步 source/admincp/admincp_setting.php 文件 查找
游客,如果您要查看本帖隱藏內(nèi)容請(qǐng) 回復(fù)
在這個(gè)代碼下添加:
游客,如果您要查看本帖隱藏內(nèi)容請(qǐng) 回復(fù)
2、第二步 打開 source/language/lang_admincp.php 文件
查找: 一個(gè)郵箱只允許注冊(cè)一個(gè)用戶<br/>注意:只有在<a href="?action=setting&operation=mail">站長(zhǎng) - 郵件設(shè)置</a>中完成郵件設(shè)置,確保郵件能送成功下可以開啟該功能 ', 或者(看是簡(jiǎn)體還是繁體): 一個(gè)郵箱只允許注冊(cè)一個(gè)帳戶<br/>注意:只有在<a href="?action=setting&operation=mail">站長(zhǎng) - 郵件設(shè)置</a>中完成郵件設(shè)置,確保郵件能發(fā)送成功下可以開啟該功能 在下面添加:
'setting_access_register_forge_email' => '取消注冊(cè)郵箱必填',
'setting_access_register_forge_email_comment' => '開啟后如果用不不填寫注冊(cè)郵箱,將自動(dòng)生成一個(gè)郵箱地址',
或者:
'setting_access_register_forge_email' => '取消註冊(cè)郵箱必填',
'setting_access_register_forge_email_comment' => '開啟後如果用戶不填寫註冊(cè)郵箱,將自動(dòng)生成一個(gè)隨機(jī)郵箱地址',
3、第三步: 修改游客,如果您要查看本帖隱藏內(nèi)容請(qǐng) 回復(fù) 文件
$email = strtolower(trim($_GET['email']));
if(empty($this->setting['ignorepassword'])) {
if($_GET['password'] !== $_GET['password2']) {
showmessage('profile_passwd_notmatch');
}
if(!$_GET['password'] || $_GET['password'] != addslashes($_GET['password'])) {
showmessage('profile_passwd_illegal');
}
$password = $_GET['password'];
} else {
$password = md5(random(10));
}
}
修改為:
$email = strtolower(trim($_GET['email']));
if(empty($email) && $_G['setting']['forgeemail']) {
$_GET['email'] = $email = strtolower(random(6)).'@'.$_SERVER['HTTP_HOST'];
}
if(empty($this->setting['ignorepassword'])) {
if($_GET['password'] !== $_GET['password2']) {
showmessage('profile_passwd_notmatch');
}
if(!$_GET['password'] || $_GET['password'] != addslashes($_GET['password'])) {
showmessage('profile_passwd_illegal');
}
$password = $_GET['password'];
} else {
$password = md5(random(10));
}
}
這樣修改后,后臺(tái)就會(huì)出現(xiàn)一個(gè)注冊(cè)郵箱取消的功能。然后設(shè)置取消后,前臺(tái)也會(huì)相應(yīng)的變化了。
|