logout.php 311 B

1234567891011121314151617
  1. <?php
  2. /* vim: set expandtab sw=4 ts=4 sts=4: */
  3. /**
  4. * Logout script
  5. *
  6. * @package PhpMyAdmin
  7. */
  8. use PhpMyAdmin\Core;
  9. require_once 'libraries/common.inc.php';
  10. if ($_SERVER['REQUEST_METHOD'] != 'POST' || $token_mismatch) {
  11. Core::sendHeaderLocation('./index.php');
  12. } else {
  13. $auth_plugin->logOut();
  14. }