<?php require_once __DIR__ . '/../all.php'; $cookies = new Cookies(); $user = $cookies->user_from_cookie(); if ($user !== 0) { $cookies->del_cookie($user->data["uid"]); header("Location: /index.php?m=7"); exit; } else { header("Location: /index.php?m=8"); exit; }