<?php
/**
 * Redirect to the summary page
 */

if ($_REQUEST['logout'] == 'true') {
  quercus_servlet_request()->getSession()->invalidate();
  header("Location: index.php");
}
else {
  require "WEB-INF/php/inc.php";

  $g_pages = load_pages("page");

  $g_page = $_GET['q'];

  if (! $g_pages[$g_page]) {
    $g_page = "summary";
  }

  include_once($g_pages[$g_page]);

  display_footer($g_page);
}

?>
