system: Linux mars.sprixweb.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
cmd: 

Direktori : /usr/local/cwpsrv/var/services/pma/libraries/classes/Controllers/
Upload File :
Current File : //usr/local/cwpsrv/var/services/pma/libraries/classes/Controllers/LogoutController.php

<?php

declare(strict_types=1);

namespace PhpMyAdmin\Controllers;

use PhpMyAdmin\Core;

class LogoutController
{
    public function index(): void
    {
        global $auth_plugin, $token_mismatch;

        if ($_SERVER['REQUEST_METHOD'] !== 'POST' || $token_mismatch) {
            Core::sendHeaderLocation('./index.php?route=/');

            return;
        }

        $auth_plugin->logOut();
    }
}