$inactive ) { echo""; $_SESSION['timeout'] = time(); exit(0); } } $_SESSION['timeout'] = time(); $browser=1; if ( stristr($_SERVER['HTTP_USER_AGENT'], 'MSIE 6.0') ) $browser=0; if ( stristr($_SERVER['HTTP_USER_AGENT'], 'MSIE 7.0') ) $browser=0; // if ( stristr($_SERVER['HTTP_USER_AGENT'], 'Mozilla/4.0') ) $browser=0; if ($browser==0 && $_GET['page']!='113') { $redirect=""; echo $redirect; } if (!isset($_GET['page'])) {ob_start("ob_gzhandler");} //ini_set("zlib.output_compression", "On"); define('PATH_BASE', dirname(__FILE__) ); define('KO', DIRECTORY_SEPARATOR); $live_site = '/'; $flive_site = 'http://www.zhandev.eu/'; $_SESSION['flive_site']='http://www.zhandev.eu/'; $ssl_live_site = 'https://www.zhandev.eu/'; $_SESSION['ssl_live_site']='https://www.zhandev.eu/'; $absolute_path = '/var/zpanel/hostdata/zadmin/public_html/zhandev_eu'; $absolute_path_admin ='/var/zpanel/hostdata/zadmin/public_html/zhandev_eu/manager/'; if (isset($_GET['lang'])) { $_SESSION['lang']=$_GET['lang'];} if ($_SERVER['SERVER_NAME']=='zhandev.eu' ) { echo" "; } define( '_DEFDEV', 1 ); $session_id=session_id(); if (isset($_GET['account'])) $account=$_GET['account']; else $account='none'; if ($account == 'logout') { unset ( $_SESSION['mail_login']); unset ( $_SESSION['id_agents']); unset ( $_SESSION['uid']); unset ( $_SESSION['uacl']); unset ( $_SESSION['fusername']); } $saltie = 'howaboutairwing'; $tokenstr = date('W') . $saltie; if( !isset($_SESSION['log_token']) ) { $_SESSION['log_token'] = md5($tokenstr); } $token = $_SESSION['log_token']; include ("include/db.php"); include ("include/auth.php"); if (isset($_SESSION['mail_login'])) { //echo "

".$_SESSION['mail_login']."
"; //$mail_login='zhan@airwing.pl'; //print_r(getDataAgency($_SESSION['mail_login'])); $getDataAgency=getDataAgency($_SESSION['mail_login']); $_SESSION['id_agents']=$getDataAgency['id_agents']; //print_r($getDataAgency); //echo $session_id ; // get user access level (1:admin, 2:manager) $_SESSION['uacl'] = getUserDetails($_SESSION['uid'], "ACL"); } //SEF URL START $stranica=$_SERVER['REQUEST_URI']; //$stranica = preg_replace ('#(/b2b/)#',"",$stranica); $array_url = explode("-",$stranica); $path_error=strpos($stranica,'/') ; //echo "



--------->".$path_error; // echo $stranica.$_SERVER['REQUEST_URI']; if ($path_error>0) { echo""; exit(0); } if (isset($array_url[2]) ) { $id_article_query = "SELECT idcontent_pages FROM content_pages WHERE sef_url LIKE '%".$array_url[2]."%' "; // echo "



--------->".$id_article_query ; $id_article_query_res = mysql_query ($id_article_query) or die("Query: >MySQL Error: sales_channel " . mysql_error()); $id_article_res = mysql_fetch_row($id_article_query_res); $pid=$id_article_res[0]; } else if(isset($array_url[1])) { $id_article_query = "SELECT idcontent_categories FROM content_categories WHERE sef_url LIKE '%".$array_url[1]."%'"; //echo $id_article_query ; $id_article_query_res = mysql_query ($id_article_query) or die("Query: >MySQL Error: sales_channel " . mysql_error()); $id_article_res = mysql_fetch_row($id_article_query_res); $catid=$id_article_res[0]; } // END SEF URL if (isset($_GET['page'])) { $get_page=$_GET['page']; $pages_id=$_GET['page']; $templ_id_query = "SELECT templ_page FROM pages WHERE idpages='".$pages_id."' ; "; $template = mysql_query($templ_id_query,$db); $template_link = mysql_fetch_array($template); $templatelink=$template_link['templ_page']; } elseif (!isset($_GET['page']) && isset($_SESSION['mail_login'])) { $templatelink="layout/templ1/index.php"; } else { $get_page=0; // $templatelink="layout/b2b_temp/index.php"; $templatelink="layout/new_homepage/index.php"; } $sales_channel_req=$_SERVER['SERVER_NAME'] ; $sales_channel_req=str_replace("www.", "", $sales_channel_req); $id_channel=0; // standart $_SESSION['id_channel']=$id_channel; if (isset($_SESSION['mail_login'])) { $id_user_query = "SELECT id_user FROM users WHERE user_mail='".$_SESSION['mail_login']."'; "; $id_user_query_res = mysql_query ($id_user_query) or die("Query: >MySQL Error:session id " . mysql_error()); $id_user_res = mysql_fetch_row($id_user_query_res); $id_user=$id_user_res[0]; } else { $id_user=0; } if (!isset($_SESSION['mail_login']) && $get_page == '27' ) { echo ""; } if(isset($_POST['lang'])) { $_SESSION['lang'] = cleanText($_POST['lang']); } if (isset($_SESSION['lang']) ) { switch ($_SESSION['lang']) { case 'en': include_once ( './lang/en.php' ); break; case 'gr': include_once ( './lang/gr.php' ); break; default : $_SESSION['lang']='gr'; include_once ( './lang/gr.php' ); } } else { $_SESSION['lang']='gr'; include_once ( './lang/gr.php' ); } if (isset($_GET['catid']) && $_GET['catid']!=="") {$catid = $_GET['catid']; } if (isset($_GET['pid']) && $_GET['pid']!=="" ) {$pid = $_GET['pid']; } if (isset($_GET['page']) && $_GET['page']!=="") $page = $_GET['page']; else $page = 'none'; if (isset($catid)) include('include/meta_cat.php'); if (isset($pid)) include('include/meta_page.php'); unset($catid); if ( (!isset($catid) ) && (!isset($pid) ) && ($page == '130') ) { $mode = trim (mysql_real_escape_string ($_GET['mode']) ); if(isset ($mode) && $mode == 'airportDetails' ) { $chIataCode = trim (mysql_real_escape_string ($_GET['iata']) ); $query = "SELECT name,city,country,iata_faa FROM airports_info WHERE iata_faa = '".$chIataCode."' ORDER BY name ASC"; $result = mysql_query($query); while($row = mysql_fetch_assoc($result) ) { $airportCountry = trim (stripslashes ( $row['country']) ); $airportCity = trim (stripslashes ( $row['city']) ); $airportIataCode = trim (stripslashes ( $row['iata_faa']) ); $airportName = trim (stripslashes ( $row['name']) ); } $airport = $airportName.', '.$airportIataCode.', '.$airportCity.', '.$airportCountry; } else { $airportCountry = trim (mysql_real_escape_string ($_GET['country']) ); $airportCity = trim (mysql_real_escape_string ($_GET['city']) ); $airport = $airportCity.' '.$airportCountry; }//close else of if(isset ($mode) && $mode == 'airportDetails' ) if($_SESSION['lang']=='en') { $titlepage=$airport."Zhandev "; $meta_descr=$airport." Zhandev "; $meta_keywords=$airport." Zhandev"; } else { $meta_descr=$airport." Zhandev, "; $meta_keywords=$airport." Zhandev,"; } } //close else of if($page == '130') if ( (!isset($catid) ) && (!isset($pid) ) && ( $page!=='130') ) { if($_SESSION['lang']=='en') { $titlepage=" Zhandev "; $meta_descr="Zhandev"; $meta_keywords="Zhandev "; } else { $titlepage="Zhandev "; $meta_descr="Zhandev"; $meta_keywords="Zhandev"; } } //include( PATH_BASE .KO.'include'.KO.'step.php' ); $combine_css = configdata('combine_css'); ?>
='100' ) { $preloader="

"._LLLP_04_."\""._LLLP_04_."\"

"; } if ($_GET['page']=='98' ) { $_SESSION['destination']=$_POST['destination']; $_SESSION['datepickerhot2']=$_POST['destination2']; //echo " tests"; $preloader="
"; } echo $preloader; } ?>