Ejemplo n.º 1
0
 /**
  * Method addLogDebugExecutionTime
  * @access public
  * @param string $info 
  * @since 1.0.93
  */
 public function addLogDebugExecutionTime($info = '')
 {
     $wspPageTotalTime = elog_time($_SESSION['wspPageStartTime']);
     $this->addLogDebug("<b>Execution Time" . ($info != "" ? " " . $info : "") . ":</b> " . round($wspPageTotalTime, 3) . " Seconds");
 }
Ejemplo n.º 2
0
        $_GET['p'] = "error-page";
    }
}
if (DEBUG) {
    $wspPageTotalTime = elog_time($_SESSION['wspPageStartTime']);
    $_SESSION['log_debug_str_session'][] = "<b>Execution Time Init WSP ...:</b> " . round($wspPageTotalTime, 3) . " Seconds";
}
include "wsp/includes/init.inc.php";
if (DEBUG) {
    $wspPageTotalTime = elog_time($_SESSION['wspPageStartTime']);
    $_SESSION['log_debug_str_session'][] = "<b>Execution Time End Init WSP:</b> " . round($wspPageTotalTime, 3) . " Seconds";
    $_SESSION['log_debug_str_session'][] = "";
}
// Create current page object
if (DEBUG) {
    $wspPageTotalTime = elog_time($_SESSION['wspPageStartTime']);
    $_SESSION['log_debug_str_session'][] = "<b>Execution Time Create Page ...:</b> " . round($wspPageTotalTime, 3) . " Seconds";
}
$page_object = Page::getInstance($_GET['p']);
$page_object->addLogDebugExecutionTime("End Create Page");
$page_object->addLogDebug("");
if (!$page_object->userHaveRights()) {
    $user_no_rights_redirect = $page_object->getUserNoRightsRedirect();
    if ($user_no_rights_redirect != "") {
        if (strtoupper(substr($user_no_rights_redirect, 0, 7)) != "HTTP://" && strtoupper(substr($user_no_rights_redirect, 0, 8)) != "HTTPS://") {
            $user_no_rights_redirect = BASE_URL . $user_no_rights_redirect;
        }
        header('HTTP/1.1 301 Moved Temporarily');
        header('Status: 301 Moved Temporarily');
        header("Location:" . $user_no_rights_redirect);
        exit;
Ejemplo n.º 3
0
            $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);
            if ($result != 'success') {
                $error[] = $result;
            }
            $class = "hl-row1";
            if ($j % 2 == 0) {
                $class = "hl-row2";
            }
            ?>
                        <tr class="<?php 
            echo $class;
            ?>
">
                            <td  class='text-header' width='100'><?php 
            echo $j;
            ?>