set_title('Interhike Widgets');
$translations = new LG_Translations_Database($page, $db, 'translations_view', 'id', 'groupid', 'languagecode', 'languagelocal', 'countrycode', 'countrytranslationid', 'text', 'EN', 'GB');
/*$page->set_head('
');*/
$page->print_header();
?>
Interhike Widgets
'uin',
'hostels' => 'propertyNumber');
$NAME = array('camping' => 'name',
'hostels' => 'propertyName');
$WIDGETS = array('camping' => 'CampingWidget',
'hostels' => 'HostelWidget');
$handle = $db->prepare('SELECT * FROM '.$_GET['type'].' WHERE '.$UIN[$_GET['type']].' = '.$_GET['uin'])->execute();
if ($pointer = mysqli_fetch_array($handle)) {
if ($pointer['latitude'] && $pointer['longitude']) {
if ('camping' == $_GET['type']) {
$link = 'https://www.interhike.com/'.textToUrlPath($pointer['country']).'/'.textToUrlPath($pointer['province']).'/'.textToUrlPath($pointer['town']).'/c'.$_GET['uin'].'-'.textToUrlPath($pointer[$NAME[$_GET['type']]]).'.html';
} else if ('hostels' == $_GET['type']) {
$link = 'https://www.interhike.com/'.textToUrlPath($pointer['country']).'/'.textToUrlPath($pointer['province']).'/'.textToUrlPath($pointer['town']).'/h'.$_GET['uin'].'-'.$pointer[affiliate].'-'.textToUrlPath($pointer[$NAME[$_GET['type']]]).'.html';
}
?>
Please select from one of the following widget styles. Simply choose the one you want and insert the corresponding HTML code anywhere onto your website.
If you have any problems or if it displays funny on your website, please contact us for help.
Sorry, not enough data has been supplied by the owner of this property. If you are the owner, please update your full details here.';
}
} else {
echo 'Could not retrieve the necessary data from the database.
';
}
} else {
echo 'Invalid input.
';
}
$page->print_footer();
?>