#print_r($_GET); if (isset($_GET["cloud"]) and (isset($_SESSION["phynx_customer"]) and $_SESSION["phynx_customer"] != $_GET["cloud"] or !isset($_SESSION["phynx_customer"]))) { //if someone switches the cloud, kick him and reinitialize session_destroy(); session_start(); } if (!isset($_SESSION["classPaths"])) { $_SESSION["classPaths"] = array(); } function phynxAutoloader($class_name) { try { return findClass($class_name); } catch (ClassNotFoundException $e) { $_SESSION["classPaths"] = array(); return findClass($class_name); } } if (!isset($_SESSION["S"]) or !isset($_SESSION["applications"]) or $_SESSION["applications"]->numAppsLoaded() == 0) { Session::init(); if (Session::isPluginLoaded("mAutoLogin")) { mAutoLogin::doAutoLogin(null, null, null, isset($_GET["application"]) ? $_GET["application"] : null); } } if (Session::isPluginLoaded("mAutoLogin") and isset($_GET["application"])) { //for DEMO always switch application mAutoLogin::doAutoLogin(null, null, null, $_GET["application"]); } if ($physion != "default") { Session::physion($_GET["physion"], isset($_GET["application"]) ? $_GET["application"] : null, isset($_GET["plugin"]) ? $_GET["plugin"] : null, isset($_GET["icon"]) ? $_GET["icon"] : null); }
SysMessages::log($errortype[$errno] . ": " . $errmsg . "\n{$filename}:{$linenum}", "PHP"); } catch (Exception $e) { } } session_start(); if (isset($_COOKIE["phynx_customer"]) and isset($_GET["cloud"]) and $_COOKIE["phynx_customer"] != $_GET["cloud"]) { //if someone switches the cloud, kick him and reinitialize session_destroy(); session_start(); } if (!isset($_SESSION["classPaths"])) { $_SESSION["classPaths"] = array(); } function __autoload($class_name) { try { return findClass($class_name); } catch (ClassNotFoundException $e) { $_SESSION["classPaths"] = array(); return findClass($class_name); } } if (!isset($_SESSION["S"]) or !isset($_SESSION["applications"]) or $_SESSION["applications"]->numAppsLoaded() == 0) { Session::init(); if (Session::isPluginLoaded("mAutoLogin")) { mAutoLogin::doAutoLogin(); } } if ($physion != "default" and isset($_GET["application"]) and isset($_GET["plugin"])) { Session::physion($_GET["physion"], $_GET["application"], $_GET["plugin"]); }