Revision: 63403
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at May 4, 2013 01:31 by cameronjrc
Initial Code
<body> <center> <?php if ($_GET['u'] == NULL) { die("Couldn't Validate"); } else if($_GET['p'] == NULL) { die("Couldn't Validate"); } else if($_GET['k'] == NULL) { die("Couldn't Validate"); } else { mysql_connect("localhost", "gamemer1_removed", "removed") or die('Could not connect to Serv: ' . mysql_error()); mysql_select_db ('gamemer1_removed') or die('Could not connect to DB: ' . mysql_error()); $MyKey = mysql_real_escape_string($_GET['k']); $User = mysql_real_escape_string($_GET['u']); $cmd_login1 = "SELECT `name`,`members_pass_salt`,`members_pass_hash`,`member_group_id`,`member_login_key` FROM `members` WHERE `members_l_username` = '$User'"; $cmd_login2 = mysql_real_escape_string( $cmd_login1 ); $erg = $mysqli->query( $cmd_login2 ); $zei = $erg->fetch_object(); $password = md5(md5($zei->members_pass_salt).md5($pass)); if($zei->members_pass_hash == $password) { echo "valid"; } } mysql_close(); ?> </center> </body>
Initial URL
Initial Description
A fast description of an sql cell with comparison and response.
Initial Title
GM Project 2012 (validate users)
Initial Tags
php
Initial Language
PHP