AO3-DL/webui/logout.php

25 lines
880 B
PHP

<?php
# This file is part of AOMO, "Archive Of My Own", a collection of Python and PHP
# scripts designed act as an improved local backup system
# for works published on https://archiveofourown.org
#
# Copyright (c) 2025 Cyberpro123, except where otherwise noted.
#
# This project is available under the GNU General Public License (GPL) v2.0,
# available at https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html
# or in the 'LICENSE.md' file that should be distributed alongside this one.
#
# Report issues to https://codeberg.org/Cyberpro123/AOMO
# Contact author at cyberpro123@posteo.com
setcookie("AOMO_LOGIN", "", time() - 3600, "/");
$filenameLen = strlen(__FILE__) - strlen(__DIR__);
$urlFolder = substr($_SERVER['SCRIPT_NAME'], 0, -($filenameLen));
echo "<!DOCTYPE html>
<html>
<head>
<meta http-equiv='refresh' content='0; url=$urlFolder/' />
</head>
</html>";
?>