As I had to format my computer, and reinstall Windows I had to reinstall xampp and establish the Habbo Retro server again from the backup.
I have set up the new apache server (phpmyadmin as well) and mysql database server, and set a password on both, which is the same in the configs of the server.
The website and databse is working fine, but I am struggling to connect to the client.
When I try to enter the game, it opens the client window, refer to the client, but refers to this instead:
I see that the client tries to refer to a "noflash.php" file, which doesnt exist. I can however edit which page it should refer to if there is no flash installed in the client.php file...
brain-config.php:
client.php:
config.ini (Emulator config, PlusEMU):
.htaccess:
web.config:
I have set up the new apache server (phpmyadmin as well) and mysql database server, and set a password on both, which is the same in the configs of the server.
The website and databse is working fine, but I am struggling to connect to the client.
When I try to enter the game, it opens the client window, refer to the client, but refers to this instead:
You must be registered for see images attach
I see that the client tries to refer to a "noflash.php" file, which doesnt exist. I can however edit which page it should refer to if there is no flash installed in the client.php file...
You must be registered for see images attach
brain-config.php:
Code:
<?php
if(!defined('BRAIN_CMS'))
{
die('Sorry but you cannot access this file!');
}
/* Database Setting */
$db['host'] = '127.0.0.1'; //Mysql's Host
$db['port'] = '3306'; //Mysql's port
$db['user'] = "root"; //Mysql's user
$db['pass'] = 'mysql484'; //Mysql's password
$db['db'] = "habski"; //Mysql's database
/* Emu Settings */
$config['hotelEmu'] = 'plusemu'; // plusemu // arcturus
/* Client Setting */
$hotel['emuHost'] = "habski.me"; //IP of VPS//IP of Proxy
$hotel['emuPort'] = "30000"; //Port of VPS//Port of Proxy
$hotel['staffCheckClient'] = false; //Enable the staff pin in the client (true) or disable it (false)
$hotel['staffCheckClientMinimumRank'] = 3; //Minium staff rank to get the staff pin in the client
$hotel['homeRoom'] = '29'; //Set the start room when you get in the hotel
$hotel['external_Variables'] = "http://habski.me/swfs/gamedata/external_variables.txt";
$hotel['external_Variables_Override'] = "http://habski.me/swfs/gamedata/override/external_override_variables.txt";
$hotel['external_Texts'] = "http://habski.me/swfs/gamedata/external_flash_texts.txt";
$hotel['external_Texts_Override'] = "http://habski.me/swfs/gamedata/override/external_flash_override_texts.txt";
$hotel['productdata'] = "http://habski.me/swfs/gamedata/productdata.txt";
$hotel['furnidata'] = "http://habski.me/swfs/gamedata/furnidata.xml";
$hotel['figuremap'] = "http://habski.me/swfs/gamedata/figuremap.xml";
$hotel['figuredata'] = "http://habski.me/swfs/gamedata/figuredata.xml";
$hotel['swfFolder'] = "http://habski.me/swfs/gordon/PRODUCTION-201601012205-226667486";
$hotel['swfFolderSwf'] = "http://habski.me/swfs/gordon/PRODUCTION-201601012205-226667486/Habbo.swf";
/* Website Setting */
$config['hotelUrl'] = "http://habski.me";//Address of your hotel. Does not end with a "/"
$config['skin'] = "brain"; //Skin/template of your website
$config['lang'] = "no"; //Language of your website /en/nl/es/no
$config['hotelName'] = "Habski"; //Name of your hotel
$config['favicon'] = "http://habski.me/system/theme/brain/style/images/favicon/favicon.ico";
$config['staffCheckHk'] = false; //Enable the staff pin in the housekeeping (true) or disable it (false)
$config['staffCheckHkMinimumRank'] = 3; //Minium staff rank to get the staff pin in the housekeeping
$config['maintenance'] = false; //Enable the maintenance of your website (true) or disable it (false)
$config['maintenancekMinimumRankLogin'] = 3; //Minium staff rank to login when the website is in maintenance
$config['groupBadgeURL'] = "http://habski.me/swfs/habbo-imaging/badge.php?badge=";
$config['badgeURL'] = "http://habski.me/swfs/c_images/album1584/";
$config['hash'] = "2";
/* Facebook Login Settings
You need a Facebook app for this to work go to
https://developers.facebook.com/apps/ */
$config['facebookLogin'] = false; //Enable the Facebook login (true) or disable it (false)
$config['facebookAPPID'] = '1629989417308318';
$config['facebookAPPSecret'] = '6d7697e79dc4fa81afeb564e5bc60153';
/* Email Settings */
$email['mailServerHost'] = 'smtp.gmail.com';
$email['mailServerPort'] = 587;
$email['SMTPSecure'] = 'TLS';
$email['mailUsername'] = '[email protected]';
$email['mailPassword'] = '*****';
$email['mailLogo'] = 'http://habski.me/templates/brain/style/images/logo/logo.png';
$email['mailTemplate'] = '/system/app/plugins/PHPmailer/temp/resetpassword.html';
/* Social settings */
$config['facebook'] = 'https://www.facebook.com/HabskiOfficial/';
$config['facebookEnable'] = true;
$config['twitter'] = 'https://twitter.com/HabskiHotel';
$config['twitterEnable'] = false;
/* Register Setting */
$config['startMotto'] = "Jeg er ny på Habski Hotel!"; //Register start motto
$config['credits'] = "50000";
$config['duckets'] = "25000";
$config['diamonds'] = "10";
$config['diamondsRef'] = "10";
$config['registerEnable'] = true;
/* Google recaptcha Site Key
Go to this website to create a recaptcha Site Key: https://www.google.com/recaptcha/intro/index.html */
$config['recaptchaSiteKey'] = "6LezQhEUAAAAAGeR0O7UlDDnzgb9r_hy6Rbu1g91";
$config['recaptchaSiteKeyEnable'] = true;
/* Buy VIP Settings */
$config['vipCost'] = "25";
$config['vipRankToGet'] = "3";
$config['vipBadge'] = "vip";
?>
client.php:
Code:
<?php
staffCheck();
Game::sso();
Game::homeRoom();
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title><?= $config['hotelName'] ?> | Game</title>
<script src="/templates/brain/client/js/jquery-latest.js" type="text/javascript"></script>
<script src="/templates/brain/client/js/jquery-ui.js" type="text/javascript"></script>
<script src="/templates/brain/client/js/flashclient.js"></script>
<script src="/templates/brain/client/js/flash_detect_min.js"></script>
<script src="/templates/brain/client/js/client.js" type="text/javascript"></script>
</head>
<body>
<center>
<div id="client-ui">
<div id="client" style='position:absolute; left:0; right:0; top:0; bottom:0; overflow:hidden; height:100%; width:100%;'></div>
</div>
<script>
var Client = new SWFObject("<?= $hotel['swfFolderSwf'] ?>", "client", "100%", "100%", "10.0.0");
Client.addVariable("client.allow.cross.domain", "0");
Client.addVariable("client.notify.cross.domain", "1");
Client.addVariable("connection.info.host", "<?= $hotel['emuHost'] ?>");
Client.addVariable("connection.info.port", "<?= $hotel['emuPort'] ?>");
Client.addVariable("site.url", "<?= $config['hotelUrl'] ?>");
Client.addVariable("url.prefix", "<?= $config['hotelUrl'] ?>");
Client.addVariable("client.reload.url", "<?= $config['hotelUrl'] ?>/me");
Client.addVariable("client.fatal.error.url", "<?= $config['hotelUrl'] ?>/me");
Client.addVariable("client.connection.failed.url", "<?= $config['hotelUrl'] ?>/me");
Client.addVariable("external.override.texts.txt", "<?= $hotel['external_Texts_Override'] ?>");
Client.addVariable("external.override.variables.txt", "<?= $hotel['external_Variables_Override'] ?>");
Client.addVariable("external.variables.txt", "<?= $hotel['external_Variables'] ?>");
Client.addVariable("external.texts.txt", "<?= $hotel['external_Texts'] ?>");
Client.addVariable("external.figurepartlist.txt", "<?= $hotel['figuredata'] ?>");
Client.addVariable("flash.dynamic.avatar.download.configuration", "<?= $hotel['figuremap'] ?>");
Client.addVariable("productdata.load.url", "<?= $hotel['productdata'] ?>");
Client.addVariable("furnidata.load.url", "<?= $hotel['furnidata'] ?>");
Client.addVariable("use.sso.ticket", "1");
Client.addVariable("sso.ticket", "<?= User::userData('auth_ticket') ?>");
Client.addVariable("processlog.enabled", "0");
Client.addVariable("client.starting", "<?= $config['hotelName'] ?> Hotel lastes inn...");
Client.addVariable("flash.client.url", "<?= $hotel['swfFolder'] ?>/");
Client.addVariable("flash.client.origin", "popup");
Client.addVariable("nux.lobbies.enabled", "true");
Client.addVariable("country_code", "NL");
Client.addParam('base', '<?= $hotel['swfFolder'] ?>/');
Client.addParam('allowScriptAccess', 'always');
Client.addParam('menu', false);
Client.addParam('wmode', "opaque");
Client.write('client');
FlashExternalInterface.signoutUrl = "<?= $config['hotelUrl'] ?>/logout";
</script>
</center>
</body>
</html>
<script>
//no flash?!
if(!FlashDetect.installed){
window.location.href = "<?= $config['hotelUrl'] ?>/noflash.php";
}
</script>
config.ini (Emulator config, PlusEMU):
Code:
## uberEmulator System Configuration File
## Must be edited for the server to work
## MySQL Configuration
db.hostname=127.0.0.1
db.port=3306
db.username=root
db.password=mysql484
db.name=habski
## MySQL pooling setup (controls amount of connections)
db.pool.minsize=10
db.pool.maxsize=250
## Game TCP/IP Configuration
game.tcp.bindip=127.0.0.1
game.tcp.port=30000
game.tcp.conlimit=100000
game.tcp.conperip=2
game.tcp.enablenagles=true
## MUS TCP/IP Configuration
mus.tcp.bindip=127.0.0.1
mus.tcp.port=30001
mus.tcp.allowedaddr=localhost;127.0.0.1
## Client configuration
client.ping.enabled=1
client.ping.interval=20000
client.maxrequests=300
.htaccess:
Code:
RewriteEngine On
RewriteRule ^habbo-imaging/badges/([^/]+) habbo-imaging/badge.php?badge=$1
RewriteRule ^habbo-imaging/head/([^/]+) habbo-imaging/head.php?figure=$1
RewriteRule ^([a-zA-Z0-9_-]+)(|/)$ index.php?url=$1
RewriteRule ^news/([a-zA-Z0-9_-]+)(|/)$ index.php?url=news&id=$1
RewriteRule ^home/([a-zA-Z0-9_-]+)(|/)$ index.php?url=home&user=$1
RewriteRule ^register/([a-zA-Z0-9_-]+)(|/)$ index.php?url=register&userref=$1
RewriteRule ^newpassword/([a-zA-Z0-9_-]+)(|/)$ index.php?url=newpassword&key=$1
web.config:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Imported Rule Brain">
<match url="^([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
<action type="Rewrite" url="index.php?url={R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule HK">
<match url="adminpan/([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
<action type="Rewrite" url="adminpan/index.php?url={R:1}" appendQueryString="false" />
</rule>
<rule name="Rule 112">
<match url="^swf/habbo-imaging/badge/([^/]+)" ignoreCase="false" />
<action type="Rewrite" url="/swf/habbo-imaging/badge.php?badge={R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 1" stopProcessing="true">
<match url="news/([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
<action type="Rewrite" url="/index.php?url=news&id={R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule 131234" stopProcessing="true">
<match url="home/([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
<action type="Rewrite" url="/index.php?url=home&user={R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule HK Users" stopProcessing="true">
<match url="adminpan/gebruiker/([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
<action type="Rewrite" url="/adminpan/index.php?url=gebruiker&user={R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule HK Sollielook" stopProcessing="true">
<match url="adminpan/sollielook/([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
<action type="Rewrite" url="/adminpan/index.php?url=sollielook&look={R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule HK DeleteNews" stopProcessing="true">
<match url="adminpan/news/delete/([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
<action type="Rewrite" url="/adminpan/index.php?url=news&delete={R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule HK DeleteSollie" stopProcessing="true">
<match url="adminpan/sollielook/delete/([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
<action type="Rewrite" url="/adminpan/index.php?url=sollielook&delete={R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule HK EditNews" stopProcessing="true">
<match url="adminpan/news/edit/([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
<action type="Rewrite" url="/adminpan/index.php?url=editnews&news={R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule HK DeleteBan" stopProcessing="true">
<match url="adminpan/bans/delete/([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
<action type="Rewrite" url="/adminpan/index.php?url=bans&delete={R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule HK GiveUODW" stopProcessing="true">
<match url="adminpan/giveuseroftheweek/([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
<action type="Rewrite" url="/adminpan/index.php?url=giveuseroftheweek&user={R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule User Ref" stopProcessing="true">
<match url="register/([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
<action type="Rewrite" url="/index.php?url=register&userref={R:1}" appendQueryString="false" />
</rule>
<rule name="Imported Rule User Pas" stopProcessing="true">
<match url="newpassword/([a-zA-Z0-9_-]+)(|/)$" ignoreCase="false" />
<action type="Rewrite" url="/index.php?url=newpassword&key={R:1}" appendQueryString="false" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>