Kijk als je inlogt wordt je doorverwezen naar de pagina 'ingelogd.php' je komt er wel maar je bent niet ingelogd.
Je kan geen opties niks doen, dus het ligt aan het ingelogd.php script, me config of me login script.
Hier de pagina (ingelogd.php)
EDIT: Kan ik niet sturen (is te groot)
Dit is het login script:
PHP
<?php
if ($data->rankvord >= 100.00){
mysql_query("UPDATE `[users]` SET `rank`=`rank`+1,`rankvord`='0.00' WHERE `login`='{$data->login}'");
print "";
}
include("config.php");
if(isset($_POST['login'],$_POST['pass'])) {
$dbres = mysql_query("SELECT `login`,`activated` FROM `[users]` WHERE `login`='{$_POST['login']}' AND `pass`=('{$_POST['pass']}')");
if(($data = mysql_fetch_object($dbres)) && $data->activated == 1) {
$validate = md5(rand(0,1000000));
setcookie("login",$data->login,time()+60*60*24,"/",".HipHopperz.NL");
setcookie("validate",$validate,time()+60*60*24,"/",".HipHopperz.NL");
mysql_query("REPLACE INTO `[online]`(`time`,`login`,`IP`,`validate`) values(NOW(),'{$_SERVER['REMOTE_ADDR']}','{$data->login}','$validate')");
$_SESSION['login'] = $data->login;
$_SESSION['IP'] = $_SERVER['REMOTE_ADDR'];
$dbres = mysql_query("SELECT *,UNIX_TIMESTAMP(`signup`) AS `signup` FROM `[users]` WHERE `login`='{$_SESSION['login']}'");
$_SESSION['data'] = mysql_fetch_object($dbres);
}
}
/* dit is als je 10x verkeerd inlogt, dat je dan geblokt word */
$dbres = mysql_query("SELECT `IP` FROM `[users]` WHERE `IP`='$clientIP' AND UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`datum`) < 3600 OR `IP`='$forwardedFor' AND UNIX_TIMESTAMP(NOW())-UNIX_TIMESTAMP(`datum`) < 1800");
if(mysql_num_rows($dbres) >= 5) {
print <<<ENDHTML
ENDHTML;
if(isset($_GET['v']) && ($_GET['v'] == 1 || $_GET['v'] == 2 || $_GET['v'] == 3)) {
setcookie("v",$_GET['v'],time()+24*60*60*365,"/","");
$_COOKIE['v'] = $_GET['v'];
}
if($_COOKIE['v'] == '3') {
include("style3.php");
} else
if($_COOKIE['v'] == '2') {
include("style2.php");
} else
if($_COOKIE['v'] == '1') {
include("style1.php");
} else
include("style3.php");
print <<<ENDHTML
ENDHTML;
exit;
}
/* ------------------------- */ ?>
<?php /* ------------------------- */
if($data) {
if($data->nonactief != 0)
print <<<ENDHTML
U heeft uw status op Non-actief gezet.. U heeft nog {$data->nonactief} Dagen te gaan voordat u in kan loggen.
ENDHTML;
print <<<ENDHTML
<META
HTTP-EQUIV="Refresh"
CONTENT="0000; URL=ingelogd.php?p=home">
<font color="#000000"><center><font size="2"><img src="/hiphopperz.png"><BR>Succesvol ingelogd!</font></center></font>
ENDHTML;
}
else {
print <<<ENDHTML
ENDHTML;
if(isset($_POST['login'],$_POST['pass'])) {
mysql_query('INSERT INTO logins (`datum`,`login`,`pass`,`ip`,`for`) VALUES (NOW(),"'.$_POST['login'].'","'.$_POST['pass'].'","'.$_SERVER['REMOTE_ADDR'].'","'.$_SERVER['HTTP_X_FORWARDED_FOR'].'")');
print <<<ENDHTML
<META
HTTP-EQUIV="Refresh"
CONTENT="0000; URL=?p=login">
Geen geldige inloggegevens!
ENDHTML;
exit;
}
print <<<ENDHTML
<table border='0' cellspacing='1' width='100%' bgcolor='#000' align='center'>
<tr>
<td class='top' colspan='4'> <b>Inloggen HipHopperz.nl</font></b></td>
</tr>
<tr>
<td class='inhoud'>
<form method="post"><center>
<tr><td class='inhoud'>Gebruikersnaam:<BR><input type="text" onfocus="if(this.value=='')this.value=''" onblur=" if(this.value=='')this.value=''" name="login" maxlength=16 style="width: 150;" value=""></td></tr>
<tr><td class='inhoud'>Wachtwoord:<BR><input type="password" onfocus="if(this.value=='')this.value=''" onblur=" if(this.value=='')this.value=''"name="pass" maxlength=16 style="width: 150;" value=""></td></tr>
<tr><td class='inhoud'><input type="submit" class="submit" style="width: 100;" value="Inloggen" name="invoer"></center></form>
</table>
ENDHTML;
}
/* ------------------------- */ ?>
<BR></center>
<center><a target="_self" href="?p=wachtwoordkwijt&x=lostpass">Wachtwoord vergeten?</a> </center>
</body>
</html>
Toon Meer