// Config file
/*
Database: u79395p71245_site
Host: localhost
Username: u79395p71245_site
Password: uIFD9KYAl7
*/
$MSC = mysqli_connect("localhost", "u79395p71245_site", "uIFD9KYAl7", "u79395p71245_site");
mysqli_set_charset($MSC, "utf8");
?>
// Talen
if($taal == 'nl')
{
// Alles voor Nederlands
$zoetwater = "Zoetwater"; # Zoetwater label
$zoutwater = "Zoutwater"; #Zoutwater label
$overons = "Over ons"; #Overons label
$contactinfo = "Bel ons op +31 (0) 320 858 091
Of mail naar info@flysupplytravel.com"; #Contactinformatie in header
}
elseif($taal == "eng")
{
$zoetwater = "Freshwater";
$zoutwater = "Saltwater";
$overons = "About us";
$contactinfo = "Contact us by phone +31 (0) 320 858 091
Or mail to info@flysupplytravel.com";
}
function DBText($dblabel)
{
$taal = (!$_COOKIE['FSTLanguage']) ? "nl" : $_COOKIE['FSTLanguage'];
include"config.php"; # DB connectie
# Query om text uit database te halen. Gebruik opgegeven label, en de taalkeuze
$selectlanguageq = mysqli_query($MSC, "
SELECT
*
FROM sitetext
WHERE label = '$dblabel'
AND
country = '$taal'
");
while($siteText = mysqli_fetch_object($selectlanguageq))
{
echo nl2br($siteText->text);
}
}
?>