owl_root_url . $url; header("Location: $url"); } /** * Generates a link via the control page, with the passed action * * @param $action * the controller action to generate a link for * @return the generated href */ //TODO: maybe this should just be the url? function generateLink($action) { return ""; } /** * Validates the session. * * @param $sessionID * the session ID to validate * @return * true if the session is valid, else false. */ function checkSession() { $sessionStatus = Session::verify(); // TODO: error handling in here with appropriate actions // error messages are in $sessionStatus["errorMessage"] switch ($sessionStatus["status"]) { case 1 : // session verified, update lastused time return true; break; case 2 : // session timed out case 3 : // session already in use return false; } }