Créer un compte
Connexion

Gros bug incomprehensible

Pour créer et répondre aux sujets, vous devez être connecté.
Pages: 1
Auteur Message
blingcru
08/05/2011 à 15:42:40
blingcru
Membre
comme le sujet le dis il ne distingue meme pas la differense ... et bloque a tout coup
$t = time()-(60*60*24);
$query99912 = $db->execute("select * from `players` where `ip`=? and `last_active`>?", array($_SERVER['REMOTE_ADDR'], $t));
$log1 = $query99912->fetchrow();


                if (!$_POST['username'] != $log1['username'])
                {
                                echo "<body style=\"color: rgb(0, 0, 0); background-color: rgb(0, 0, 0);\"
 alink=\"#000099\" link=\"#000099\" vlink=\"#990099\">
<font color=red><big><big><big><big><big><center>Probleme Multi-connections refuser</center></big></big></big></big></big><br /> " . $log1['username'] . "</font>";
;
 die();
               
                }
 



https://guerredesgangs.net & http://www.bazinio.ca & http://www.thestreet2.ca
blingcru
08/05/2011 à 15:55:22
blingcru
Membre
Je ne comprend franchement pas pourquoi :( pourvez-vous m'aide ?]
$query99912 = $db->execute("select * from `players` where `ip`=? order by `last_active` desc LIMIT 0,1", array($_SERVER['REMOTE_ADDR']));
$log1 = $query99912->fetchrow();


                if ($_POST['username'] != $log1['username'])
                {
                                echo "<body style=\"color: rgb(0, 0, 0); background-color: rgb(0, 0, 0);\"
 alink=\"#000099\" link=\"#000099\" vlink=\"#990099\">
<font color=red><big><big><big><big><big><center>Probleme Connections Refuser. Les connections multiple son refuser </center></big></big></big></big></big><br />Votre dernier Login: " . $log1['username'] . "</font>";
;
 die();
               
                }


https://guerredesgangs.net & http://www.bazinio.ca & http://www.thestreet2.ca
ybouane
12/05/2011 à 00:49:00
ybouane
Admin
Bonjour,
Essaye:
$query99912 = $db->execute("select * from `players` where `ip`=? order by `last_active` desc LIMIT 0,1", array($_SERVER['REMOTE_ADDR']));
$log1 = $query99912->fetchrow();


                if (isset($_POST['username']) and $_POST['username'] != $log1['username'])
                {
                                echo "<body style=\"color: rgb(0, 0, 0); background-color: rgb(0, 0, 0);\"
 alink=\"#000099\" link=\"#000099\" vlink=\"#990099\">
<font color=red><big><big><big><big><big><center>Probleme Connections Refuser. Les connections multiple son refuser </center></big></big></big></big></big><br />Votre dernier Login: " . $log1['username'] . "</font>";
;
 die();
               
                }

Cordialement :)

Image
blingcru
12/05/2011 à 01:05:03
blingcru
Membre
toujours meme probleme :/

Probleme Connections Refuser. Les connections multiple son refuser

Votre dernier Login: Blingcru

https://guerredesgangs.net & http://www.bazinio.ca & http://www.thestreet2.ca
ybouane
14/05/2011 à 03:09:23
ybouane
Admin
Bonjour,
met ce code:
echo $_POST['username'].' -> '.$log1['username']; juste avant ta condition php, et dit moi ce qui est affiché.

Cordialement :)

Image
blingcru
14/05/2011 à 03:12:36
blingcru
Membre
ok 2min :)

https://guerredesgangs.net & http://www.bazinio.ca & http://www.thestreet2.ca
blingcru
30/05/2011 à 01:54:50
blingcru
Membre
x

https://guerredesgangs.net & http://www.bazinio.ca & http://www.thestreet2.ca
Pages: 1