Update website
This commit is contained in:
parent
41ce1aa076
commit
ea0eb1c6e0
4222 changed files with 721797 additions and 14 deletions
|
@ -0,0 +1,23 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace PhpMyAdmin\Controllers;
|
||||
|
||||
use PhpMyAdmin\Core;
|
||||
|
||||
class LogoutController
|
||||
{
|
||||
public function __invoke(): void
|
||||
{
|
||||
global $auth_plugin, $token_mismatch;
|
||||
|
||||
if (($_SERVER['REQUEST_METHOD'] ?? 'GET') !== 'POST' || $token_mismatch) {
|
||||
Core::sendHeaderLocation('./index.php?route=/');
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
$auth_plugin->logOut();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue