Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
24 lines (21 sloc) 427 Bytes
<?php
session_start();
if(!logged_in() && cookie_exists())
{
$user = $dbpdo->query("SELECT `object_id` FROM `sessions` WHERE `session_id` = ?", array($_COOKIE[COOKIE_SESSID]));
if(count($user) > 0)
{
try
{
$user = new user($dbpdo, $user[0]['object_id']);
login($user);
}
catch (ObjectNotFoundException $e)
{
}
catch (ObjectAttributeNotFoundException $e)
{
}
}
}
?>