bludit/bl-kernel/ajax/user-logged.php

25 lines
359 B
PHP
Raw Normal View History

2018-06-24 13:37:45 +02:00
<?php defined('BLUDIT') or die('Bludit CMS.');
header('Content-Type: application/json');
/*
*
2018-06-24 13:37:45 +02:00
* This script check if the user is logged
*
2018-06-24 13:37:45 +02:00
*/
// Check UUID
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.'
)));
?>