<?php define('cms', 1); require_once 'core.php'; //ядро ob_start(); if (!$user) header('Location: index.php'); //не пускаем гостей session_destroy(); //уничтожаем сесию header('Location: index.php'); //переадестуем на главную ?>