bludit/bl-themes/social-network/init.php
2019-06-16 22:31:09 +02:00

19 lines
304 B
PHP

<?php
// Check if the user is logged
$user = false;
if (Cookie::get('BLUDIT-KEY')) {
$login = new Login();
if ($login->isLogged()) {
try {
$user = new User($login->username());
} catch (Exception $e) {
$user = false;
}
}
}
$api = getPlugin('pluginAPI');
$apiToken = $api->getToken();
?>