include("config.php"); include("SiteObject.php"); SiteObject::startsession(); if ($work_version) SiteObject::check_authorization(); $so = new SiteObject($site_config); $so->open_db_connection(); $so->w = $work_version; //kompletnie bezmyslnie przygotowany system szablonow i ich obslugi, a ja nie mam czasu dochodzic i wymyslac jak na okolo to zrobic lub przerobic aby bylo prawidlowo, wiec dlatego: //to musi byc tu, bo wysylamy naglowki wygenerowanego pdf-a if ($_POST['getpdf'] && trim($_POST['getpdf'])!='') { include('./fpdf/generatepdf.php'); die(); } //i to musi byc tutaj, bo tez potrzeba obslugiwac sesje jakos $so->Questionnaire_Login(); $path = $_GET["path"]; if (!$path) $path = $so->get_root_id(); $so->load_page($path, true); if ($so->attributes["load_tariff"] && !$so->tariff_descriptor) $so->redirect_to_main(); if (!$so->properties["title"]) $so->redirect_to_main(); if ($so->tariff_descriptor) { $so->attributes["priv_corpo"] = strval($so->tariff_descriptor->priv_corpo); $so->attributes["category"] = strval($so->tariff_descriptor->category); $so->attributes["swf_banner"] = $so->attributes["priv_corpo"] == "corpo" ? "bannerCorpo.swf" : "bannerPriv.swf"; } $template_file = $so->own_attributes["template"]; if (!$template_file) $template_file = "default"; ?> header('Content-Type: text/html; charset=iso-8859-2'); ?> $m_author = htmlspecialchars($so->attributes["meta_author"]); $m_description = htmlspecialchars($so->own_attributes["meta_description"] ? $so->own_attributes["meta_description"] : $so->properties["description"]); $m_title = htmlspecialchars($so->own_attributes["meta_title"] ? $so->own_attributes["meta_title"] : $so->properties["title"]); $m_keywords = htmlspecialchars($so->attributes["meta_keywords"]); ?>