Exemplo n.º 1
0
Arquivo: kimai.php Projeto: jo91/kimai
$view->setBasePath(WEBROOT . '/templates');
// prevent IE from caching the response
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");
// ==================================
// = implementing standard includes =
// ==================================
$user = checkUser();
// Jedes neue update schreibt seine Versionsnummer in die Datenbank.
// Beim nächsten Update kommt dann in der Datei /includes/var.php die neue V-Nr. mit.
// der updater.php weiss dann welche Aenderungen an der Datenbank vorgenommen werden muessen.
checkDBversion("..");
$extensions = new Extensions($kga, WEBROOT . '/extensions/');
$extensions->loadConfigurations();
// ============================================
// = initialize currently displayed timeframe =
// ============================================
$timeframe = get_timeframe();
$in = $timeframe[0];
$out = $timeframe[1];
// ============================================
// = load the config =
// ============================================
include 'Config.php';
// ===============================================
// = get time for the probably running stopwatch =
// ===============================================
$current_timer = array();
if (isset($kga['customer'])) {