// CONFIG
$hotel_name="%NAME%";
$hotel_path="%SERVER PATH%";
$hotel_notice="Hablog Resource";
$hotel_version="r25_20080826_0403_7498_dff9e744917eafb686617c2e12ba557c";
//$hotel_version="r25_20080818_0423_7293_dff9e744917eafb686617c2e12ba557c";
//$hotel_version="r24_20080709_0414_6883_6d544ddc63999f169d679cc627b4411a";
// WEB ENCRYPTION
$encryption_max="1337";
$encryption_preset1="19";
$encryption_preset2="12";
$encryption_preset3="57";
$encryption_preset4="27";
$encryption_preset5="17";
$encryption_preset6="912";
$encryption_preset7="301";
$encryption_preset8="120";
$encryption_preset9="1307";
// SERVER
$hotel_host=sprintf('%s', $_SERVER['HTTP_HOST']);
$hotel_port="147";
$hotel_musport="148";
// CAPTCHA
$user_host=getenv( REMOTE_ADDR );
list($hotel_captcha_1, $hotel_captcha_2, $hotel_captcha_3, $hotel_captcha_4) = split('[..-]', $user_host);
$hotel_captcha_1=strtoupper(md5("$hotel_captcha_1"));
$hotel_captcha_2=strtoupper(md5("$hotel_captcha_2"));
$hotel_captcha_3=strtoupper(md5("$hotel_captcha_3"));
$hotel_captcha_4=strtoupper(md5("$hotel_captcha_4"));
$hotel_captcha_5=strtoupper(md5("$hotel_version"));
$hotel_captcha_6=strtoupper(md5("$hotel_notice"));
$hotel_captcha_7=strtoupper(md5("$hotel_path"));
$hotel_captcha_8=strtoupper(md5("$hotel_name"));
$hotel_captcha_9=strtoupper(md5("$hotel_host"));
$hotel_captcha_10=strtoupper(md5("$hotel_port"));
$hotel_captcha_11=strtoupper(md5("$hotel_musport"));
// DATABASE
$db_accounts=@file_get_contents("$hotel_path/DB/accounts/count.txt");
$db_online=@file_get_contents("$hotel_path/DB/accounts/online.txt");
$db_whosonline=@file_get_contents("$hotel_path/DB/accounts/whosonline.txt");
if($db_whosonline == ""){
$db_whosonline="Sorry, there is currently nobody online.";
}
// CMS
$cmd_path = $_SERVER["SCRIPT_FILENAME"];
$cmd_file = $_SERVER["PHP_SELF"];
$cmd_htdocs = str_replace("$cmd_file", "", $cmd_path);
// SESSION
include("$cmd_htdocs/session.php");
// CHECK
// $http_host=sprintf('%s', $_SERVER['HTTP_HOST']);
// $http_check=str_replace("hablogmotel.no-ip.org", "", $http_host);
// $http_agent=getenv( REMOTE_ADDR );
// if($http_host == $http_check){
// echo'/>';
// }
?>