Phpwind Automatic Registration Method

Source: Internet
Author: User

There are always people registered and advertised in forums.
Open wind \ register.htm
<! --
EOT;
If (function_exists ('imagecreate') & $ db_lgck) {print <EOT
-->
<Tr> <td class = 'f _ one'> Verification Code <font color = red> * </font> </td>
<Td class = 'f _ one'> <input type = 'text' maxLength = 4 name = 'lg _ num' size = 10> enter the numbers or English letters in the picture in the Left box </td> </tr>
<! --
EOT;
} Print <EOT
-->


Add the following code below them:




<Tr>
<Td class = 'f _ one'> <B> domain name of this site * </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> only need to input </font> <font color = blue> http://bbs.ourfuwa.com </font> </B> This content is only to prevent spam malicious Registration use, sorry for the inconvenience caused by your registration! </Td> </tr>



Then modify the code at the end of the file.


Function regcheck (formct ){
If (formct. regname. value = ''| formct. regpwd. value = ''| formct. regpwdrepeat. value = ''| formct. www. value = ''){
Alert ('the Member name, password or domain name verification is blank, please fill in ');
Return false;
}
If (formct. regpwd. value! = Formct. regpwdrepeat. value ){
Alert ('the passwords entered are inconsistent. Check the passwords and try again. ');
Return false;
}
If (formct. wwwname. value! = Formct. www. value ){
Alert (please follow the prompts to enter the correct Domain Name: http://bbs.ourfuwa.com this is only to prevent the use of junk software malicious registration, to your registration inconvenience, please forgive me ');
Return false;
}
If (formct. regpwd. value. length <6 ){
Alert ('the password is too small, please use more than six id ');
Return false;
}
}


Please note that the red part 25 is the length of your domain name

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.