<? include("community/config.php"); ?>
<?
if ($database == "Debbo") {
echo "Please change the Config in the Community folder of your web before you access the Site!";
exit;
}
if ($name == "Hablog") {
echo "Your Hotel Name cant be Hablog, the Name is found by Orakel (The second Hablog Coder)!";
exit;
}
//Create Files (/language.txt)
{
$mysession = getenv( REMOTE_ADDR );
$filename = "$database/logged/lang/$mysession.txt";
}
// hard code the variable from flash
$somecontent = "EN";
// If the file doesn't exist, attempt to create it
// and open it for writing
// anything already writen will be replaced
if (!$handle = fopen($filename, 'w')) {
exit;
}
// Write $somecontent to the opened file.
if (fwrite($handle, $somecontent) === FALSE) {
exit;
}
// close the file
fclose($handle);
//Create Files (/language.txt)
?>
echo'<script language ="JavaScript">
<!--
window.location.replace('<?
$mysession = getenv( REMOTE_ADDR );
$fileas = "$database/logged/lang/$mysession.txt";
if (file_exists($fileas)) {
$fal = "community/";
}
else {
$fal = "community/";
}
?>');
// -->
</script>';
<p class="btn">Se non ti porta alla pagina <a href="<? echo "$fal"; ?>" id="manual_redirect_link">Clicca Qui</a></p>