2 /* vim: set expandtab sw=4 ts=4 sts=4: */
8 declare(strict_types
=1);
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');
21 $auth_plugin->logOut();