how do i stop them from registering 3thousand names in seconds?they flooding the forum someone help me and when the staff create a club they able to login with that staff name someone help me stop all this
Help
Collapse
X
-
put that in register.php ...
PHP Code:$actime = mysql_fetch_array(mysql_query("SELECT regdate FROM lib3rtymrc_users WHERE browserm='".$ubr."' ORDER BY regdate DESC LIMIT 1"));
$timeout = $actime[0] + (3*60);
if(time()<$timeout)
{
$tm = time();
$ramas = $timeout - $tm;
echo "<p align=\"center\">";
echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/><small>Un user cu un browser similar cu al dumneavoastra tocmai s-a inregistrat pe site<br/>Ne pare rau dar va ve-ti putea creea un cont nou peste <b>$ramas secunde</b></small><br/>";
echo "</p>";
}else{
# ANTI FLOOD BROWSER #2
$brwsu = explode("$_SERVER",$HTTP_USER_AGENT);
$ubr = $brwsu[0];
$actime = mysql_fetch_array(mysql_query("SELECT regdate FROM lib3rtymrc_users WHERE browserm='".$ubr."' ORDER BY regdate DESC LIMIT 1"));
$timeout = $actime[0] + (3*60);
if(time()<$timeout)
{
$tm = time();
$ramas = $timeout - $tm;
echo "<p align=\"center\">";
echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/><small>Un user cu un browser similar cu al dumneavoastra tocmai s-a inregistrat pe site<br/>Va puteti creea un cont nou peste <b>$ramas secunde</b></small><br/>";
echo "</p>";
}else{
# ANTIFLOOD IP
$uip = getip();
$actime = mysql_fetch_array(mysql_query("SELECT regdate FROM lib3rtymrc_users WHERE ipadd='".$uip."' ORDER BY regdate DESC LIMIT 1"));
$timeout = $actime[0] + (10*60);
if(time()<$timeout)
{
$tm = time();
$ramas = $timeout - $tm;
echo "<p align=\"center\">";
echo "<img src=\"images/notok.gif\" alt=\"X\"/><br/><small>Un user cu un IP similar cu al dumneavoastra tocmai s-a inregistrat pe site<br/>Reveniti peste <b>$ramas secunde</b></small><br/>";
echo "</p>";
}else{
//register forms ...
}
Last edited by i0nutzxp; 31.08.10, 15:34.<?php unlink('World/Europe/Romania.country'); ?>
Comment
-
For session hack u must use ur own images ( dont steal ) , for download vault files + gallery files make a file down.php with the code :
PHP Code:<?PHP
$fid = (int)$_GET['file_id'];
$select = mysql_fetch_assoc(mysql_query("SELECT url FROM table WHERE id='".$fid."'"));
header("Location: {$select['url']}");
?>
//////// kenrickx
one of : { } ( ) is in + or in - ....simple to repairLast edited by i0nutzxp; 31.08.10, 16:20.<?php unlink('World/Europe/Romania.country'); ?>
Comment
-
LEARN PHP!!!!!!!!!!!!!!!!!!!!!!!!
You have been given the answer to the problem:
Originally posted by i0nutzxp View Postone of : { } ( ) is in + or in - ....simple to repair
Originally posted by kenrickx View PostParse error: syntax error, unexpected $end in /home/yeah/public_html/blaablaabla.com/register.php on line 180
Added after 9 minutes:
and if your really stuck and cant fix problems like this then open your php.ini file and set:
PHP Code:short_open_tag = On
Last edited by something else; 31.08.10, 20:35.
Comment
-
Originally posted by something else View Post.....
PHP Code:short_open_tag = On
PHP Code:Short_open_tag = On
it'll just allowe you to use
PHP Code:<?
.......
?>
PHP Code:<?php
.......
?>It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ â“â“¡â“” â“ⓑⓛⓔ ⓣⓞ â“—â“”â“â“¡ !
ιη тнєσÑу, тнє ÏÑα¢тι¢є ιѕ α Ñєѕυℓт σƒ тнє тнєσÑу, вυт ιη ÏÑα¢тι¢є ιѕ тнє σÏÏσѕιтє.
Comment
-
Originally posted by metulj View Posti dont think that
PHP Code:Short_open_tag = On
it'll just allowe you to use
PHP Code:<?
.......
?>
PHP Code:<?php
.......
?>
PHP Code:if($something){
print 'yes';
else{
print 'no';
}
Added after 3 minutes:
You can read many pages here saying it works: Parse error: syntax error, unexpected $end Short_open_tag = On - Google SearchLast edited by something else; 03.10.10, 16:13.
Comment
-
Originally posted by something else View PostIm think It also allows you to have open statements which are not closed properly eg:
PHP Code:if($something){
print 'yes';
else{
print 'no';
}
Added after 3 minutes:
You can read many pages here saying it works: Parse error: syntax error, unexpected $end Short_open_tag = On - Google Search
but just
PHP Code:<?...
and many servers doesnt support it by default anymore...
so it's kind a bad practice to use it i guess...
also it may happen that document started with
PHP Code:<?...
It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ â“â“¡â“” â“ⓑⓛⓔ ⓣⓞ â“—â“”â“â“¡ !
ιη тнєσÑу, тнє ÏÑα¢тι¢є ιѕ α Ñєѕυℓт σƒ тнє тнєσÑу, вυт ιη ÏÑα¢тι¢є ιѕ тнє σÏÏσѕιтє.
Comment
-
Whatever! Yal saying junk. Help the kid, kids. Yo kenrick bin a minute. Its catchphrase, i know u hate me. Anyway just use a captcha library in ur registration. That simple. And for the petty sid theft...stick to php sessions. Ive noticed just a few here knw how to grab that or run csrf requests (and thats sad).
Comment
Comment