<?php

require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/session.inc"; global $isLoggedIn;

header("Content-Type: text/plain");
die($isLoggedIn ? "VALID" : "ERROR");