<?php require_once ('system/function.php'); if(!$user['id']) { header('Location: /'); exit(); } setcookie('uslog', '', time() - 86400*31); setcookie('uspass', '', time() - 86400*31); header('location: /'); exit(); ?>