function check_auth() { if ( isset( $_COOKIE['username'] ) ) { return true; } else { echo "
"; echo "

Error

"; echo "

You must be logged in

"; echo "
"; } }