Skip to content

Instantly share code, notes, and snippets.

Created March 2, 2012 02:51
Show Gist options
  • Save anonymous/1955181 to your computer and use it in GitHub Desktop.
Save anonymous/1955181 to your computer and use it in GitHub Desktop.
<?php
include('functions.php');
$conn=mysql_connect('128.95.103.44','arch482','shazbat');
mysql_select_db('m052091');
$session=new brSession('supasess',false);
$result=mysql_query('SELECT * FROM accounts WHERE email=\''.mysql_real_escape_string($_SESSION['email'],$conn).'\' LIMIT 1',$conn);
if(mysql_num_rows($result))
{
$row=mysql_fetch_assoc($result);
if($_SESSION['password']!==$row['password'])
$session->redirect('login.php');
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment