Herladen -> Uitloggen

Gestart doorDylan2 reacties57 weergaven

3 berichten · pagina 1 van 1

Dylan

Lid · Topicstarter

Berichten
14.025
Reputatie
1
Punten
0,01
Lid sinds
Laatst gezien
Ik heb dit:

[COLOR= #0000BB]<?php[/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]req[/COLOR][COLOR= #007700]])) {[/COLOR]
    [URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]req[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]12345[/COLOR][COLOR= #007700]) {[/COLOR] 
    [URL="http://www.php.net/header"]header[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"Refresh: 2; URL=#"[/COLOR][COLOR= #007700]);[/COLOR]
    ?>
    Je bent succesvol ingelogd, hier kan je de request lijn-antwoorden zien, deze pagina word elke 35 seconden opnieuw geladen.

     <table width="100%">
<tr><td><b>Gebruikersnaam</b></td><td><b>Soort</b></td><td><b>Antwoord</b></td><td><b>Verwijder</b></td></tr>
[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]ver[/COLOR][COLOR= #007700]]) {[/COLOR]
    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Verwijderd[/COLOR][COLOR= #007700];
    }[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
    
        [COLOR= #0000BB]$lerp[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"SELECT * FROM req"[/COLOR][COLOR= #007700]);[/COLOR]
        
        [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Er zijn "[/COLOR] [COLOR= #007700].[/COLOR] [URL="http://www.php.net/mysql_num_rows"]mysql_num_rows[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$lerp[/COLOR][COLOR= #007700]) .[/COLOR] [COLOR= #DD0000]" requests. <br /><br />"[/COLOR][COLOR= #007700];[/COLOR]
        [URL="http://www.php.net/while"]while[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$ferp[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_fetch_array"]mysql_fetch_array[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$lerp[/COLOR][COLOR= #007700],[/COLOR] MYSQL_ASSOC[COLOR= #007700])) {[/COLOR]
        [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"<tr><td>"[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$ferp[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]name[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]"</td><td>"[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$ferp[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]soo[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]"</td><td>"[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #0000BB]$ferp[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]ans[/COLOR][COLOR= #007700]] .[/COLOR] [COLOR= #DD0000]"</td><td><a href=?ver="[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$ferp[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"#>Verwijder</a></td></tr> "[/COLOR][COLOR= #007700]; }[/COLOR]

        ?>

</table>
    [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]Dat is de code niet[/COLOR][COLOR= #007700];
    }
}[/COLOR] [URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
?>
Je hebt een wachtwoord nodig, die je van een hoofd DJ hebt gekregen. Voer die hieronder in en druk op "Doorgaan", dan kom je bij de request lijn: <br />
<form action="#" method="post">
<input type="text" name="req">
<input type="submit" value="doorgaan">
</form>
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #007700]}[/COLOR]
?>


Nu herlaad ie om de 2 seconden, alleen moet je dan een weer het wachtwoord intypen. Ik wil gewoon dat ie ingelogd blijft? Hoe los ik dit op? Dit is het zelfde als ik op Verwijder druk
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Een sessie aanmaken als $_POST[req] == 12345 is.
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
Even een kanttekening: Je foutafhandeling is op vakantie.
Even toevoegen dus
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