2018-06-24 13:37:45 +02:00
|
|
|
<?php defined('BLUDIT') or die('Bludit CMS.');
|
|
|
|
header('Content-Type: application/json');
|
|
|
|
|
|
|
|
/*
|
2018-07-14 15:17:06 +02:00
|
|
|
*
|
2018-06-24 13:37:45 +02:00
|
|
|
* This script check if the user is logged
|
2018-07-14 15:17:06 +02:00
|
|
|
*
|
2018-06-24 13:37:45 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
// Check UUID
|
2018-07-14 15:17:06 +02:00
|
|
|
if ($login->isLogged()) {
|
2018-06-24 13:37:45 +02:00
|
|
|
exit (json_encode(array(
|
|
|
|
'status'=>1,
|
|
|
|
'message'=>'The user is logged.'
|
|
|
|
)));
|
|
|
|
}
|
|
|
|
|
|
|
|
exit (json_encode(array(
|
|
|
|
'status'=>0,
|
|
|
|
'message'=>'The user is NOT logged.'
|
|
|
|
)));
|
|
|
|
|
|
|
|
|
2018-07-28 18:33:37 +02:00
|
|
|
?>
|