/* File protected by copyright Author: VB Studio - http://www.vbstudio.it Revision: 2010-05-14 v: 1.5.3 */ require ('includes/conf.inc.php'); //$page=$_REQUEST['page']; $indexpage=0; $share = true; //$tpl=new Template; $tpl->load_tpl(TPL.'/head.php'); if ($page=='index') { //$page='index'; $tpl->load_tpl(TPL.'/index.php'); $indexpage=1; } else { $tpl->load_tpl(TPL.'/content.php'); } $tpl->load_tpl(TPL.'/foot.php'); $data1 = ''; $share_description = ''; /* DATA 1 Start ->> */ $data_all_q=mysql_query("select id from ".DB_PREFIX."contents where page='".$page."' and langid='".$_SESSION['language']."' order by pos asc") or die(mysql_error()); $data_all_n=mysql_num_rows($data_all_q); $script.=' '; $data1.='
'; for ($i=0; $i<$data_all_n; $i++) { $data_all=mysql_fetch_array($data_all_q); $data1_q=mysql_query("select * from ".DB_PREFIX."contents where id='".$data_all['id']."'") or die(mysql_error()); //$data2_n=mysql_num_rows($data2_q); $data1_a=mysql_fetch_array($data1_q); if ($i==0) { $titolo_pagina=ucfirst(strtolower(unescape($data1_a['title']))); $first_content_id = $data1_a['id']; } $share_description .= unescape($data1_a['descr']) . ' ' . unescape($data1_a['detail']) .' '; $data1.='
'.((strlen($data1_a['title'])>2)?'

'.unescape($data1_a['title']).'

':'').'
'.unescape($data1_a['descr']).' '.get_fotos($data1_a['id']).' '.unescape($data1_a['detail']).'
'.get_videos($data1_a['id']).' '.get_files($data1_a['id'],$_SESSION['language']).'
'; } // news if ($page == NEWS_PAGE_IDENTIFIER){ $news_list=''; include ('includes/module_news_list.php'); /* $data1 = '

'.$menu_array[NEWS_PAGE_IDENTIFIER]['title'].'

'.$news_list.'
'; */ $data1 = '
'.$news_list.' '; } //share things:: $share_screenshot = SITE_ADDRESS.'/'.get_first_foto_url($first_content_id, $page); // if (isset($_REQUEST['debug'])) { // echo '1. first foto: '.get_first_foto_url($first_content_id, $page). " [func($first_content_id, $page)]"; // } $data2=''; if ($indexpage==1) // homepage { $share_screenshot = SITE_ADDRESS.'/images/site/logo_allemano_1.jpg'; $marche = array('Senko', 'Silva', 'Tecnix', 'Allemano', 'Kds', 'Rycom', 'Fpm Freiberger', 'Proceq', 'Controls', 'Protimeter', 'Tramex', 'Schaller', 'Revue Thommen-Ch', 'Preisser', 'Laser Technology', 'Haff', 'Silva-S', 'Breithaupt-D', 'Fpm', 'Ker ', 'Haglof-S ', 'Estwing', 'Haglof', 'Wilkie', 'Nedo-D', 'Trotec'); shuffle($marche); $marche_txt = implode(', ',$marche); $data2.='


Allemano Instruments S.r.l. distribuisce le più note ed affidabili marche di strumenti di misura
'.$marche_txt.'
'; } /* if (isset($_REQUEST['debug'])) { echo '2. first foto: '.get_first_foto_url($first_content_id, $page). " [func($first_content_id, $page)]"; } */ /* if ($page=='a5') // pagina contatti -> inserisci form contatti { $data1.='

Visualizza A.S.D. Monleale Sportleale in una mappa di dimensioni maggiori
'; } */ if ($share){ $query_string=''; if($_SERVER['QUERY_STRING']) { $query_string = '?' . $_SERVER['QUERY_STRING']; } $script.=' '; $share_buttons = '
'; $data1.='
'.$share_buttons.'
'; } $data1.='
'; include ('includes/application_bottom.php'); $tpl->cargo['TITLE'] = SITE_NAME.' - '.$titolo_pagina; $tpl->cargo['KEYWORDS'] = KEYWORDS; $tpl->cargo['THEME'] = TPL; $tpl->cargo['BASE'] = SITE_ADDRESS; $tpl->cargo['SCRIPT']=&$script; $tpl->cargo['TIME']=&$showdate; //$tpl->cargo['HEAD_LOGO']=&$head_logo; //$tpl->cargo['TIME']=&$time; $tpl->cargo['DATA2']=&$data2; $tpl->cargo['MAIN']=&$data1; //$tpl->cargo['THANKS']=&$thanx_text; //$tpl->cargo['A1']='_pressed'; $tpl->render_tpl(); #include ('includes/end.php'); ?>