Skip to content

Instantly share code, notes, and snippets.

@flagoworld
Forked from anonymous/homepage.php
Created March 2, 2012 02:53
Show Gist options
  • Save flagoworld/1955184 to your computer and use it in GitHub Desktop.
Save flagoworld/1955184 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');
}else
{
$session->redirect('login.php');
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment