'; include('config/tasovka.php'); include('config/dmobile.php'); //print'
';print_r($curr_page); //print'';print_r($line); //print '
$line[system] '.$line[system]; $page = $line[url] ? $line[url] : 'home'; //print __LINE__ .'
'; $template = $line['system'] ? $line['system'] : 'home'; //print '$template 1 '.$template.'
'; //print '$line[id_page ] '.$line['id_page'].'
'; if($line['ref']>0 && $line['ref']!=$line['id_page']){ $ref = 0; $ref = mysql_fetch_assoc(mysql_query("select url, system from site_pages2 where id_page=".$line['ref'], $conn)); if($ref) {$page = $ref['url']; //$template = trim($ref['system']); } //print'';print_r($ref); } ///////////////////////////// //print'';print_r($ref); exit; //exit($_SESSION[CURR_]['lang']); $q = "select id, `type`, head_$DBlang, text_$DBlang , child from news where`type` in('8') && parent_id='".$line['id_page']."' and `status`=0 order by `order` limit 10 "; $data = array("query"=>$q, 'f_array2'=>array('type' ), 'pager'=>false, 'getGall'=>1);//, 'get_att'=>1); $item22 = $item = $news->getLeftNews77($data); //print'';print_r($item22); exit; $smarty->assign('item2', $item22); if($_SESSION['mode'] ) { } $vid_ = $news->getVideo($item[0]['id']); $smarty->assign('vid', $vid_ ); // print'';print_r($item[0]['gall']); exit; $smarty->assign("data", $line); if($line['url']!='works'){ // GET GALLERY //if(isset($_GET['gall'])){print'';print_r($item[0]['gall']); exit;} if($item[0]['gall'] ) { $smarty->assign('gcount', count($item[0]['gall'])); $smarty->assign('gall_page', $item[0]['gall']); //$smarty->assign('gall_page_ch', array_chunk($item[0]['gall'], 5)); //$smarty->assign('gallery2', $smarty->fetch('gall_page2.tpl')); // $gallery = p_gallery($item[0]['text']); // $item[0]['text'] = str_replace($gallery[0], '', $item[0]['text']); $smarty->assign("currPage", $item[0]); }else{ // print '
'.$gallery[0].'
'; // print '
$template '.$template.'
'; //($item[0]['sp_text'][1] ? $item[0]['sp_text'][1] : $item[0]['text']) ///////////////////////////////////////////////////////////////// if($menu_by_id [$curr_page['id_page']]['childs'] && $curr_page['pid']==0){ $ch_ids = ( implode(',',array_keys($menu_by_id [$line['ref']]['childs']))); //print $ch_ids .' 1
'; }elseif($curr_page['pid']>0 && $menu_by_id [$menu_by_id [$curr_page['id_page']]['parent_id']]['childs']){ $ch_ids = implode(',',array_keys($menu_by_id [$menu_by_id [$curr_page['id_page']]['parent_id']]['childs'])); //print $ch_ids .' 2
'; } if($ch_ids){ //print $q = "select id, parent_id, `type`, head_$DBlang, text_$DBlang , child from news where`type` in('8') && parent_id in($ch_ids) and `status`=0 order by `order` limit 10 "; $data = array("query"=>$q, 'f_array2'=>array('type' ), 'pager'=>false, 'getGall'=>1);//, 'get_att'=>1); $ch_items = $news->getLeftNews77($data); //print'';print_r($item22); exit; $smarty->assign('ch_items', $ch_items); } ////////////////////////////////////////////////////////////////// $item[0]['video']= $news->getVideo($item[0]['id']); $smarty->assign("currPage", $item[0]); if($gallery[1] == 'gallery'){ // print 'privet'; $item[0]['text'] = str_replace($gallery[0], '', $item[0]['text']); $item[0]['sp_text'][1] = str_replace($gallery[0], '', $item[0]['sp_text'][1]); $item[0]['sp_text'][0] = str_replace($gallery[0], '', $item[0]['sp_text'][0]); $smarty->assign("currPage", $item[0]); $itemgallery = $news->getItemGallery('edit/uploaded/'.$gallery[4].'/'); //if(array_key_exists($_GET['id'], $map)){$smarty->assign("map", $map[$_GET['id']]);} if(count($itemgallery)){ //print'' ; print_r($itemgallery); //$smarty->assign("itemgallery", array_chunk($itemgallery, 4 )); $smarty->assign("itemgallery2", $itemgallery); $smarty->assign('gallery', $smarty->fetch('gall.tpl')); } }}//print '' ; print_r($item[0]['sp_']); // GET GALLERY } //print'' ; print_r($item[0]);exit; // WELCOME //$q = "select id, head_$DBlang, text_$DBlang, alt1_$DBlang as url from news where type='8' and parent_id=11 and `status`=0 limit 1 "; //$data = array("query"=>$q, 'pager'=>false, 'f_array2'=>array('url'));//, 'get_att'=>1); //$WELCOME = $news->getLeftNews77($data); //$smarty->assign('WELCOME', $WELCOME[0]); // WELCOME // GET SPECIAL OFFERS //$q = "select id, head_$DBlang, text_$DBlang, alt1_$DBlang as url from news where type='12' and `status`=0 limit 1 "; //$data = array("query"=>$q, 'pager'=>false, 'f_array2'=>array('url'));//, 'get_att'=>1); //$OFFERS = $news->getLeftNews77($data); //$smarty->assign('offer', $OFFERS[0]); // GET SPECIAL OFFERS ///////////////////////////// //print'' ; print_r($curr_page); exit; //print'
$template '.$template.'.tpl'; //print'
$page '.$page.''; //$smarty->assign('curr_page', $curr_page); //$smarty->assign('navi', get_navi_menu($line['id_page'])); // $navi_menu = get_navi_menu($line['id_page']); ///////////////////////// $q = "select id, head_$DBlang, text_$DBlang, alt_fild from news where `type`=9 and `status`=0 ORDER BY `order` "; $data = array("query"=>$q, 'id_array'=>'id', 'f_array2'=>array('alt_fild'), 'pager'=>false );//, 'get_att'=>1); $categories = $news->getLeftNews77($data); $smarty->assign("categories", $categories); ///////////////////////// //print "includes/".$navi_menu[2][0]['url'].".php
"; //print "includes/".$page.".php
"; require_once('moduls/system2.php'); //print '['.$navi_menu[2][0]['url'].''; if($curr_page['act'])$page=$curr_page['act']; if(file_exists("includes/".$page.".php")){$page_a = 1;} elseif(file_exists("includes/".$navi_menu[2][0]['url'].".php")) $page = $navi_menu[2][0]['url']; //print ("includes/".$page.".php"); include ("includes/".$page.".php"); //return;//print "includes/".$page.".php
"; //print '
$curr_page[meta_title] '.$curr_page[meta_title]; /////////////////////////////////////////////////////////////// $smarty->assign('curr_page', $curr_page); ###$navi_menu = get_navi_menu($line['id_page']); //print'';print_r($navi_menu);exit; $smarty->assign('navi', $navi_menu); //print'';print_r($curr_page);exit; //print'';print_r($navi_menu);exit; $_SESSION['giza_root_id'] = $root_id = $navi_menu[2][0]['id_page']; //if($_GET['mode']){ print'
$_SESSION[giza_root_id] '.$_SESSION['giza_root_id'].''; } $smarty->assign('REST', $root_id==5 ? 1 : 0); $x_id = (($is_rh = in_array($root_id, array(5 , 3))) ? $root_id : 3); $smarty->assign('is_rh', $is_rh); //print ''; print_r($navi_menu[2][1]['id_page']);exit; //$LEFT_PROD = navi_dsm71($menu_p2, $navi_menu[2][1]['id_page'] , $root_id=0); //$smarty->assign('LEFT_PROD', $LEFT_PROD); $smarty->assign('root_id', $root_id); require_once('moduls/system.php'); include('incs/slider.php'); $x_id = 0; //print '';print_r($menu_by_id);exit; //$TOP_MENU = navi_dsm7($menu_p, $x_id, $x_id); //print'';print_r($TOP_MENU);exit; //$smarty->assign('T_MENU', $TOP_MENU); /////////////////////////////////////////////////////////////// //(40.203525997305476, 44.64466094970703) // //print '
$template '.$template;exit; $page = (file_exists('templates/'.$template.'.html') ? $template : 'txt-gall'); //print '
$page '.$page;exit; //print '
$template '.$template; $smarty->assign('page', $page); //print('
url '.((file_exists('templates/'.$template.'.tpl') ? $template : 'default').".tpl")); $smarty->assign('url', ((file_exists('templates/'.$template.'.html') ? $template : 'txt-gall').".html")); //$smarty->assign("slideshow", in_array($page, array('home', 'hotel', 'skiing', 'tourism', 'tsaghkadzor', 'contacts', 'articles', 'reviews', 'rooms_table' ))); $smarty->assign("slideshow", $line['slideshow']); $smarty->display("index.html"); return; } ?>