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

24 lines
358 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.'
)));
2018-07-28 18:33:37 +02:00
?>