include('configuration/cms.php');
function readini($file,$title,$item) {
$source = file($file);
$t_match = "/^\[".$title."\]/i";
$s_title = "no";
foreach ($source as $temp) {
if (preg_match("/^\[".$title."\]/i",$temp)) {
$s_title = "yes";
} elseif (preg_match("/^\[.+\]/",$temp) && $s_title = "yes") {
$s_title = "no";
} elseif (preg_match("/^".$item."=/i",$temp) && $s_title == "yes") {
$result = explode("=",$temp);
return $result[1];
}
}
}
function writeini($file,$title,$item,$data) {
if (file_exists($file)) {
$t_match=readini("$file","$title","$item");
$t_contents=file_get_contents($file);
$t_result=str_replace("$item=$t_match", "$item=$data
", "$t_contents");
{
$filename = "$file";
}
$somecontent = "$t_result";
if (!$handle = fopen($filename, 'w')) {
exit;
}
if (fwrite($handle, $somecontent) === FALSE) {
exit;
}
fclose($handle);
}
}
?>
$session_tags=str_replace("<", "", $session_tags);
?>
echo"$hotel_name"; ?> ~ Client
Hotel is a virtual world where you can meet and make friends." />
, echo"$hotel_name"; ?> Hotel,virtual world,play games,enter competitions,make friends" />
" />
echo"$db_online"; ?> members online now
$rand1=mt_rand(100000,999999) ;
$rand2=mt_rand(10000,99999) ;
$rand3=mt_rand(10000,99999) ;
$rand4=mt_rand(10000,99999) ;
$rand5=mt_rand(10000,99999) ;
$rand6=mt_rand(0,9) ;
$session_ticket="HABLOG-$rand1$rand2-$rand3$rand4-$rand5-EN-fe$rand6";
$client_service=file_get_contents("$hotel_path/INCLUDES/sessions.ini");
$client_service="$client_service
[$session_ticket]
user=$session_name";
{
$filename = "$hotel_path/INCLUDES/sessions.ini";
}
$somecontent = "$client_service";
if (!$handle = fopen($filename, 'w')) {
exit;
}
if (fwrite($handle, $somecontent) === FALSE) {
echo "";
exit;
}
fclose($handle);
$client_service=file_get_contents("$hotel_path/INCLUDES/app_keys.ini");
$client_service="$client_service
[$app_key]
user=$session_name";
{
$filename = "$hotel_path/INCLUDES/app_keys.ini";
}
$somecontent = "$client_service";
if (!$handle = fopen($filename, 'w')) {
exit;
}
if (fwrite($handle, $somecontent) === FALSE) {
echo "";
exit;
}
fclose($handle);
?>
\n");
/;external.variables.txt=http://www.habbohotel.co.uk/gamedata/external?id=external_variables&ticket=1&hash= echo strtoupper("$session_agent"); ?>">
;processlog.url=http:// echo "$hotel_host"; ?>/">
;connection.info.port= echo "$hotel_port"; ?>">
/;url.prefix=http:// echo "$hotel_host"; ?>/">
;connection.mus.port= echo "$hotel_musport"; ?>">
/gamedata/external?id=external_texts&ticket=1&hash= echo "$session_ticket"; ?>;use.sso.ticket=1">
">
/;client.fatal.error.url=http:// echo "$hotel_host"; ?>/">
/;external.variables.txt=http://www.habbohotel.co.uk/gamedata/external?id=external_variables&ticket=1&hash= echo strtoupper("$session_agent"); ?>"
sw8="sso.ticket= echo "$session_ticket"; ?>;processlog.url=http:// echo "$hotel_host"; ?>/"
sw2="connection.info.host= echo "$hotel_host"; ?>;connection.info.port= echo "$hotel_port"; ?>"
sw4="site.url=http:// echo "$hotel_host"; ?>/;url.prefix=http:// echo "$hotel_host"; ?>/"
sw3="connection.mus.host= echo "$hotel_host"; ?>;connection.mus.port= echo "$hotel_musport"; ?>"
sw1="client.allow.cross.domain=1;client.notify.cross.domain=0"
sw7="external.texts.txt=http://www.habbohotel. echo"$lang"; ?>/gamedata/external?id=external_texts&ticket=1&hash= echo "$session_ticket"; ?>;use.sso.ticket=1"
sw9="account_id= echo "$session_id"; ?>"
sw5="client.reload.url=http:// echo "$hotel_host"; ?>/;client.fatal.error.url=http:// echo "$hotel_host"; ?>/"
playerVersion="11" >
You need the Shockwave plugin (free and safe to download) to enter echo"$hotel_name"; ?> Hotel. Download it here