Translated using Weblate (German)
[phpmyadmin.git] / logout.php
blobe41d7ee4971ccccb352dc3542d0b7af5d0123923
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Logout script
6 * @package PhpMyAdmin
7 */
8 declare(strict_types=1);
10 use PhpMyAdmin\Core;
12 require_once 'libraries/common.inc.php';
14 if ($_SERVER['REQUEST_METHOD'] != 'POST' || $token_mismatch) {
15 Core::sendHeaderLocation('./index.php');
16 } else {
17 $auth_plugin->logOut();