phpwind放自動註冊方法

來源:互聯網
上載者:User

論壇老是有人暴力註冊發廣告 好煩
開啟wind\register.htm
<!--
EOT;
if(function_exists('imagecreate') && $db_lgck){print <<<EOT
-->
<tr><td class='f_one'>認證碼<font color=red>*</font></td>
<td class='f_one'><input type='text' maxLength=4 name='lg_num' size=10> <img src="ck.php" align=absmiddle> 請將圖片中的數字或英文字母填入左框中</td></tr>
<!--
EOT;
}print <<<EOT
-->

在它們的下面加入以下代碼:

<tr>
<td class='f_one'><b>本站網域名稱*</b>:</td>
<td class='f_one'>
<INPUT type=text size=25 name=wwwname maxlength=8>
<INPUT type=hidden name=www value=http://bbs.ourfuwa.com>
<font color=red><b>只需要輸入</font><font color=blue>http://bbs.ourfuwa.com</font></b>本項內容僅為防止垃圾軟體惡意註冊之用,給您註冊帶來不便請見諒!</td></tr>

然後修改檔案最後面的代碼

function regcheck(formct){
if (formct.regname.value=='' || formct.regpwd.value=='' || formct.regpwdrepeat.value=='' || formct.www.value==''){
alert('會員名或密碼或網域名稱驗證為空白,請填寫');
return false;
}
if (formct.regpwd.value!=formct.regpwdrepeat.value){
alert('兩次輸入的密碼不一致,請檢查後重試。');
return false;
}
if (formct.wwwname.value!=formct.www.value){
alert('請根據提示輸入本站正確的網域名稱: http://bbs.ourfuwa.com 這僅為防止垃圾軟體惡意註冊之用,給您註冊帶來不便請見諒');
return false;
}
if (formct.regpwd.value.length<6){
alert('密碼太少,請用6位以上');
return false;
}
}

請注意紅色部分25就是你網域名稱的長度

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.