<?php require 'header.php'; if ( $currentuser->getID() != 0 ) $currentuser->removeCookie(); session_destroy(); header('Location: index.php'); exit();