Client finished and 100% working + easy to set-up in config file =D
PHP Code:
<?php
define('MUSTLOGGEDIN', true);
require './global.php';
$tpl = new tpl('Client');
$tpl->SetParam('host_ip', Core::$config['client']['ip']);
$tpl->SetParam('host_port', Core::$config['client']['port']);
$tpl->SetParam('external_variables', Core::$config['client']['external_variables']);
$tpl->SetParam('external_texts', Core::$config['client']['external_texts']);
$tpl->SetParam('external_override_texts', Core::$config['client']['external_override_texts']);
$tpl->SetParam('external_override_variables', Core::$config['client']['external_override_variables']);
$tpl->SetParam('productdata', Core::$config['client']['productdata']);
$tpl->SetParam('furnidata', Core::$config['client']['furnidata']);
$tpl->SetParam('flash_base', Core::$config['client']['flash_base']);
$tpl->SetParam('ssoticket', User::SSOTicket());
$tpl->SetParam('user_hash', User::GetUserData('user_hash'));
$tpl->AddFile('page-client');
echo $tpl;
?>
Predict: YOU SEE uber rip off...
I: The idee to use it is good, So why not..
Externals (always up-to-date)
PHP Code:
<?php
define('MUSTLOGGEDIN', true);
require './global.php';
$type = $_GET['type'];
$build = 0;
$lang = 'us'; //Hotel language nl/us etc
switch ($type)
{
case 'override/external_override_variables': // Change it to your own urls (URL is already defined at the top)
echo "image.library.url=".Core::$config['client']['flash_base']."/c_images/\n";
echo "private.image.library.url=".Core::$config['client']['flash_base']."/c_images/\n";
echo "image.library.catalogue.url=".Core::$config['client']['flash_base']."/c_images/catalogue/\n";
echo "flash.dynamic.download.url=".Core::$config['client']['flash_base']."/dcr/hof_furni/\n";
echo "dynamic.download.url=".Core::$config['client']['flash_base']."/dcr/hof_furni/\n";
echo "client.hotel_view.image=hotel_view_images_hq/beta_hotelview.png\n";
echo "external.figurepartlist.txt=".URL."/external.php?type=figuredata\n";
echo "flash.dynamic.download.name.template=%typeid%.swf\n";
echo "furnidata.load.url=".URL."/external.php?type=furnidata\n";
break;
case 'override/external_override_flash_texts': // Flash texts to override
break;
case 'figuredata': // Don't edit
echo file_get_contents('http://hotel-'.$lang.'.habbo.com/gamedata/'.$type);
break;
default: //Don't edit
echo file_get_contents('http://hotel-'.$lang.'.habbo.com/gamedata/'.$type.'/'.$build);
break;
}
?>