vote(); $pblock = new pageblock($db); $hblock = new homeblock($db); $hblock2 = new homeblock2($db); $cblock = new block($db); $rfblock = new Referinta($l,$db); $menu = new Navigation($db); $dic = new Term($db, $l); $header = new HtmlHeader($db, $idc, $id); $static_block = new staticblock($db); $static_block_category = new staticblock_category($db); $static_block_page = new staticblock_page($db); $text_block = new textblock($db); $text_block_category = new textblock_category($db); $text_block_page = new textblock_page($db); //ratingu initializare $r = new Rating($db, 'ratings'); $r->setView(); $pars = new URL; $newExpert = new Expert; ############ CONTACT ############## $sa='select * from '.$dbt['contact'].' limit 1'; $db->query($sa); $addr=$db->fetchRow(); $CMail = stripslashes($addr['EMAIL']); $CAddress = stripslashes($addr['ADDRESS_'.strtoupper($l)]); $CCopyRight = stripslashes($addr['CPY_'.strtoupper($l)]); $CTel = stripslashes($addr['PHONE']); $CFax = stripslashes($addr['FAX']); $Cmail = stripslashes($addr['EMAIL']); $descriere=${"METATAG_description_".$l}; $key=${"METATAG_keywords_".$l}; ################################### if(isset($id) && trim($id)!=''){ $tail='&id='.$id; if(trim(intval($id)) == 0 || !is_numeric($id)){ header("Location: index.php?l=".$l); exit(); } } if(isset($idc) && trim($idc)!=''){ $tail.='&idc='.$idc; if(trim(intval($idc)) == 0 || !is_numeric($idc)){ header("Location: index.php?l=".$l); exit(); } } if(isset($year) && trim($year)!=''){ $tail.='&year='.$year; if(trim(intval($year)) == 0 || !is_numeric($year)){ header("Location: index.php?l=".$l); exit(); } } if(isset($idp) && trim($idp)!=''){ $tail.='&idp='.$idp; if(trim(intval($idp)) == 0 || !is_numeric($idp)){ header("Location: index.php?l=".$l); exit(); } } if(isset($midc) && trim($midc)!=''){ $tail.='&midc='.$midc; if(trim(intval($midc)) == 0 || !is_numeric($midc)){ header("Location: index.php?l=".$l); exit(); } } if(isset($cat) && trim($cat)!='') $tail.='&cat='.$cat; if(isset($idc) && trim($idc)!='') { $db->query('select NAME_'.strtoupper($l).' as NAME, TPL, COM, RATE, HDATE from '.$dbt['menu'].' where ID=\''.$idc.'\' limit 1'); $ptit=$db->fetchRow(); $hide = $ptit[HDATE]; } $pname = $ptit[NAME]; $theme = $ptit[TPL]; if($ptit[NAME] != '') { $tile = $ptit[NAME].' / '; } if(strstr($_SERVER['PHP_SELF'],'pageview') && trim($id) == ''){ $db->query('select ID from '.$dbt['tppub'].' where VISIBLE=1 AND ITEMTYPE=1 AND ID_CAT=\''.$idc.'\' ORDER BY ORD ASC LIMIT 1'); $dd=$db->fetchRow(); $id=$dd['ID']; } $db->query("select * from curs_valutar where ID = 1"); $curs = $db->fetchrow(); ?>