eft","TEMPLATES/Common/Content-Left.stmp")); } function DefaultContentHandler_Content() { return FCMS_CORE::_LOG(E_WARNING,"DefaultContentContentHandlerWasUser",__FILE__,__LINE__,NULL,"").""; } function DefaultContentHandler_Right() { return $GLOBALS["FCMS_I_STMP"]->_ParseFile(FCMS_CORE::GetFCMSConfigValue("ContentTemplate","Right","TEMPLATES/Common/Content-Right.stmp")); } function ContentHandler_SubMenu() { global $CONFIG_PAGE,$DICTIONARY_PAGE,$FCMS_I_STMP,$ITEM,$MENULIST; $MENULIST = ""; $framepath = FCMS_CORE::GetPath(FCMS_CORE::GetFCMSConfigValue("Templates","SubMenu-Frame","TEMPLATES/Common/SubMenu-Frame.stmp")); if ($CONFIG_PAGE->SectionExists("SubMenu")) { global $_LANG_; $items = $CONFIG_PAGE->SectionExists("SubMenu-{$_LANG_}") ? $CONFIG_PAGE->GetSection("SubMenu-{$_LANG_}") : $CONFIG_PAGE->GetSection("SubMenu"); $itempath = FCMS_CORE::GetPath(FCMS_CORE::GetFCMSConfigValue("Templates","SubMenu-Item","TEMPLATES/Common/SubMenu-Item.stmp")); $itemid = "SubmenuItem"; $FCMS_I_STMP->ParseFile($itempath,$itemid); if (!empty($items)) { reset($items); //die(print_r($items)); foreach($items as $key => $value) { $keys[] = $key; $ITEM["url"] = $value; $ITEM["name"] = $DICTIONARY_PAGE->GetValue("SubMenu",$key); $ITEM["class"] = ($key == $_GET["ItemKey"]) ? "selected" : ""; $MENULIST .= $FCMS_I_STMP->ExecuteSTMP($itemid); } } } return $FCMS_I_STMP->_ParseFile($framepath); } function ContentHandler_Login() { global $FCMS_INOUT; if ($FCMS_INOUT!="out") $FCMS_INOUT = "in"; return $GLOBALS["FCMS_I_STMP"]->_ParseFile(FCMS_CORE::GetFCMSConfigValue("ContentTemplate","Right","TEMPLATES/Common/Content-Login-{$FCMS_INOUT}.stmp")); } function stmp_handler_MASZKCONTENT($_P) { global $CONFIG_PAGE; if (count($_P)<1) return FCMS_CORE::_LOG(E_WARNING,"NoContentTypeForSTMP",__FILE__,__LINE__,$_P,"").""; list($type) = $_P; $handler = $CONFIG_PAGE->GetValue("ContentHandler",$type,"DefaultContentHandler_{$type}"); $return_value = ""; if (function_exists($handler)) $return_value = $handler(); else $return_value = FCMS_CORE::_LOG(E_WARNING,"NoContentHandlerFunctionExists",__FILE__,__LINE__,$_P,"").""; return "{$return_value}"; } function stmp_handler_MASZKNEVNAP($_P) { global $CONFIG_PAGE; $datum = date("m.d"); $nevnap = & new FCMS_CONFIG(FCMS_CORE_ROOT."/RESOURCES/NEVNAP/{$datum}"); if (!$nevnap->SectionExists("Names")) return (FCMS_CORE::_LOG(E_WARNING,"NoNevnapNamesSection",__FILE__,__LINE__,$_P,"")).""; $names = & $nevnap->GetSection("Names"); $return_value = ""; return $return_value; } function stmp_handler_MASZKDATUM($_P) { global $CONFIG_PAGE; list($y,$m,$d,$w) = explode(".",date("Y.m.d.w")); return "".(sprintf("%d. %s. %d., %s",$y,FCMS_CORE::GetFCMSDictionaryValue("Months",$m+0,$m+0),$d,FCMS_CORE::GetFCMSDictionaryValue("WeekDays",$w,$w))); } function stmp_handler_MASZKDATUM_EN($_P) { global $CONFIG_PAGE; list($y,$m,$d,$w) = explode(".",date("Y.m.d.w")); return "".(sprintf("%d %s %d - %s",$d,FCMS_CORE::GetFCMSDictionaryValue("Months",$m+0,$m+0),$y,FCMS_CORE::GetFCMSDictionaryValue("WeekDays",$w,$w))); } FCMS_CORE::_LoadClass(array("CLASSES","RESOURCE","FCMS_WEATHER")); function stmp_handler_MASZKWEATHER($_P) { $type = "degree"; return ""; if (count($_P)>1) list($type) = $_P; $w = & new FCMS_WEATHER("szeged"); $info = $w->GetInfo(); return (isset($info[$type]) ? $info[$type] : "").""; } include_once("/web/_common/F_counter.php"); function stmp_handler_MASZKCOUNTER($_P) { $err = ""; $counter = & new F_counter("www.maszk.hu"); if (!eregi('maszk',$_SERVER["HTTP_REFERER"],$r)) $counter->increase($err); $return_value = "".($counter->GetValue($err)); unset($counter); return $return_value; } ?>