[php] Hulp gezocht!

Gestart doorPropje22 reacties52 weergaven

23 berichten · pagina 2 van 2

Berichten
1.314
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hmm, wat voor error geeft ie?
0
Propje

Lid · Topicstarter

Berichten
2.517
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
niks alleen hij geeft niet mee met de session id hij maakt een eigen id
0
Berichten
1.314
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Laat dat stuk script dan is zien emoIs wel zo handig als je wilt dat mensen iets oplossen
0
Propje

Lid · Topicstarter

Berichten
2.517
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
@kenzo

heb hem toch al laten zien?

[COLOR= #0000BB]<?php[/COLOR]
[URL="http://www.php.net/include"]include[/URL] [COLOR= #007700]([/COLOR][COLOR= #DD0000]config.php[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]submit[/COLOR][COLOR= #007700]]){[/COLOR]

[COLOR= #0000BB]$naam[/COLOR] [COLOR= #007700]=[/COLOR] htmlentities[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam[/COLOR][COLOR= #007700]]);[/COLOR]
[COLOR= #0000BB]$bericht[/COLOR] [COLOR= #007700]=[/COLOR] htmlentities[COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bericht[/COLOR][COLOR= #007700]]);[/COLOR]
[COLOR= #0000BB]$datum[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/date"]date[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]Y-m-d H:i[/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]$naam[/COLOR][COLOR= #007700])){[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Je hebt Geen naam ingevuld![/COLOR][COLOR= #007700];
}[/COLOR]

[URL="http://www.php.net/elseif"]elseif[/URL][COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$bericht[/COLOR][COLOR= #007700])){[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Je hebt geen Bericht ingevuld![/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]$naam[/COLOR][COLOR= #007700]) && ([/COLOR][COLOR= #0000BB]$bericht[/COLOR][COLOR= #007700])){[/COLOR]

[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]submit[/COLOR][COLOR= #007700]]) {[/COLOR]
        [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]"INSERT INTO
                    `aangeven` (id, naam, bericht, datum)  
                VALUES(
                    "[/COLOR] [COLOR= #007700].[/COLOR] [URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SESSION[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]id[/COLOR][COLOR= #007700]]) .[/COLOR] [COLOR= #DD0000]",  
                    "[/COLOR] [COLOR= #007700].[/COLOR] [URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$naam[/COLOR][COLOR= #007700]) .[/COLOR] [COLOR= #DD0000]",
                        "[/COLOR] [COLOR= #007700].[/COLOR] [URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$bericht[/COLOR][COLOR= #007700]) .[/COLOR] [COLOR= #DD0000]",
                        "[/COLOR] [COLOR= #007700].[/COLOR] [URL="http://www.php.net/mysql_real_escape_string"]mysql_real_escape_string[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$datum[/COLOR][COLOR= #007700]) .[/COLOR] [COLOR= #DD0000]",
)"[/COLOR][COLOR= #007700]);[/COLOR]


   [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"Succesvol een scammer gemeld"[/COLOR][COLOR= #007700];[/COLOR]
   [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]<meta http-equiv="refresh" content="1;url=leden.php">[/COLOR][COLOR= #007700];
                   }
                            }
                          }[/COLOR]
                  [URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{
                }[/COLOR]
?>
<h3>Scam Melden!</h3>
<form action="" method="POST">
Oplichting is natuurlijk niet leuk net zoals hacken Mensen vinden het leuk om te cheaten/hacken<br/>
om meer Credits of geld te krijgen of natuurlijk voor andere spul.<br/>
voor scammers en frauduers kun je op deze pagina melden van valsspelers,Jammer genoeg kost het veel<br/>
tijd en moeite om de scammers en frauduers op te sporen en ze te laten boeten voor hun daden.<br/>
Wij probeeren zoveel mogelijk op te laten voor scammers,hackers enzovoort<br/>
Heb jij hacker gezien? dan zit je hier op het juiste adres meld de hacker hier en vul het formulier zo<br/>
eerlijk mogelijk in.<br/>
    <table border="0">
        <tr>
        <td width="125"><strong>Naam:<small><sup></sup></small></strong></td>
        <td><input name="naam" maxlength="40" value="[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]naam[/COLOR][COLOR= #007700]];[/COLOR] ?>" /></td>
        </tr>
        <td><strong>Bericht:<small><sup></sup></small></strong></td>
        <td><textarea name="bericht" rows="15" cols="35"/>[COLOR= #0000BB]<?php[/COLOR] [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]bericht[/COLOR][COLOR= #007700]];[/COLOR] ?></textarea></td>
        </tr>
        <td><input type="submit" name="submit" value="versturen"></td>
    </table>
    <small><sup>**</sup></small> Vul dit zo eerlijk mogelijk in.
</form>
</body>
</html>
0
Berichten
18.482
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
CREATE TABLE aangeven (
  id int(11) NOT NULL,
  naam varchar(255) NOT NULL,
  bericht longtext NOT NULL,
  datum datetime NOT NULL default 0000-00-00 00:00:00,
  PRIMARY KEY  (id)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 ;
0
Propje

Lid · Topicstarter

Berichten
2.517
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Werkt nietconfused
0
Berichten
1.314
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
@propje nee het deel waar volgens jouw de session enz staat waar bij jouw 2 uitkomt.

Kenzo
0
Propje

Lid · Topicstarter

Berichten
2.517
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
function check_login()
{
if(empty($_SESSION[id]) || empty($_SESSION[ip]))
{
echo Je bent niet ingelogd. ;
echo "Klik hier om je in te loggen";
die();
}

if($_SESSION[ip] != $_SERVER[REMOTE_ADDR])
{
echo Je bent niet ingelogd. ;
echo "Klik hier om je in te loggen";
die();
}
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