<?php
/*
*
* This is a very simple authentication system. Utlimately it just creates or continues the session and give you a one time session for a particular page.
*
*/
ini_set ( 'include_path', $_SERVER ['DOCUMENT_ROOT'] . "/include/" );
include ("config.php");
if (isset ( $ubF->data ['email'] )) {
$ubF->data ['login'] = 1;
$ubF->data ['pass'] = $ubF->data ['password'];
}
if ($ubF->session->Page_Auth ())
print json_encode ( $ubF->session->auth_data );
else
print '{"authenticated":-1,"message":"There has been a problem with your session, please refresh your browser"}';
?>