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