<?php $title = 'Выход'; //-----Подключаем функции-----// require_once ('system/function.php'); require_once ('system/header.php'); //-----Переадресация для не зарегистрированных-----// if(!$user['id']) { header('Location: /'); exit(); } //-----Стираем кукки-----// setcookie('uslog', '', time() - 86400*31); setcookie('uspass', '', time() - 86400*31); //-----Кидаем на главную-----// header('location: /'); require_once ('system/footer.php'); ?>