mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 17:59:55 +02:00
19 lines
554 B
PHP
19 lines
554 B
PHP
<?php
|
|
global $global, $config;
|
|
if (!isset($global['systemRootPath'])) {
|
|
require_once '../videos/configuration.php';
|
|
}
|
|
require_once $global['systemRootPath'] . 'objects/user.php';
|
|
|
|
if (!empty($advancedCustomUser->afterLogoffGoToMyChannel)) {
|
|
$redirectUri = User::getChannelLink();
|
|
} elseif (!empty($advancedCustomUser->afterLogoffGoToURL)) {
|
|
$redirectUri = $advancedCustomUser->afterLogoffGoToURL;
|
|
} else {
|
|
$redirectUri = $global['webSiteRootURL'];
|
|
}
|
|
|
|
User::logoff();
|
|
Category::clearCacheCount();
|
|
header("location: {$redirectUri}");
|
|
exit;
|