Ejemplo n.º 1
0
function PrintResTime($line = 0)
{
    echo ($line != 0 ? 'line ' . $line : '') . ": " . GetResTime() . '<br>';
}
Ejemplo n.º 2
0
        }
        if (ValidVar($CurrentCompany) && ValidId($CurrentCompany->ID)) {
            $CompId = $CurrentCompany->ID;
        }
        if (ValidId($CompId)) {
            $nsUser->SetCookie("CompId", $CompId, time() + 60 * 60 * 24 * 10 * 365, "/");
            $_COOKIE['CompId'] = $CompId;
        }
    }
}
if (!defined("NO_CONSULT") || !NO_CONSULT) {
    require_once SELF . "/class/consult.class.php";
    $Consult = new TrackerConsult();
}
if ((!defined("NO_WARNING") || !NO_WARNING) && is_dir("install")) {
    $Logs->Err($Lang['InstallNotDeleted']);
}
if (!NO_EVENT) {
    $nsEvent->On("OnBeforeAction");
}
if (!defined("NO_ACTION") || !NO_ACTION) {
    include $nsProduct->CurrentInclude();
}
if ($PluginAction && ValidVar($_REQUEST['action'])) {
    require SELF . "/plugins/" . $_REQUEST['action'] . ".plugin/default.php";
}
if (defined("DEBUG") && DEBUG) {
    echo "<script type=\"text/javascript\"><!--\n";
    echo "defaultStatus='" . GetResTime() . " sec.';\n";
    echo "//--></script>";
}