assign('cat',$cat); $tpl->assign('page',$page); include_once (INCLUDE_DIR.'/function.lang.php'); $lang_text=get_texts ($lang); $tpl->assign('langtext',$lang_text); $tpl->assign('lang',$lang); $tpl->assign('php_self',$_SERVER['PHP_SELF']); // ********************************************************************************* // ******************************* Menük létrehozása ******************************* // ********************************************************************************* // ******************************* Főmenü ******************************* $menu=array( array('id' => 1, 'link' => $_SERVER['PHP_SELF'].'?cat=0&page=jegy', 'target' => 0, 'title' => $lang_text['menu_1']), array('id' => 2, 'link' => $_SERVER['PHP_SELF'].'?cat=0&page=news', 'target' => 0, 'title' => $lang_text['menu_2']), array('id' => 3, 'link' => $_SERVER['PHP_SELF'].'?cat=0&page=hotel', 'target' => 0, 'title' => $lang_text['menu_3']), array('id' => 4, 'link' => $_SERVER['PHP_SELF'].'?cat=0&page=sponsor', 'target' => 0, 'title' => $lang_text['menu_4']), // array('id' => 5, 'link' => '', 'target' => 0, 'title' => $lang_text['menu_5']), array('id' => 6, 'link' => $_SERVER['PHP_SELF'].'?cat=0&page=about', 'target' => 0, 'title' => $lang_text['menu_6']), array('id' => 7, 'link' => $_SERVER['PHP_SELF'].'?cat=0&page=v', 'target' => 0, 'title' => $lang_text['menu_7']), array('id' => 7, 'link' => $_SERVER['PHP_SELF'].'?cat=0&page=foto', 'target' => 0, 'title' => $lang_text['menu_8']), ); $tpl->assign('menu',$menu); // ******************************* Kategóriák menüi ******************************* $cat1_menu=array( array('id' => 1, 'link' => $_SERVER['PHP_SELF'].'?cat=1&page=1', 'target' => 0, 'title' => $lang_text['cat1_menu_1']), array('id' => 2, 'link' => $_SERVER['PHP_SELF'].'?cat=1&page=2', 'target' => 0, 'title' => $lang_text['cat1_menu_2']), array('id' => 3, 'link' => $_SERVER['PHP_SELF'].'?cat=1&page=3', 'target' => 0, 'title' => $lang_text['cat1_menu_3']), array('id' => 4, 'link' => 'http://www.btf.hu/kirakat/?', 'target' => 1, 'title' => $lang_text['cat1_menu_4']), ); $tpl->assign('cat1_menu',$cat1_menu); $cat2_menu=array( array('id' => 11, 'link' => $_SERVER['PHP_SELF'].'?cat=2&page=11', 'target' => 0, 'title' => $lang_text['cat1_menu_1']), array('id' => 12, 'link' => $_SERVER['PHP_SELF'].'?cat=2&page=12', 'target' => 0, 'title' => $lang_text['cat1_menu_2']), ); $tpl->assign('cat2_menu',$cat2_menu); $cat3_menu=array( array('id' => 5, 'link' => $_SERVER['PHP_SELF'].'?cat=3&page=5', 'target' => 0, 'title' => $lang_text['cat3_menu_1']), array('id' => 6, 'link' => $_SERVER['PHP_SELF'].'?cat=3&page=6', 'target' => 0, 'title' => $lang_text['cat3_menu_2']), ); $tpl->assign('cat3_menu',$cat3_menu); // ******************************* Alsó menü ******************************* $bottom_menu=array( array('id' => 7, 'link' => $_SERVER['PHP_SELF'].'?l='.$lang, 'target' => 0, 'title' => $lang_text['bottom_menu1']), array('id' => 8, 'link' => $_SERVER['PHP_SELF'].'?cat=0&page=jegy&l='.$lang, 'target' => 0, 'title' => $lang_text['bottom_menu2']), array('id' => 9, 'link' => 'http://fesztivalvaros.hu/fesztivalkozpont?l='.$lang, 'target' => 1, 'title' => $lang_text['bottom_menu3']), array('id' => 10, 'link' => 'mailto:info@fesztivalvaros.hu', 'target' => 0, 'title' => $lang_text['bottom_menu4']), ); $tpl->assign('bottom_menu',$bottom_menu); // *********************************************************************************** // ******************************* Oldalak létrehozása ******************************* // *********************************************************************************** /* // kiemelt képek régi algoritmusa szövegfájlból $adat = fopen ('./main_images/main_images.txt', "r"); $p=0; $i=0; $mpc=array(); while (!feof ($adat)) { $sor = trim (fgets($adat, 4096)); if ($p>0 AND $sor!="") { $data=explode('#',$sor); $mpc[$i]['file']=$data[0]; if ($lang=='hu') $mpc[$i]['title']=$data[1]; if ($lang=='en') $mpc[$i]['title']=$data[2]; if ($lang=='de') $mpc[$i]['title']=$data[3]; if ($lang=='fr') $mpc[$i]['title']=$data[4]; if ($lang=='ru') $mpc[$i]['title']=$data[5]; $i++; } $p=$p+1; } */ // kiemelt képek a fényképek táblából $mpc=array(); $lcNyelv = $lang=='hu' ? '' : '_' . $lang; $res4=mysql_query("SELECT * FROM fenykepek WHERE programid IN (4229, 4224, 4235, 4306)"); // 4230 még nem kell while ($row4=mysql_fetch_array($res4)) { $ft = $row4['fenykepszoveg' . $lcNyelv]; if (eregi('^(.*)©(.*)$', $ft, $regs)) { $ft = trim($regs[1]); $tip = '©' . rtrim($regs[2]); } else { $tip = ''; } $mpc[] = array( 'file' => $row4['fenykepfilenev_nagy'], 'title' => $ft, 'tip' => $tip, 'id' => $row4['programid'], ); } $tpl->assign('main_pic',$mpc); // *********************************************************************************** // ******************************* Oldalak létrehozása ******************************* // *********************************************************************************** if ($page==1) include_once('modules/main.php'); if ($page==2) include_once('modules/date.php'); if ($page==3) include_once('modules/genre.php'); if ($page==5) include_once('modules/artists.php'); if ($page==6) include_once('modules/muleiras.php'); if ($page==11) include_once('modules/ex_main.php'); if ($page==12) include_once('modules/ex_date.php'); if ($page==13) include_once('modules/ex_genre.php'); if ($page=='v') include_once('modules/video.php'); if ($page=='search') include_once('modules/search.php'); if ($page=='sponsor') include_once('modules/sponsor.php'); if ($page=='news') include_once('modules/news.php'); if ($page=='about') include_once('modules/about.php'); if ($page=='hotel') include_once('modules/hotel.php'); if ($page=='jegy') include_once('modules/jegy.php'); if ($page=='foto') include_once('modules/foto.php'); $tpl->assign('oldal',$oldal); $tpl->assign('lang',$lang); $tpl->display('index.tpl'); mysql_close ($my); ?>