Commit e9bec98fac6261ced4d7bb78b31dd8b76bba5da0
1 parent
04112f1e
Issue tracking - Fix 1
Showing
1 changed file
with
1 additions
and
5 deletions
Show diff stats
checkCreds.php
1 | 1 | <?php |
2 | 2 | require_once("creds.php"); |
3 | 3 | |
4 | -echo "<pre>"; | |
5 | -var_dump($GLOBALS); | |
6 | -echo "</pre>"; | |
7 | - | |
8 | 4 | if(!(isset($_GET["user"])&&isset($_GET["pass"]))) |
9 | 5 | die("Nop"); |
10 | 6 | |
... | ... | @@ -14,7 +10,7 @@ $link = mysql_connect(__MYSQL_HOSTNAME__, __MYSQL_USERNAME__, __MYSQL_PASSWORD__ |
14 | 10 | if(!mysql_select_db('crep', $link)) |
15 | 11 | die('Nop'); |
16 | 12 | |
17 | -$requete = 'SELECT pk, admin FROM users WHERE username=\''.$_GET["user"].'\' AND password=\''.$_GET["password"].''; | |
13 | +$requete = 'SELECT pk, admin FROM users WHERE username=\''.$_GET["user"].'\' AND password=\''.$_GET["pass"].''; | |
18 | 14 | $resultat = mysql_query($requete); |
19 | 15 | |
20 | 16 | if (!$resultat) | ... | ... |