<?php include_once 'shared.php'; ?> </div> <div id='disclaimer'><br /> <?php if (WorkbenchConfig::get()->value("checkSSL") && !usingSslEndToEnd()) { print "<div style='font-size: 8pt; color: orange;'>WARNING: Unsecure connection detected</div>"; } if (WorkbenchContext::isEstablished() && WorkbenchContext::get()->isRequestStartTimeSet() && WorkbenchConfig::get()->value("displayRequestTime")) { $requestProcessingTime = WorkbenchContext::get()->getRequestProcessingTime(); workbenchLog(LOG_INFO, "RequestProcessingMetrics", array("measure.request.service" => $requestProcessingTime . "sec", "source" => basename($_SERVER['SCRIPT_NAME']))); printf("Requested in %01.3f sec<BR/>", $requestProcessingTime); } print "Jason's Workbench " . ($GLOBALS["WORKBENCH_VERSION"] != "trunk" ? $GLOBALS["WORKBENCH_VERSION"] : "") . "<br/>\n"; ?> </div> </body> <script type="text/javascript" src="<?php echo getPathToStaticResource('/script/wz_tooltip.js'); ?> "></script> <?php if (isset($_REQUEST["footerScripts"])) { foreach ($_REQUEST["footerScripts"] as $script) {
//clear ResultsWithData and retrievedZips from session unless downloading them if (isset($_SESSION['resultsWithData']) && basename($_SERVER['PHP_SELF']) != 'downloadResultsWithData.php') { unset($_SESSION['resultsWithData']); } if (isset($_SESSION['retrievedZips']) && basename($_SERVER['PHP_SELF']) != 'metadataStatus.php') { unset($_SESSION['retrievedZips']); } if (WorkbenchContext::isEstablished() && isset($_REQUEST['clearCache'])) { WorkbenchContext::get()->clearCache(); $cacheCleared = true; } // PATH_INFO can include malicious scripts and never used purposely in Workbench. if (isset($_SERVER['PATH_INFO']) && $_SERVER['PATH_INFO'] != "") { httpError("400 Bad Request", "Path info trailing script name in URI not allowed."); } if (WorkbenchConfig::get()->value("requireSSL") && !usingSslEndToEnd()) { if (WorkbenchContext::isEstablished()) { WorkbenchContext::get()->release(); } httpError("403.4 SSL Required", "Secure connection to Workbench and Salesforce required"); //TODO: what do we want to do here? } //kick user back to login page for any page that requires a session and one isn't established $myPage = getMyPage(); if (!isLoggedIn() && $myPage->requiresSfdcSession) { session_unset(); session_destroy(); header('Location: login.php'); exit; } if (!$myPage->isReadOnly && isReadOnlyMode()) {