//error_reporting(E_ALL);
//error_reporting(E_ALL ^ E_NOTICE);
ob_start();
// buffer everything till the end
// -------------------------------------------------------------------------------
// Main Index Page
// Type: internal
// Author: Herman Tolentino MD
// Description: this is level one script for GAME
// everything starts from here!!!
//
// Version 1.1
// 0.9 nothing done
// 1.0 code reorganization
// 1.1 use web services
//
// TODO
// 1. template based layout using buffer and regular expression functions
// -------------------------------------------------------------------------------
// start session
session_start();
// expire page so no cookies will be stored
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // always modified
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Pragma: no-cache"); // HTTP/1.0
// standard class includes
define("RDFAPI_INCLUDE_DIR",'rap/api/');
define("GAME_DIR", 'game/');
define("GAME_DUMP_DIR", 'game/dump');
define("GAME_GRAPH_DIR", 'game/graph');
define("UMLS_DIR", 'umls/');
define("UMLS_DBNAME", 'umls');
define("MEDPOST_DIR", '/home/herman/public_html/softlab/medpost');
define("GRAPHVIZ_DIR", '/usr/bin');
define("TEXTDIFF_DIR", 'textdiff/');
//define(JPGRAPH_DIR, 'jpgraph/');
define("JPGRAPH_DIR", 'jpgraph/');
define("BAYES_DIR", 'bayes3/');
require_once(RDFAPI_INCLUDE_DIR. "RdfAPI.php");
require_once( RDFAPI_INCLUDE_DIR . 'syntax/N3Parser.php' );
include GAME_DIR."class.mysqldb.php";
include GAME_DIR."class.user.php";
include GAME_DIR."class.site.php";
include GAME_DIR."class.module.php";
include GAME_DIR."class.gform.php";
include GAME_DIR."class.xmlrpc.php"; // use web services
include "class.clustertools.php";
include "class.arraymath.php";
//include "class.tableentropy.php";
require_once (JPGRAPH_DIR."jpgraph.php");
require_once (JPGRAPH_DIR."jpgraph_bar.php");
require_once (BAYES_DIR."NaiveBayes.php");
// implements DIFF
include TEXTDIFF_DIR."Diff.php";
include TEXTDIFF_DIR."Diff/Renderer.php";
include TEXTDIFF_DIR."Diff/Renderer/unified.php";
include_once 'inline_renderer.php';
// load session variables
include GAME_DIR."initsession.php";
// initialize database connection
$db = new MySQLDB;
$conn = $db->connid();
// the following file is server-generated
// DO NOT EDIT THIS!
include GAME_DIR."modules/_dbselect.php";
// These are the key modules for game engine.
// We will initialize them here.
$user = new User;
$module = new Module;
$site = new Site;
// load language constants
// for multilingualization
// courtesy of the MBDS Project
// http://www.mbdsnet.org/
// to expand functionality, load/use class.language.php
$site->init_language($_SESSION["user_lang"]);
// check if any users exist
if ($user->check_users()) {
// redirect to welcome page
header("location: ".$_SERVER["PHP_SELF"]."?page=WELCOME");
}
//
// this "include" initializes all modules
//
include GAME_DIR."process_module.php";
?>
">
=strtoupper($_SESSION["datanode"]["name"])?> Info Desktop
AEFI CONCEPT EXTRACTION STUDY
|
|
// horizontal menu
if ($_SESSION["isadmin"]) {
// display two-tier admin menu
$site->displaymenu($_SESSION["validuser"],"ADMIN", $_SESSION["isadmin"], $_GET);
} else {
// display menus as top level menu
$site->displaymenu($_SESSION["validuser"],"USER", $_SESSION["isadmin"], $_GET);
}
?>
|
include GAME_DIR."side_bar.php";
?>
|
// MAIN BODY/DISPLAY SPACE
$module->catch_error($_GET, $_POST);
//$module->process_menu($_GET, $_POST);
include GAME_DIR."process_menu.php";
?>
|
©2005 AEFI NLP version 0.1 / Vaccine Analytic Unit - Brighton Collaboration - National Library of Medicine / License - Public Domain
©2004 Generic Architecture for Modular Enterprise (GAME) Engine Version =$module->get_version()?> Herman Tolentino MD / UPCM Medical Informatics Unit / License - GPL
//phpinfo();
ob_end_flush();
?>