Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if($_POST['action'] == "login"){
- $dbGET_USER = mysql_fetch_object($db->query("SELECT u.*, up.* FROM users u INNER JOIN users_profiles up ON up.user_id = u.user_id WHERE u.username = '".addslashes($_POST['login_username'])."' AND u.password = MD5(CONCAT(MD5('".addslashes($_POST['login_password'])."'), MD5(u.password_salt)))"));
- if($dbGET_USER->user_id){
- $_SESSION['user_id'] = $dbGET_USER->user_id;
- $_SESSION['group_id'] = $dbGET_USER->group_id;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement