$val) { foreach ($populate as $arrayKey => $array) { $populate[$arrayKey][$key] = $val; } } } } class TOOLSCONTEXT_Session_Lite { function getContainerName() { return '_TOOLSCONTEXT_Session'; } function getRequestKey() { return 'PHPSESSID'; } function getValue($key) { return $_SESSION[TOOLSCONTEXT_Session_Lite::getContainerName()][$key]; } function setValue($key, $val) { $_SESSION[TOOLSCONTEXT_Session_Lite::getContainerName()][$key] = $val; } function start() { session_start(); } function requested() { if ($_REQUEST[TOOLSCONTEXT_Session_Lite::getRequestKey()]) { return true; } else { return false; } } } $_TOOLSCONTEXT_developer = TOOLSCONTEXT_Request_Rewrite::getEnvironment(); $_TOOLSCONTEXT_developer['pathVars'] = TOOLSCONTEXT_Request_Rewrite::getVarsFromPath($_TOOLSCONTEXT_developer['pathMarkers']['afterMarker']); $Id = $_TOOLSCONTEXT_developer['pathVars']['Id']; TOOLSCONTEXT_Request_Rewrite::populateRequest($_TOOLSCONTEXT_developer['pathVars'], array(&$_REQUEST, &$_GET)); TOOLSCONTEXT_Request_Rewrite::sendHttpStatus(); if ($_TOOLSCONTEXT_developer['apiVersion'] >= 3) { require_once("{$_TOOLSCONTEXT_developer['appDirectory']}software/{$_TOOLSCONTEXT_developer['appVersion']}/include/master.inc.php"); $_TOOLSCONTEXT = new TOOLSCONTEXT_Master(); print $_TOOLSCONTEXT->getCMSDisplay($Id, $_TOOLSCONTEXT_developer); $_TOOLSCONTEXT->page->logVisit(); } else { //version 2.x backward-compatibility $_DESIGN = $_TOOLSCONTEXT_developer; $_DESIGN['before_marker'] = $_DESIGN['beforeMarker']; $_DESIGN['after_marker'] = $_DESIGN['afterMarker']; $_DESIGN['searchUrl'] = true; //2.x-style invitation links if (strpos($_DESIGN['after_marker'], '/') === false) { $_REQUEST['_i'] = $_DESIGN['after_marker']; require("{$_DESIGN['appDirectory']}software/{$_DESIGN['appVersion']}/public/trackpass.php"); die($_DESIGN['errorMessage']); } require("{$_DESIGN['appDirectory']}software/{$_DESIGN['appVersion']}public/read.php"); } ?>