<?php declare(strict_types=1); session_start(); if (empty($_SESSION['miter'])) { header('Location: ../../index.php'); exit; } file_put_contents('log.txt', '', LOCK_EX); echo "<script>window.close();</script>"; ?>