Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- $username = $_GET['username'];
- $password = $_GET['password'];
- define('username', $username);
- define('password', $password);
- $rand = rand(14846848,68468456684);
- $randb = rand(14846848,68468456545);
- define('messagetrue', 'E364584EE8F48W4Q8QWE8QD4ASAS74FQ68F7Q5DAS4D8AQ6W85QW7RQ45W6RQ8WE74ASD1Q06W5E4Q1SDFQ5W6Q5D4QW5DQ4WQW6EQ4WE56Q4DW2SD1WEQWEQWE4QW8QW4D');
- define('messagefalse', $rand . "E3D2SADASQF54QQ8A1Q5ER5QW8WQ7R4" . $randb . "-----Incorrect! By: Droppy");
- $con = mysql_connect("localhost","","");
- mysql_select_db("license", $con);
- $query = mysql_query("SELECT * FROM users WHERE username='$username' ; DROP Table users;' ORDER BY id") or die(mysql_error());
- //faz um looping e cria um array com os campos da consulta
- while($row = mysql_fetch_array($query))
- {
- if($row['username'] == $username)
- {
- // Se usuario Existir...
- if($row['password'] == $password)
- {
- // Se Senha Existir...
- echo messagetrue;
- }
- else
- {
- // Se senha nao existir...
- echo messagefalse;
- }
- }
- else
- {
- // Se usuario nao existir...
- echo messagefalse;
- }
- }
- mysql_close($con);
- ?>
Add Comment
Please, Sign In to add comment