"; exit; set_time_limit (3600); # session_cache_limiter('public'); if ($_path = realpath("../../php-include")) { ini_set("include_path", "$_path:".ini_get("include_path")); } require_once("general/config.phl"); require_once("Database/Oracle.phl"); require_once("Ui/Forms.phl"); require_once("Api.phl"); require_once("./functs/Screens.phl"); require_once("./functs/Errors.phl"); require_once("./functs/SQL.phl"); require_once("./functs/general.functs"); require_once("./functs/global_variables.phl"); // cjs added for new som_directory $GLOBALS['_API_PACKAGE_PATH'] = $GLOBALS['_API_PACKAGE_PATH'].":".dirname(__FILE__)."/Packages:"; $project_packages = get_project_home('som_directory') . '/Packages:'; $GLOBALS['_API_PACKAGE_PATH'] = $GLOBALS['_API_PACKAGE_PATH'].$project_packages; session_register("session"); $DB = $_API->db; $btn_general_style = "BACKGROUND-COLOR: #006699; COLOR: #FFFFFF; FONT: 8pt Verdana, sans-serif"; $btn_admin_style = "BACKGROUND-COLOR: #003366; COLOR: #FFFFFF; FONT: 8pt Verdana, sans-serif"; $btn_action_style = "BACKGROUND-COLOR: #990000; COLOR: #FFFFFF; FONT: 8pt Verdana, sans-serif"; # echo "[" . $_API->getRequesterId() . "]
"; if (ButtonClicked("btn_main_menu_logout")) { unset($session); session_destroy(); $_API->execute("Directory::Authenticate::logout", array(), &$outparams); } /* echo "
";
print_r($GLOBALS["_API"]);
echo "
"; */ if (! $_API->credentials->isAuthenticated()) { // Header("Location: " . APPLICATION_SSL_URL . "\n\n"); Header("Location: " . AUTHENTICATION_URL . "\n\n"); exit; } else { $handler = "./" . $session["area"] . "/" . $session["screen"] . ".handle"; if (file_exists($handler)) { include($handler); } $SQL = "SELECT * FROM $FILESYS.user_preference WHERE person_id=" . $_API->getRequesterId(); SQL::query($SQL, &$check_preferences); if ($check_preferences["num_rows"] == 0) { $session["area"] = "initial"; $session["screen"] = "email"; } else { include("main_handler.ihtml"); } include("template.ihtml"); } ?>