-
Anti Flood cho VBB
Anti Flood cho VBB
Request: Vbulletin version to 2.x.x
1) Open file "register.php" and:
-----------------------------
Search follower:
-----------------------------
$homepage = trim($homepage);
if ($homepage) {
if (preg_match('#^www\.#si', $homepage)) {
$homepage = "http://$homepage";
} else if (!preg_match('#^[a-z0-9]+://#si', $homepage)) {
// homepage doesn't match the http://-style format in the beginning -- possible attempted exploit
$homepage = '';
}
}
-----------------------------
Insert :
-----------------------------
// Image Validation, Added by Mitdac dot com.
if(strtolower($autovero) != strtolower($autoveri)){
eval("standarderror(\"".gettemplate("error_noval") ."\");");
exit;
}
-----------------------------
search:
-----------------------------
// get extra profile fields
-----------------------------
repair:
-----------------------------
// Reg Verification, Added by Mitdac dot com
$image_var = randomstring(6);
// get extra profile fields
2) logon ADMIN CP, chọn Modify Template, search template 'registeradult'.
-----------------------------
search :
-----------------------------
<tr>
<td bgcolor="{secondaltcolor}"><normalfont>Enter Email Again:</normalfont></td>
<td bgcolor="{secondaltcolor}"><normalfont><input></normalfont></td>
</tr>
-----------------------------
insert:
-----------------------------
<tr>
<td bgcolor="{firstaltcolor}"><normalfont>Automatic Registration Prevention</normalfont>
<smallfont>Please enter the text in the box below to the text box to the right. This is to prevent automatic registrations.
<normalfont>$image_var</normalfont>
</smallfont></td>
<td bgcolor="{firstaltcolor}"><normalfont>
<input>
<input>
</normalfont></td>
</tr>
3) Creat 1 template "error_noval" contain:
"Xin lỗi, bạn phải điền đúng số Security Number thì mới có thể hoÃ*n thÃ*nh việc đăng ký lÃ*m thÃ*nh viên. Hãy quay lại vÃ* điền đúng thông tin."
4) Open file "admin/functions.php" , Insert code tag ?>:
// ###################### Start randomstring, added by mitdac.com #######################
function randomstring($length){
$haystack = '01234567890abcdefghijklmnopqrstuvwxyz';
$needle ="";
while(strlen($needle) < $length) {
$needle .= substr($haystack,rand(0,strlen($haystack)),1);
}
return($needle);
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks