city).'/'.fixUrl($r->name).'-'.$r->id.'.html'; header( "HTTP/1.1 301 Moved Permanently"); header( "Location: $url" ); } if(isset($_POST['feedback2'])){ $feedback['name2']=htmlspecialchars(((isset($GLOBALS["___mysqli_ston"]) && is_object($GLOBALS["___mysqli_ston"])) ? mysqli_real_escape_string($GLOBALS["___mysqli_ston"], $_POST['name2']) : ((trigger_error("[MySQLConverterToo] Fix the mysql_escape_string() call! This code does not work.", E_USER_ERROR)) ? "" : ""))); $feedback['email2']=htmlspecialchars(((isset($GLOBALS["___mysqli_ston"]) && is_object($GLOBALS["___mysqli_ston"])) ? mysqli_real_escape_string($GLOBALS["___mysqli_ston"], $_POST['email2']) : ((trigger_error("[MySQLConverterToo] Fix the mysql_escape_string() call! This code does not work.", E_USER_ERROR)) ? "" : ""))); $feedback['city2']=htmlspecialchars(((isset($GLOBALS["___mysqli_ston"]) && is_object($GLOBALS["___mysqli_ston"])) ? mysqli_real_escape_string($GLOBALS["___mysqli_ston"], $_POST['city2']) : ((trigger_error("[MySQLConverterToo] Fix the mysql_escape_string() call! This code does not work.", E_USER_ERROR)) ? "" : ""))); $feedback['feedback2']=htmlspecialchars(((isset($GLOBALS["___mysqli_ston"]) && is_object($GLOBALS["___mysqli_ston"])) ? mysqli_real_escape_string($GLOBALS["___mysqli_ston"], $_POST['feedback2']) : ((trigger_error("[MySQLConverterToo] Fix the mysql_escape_string() call! This code does not work.", E_USER_ERROR)) ? "" : ""))); $privatekey = "6Lch9wsAAAAAAJGu-ZexvkmT1l12Tf-B56EqaYqb"; $resp = recaptcha_check_answer ($privatekey,$_SERVER["REMOTE_ADDR"],$_POST["recaptcha_challenge_field"],$_POST["recaptcha_response_field"]); if (!$resp->is_valid) { echo ' '; } else{ $in="INSERT INTO feedback SET name='".$feedback['name2']."', email='".$feedback['email2']."', city='".$feedback['city2']."', date=NOW(), message='".$feedback['feedback2']."', ok='NO', pId=$pId"; mysqli_query($GLOBALS["___mysqli_ston"], $in); $feedback=''; } } $topLeft=''; $topRight=''; $bottomLeft=''; $bottomRigh=''; $title="Hotell i ".$dInfo['city'].". Boka Boende och ".$dInfo['name']."."; $desc="Hotell i ".$dInfo['city']." innehåller information om hotell i ".$dInfo['city'].". Om du söker billiga eller lyxiga hotell i ".$dInfo['city']." har du hittat rätt!"; if(isset($_POST['search-q'])){ $where=""; if(!empty($_POST['search-q']) && $_POST['search-q']!="Hotell Namn"){ $name=((isset($GLOBALS["___mysqli_ston"]) && is_object($GLOBALS["___mysqli_ston"])) ? mysqli_real_escape_string($GLOBALS["___mysqli_ston"], $_POST['search-q']) : ((trigger_error("[MySQLConverterToo] Fix the mysql_escape_string() call! This code does not work.", E_USER_ERROR)) ? "" : "")); $q=mysqli_query($GLOBALS["___mysqli_ston"], "SELECT * from hotell where pId=$pId AND name like '".$name."'"); $r=mysqli_fetch_object($q); $url="https://".$domain.'/hotell-'.strtolower($r->city).'/'.fixUrl($r->name).'-'.$r->id.'.html'; header("Location: $url"); } else if(!empty($_POST['cityTop'])){ $city=((isset($GLOBALS["___mysqli_ston"]) && is_object($GLOBALS["___mysqli_ston"])) ? mysqli_real_escape_string($GLOBALS["___mysqli_ston"], $_POST['cityTop']) : ((trigger_error("[MySQLConverterToo] Fix the mysql_escape_string() call! This code does not work.", E_USER_ERROR)) ? "" : "")); $url='https://'.$domain."/hotell-".utf8_encode(strtolower($city))."/"; header("Location: $url"); } $city2=str_replace("ö", "%C3%B6", $city); $topLeft=GetHotel($hId); $topRight=''; $bottomLeft=SearchBox().'

Välj Stad för Hotell

'. GetCities($pId, "cityLinks").'

'; $bottomRigh="

Fler hotell ".$dInfo['city']."

".GetHotelList($pId, $order="nrRoom desc limit 10"); } if(empty($_GET) && empty($_POST)){ $topLeft=SearchBox().'

Välj Stad för Hotell

'. GetCities($pId, "cityLinks").'

'; $topRight=''; $bottomLeft='

Hotell i '.$dInfo['city'].'

Alla Hotell »
 
'.GetHotelList($pId, $order="nrRoom desc limit 10"); $bottomRigh='
 
'; } else if(isset($_GET['comments'])){ $title="Kommentarer för ".$dInfo['name'].". Hotell i ".$dInfo['city']; $desc="Kommenatrer för Hotell i ".$dInfo['city']." innehåller information om hotell i ".$dInfo['city'].". Om du söker billiga eller lyxiga hotell i ".$dInfo['city']." har du hittat rätt!"; $topLeft='

Sagt om '.$domain.'

'.GetQoutes($pId, $order="order by date desc").MakeComment(); $topRight=SearchBox().'

Välj Stad för Hotell

'. GetCities($pId, "cityLinks").'

'; $bottomLeft=''; $bottomRigh=''; } else if(isset($_GET['city'])){ $city=ucfirst(((isset($GLOBALS["___mysqli_ston"]) && is_object($GLOBALS["___mysqli_ston"]) ? mysqli_real_escape_string($GLOBALS["___mysqli_ston"], ((isset($GLOBALS["___mysqli_ston"]) && is_object($GLOBALS["___mysqli_ston"])) ? mysqli_real_escape_string($GLOBALS["___mysqli_ston"], $_GET['city']) : ((trigger_error("[MySQLConverterToo] Fix the mysql_escape_string() call! This code does not work.", E_USER_ERROR)) ? "" : ""))) : ((trigger_error("[MySQLConverterToo] Fix the mysql_escape_string() call! This code does not work.", E_USER_ERROR)) ? "" : "")))); $title="Hotell i $city. Hotell i ".$dInfo['city']; $desc="Hotell i ".$city." innehåller information om hotell i $city. Om du söker billiga eller lyxiga hotell i $city har du hittat rätt! ".$dInfo['name']."."; $topLeft='

Hotell i '.$city.'

 
'.GetHotelList($pId, $order=" nrRoom desc limit 10", $where=" AND city like '".$city."'"); $topRight=''; $bottomLeft=SearchBox().'

Välj Stad för Hotell

'. GetCities($pId, "cityLinks").'

'; $bottomRigh=''; } else if(isset($_GET['all'])){ $title="Alla hotell i ".$dInfo['city']; $topLeft='

All hotell i '.$dInfo['city'].'

'.GetHotelList($pId, $order="nrRoom desc"); $topRight=SearchBox().'

Välj Stad för Hotell

'. GetCities($pId, "cityLinks").'

'; $bottomLeft=''; $bottomRigh=''; } else if(isset($_GET['hotell'])){ $added="0"; if(isset($_POST['hId'])){ $privatekey = "6Lch9wsAAAAAAJGu-ZexvkmT1l12Tf-B56EqaYqb"; $resp = recaptcha_check_answer ($privatekey,$_SERVER["REMOTE_ADDR"],$_POST["recaptcha_challenge_field"],$_POST["recaptcha_response_field"]); if (!$resp->is_valid) { echo ' '; } else{ $sub=htmlspecialchars(((isset($GLOBALS["___mysqli_ston"]) && is_object($GLOBALS["___mysqli_ston"])) ? mysqli_real_escape_string($GLOBALS["___mysqli_ston"], $_POST['subject']) : ((trigger_error("[MySQLConverterToo] Fix the mysql_escape_string() call! This code does not work.", E_USER_ERROR)) ? "" : ""))); $text=strip_tags(((isset($GLOBALS["___mysqli_ston"]) && is_object($GLOBALS["___mysqli_ston"])) ? mysqli_real_escape_string($GLOBALS["___mysqli_ston"], nl2br($_POST['text'])) : ((trigger_error("[MySQLConverterToo] Fix the mysql_escape_string() call! This code does not work.", E_USER_ERROR)) ? "" : "")), "

"); #$hotel=htmlspecialchars(mysql_escape_string($_POST['hotel'])); $name=htmlspecialchars(((isset($GLOBALS["___mysqli_ston"]) && is_object($GLOBALS["___mysqli_ston"])) ? mysqli_real_escape_string($GLOBALS["___mysqli_ston"], $_POST['name']) : ((trigger_error("[MySQLConverterToo] Fix the mysql_escape_string() call! This code does not work.", E_USER_ERROR)) ? "" : ""))); $email=htmlspecialchars(((isset($GLOBALS["___mysqli_ston"]) && is_object($GLOBALS["___mysqli_ston"])) ? mysqli_real_escape_string($GLOBALS["___mysqli_ston"], $_POST['email']) : ((trigger_error("[MySQLConverterToo] Fix the mysql_escape_string() call! This code does not work.", E_USER_ERROR)) ? "" : ""))); $da=date("Y-m-d"); $h=htmlspecialchars(((isset($GLOBALS["___mysqli_ston"]) && is_object($GLOBALS["___mysqli_ston"])) ? mysqli_real_escape_string($GLOBALS["___mysqli_ston"], $_POST['hId']) : ((trigger_error("[MySQLConverterToo] Fix the mysql_escape_string() call! This code does not work.", E_USER_ERROR)) ? "" : ""))); $q='INSERT INTO kommentar (headline, text, name, email, date, hId) VALUES ("'.$sub.'", "'.$text.'","'.$name.'","'.$email.'","'.$da.'", '.$h.')'; mysqli_query($GLOBALS["___mysqli_ston"], $q); $added="1"; $url="https://".$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI']; } } $hId=((isset($GLOBALS["___mysqli_ston"]) && is_object($GLOBALS["___mysqli_ston"])) ? mysqli_real_escape_string($GLOBALS["___mysqli_ston"], $_GET['hotell']) : ((trigger_error("[MySQLConverterToo] Fix the mysql_escape_string() call! This code does not work.", E_USER_ERROR)) ? "" : "")); $q=mysqli_query($GLOBALS["___mysqli_ston"], "SELECT * from hotell where pId=$pId AND id=$hId"); $r=mysqli_fetch_object($q); $city=$r->city; $name=str_replace("ö", "%C3%B6", $r->name); $title=$r->name.". "." Hotell i ".$r->city.". ".$dInfo['name']."."; $desc=$r->name.". "." Hotell i ".$r->city.". ".$dInfo['name'].". ". "Läs mer om hotell i ".$dInfo['city'].". ".$dInfo['name']; $topLeft=GetHotel($hId); $topRight=''; $bottomLeft=SearchBox().'

Välj Stad för Hotell

'. GetCities($pId, "cityLinks").'

'; $bottomRigh="

Fler hotell ".$dInfo['city']."

".GetHotelList($pId, $order="nrRoom desc limit 10"); } else if(isset($_GET['sitemap'])){ $title="Sidkarta - ".$dInfo['name']."."; $topLeft=GetSitemap(); $city=str_replace("ö", "%C3%B6", $dInfo['city']); #$topRight=''; $bottomLeft=SearchBox().'

Välj Stad för Hotell

'. GetCities($pId, "cityLinks").'

'; $bottomRigh="

Fler hotell ".$dInfo['city']."

".GetHotelList($pId, $order="nrRoom desc limit 10"); } else if(isset($_GET['kontakt'])){ $mes=""; $title="Kontakta oss - ".$dInfo['name']."."; if(isset($_POST['subject'])){ $privatekey = "6Lch9wsAAAAAAJGu-ZexvkmT1l12Tf-B56EqaYqb"; $resp = recaptcha_check_answer ($privatekey,$_SERVER["REMOTE_ADDR"],$_POST["recaptcha_challenge_field"],$_POST["recaptcha_response_field"]); if (!$resp->is_valid) { echo ' '; } else{ ##sendMail($_POST['mail'], $_POST['email'], $_POST['subject'], $_POST['mes']); $mes="

Mail Skickat!

"; } } $topLeft="

Kontakta oss

$mesObs bokningar sköts i formuläret till höger. ". GetContact(); $city=str_replace("ö", "%C3%B6", $dInfo['city']); $topRight=''; $bottomLeft=SearchBox().'

Välj Stad för Hotell

'. GetCities($pId, "cityLinks").'

'; $bottomRigh="

Fler hotell ".$dInfo['city']."

".GetHotelList($pId, $order="nrRoom desc limit 10"); } else if(isset($_GET['synas'])){ $mes=""; $title="Synas här - ".$dInfo['name']."."; $topLeft="

Synas på ".$dInfo['name']."

Fyll i formuläret nedan om dina önskemål så återkommer vi.

". GetContact(); $city=str_replace("ö", "%C3%B6", $dInfo['city']); $topRight=''; $bottomLeft=SearchBox().'

Välj Stad för Hotell

'. GetCities($pId, "cityLinks").'

'; $bottomRigh="

Fler hotell ".$dInfo['city']."

".GetHotelList($pId, $order="nrRoom desc limit 10"); } else if(isset($_GET['boka'])){ $mes=""; $title="Boka hotell i ".$dInfo['city']."."; $city=str_replace("ö", "%C3%B6", $dInfo['city']); $topLeft='

Boka hotell i '.$dInfo['city'].'

'; $topRight=''; $bottomLeft=SearchBox().'

Välj Stad för Hotell

'. GetCities($pId, "cityLinks").'

'; $bottomRigh="

Fler hotell ".$dInfo['city']."

".GetHotelList($pId, $order="nrRoom desc limit 10"); } function sendMail($name, $email, $subject, $mes){ $body="FRÅN: ".$email."\n\n"; $body.=$mes." \n\n\nmail från ".$_SERVER['SERVER_NAME']; $subject="MAIL från:".$_SERVER['SERVER_NAME'].$subject; $headers = "From: ".$email."\r\n" . "X-Mailer: php"; #mail("inventor@innopedia.se", $subject, $body, $headers); } function fixUrl($word){ $word =strtolower ($word); //$word =htmlspecialchars_decode($word); $word =str_replace("ö", "o", $word); $word =str_replace("Ö", "O", $word); $word =str_replace("ä", "a", $word); $word =str_replace("Ä", "a", $word); $word =str_replace("å", "a", $word); $word =str_replace("Å", "a", $word); $word =str_replace(" ", "-", $word); $word =str_replace("&", "och", $word); $word =str_replace("Ù", "o", $word); $word =str_replace("---", "-", $word); $word =str_replace("--", "-", $word); $word =str_replace(":", "", $word); $word =str_replace("¸", "u", $word); $word =str_replace("‹", "u", $word); $word =str_replace("Ê", "ae", $word); $word =str_replace("¯", "o", $word); $word =str_replace("ÿ", "o", $word); $word =str_replace("∆", "ae", $word); $word =str_replace("%", "procent", $word); $word =remove_numbers($word); $word =str_replace("é", "e", $word); $word =remove_numbers($word); $word = preg_replace("/[^a-z-åäöÅÄÖA-Z-\s]/is", "", $word); $word =strtolower ($word); $word =strtolower ($word); return $word; } function remove_numbers($string) { $vowels = array("1", "2", "3", "4", "5", "6", "7", "8", "9", "0", " "); $string = str_replace($vowels, '', $string); return $string; } function GetCities($pId, $type="", $order="nr desc"){ $q=mysqli_query($GLOBALS["___mysqli_ston"], "SELECT distinct city, count(id) as nr from hotell where pId=$pId group by city order by $order "); $cities=array(); while($r=mysqli_fetch_object($q)){ $cities[]=$r->city; } $data=""; if($type=="cityLinks"){ foreach($cities as $value){ $data.='Hotell i '.$value.' | '; } $data=substr($data, 0, strlen($data)-3); return $data; } else if($type=="dropDown"){ foreach($cities as $value){ $data.=''; } return $data; } else{ return $cities; } } function GetComment($hId, $added){ $sub=""; $text=""; $hotel=""; $name=""; $email=""; $da=date("Y-m-d"); #require_once('recaptchalib.php'); $publickey = "6Lch9wsAAAAAAEc9ItGYMRzXqQGs5bHJTpSt5ufQ"; // you got this from the signup page if(!empty($_POST) && $added=="0"){ $sub=htmlspecialchars(((isset($GLOBALS["___mysqli_ston"]) && is_object($GLOBALS["___mysqli_ston"])) ? mysqli_real_escape_string($GLOBALS["___mysqli_ston"], $_POST['subject']) : ((trigger_error("[MySQLConverterToo] Fix the mysql_escape_string() call! This code does not work.", E_USER_ERROR)) ? "" : ""))); $text=strip_tags(((isset($GLOBALS["___mysqli_ston"]) && is_object($GLOBALS["___mysqli_ston"])) ? mysqli_real_escape_string($GLOBALS["___mysqli_ston"], nl2br($_POST['text'])) : ((trigger_error("[MySQLConverterToo] Fix the mysql_escape_string() call! This code does not work.", E_USER_ERROR)) ? "" : ""))); $hotel=htmlspecialchars(((isset($GLOBALS["___mysqli_ston"]) && is_object($GLOBALS["___mysqli_ston"])) ? mysqli_real_escape_string($GLOBALS["___mysqli_ston"], $_POST['hotel']) : ((trigger_error("[MySQLConverterToo] Fix the mysql_escape_string() call! This code does not work.", E_USER_ERROR)) ? "" : ""))); $name=htmlspecialchars(((isset($GLOBALS["___mysqli_ston"]) && is_object($GLOBALS["___mysqli_ston"])) ? mysqli_real_escape_string($GLOBALS["___mysqli_ston"], $_POST['name']) : ((trigger_error("[MySQLConverterToo] Fix the mysql_escape_string() call! This code does not work.", E_USER_ERROR)) ? "" : ""))); $email=htmlspecialchars(((isset($GLOBALS["___mysqli_ston"]) && is_object($GLOBALS["___mysqli_ston"])) ? mysqli_real_escape_string($GLOBALS["___mysqli_ston"], $_POST['email']) : ((trigger_error("[MySQLConverterToo] Fix the mysql_escape_string() call! This code does not work.", E_USER_ERROR)) ? "" : ""))); $da=date("Y-m-d"); $hId=htmlspecialchars(((isset($GLOBALS["___mysqli_ston"]) && is_object($GLOBALS["___mysqli_ston"])) ? mysqli_real_escape_string($GLOBALS["___mysqli_ston"], $_POST['hId']) : ((trigger_error("[MySQLConverterToo] Fix the mysql_escape_string() call! This code does not work.", E_USER_ERROR)) ? "" : ""))); } $data='
Rubrik:

Kommenatar

Namn

Epost


'.recaptcha_get_html($publickey).' Kommentera
'; return $data; } function GetSitemap(){ global $pId; global $dInfo; $cities=GetCities($pId, $type="", $order="city"); $data="

Hotell i ". $dInfo['city']." hos oss

"; foreach($cities as $value){ $data.=''; } $data.='

Hotell i andra landskap

'; $q="SELECT * FROM page WHERE id>$pId+1 AND city not like 'Sweden' AND city not like '' limit 3"; $q=mysqli_query($GLOBALS["___mysqli_ston"], $q); if(mysqli_num_rows($q)<2){ $q="SELECT * FROM `page` WHERE id>0 AND city not like 'Sweden' AND city not like '' limit 3"; $q=mysqli_query($GLOBALS["___mysqli_ston"], $q); } while($r=mysqli_fetch_object($q)){ $data.= ''; } return $data; } function shorten_string($string, $wordsreturned){ /* Returns the first $wordsreturned out of $string. If string contains fewer words than $wordsreturned, the entire string is returned. */ $retval = $string; // Just in case of a problem $array = explode(" ", $string); if (count($array)<=$wordsreturned) /* Already short enough, return the whole thing */ { $retval = $string; } else /* Need to chop of some words */ { array_splice($array, $wordsreturned); $retval = implode(" ", $array)." ..."; } return $retval; } function MakeComment(){ global $feedback; #require_once('recaptchalib.php'); $publickey = "6Lch9wsAAAAAAEc9ItGYMRzXqQGs5bHJTpSt5ufQ"; // you got this from the signup page $data='

Ge Feedback

'.recaptcha_get_html($publickey).'
'; return $data; } function GetHotelList($pId, $order="nrRoom desc limit 10", $where=""){ $data=""; $q=mysqli_query($GLOBALS["___mysqli_ston"], "SELECT * from hotell where pId=$pId $where order by $order "); $cities=array(); while($r=mysqli_fetch_object($q)){ $data.='
'.$r->url.'

'.$r->name.'

'.shorten_string($r->description, 40).'...

 
'; } return $data; } function SearchBox(){ global $pId; global $dInfo; $data=""; $data.=' '; return $data; } function GetQoutes($pId, $sql="order by date desc limit 2"){ $q="SELECT * from feedback where pId=$pId $sql"; $q=mysqli_query($GLOBALS["___mysqli_ston"], $q); $data="Ingen feedback än..."; if(mysqli_num_rows($q)>0){ $data=""; while($r=mysqli_fetch_object($q)){ $month = date("M", strtotime($r->date)); $month=translateDateSE($month); $day = date("d", strtotime($r->date)); $day=translateDateSE($day); $data.='
'.$day.'
'.strtoupper($month).'

"'.$r->message.'"

'; } } return $data; } function GetCommentsHotel($hId){ $q="SELECT * from kommentar where hId=$hId order by date asc"; $q=mysqli_query($GLOBALS["___mysqli_ston"], $q); $data="Ingen feedback än..."; if(mysqli_num_rows($q)>0){ $data=""; while($r=mysqli_fetch_object($q)){ $month = date("M", strtotime($r->date)); $month=translateDateSE($month); $day = date("d", strtotime($r->date)); $day=translateDateSE($day); $data.='
'.$day.'
'.strtoupper($month).'

"'.$r->headline.'"

'.$r->text.'

'; } } return $data; } function GetContact(){ #require_once('recaptchalib.php'); $publickey = "6Lch9wsAAAAAAEc9ItGYMRzXqQGs5bHJTpSt5ufQ"; // you got this from the signup page $name= ""; $email= ""; $subject= ""; $mes= ""; if(!empty($_POST)){ $name= ((isset($GLOBALS["___mysqli_ston"]) && is_object($GLOBALS["___mysqli_ston"])) ? mysqli_real_escape_string($GLOBALS["___mysqli_ston"], $_POST['name']) : ((trigger_error("[MySQLConverterToo] Fix the mysql_escape_string() call! This code does not work.", E_USER_ERROR)) ? "" : "")); $email= ((isset($GLOBALS["___mysqli_ston"]) && is_object($GLOBALS["___mysqli_ston"])) ? mysqli_real_escape_string($GLOBALS["___mysqli_ston"], $_POST['email']) : ((trigger_error("[MySQLConverterToo] Fix the mysql_escape_string() call! This code does not work.", E_USER_ERROR)) ? "" : "")); $subject= ((isset($GLOBALS["___mysqli_ston"]) && is_object($GLOBALS["___mysqli_ston"])) ? mysqli_real_escape_string($GLOBALS["___mysqli_ston"], $_POST['subject']) : ((trigger_error("[MySQLConverterToo] Fix the mysql_escape_string() call! This code does not work.", E_USER_ERROR)) ? "" : "")); $mes= ((isset($GLOBALS["___mysqli_ston"]) && is_object($GLOBALS["___mysqli_ston"])) ? mysqli_real_escape_string($GLOBALS["___mysqli_ston"], $_POST['mes']) : ((trigger_error("[MySQLConverterToo] Fix the mysql_escape_string() call! This code does not work.", E_USER_ERROR)) ? "" : "")); } $data='
Namn
Email
Ämne
Meddelande
  Skicka
'; return $data; } function translateDateSE($string) { $date = array( "/January/", "/February/", "/March/", "/May/", "/June/", "/July/", "/August/", "/October/", "/May/", "/Oct/", "/Monday/", "/Tuesday/", "/Wednesday/", "/Thursday/", "/Friday/", "/Saturday/", "/Sunday/", "/Mon/", "/Tue/", "/Wed/", "/Thu/", "/Fri/", "/Sat/", "/Sun/" ); $dateSE = array( "Januari", "Februari", "Mars", "Maj", "Juni", "Juli", "Augusti", "Oktober", "Maj", "Okt", "Måndag", "Tisdag", "Onsdag", "Torsdag", "Fredag", "Lördag", "Söndag", "Mån", "Tis", "Ons", "Tor", "Fre", "Lör", "Sön" ); return preg_replace($date, $dateSE, $string); } function GetHotel($hId){ global $dInfo; $q=mysqli_query($GLOBALS["___mysqli_ston"], "SELECT * from hotell where id=$hId limit 1"); $data="Hotellet finns ej! Sök annat hotell, se nedan!"; if(mysqli_num_rows($q)>0) { $getT=mysqli_fetch_object($q); $id=$getT->id; $name=$getT->name; $star=$getT->star; $url=$getT->url; $street=$getT->street; $zip=$getT->zip; $city=$getT->city; $phone=$getT->tel; $fax=$getT->fax; $email=$getT->email; $description=$getT->description; $city2=str_replace("ö", "%C3%B6", $city); $city2=str_replace("Ö", "%C3%B6", $city); $data='

'.$name.'

Ett hotell i '.$city.',

Kontroller tillgänglighet: Boka nu!

'.$description.'

Kontakta '.$name.', ett hotell i '.$city.'

Adress: '. $street.'
'. $zip.' '.$city.'
Tele: '. $phone.'
Fax; '. $fax.'
Email: '. $email.'
Hemsida: '. $url.'
'; $getH=mysqli_query($GLOBALS["___mysqli_ston"], "SELECT * from hotell where id=".$id); $r=mysqli_fetch_object($getH); global $hName; $hName=$r->name; $data.= '

Kort fakta om '.$r->name.'

Ägare: '.$r->owner.'
Fax: '.$r->fax.'
Rökfritt: '.$r->smoke.'
Hiss: '.$r->elevator.'
Kabel TV: '.$r->cabel.'
Internet: '.$r->internet.'
Frukost: '.$r->breakfast.'
Närmaste Flygplats: '.$r->airport.'
Avstånd till flygplats: '.$r->disAirport.'
'; } return $data; } ?> <br /> <b>Notice</b>: Undefined variable: title in <b>/www/hotell-dalarna.se/public_html/index.php</b> on line <b>1868</b><br />
 
© 2022
Notice: Undefined variable: dInfo in /www/hotell-dalarna.se/public_html/index.php on line 2152

Notice: Trying to access array offset on value of type null in /www/hotell-dalarna.se/public_html/index.php on line 2152