• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

Latest Flash Client, PHP Retro

Status
Not open for further replies.
Junior Spellweaver
Joined
May 30, 2007
Messages
137
Reaction score
102
With this client Flash should work ^^, Just change your port ;>
Code:
<?php
/*================================================================+\
|| # PHPRetro - An extendable virtual hotel site and management
|+==================================================================
|| # Copyright (C) 2009 PHPRetro. All rights reserved.
|| # http://www.horro.co.uk
|| # Parts Copyright (C) 2009 Meth0d. All rights reserved.
|| # http://www.meth0d.org
|| # All images, scripts, and layouts
|| # Copyright (C) 2009 Sulake Ltd. All rights reserved.
|+==================================================================
|| # PHPRetro is provided "as is" and comes without
|| # warrenty of any kind. PHPRetro is free software!
|| # License: GNU Public License 3.0
|| # http://opensource.org/licenses/gpl-license.php
\+================================================================*/

require_once('./includes/core.php');
require_once('./includes/session.php');
$lang->addLocale("client.hotel");

if(isset($_SESSION['reauthenticate']) && $_SESSION['reauthenticate'] == "true"){
	$_SESSION['page'] = $_SERVER["REQUEST_URI"];
	header("Location: ".PATH."/account/reauthenticate"); exit;
}else{
	$user = new HoloUser($user->name,$user->password,true);
	$_SESSION['user'] = $user;
}
	require_once('./templates/flashclient_header.php');
$forwardid = $input->HoloText($_GET['forwardId']);
$roomid = $input->HoloText($_GET['roomId']);
$shortcut = $_GET['shortcut'];
switch($shortcut){
	case "roomomatic": $shortcut = "1"; break;
	default: unset($_GET['shortcut']); break;
}
?>
<noscript>
    <meta http-equiv="refresh" content="0;url=/client/nojs" />

</noscript>
<link rel="stylesheet" href="http://images.habbo.com/habboweb/47_74f18727eeee7d2cd329f9c7c9078061/12/web-gallery/v2/styles/habboclient.css" type="text/css" />
<link rel="stylesheet" href="http://images.habbo.com/habboweb/47_74f18727eeee7d2cd329f9c7c9078061/12/web-gallery/v2/styles/habboflashclient.css" type="text/css" />
<script src="http://images.habbo.com/habboweb/47_74f18727eeee7d2cd329f9c7c9078061/12/web-gallery/static/js/habboflashclient.js" type="text/javascript"></script>
<script type="text/javascript"> 
    FlashExternalInterface.loginLogEnabled = true;
    
    FlashExternalInterface.logLoginStep("web.view.start");
    
    if (top == self) {
        FlashHabboClient.cacheCheck();
    }
    var flashvars = {
            "client.allow.cross.domain" : "0", 
            "client.notify.cross.domain" : "1", 
            "connection.info.host" : "<?php echo $settings->find("hotel_ip"); ?>", 
            "connection.info.port" : "90", 
            "site.url" : "<?php echo PATH; ?>", 
            "url.prefix" : "<?php echo PATH; ?>", 
            "client.reload.url" : "<?php echo PATH; ?>/account/reauthenticate?page=/flash_client", 
            "client.fatal.error.url" : "<?php echo PATH; ?>/flash_client_error", 
            "client.connection.failed.url" : "<?php echo PATH; ?>/client_connection_failed", 
            "external.hash" : "0b9314fa90995f80f99f5e2b6fae96d49d396675", 
            "external.variables.txt" : "http://hotel-uk.habbo.com/gamedata/external?id=external_variables", 
            "external.texts.txt" : "http://hotel-uk.habbo.com/gamedata/external?id=external_flash_texts", 
            "use.sso.ticket" : "1", 
            "sso.ticket" : "<?php echo $user->user("ticket_sso"); ?>", 
            "processlog.enabled" : "1", 
            "account_id" : "<?php echo $user->user("id"); ?>", 
            "client.starting" : "<?php echo SHORTNAME; ?> is starting up...", 
            "flash.client.url" : "http://images.habbo.com/dcr/r47_none_74f18727eeee7d2cd329f9c7c9078061/", 
            "user.hash" : "27872364a5bfbf87c3cd0cc7400f70ab06ae88ec", 
            "has.identity" : "1", 
            "flash.client.origin" : "popup" 
    };
    var params = {
        "base" : "http://images.habbo.com/gordon/RELEASE47-25512-25511-201003200122_03b5083c12d1871c6522413cea00a250/",
        "allowScriptAccess" : "always",
        "menu" : "false"                
    };
    
    if (!(HabbletLoader.needsFlashKbWorkaround())) {
    	params["wmode"] = "opaque";
    }
    
    var clientUrl = "http://images.habbo.com/gordon/RELEASE47-25512-25511-201003200122_03b5083c12d1871c6522413cea00a250/Habbo10.swf";
    try {
        if (swfobject.getFlashPlayerVersion().major <= 9) { 
            clientUrl = "http://images.habbo.com/gordon/RELEASE47-25512-25511-201003200122_03b5083c12d1871c6522413cea00a250/Habbo.swf"; 
        }
    } catch(e) {}
    swfobject.embedSWF(clientUrl, "flash-container", "100%", "100%", "9.0.115", "http://images.habbo.com/habboweb/47_74f18727eeee7d2cd329f9c7c9078061/12/web-gallery/flash/expressInstall.swf", flashvars, params);
</script> 
 
 
 
<!--[if IE 8]>
<link rel="stylesheet" href="http://images.habbo.com/habboweb/47_74f18727eeee7d2cd329f9c7c9078061/12/web-gallery/v2/styles/ie8.css" type="text/css" />
<![endif]--> 
<!--[if lt IE 8]>
<link rel="stylesheet" href="http://images.habbo.com/habboweb/47_74f18727eeee7d2cd329f9c7c9078061/12/web-gallery/v2/styles/ie.css" type="text/css" />
<![endif]--> 
<!--[if lt IE 7]>
<link rel="stylesheet" href="http://images.habbo.com/habboweb/47_74f18727eeee7d2cd329f9c7c9078061/12/web-gallery/v2/styles/ie6.css" type="text/css" />
<script src="http://images.habbo.com/habboweb/47_74f18727eeee7d2cd329f9c7c9078061/12/web-gallery/static/js/pngfix.js" type="text/javascript"></script>
<script type="text/javascript">
try { document.execCommand('BackgroundImageCache', false, true); } catch(e) {}
</script>
 
<style type="text/css">
body { behavior: url(/js/csshover.htc); }
</style>
<![endif]--> 
<meta name="build" content="47-BUILD61 - 20.03.2010 10:21 - com" /> 
</head> 
 
<body id="client" class="flashclient"> 
 
 
<div id="overlay"></div> 
<div id="client-ui" > 
    <div id="flash-wrapper"> 
    <div id="flash-container"> 
        <div id="content" style="width: 400px; margin: 20px auto 0 auto; display: none"> 
<div class="cbb clearfix"> 
    <h2 class="title">Please install Adobe Flash Player.</h2> 
    <div class="box-content"> 
            <p>You can install and download Adobe Flash Player here: <a href="http://get.adobe.com/flashplayer/">Install flash player</a>. More instructions for installation can be found here: <a href="http://www.adobe.com/products/flashplayer/productinfo/instructions/">More information</a></p> 
            <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://images.habbo.com/habboweb/47_74f18727eeee7d2cd329f9c7c9078061/12/web-gallery/v2/images/client/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p> 
    </div> 
</div> 
        </div> 
        <script type="text/javascript"> 
            $('content').show();
        </script> 
        <noscript> 
            <div style="width: 400px; margin: 20px auto 0 auto; text-align: center"> 
                <p>If you are not automatically redirected, please <a href="/client/nojs">click here</a></p> 
            </div> 
        </noscript> 
    </div> 
    </div> 
	<div id="content" class="client-content"></div>            
</div> 
    <div style="display: none"> 
<div id="habboCountUpdateTarget"> 
<?php echo GetOnlineCount()." ".$lang->loc['members.online']; ?>
</div> 
	<script language="JavaScript" type="text/javascript"> 
		setTimeout(function() {
			HabboCounter.init(600);
		}, 20000);
	</script> 
    </div> 
    <script type="text/javascript"> 
        RightClick.init("flash-wrapper", "flash-container");
    </script> 
<?php 
require_once('./templates/client_footer.php');
?>
 
Last edited:
Junior Spellweaver
Joined
May 30, 2007
Messages
137
Reaction score
102
There's no need? it's v47 and prehosted by habbo :X
 
Joined
Jun 23, 2008
Messages
607
Reaction score
42
Nobody made this? it is made by Habbo, and with a few edits works with phpretro or holocms, no credits needed. If you expect credit (Oni) then your greedy!. But anyway, nice release.
 
Junior Spellweaver
Joined
May 30, 2007
Messages
137
Reaction score
102
I see no credits,


Oni made this, kthx
Did he really? This is just client.. Not hard to make.. Take Oni's client and mine.. This one has marketplace and so on. With Oni's I got flash player error, with this one I made I dont. kty. Get your fact's straight -_-
 
Newbie Spellweaver
Joined
Dec 30, 2008
Messages
6
Reaction score
0
"account_id" : "<?php echo $user->user("id"); ?>", What do i need to fill in there?:$
Ty
 
Junior Spellweaver
Joined
May 30, 2007
Messages
137
Reaction score
102
"account_id" : "<?php echo $user->user("id"); ?>", What do i need to fill in there?:$
Ty
Dont edit it, unless you know what your doing. Im assuming you dont.. Just go to your cms folder in xampp, or w.e webhost database and open up client.php Delete everything in that file, and put the php code in the thread into that file,
 
Newbie Spellweaver
Joined
Apr 4, 2009
Messages
36
Reaction score
1
I get this.
Warning: require_once(./templates/flashclient_header.php) [function.require-once]: failed to open stream: No such file or directory in C:\xampp\htdocs\client.php on line 30

Fatal error: require_once() [function.require]: Failed opening required './templates/flashclient_header.php' (include_path='.;\xampp\php\PEAR') in C:\xampp\htdocs\client.php on line 30
 
Junior Spellweaver
Joined
Mar 14, 2009
Messages
149
Reaction score
31
I get this.
Warning: require_once(./templates/flashclient_header.php) [function.require-once]: failed to open stream: No such file or directory in C:\xampp\htdocs\client.php on line 30

Fatal error: require_once() [function.require]: Failed opening required './templates/flashclient_header.php' (include_path='.;\xampp\php\PEAR') in C:\xampp\htdocs\client.php on line 30


Ive the same problem!
Can someone help us?
 
Initiate Mage
Joined
Jan 8, 2010
Messages
2
Reaction score
0
Parse error: syntax error, unexpected T_STRING, expecting T_VARIABLE or '$' in C:\xampp\htdocs\crgy\flash.php on line 20
 
Initiate Mage
Joined
Aug 16, 2010
Messages
3
Reaction score
0
Okay people, I will check it on a hamachi hotel.
I hope it will work, I can't check it on normal one as I can't
run it on my own internet and I don't even have right files =]

I use team viewer, and my friend can't do portforward on his (wi-fi), if this will work on Hamachi then I will be so thanked to you,
for now when I load my client it is blank (like other hotels, before they removed the file that habbo has edited and edited it on their own - coding geeks xD).

Well, hope it will work!
If it will work I will give you guys link that will prove client works ;]

---------- Post added at 10:45 PM ---------- Previous post was at 10:44 PM ----------

Also I will put some screenies, so you don't have to gon on website =D
 
Initiate Mage
Joined
Aug 16, 2010
Messages
3
Reaction score
0
It didin't work, as habbo delated some files in client.php somwhern in this mounth.
So, I don't know what to do.

I tried this code ev en on non-hamachi and it cames out with this message:

Warning: require_once(./templates/flashclient_header.php) [function.require-once]: failed to open stream: No such file or directory in C:\xampp\htdocs\client.php on line 30

Fatal error: require_once() [function.require]: Failed opening required './templates/flashclient_header.php' (include_path='.;\xampp\php\PEAR') in C:\xampp\htdocs\client.php on line 30

---
If anyone could help. :/
 
Last edited:
Status
Not open for further replies.
Back
Top