if (isset($_COOKIE['WSP_WS_SESSION'])) { session_id($_COOKIE['WSP_WS_SESSION']); } else { @session_start(); if (!defined('MAX_SESSION_TIME')) { define("MAX_SESSION_TIME", 1800); // 30 min. } if (isset($_SESSION['WSP_LAST_ACTIVITY']) && time() - $_SESSION['WSP_LAST_ACTIVITY'] > MAX_SESSION_TIME) { session_unset(); session_destroy(); } $_SESSION['WSP_LAST_ACTIVITY'] = time(); } include_once "wsp/includes/execution_time.php"; $_SESSION['wspPageStartTime'] = slog_time(); if (!isset($_GET['p'])) { $_GET['p'] = "home"; } $_SESSION['calling_page'] = $_GET['p']; if (!file_exists("pages/" . $_GET['p'] . ".php")) { header('HTTP/1.1 404 Could not find page ' . $_GET['p']); echo 'Could not find page ' . $_GET['p']; exit; } include "wsp/includes/init.inc.php"; header("Expires: Sat, 05 Nov 2005 00:00:00 GMT"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Cache-Control: no-store, no-cache, must-revalidate"); header("Cache-Control: post-check=0, pre-check=0", false); header("Pragma: no-cache");
<td class='text-header' width='200'>Type</td> <td class='text-header' width='350'>Service</td> <td class='text-header' width='350'>URL</td> <td class='text-header' width='100'>Time(s)</td> <td class='text-header' width='100'>Status</td> </tr> <?php if (count($config) > 0) { ?> <?php $j = 0; foreach ($config as $key => $value) { $j++; $result = ''; # Check $start_time = slog_time(); switch ($value['type']) { case 'database': $result = connectMysql($value['config']); break; case 'api_curl_get': $result = curlTruemoveHStandardGet($value['config']); break; case 'redis': $result = connectRedis($value['config']); break; case 'test_wsdl': $result = getWsdl($value['config']); break; } $time = elog_time($start_time);