Translated using Weblate (Dutch)
[phpmyadmin.git] / logout.php
blob80cdcd80f0e656f3dd41698ef9f7df74bd772f73
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 if (! defined('ROOT_PATH')) {
13 define('ROOT_PATH', __DIR__ . DIRECTORY_SEPARATOR);
16 require_once ROOT_PATH . 'libraries/common.inc.php';
18 if ($_SERVER['REQUEST_METHOD'] != 'POST' || $token_mismatch) {
19 Core::sendHeaderLocation('./index.php');
20 } else {
21 $auth_plugin->logOut();