Files
kupshop/admin/logout.php
2025-08-02 16:30:27 +02:00

15 lines
473 B
PHP

<?php
use KupShop\AdminBundle\Util\LegacyAdminCredentials;
use KupShop\KupShopBundle\Util\Compat\ServiceContainer;
/** @var LegacyAdminCredentials $legacyAdminCredentials */
$legacyAdminCredentials = ServiceContainer::getService(LegacyAdminCredentials::class);
$legacyAdminCredentials->unsetLoginSession();
$url = (getVal('url') != '') ? '&url='.getVal('url') : '';
redirect('index.php?error=5'.$url);
// ##############################################################