Exemplo n.º 1
0
<?php

session_start();
//unset($_SESSION ["system"]);
echo "<pre>";
$system = array("test" => "mustBe", "date" => date("YmdHis"));
$mt = new Maintree();
$mt->B();
$debug = true;
initSystem($debug);
echo "<hr/>";
print_r($system);
print_r($_SESSION);
Exemplo n.º 2
0
ini_set("display_startup_errors", 1);
include "lib/system/settings.php";
include "lib/system/config_inc.php";
include "lib/system/lib.php";
include "lib/system/lang/lang_" . $interfaceLang . ".php";
$scriptStartTime = getmicrotime();
if (isset($_GET["debugme"]) && $_GET["debugme"] == "debugme" || isset($_SESSION["debug"]) && !isset($_GET["debugme"])) {
    $_SESSION["debug"] = true;
    $system["debug"] = true;
} else {
    unset($_SESSION["debug"]);
}
if (!isset($_SESSION["User"]["Session_id"]) || !isset($_SESSION["User"]["Log_Control"]) || !isset($_SESSION["User"]["User_id"])) {
    $_SESSION["User"] = array("Log_Control" => FALSE, "Session_id" => $siteSessionId, "User_id" => 0, "Language_id" => 1, "Language_Shortform" => "EN");
}
initSystem($system["debug"]);
//#################### ####################
if ($_SESSION["User"]["Log_Control"] != md5($_SESSION["User"]["Session_id"])) {
    exit;
}
//########################################
if (isset($_GET["selection"])) {
    $selection = $_GET["selection"];
}
$FileName = "XMLExport_" . $selection . ".xml";
$ctype = "text/xml";
$ctype = "application/force-download";
header("Pragma: public");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Content-Type: " . $ctype);
Exemplo n.º 3
0
    // Determine the handler for this request
    $page = Request::getRequestedPage();
    $op = Request::getRequestedOp();
    $sourceFile = sprintf('pages/%s/index.php', $page);
    // If a hook has been registered to handle this page, give it the
    // opportunity to load required resources and set HANDLER_CLASS.
    if (!HookRegistry::call('LoadHandler', array(&$page, &$op, &$sourceFile))) {
        if (file_exists($sourceFile)) {
            require $sourceFile;
        } else {
            require 'pages/index/index.php';
        }
    }
    if (!defined('SESSION_DISABLE_INIT')) {
        // Initialize session
        $sessionManager =& SessionManager::getManager();
        $session =& $sessionManager->getUserSession();
    }
    $methods = array_map('strtolower', get_class_methods(HANDLER_CLASS));
    if (in_array(strtolower($op), $methods)) {
        // Call a specific operation
        call_user_func(array(HANDLER_CLASS, $op), Request::getRequestedArgs());
    } else {
        // Call the selected handler's index operation
        call_user_func(array(HANDLER_CLASS, 'index'), Request::getRequestedArgs());
    }
}
// Initialize system and handle the current request
require 'includes/driver.inc.php';
initSystem();
handleRequest();
Exemplo n.º 4
0
<?php

echo "<h1>User Info</h1>";
echo "<pre>";
//#################### ####################
echo "<a name=top>Top</a><br/>";
initSystem(true);
//core_initUser($_SESSION["User"]["User_id"]);
//print_r(getSiblingNodes($_SESSION["User"]["FixedFacility_id"]));
//echo "<h3>\$_SESSION[\"User\"]</h3>";
//print_r($_SESSION["User"]);
echo "<h3>\$_SESSION[\"system\"]</h3>";
print_r($_SESSION["system"]);
//echo "<hr/>";
//print_r($GLOBALS);
//#################### ####################
echo "</pre>";