session_start(); if (!$_SESSION[logged]) { header( 'Location: login.php?url=http://'.$HTTP_HOST.$PHP_SELF); } ?>