Beispiel #1
0
}
CAppUI::$dialog =& $dialog;
// clear out main url parameters
$m = $a = $u = $g = "";
CMbPerformance::mark("input");
// Locale
require __DIR__ . "/locales/core.php";
if (empty($locale_info["names"])) {
    $locale_info["names"] = array();
}
setlocale(LC_TIME, $locale_info["names"]);
if (empty($locale_info["charset"])) {
    $locale_info["charset"] = "UTF-8";
}
// We don't use mb_internal_encoding as it may be redefined by libs
CApp::$encoding = $locale_info["charset"];
// Character set
if (!$suppressHeaders || $ajax) {
    header("Content-type: text/html;charset=" . CApp::$encoding);
}
CMbPerformance::mark("locales");
// HTTP headers
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
// Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
// always modified
header("Cache-Control: no-cache, no-store, must-revalidate");
// HTTP/1.1
header("Pragma: no-cache");
// HTTP/1.0
header("X-UA-Compatible: IE=edge");