<?php require_once 'inc/core.php'; //ядро if (!$user) header('Location: index.php'); session_destroy(); header('Location: index.php'); ?>