Flood control

Gestart doorShahiem13 reacties27 weergaven

14 berichten · pagina 1 van 1

Shahiem

Lid · Topicstarter

Berichten
20.364
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Kan iemand me helpen , me floodcontrol doet het niet.
En ik heb het echt nodig aangezien iemand de heletijd spamt.

Code:

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR]is_auth[COLOR= #007700]([/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]uId[/COLOR][COLOR= #007700]]))
{[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]toevoegen[/COLOR][COLOR= #007700]]) &&[/COLOR] [COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REQUEST_METHOD[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]POST[/COLOR][COLOR= #007700]) {[/COLOR]
                    [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bericht[/COLOR][COLOR= #007700]]))
                    {[/COLOR]
        [COLOR= #0000BB]$fouten[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]<div class="rederror"><br /><strong>Je hebt niet alle velden 

ingevuld.</strong></div>[/COLOR][COLOR= #007700];
    }[/COLOR]
    [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$fouten[/COLOR] [COLOR= #007700]==[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700])
    {[/COLOR]
    
[URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"INSERT INTO berichtenbalk ( bericht, userid) VALUES ( 

"[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bericht[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]", "[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]uId[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]" ) "[/COLOR][COLOR= #007700])[/COLOR] or 

[URL="http://www.php.net/trigger_error"]trigger_error[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]
                
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<div class="greenerror"><br /><strong>Je bericht is succesvol 

toevoegd.</strong></div><meta http-equiv="refresh" content="3; URL=index.php" />[/COLOR][COLOR= #007700];
    }
                }[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$fouten[/COLOR][COLOR= #007700];
{[/COLOR]
      [URL="http://www.php.net/if"]if[/URL][COLOR= #007700](([/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]last_session_request[/COLOR][COLOR= #007700]] >[/COLOR] [URL="http://www.php.net/time"]time[/URL][COLOR= #007700]() -[/COLOR] [COLOR= #0000BB]$config[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]floodcontrol[/COLOR][COLOR= #007700]]) && 

([/COLOR][COLOR= #0000BB]$userinfo[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]uRang[/COLOR][COLOR= #007700]] <=[/COLOR] [COLOR= #0000BB]5[/COLOR][COLOR= #007700]))
            {[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]U dient [/COLOR] [COLOR= #007700].[/COLOR] htmlentities[COLOR= #007700]([/COLOR][COLOR= #0000BB]$config[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]floodcontrol[/COLOR][COLOR= #007700]]) .[/COLOR] [COLOR= #DD0000] seconden te 

wachten voordat u weer een bericht kan plaatsen[/COLOR][COLOR= #007700];
}
}[/COLOR]
                ?>
<div class="top">Voeg een bericht toe!</div><div class="mid">
                <form action="" method="post">
                    <table width="100%">
                        <tr>
                            <td>Bericht:</td>
                            <td><textarea name="bericht" cols="50" 

rows="10"></textarea></td>
                        </tr>
                        <tr>
                            <td></td>
                            <td><input type="submit" 

name="toevoegen" value="Voeg toe!" /></td>
                        </tr>
                    </table>
                </form>
</div>
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #007700]}[/COLOR]
[URL="http://www.php.net/else"]else[/URL]
[COLOR= #007700]{[/COLOR]
    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<div class="rederror"><br /><strong>U moet ingelogd zijn om deze pagina te 

bekijken.</strong><br> <a href="index.php?p=login">Log hier in</a> of <a 

href="index.php?p=registreer">maak een account aan.</a></div>[/COLOR][COLOR= #007700];
}[/COLOR]
?>
0
Berichten
18.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Haal je $config[floodcontrol] wel op?
Die word namelijk alleen in forum.php opgehaald
0
Berichten
188
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
if(($_SESSION[last_session_request] > time() - $config[floodcontrol])

Dit klopt niet.
Moet zijn:

if(($_SESSION[last_session_request] > time() - $floodcontrol)

overal $config[floodcontrol] vervange trouwens door $floodcontrol

geen dank biggrin
0
Berichten
18.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Azerty schreef:
if(($_SESSION[last_session_request] > time() - $config[floodcontrol])
Dit klopt niet.
Moet zijn:

if(($_SESSION[last_session_request] > time() - $floodcontrol)

overal $config[floodcontrol] vervange trouwens door $floodcontrol

geen dank biggrin
Nee hoor, Shahiem heeft dit uit het forum van GLS gekopieerd en daar staat toch echt $config[floodcontrol] (dat weet ik omdat ik dat forum heb gemaakt)
0
Berichten
188
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Luukvdo schreef:
Eerdere citaten tonen
Azerty schreef:
if(($_SESSION[last_session_request] > time() - $config[floodcontrol])
Dit klopt niet.
Moet zijn:

if(($_SESSION[last_session_request] > time() - $floodcontrol)

overal $config[floodcontrol] vervange trouwens door $floodcontrol

geen dank biggrin
Nee hoor, Shahiem heeft dit uit het forum van GLS gekopieerd en daar staat toch echt $config[floodcontrol] (dat weet ik omdat ik dat forum heb gemaakt)
en dat werkt? emo
nee dus clown
0
Berichten
18.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Azerty schreef:
Eerdere citaten tonen
Luukvdo schreef:
Eerdere citaten tonen
Azerty schreef:
if(($_SESSION[last_session_request] > time() - $config[floodcontrol])
Dit klopt niet.
Moet zijn:

if(($_SESSION[last_session_request] > time() - $floodcontrol)

overal $config[floodcontrol] vervange trouwens door $floodcontrol

geen dank biggrin
Nee hoor, Shahiem heeft dit uit het forum van GLS gekopieerd en daar staat toch echt $config[floodcontrol] (dat weet ik omdat ik dat forum heb gemaakt)
en dat werkt? emo
nee dus clown
Nee, omdat hij niks uit de config tabel van het forum haalt, want dat wordt alleen in forum.php opgehaald en niet in zijn bestand
0
Berichten
13.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
if(($_SESSION[last_session_request] > time() - $config[floodcontrol]) && 

($userinfo[uRang] <= 5))
            {
                echo U dient  . htmlentities($config[floodcontrol]) .  seconden te 

wachten voordat u weer een bericht kan plaatsen;
}


je echot alleen een tekst als hij op het limiet zit..
Je spammer ziet dus gewoon het formulier en kan gewoon een bericht plaatsen?
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
1. ik hack niet emo2. ik probeerde je berichtenbalk uit jij verbant me
3. je verban systeem werkt niet (goed)
4. erik weet (bijna) alles van dit verhaal:
jij zegt dat je me dood wil en je mij morgen gaat vermoorden emo5. erik weet (bijna) alles hierover en kan dus bewijzen dat ik geen hacker ben emo6. en dat ik gewoon wat uiteste wat jij beschouwt als hacken

ohja:
en dan block je me op msn ook ?en verwijder je me?
want anders hack ik je msn zeker?
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
1. ik hack niet
2. ik probeerde je berichtenbalk uit jij verbant me
3. je verban systeem werkt niet (goed)
4. erik weet (bijna) alles van dit verhaal:
jij zegt dat je me dood wil en je mij morgen gaat vermoorden
5. erik weet (bijna) alles hierover en kan dus bewijzen dat ik geen hacker ben
6. en dat ik gewoon wat uiteste wat jij beschouwt als hacken

EN WAAROM WERDT DIT BERICHT VERWIJDERD???
0
Berichten
35.796
Reputatie
1
Punten
0,00
Lid sinds
Laatst gezien
Oke, nu ff ophouden met mensen zwart maken en beschuldigen, dat vecht je maar op MSN ofzo uit.
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
kan niet lennard shahiem heeft geblokt (kan je weten als je me bericht zag emo)
0
Berichten
3.052
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Nielsie:
kan niet lennard shahiem heeft geblokt (kan je weten als je me bericht zag emo)

Vecht het dan uit via GH*D biggrin
Owja, die liggen er alwer uit emoschater
Afbeelding
0
Berichten
18.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR]is_auth[COLOR= #007700]([/COLOR][COLOR= #0000BB]1[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]uId[/COLOR][COLOR= #007700]]))
{[/COLOR]
    [COLOR= #0000BB]$floodcontrol[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]15[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// 15 seconden[/COLOR]
    [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]toevoegen[/COLOR][COLOR= #007700]]) &&[/COLOR] [COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REQUEST_METHOD[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]POST[/COLOR][COLOR= #007700])
    {[/COLOR]
        [URL="http://www.php.net/if"]if[/URL][COLOR= #007700](([/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]last_session_request[/COLOR][COLOR= #007700]] >[/COLOR] [URL="http://www.php.net/time"]time[/URL][COLOR= #007700]() -[/COLOR] [COLOR= #0000BB]$floodcontrol[/COLOR][COLOR= #007700]) && (![/COLOR]is_auth[COLOR= #007700]([/COLOR][COLOR= #0000BB]5[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]uId[/COLOR][COLOR= #007700]])))
        {[/COLOR]
            [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]U dient [/COLOR] [COLOR= #007700].[/COLOR] htmlentities[COLOR= #007700]([/COLOR][COLOR= #0000BB]$floodcontrol[/COLOR][COLOR= #007700]) .[/COLOR] [COLOR= #DD0000] seconden te wachten voordat u weer een bericht kan plaatsen[/COLOR][COLOR= #007700];
        }[/COLOR]
        [URL="http://www.php.net/else"]else[/URL]
        [COLOR= #007700]{[/COLOR]
            [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bericht[/COLOR][COLOR= #007700]]))
            {[/COLOR]
                [COLOR= #0000BB]$fouten[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]<div class="rederror"><br /><strong>Je hebt niet alle velden ingevuld.</strong></div>[/COLOR][COLOR= #007700];
            }[/COLOR]
            [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$fouten[/COLOR][COLOR= #007700]))
            {[/COLOR]
                [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]last_session_request[/COLOR][COLOR= #007700]] =[/COLOR] [URL="http://www.php.net/time"]time[/URL][COLOR= #007700]();[/COLOR]
                [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"INSERT INTO berichtenbalk ( bericht, userid) VALUES ("[/COLOR] [COLOR= #007700].[/COLOR] [URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bericht[/COLOR][COLOR= #007700]]) .[/COLOR] [COLOR= #DD0000]", "[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]uId[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]")"[/COLOR][COLOR= #007700])[/COLOR] or [URL="http://www.php.net/trigger_error"]trigger_error[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<div class="greenerror"><br /><strong>Je bericht is succesvol toevoegd.</strong></div><meta http-equiv="refresh" content="3; URL=index.php" />[/COLOR][COLOR= #007700];
            }[/COLOR]
            [URL="http://www.php.net/else"]else[/URL]
            [COLOR= #007700]{[/COLOR]
                [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$fouten[/COLOR][COLOR= #007700];
            }
        }
    }[/COLOR]
                ?>
<div class="top">Voeg een bericht toe!</div><div class="mid">
                <form action="" method="post">
                    <table width="100%">
                        <tr>
                            <td>Bericht:</td>
                            <td><textarea name="bericht" cols="50" rows="10"></textarea></td>
                        </tr>
                        <tr>
                            <td>&nbsp;</td>
                            <td><input type="submit" name="toevoegen" value="Voeg toe!" /></td>
                        </tr>
                    </table>
                </form>
</div>
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #007700]}[/COLOR]
[URL="http://www.php.net/else"]else[/URL]
[COLOR= #007700]{[/COLOR]
    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<div class="rederror"><br /><strong>U moet ingelogd zijn om deze pagina te bekijken.</strong><br> <a href="index.php?p=login">Log hier in</a> of <a href="index.php?p=registreer">maak een account aan.</a></div>[/COLOR][COLOR= #007700];
}[/COLOR]
?>
0
Shahiem

Lid · Topicstarter

Berichten
20.364
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Dankjewel LUUK smile
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren