$CFG->bypass = $_REQUEST['bypass'] || $CFG->print; $CFG->is_tab = !$CFG->url ? 1 : $_REQUEST['is_tab']; $CFG->id = ereg_replace("[^0-9]", "", $_REQUEST['id']); $CFG->target_elem = ereg_replace("[^a-zA-Z_\\-]", "", $_REQUEST['target_elem']); $CFG->in_popup = $CFG->target_elem == 'edit_box' || $CFG->target_elem == 'message_box' || $CFG->target_elem == 'attributes box'; $CFG->inset_id = false; $_SESSION['last_query'] = $_SESSION['this_query']; $_SESSION['this_query'] = 'index.php?' . http_build_query(is_array($_POST) ? $_POST : $_GET); date_default_timezone_set($CFG->default_timezone); String::magicQuotesOff(); if ($CFG->locale) { setlocale(LC_ALL, $CFG->locale); } if (!$CFG->bypass || $CFG->bypass && $CFG->print) { $header = new Header(); $header->metaAuthor(); $header->metaDesc(); $header->metaKeywords(); $header->cssFile('css/colorpicker.css'); $header->cssFile('css/reset.css'); $header->cssFile('css/' . $CFG->skin . '/default.css', 'all'); $header->cssFile('css/' . $CFG->skin . '/default_ie6.css', 'all', 'IE 6'); $header->cssFile('css/' . $CFG->skin . '/default_ie7.css', 'all', 'IE 7'); $header->cssFile('css/' . $CFG->skin . '/default_ie8.css', 'all', 'IE 8'); $header->jsFile('js/jquery-1.4.2.min.js'); $header->jsFile('js/jquery-ui-1.8.5.custom.min.js'); $header->jsFile('js/ajax.js'); $header->jsFile('js/calendar.js'); $header->jsFile('js/colorpicker.js'); $header->jsFile('js/comments.js'); $header->jsFile('js/form.js');