public static function doAutoLogin($username = null, $SHAPassword = null, $language = null, $AutoLoginApp = null) { if ($username == null) { $al = new mAutoLogin(); $al->addAssocV3("AutoLoginIP", "=", $_SERVER["REMOTE_ADDR"]); $al->addAssocV3("AutoLoginIP", "=", "*", "OR"); $al->addJoinV3("User", "AutoLoginUserID", "=", "UserID"); try { $c = $al->getNextEntry(); } catch (Exception $e) { $c = null; } if ($c == null) { return; } $username = $c->getA()->username; $SHAPassword = $c->getA()->SHApassword; $language = $c->getA()->language; if ($AutoLoginApp == null) { $AutoLoginApp = $c->getA()->AutoLoginApp; } } ob_start(); $d = array(); $d["loginUsername"] = $username; $d["loginSHAPassword"] = $SHAPassword; $d["loginSprache"] = $language; $d["anwendung"] = $AutoLoginApp; $U = new UsersGUI(); $U->doLogin($d); ob_end_clean(); }
#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"]); }