Newbie Spellweaver
- Joined
- Jul 11, 2012
- Messages
- 77
- Reaction score
- 4
Hello Rzers
So, I was using RevCMS with PlusEmu, and it worked pretty well. I tried to install WubboCMS (which i believe was designed for R63A) and the client page connects for one second then disconnects, I have no error logs on PlusEMU. I tried to use developer mode on chrome, no errors displayed at all. There is nothing wrong with my SWFs (including vars) as I have used them on RevCMS.
The only wrong thing I could find in my client.php was rs4.php and I can't find one to use.
So, I was using RevCMS with PlusEmu, and it worked pretty well. I tried to install WubboCMS (which i believe was designed for R63A) and the client page connects for one second then disconnects, I have no error logs on PlusEMU. I tried to use developer mode on chrome, no errors displayed at all. There is nothing wrong with my SWFs (including vars) as I have used them on RevCMS.
The only wrong thing I could find in my client.php was rs4.php and I can't find one to use.
Code:
<?php
if(!defined('IN_INDEX')) { die('Access Denied.'); }
$banned = mysql_fetch_assoc(mysql_query("SELECT value FROM bans WHERE (value = '".$_SESSION['user']['username']."' AND expire > '".time()."') OR (value = '".$_SERVER['REMOTE_ADDR']."' AND expire > '".time()."') LIMIT 1"));
if(isset($banned['value']))
{
header("Location: ".$_CONFIG['hotel']['url']."/banned");
exit;
}
$look = mysql_fetch_assoc(mysql_query("SELECT * FROM users WHERE id ='".$_SESSION['user']['id']."'"));
if(isset($_GET['error'])) {
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>%hotel_name% ~ Disconnected</title>
<link rel="shortcut icon" href="%www%/favicon.ico" type="image/vnd.microsoft.icon">
<link rel="stylesheet" type="text/css" media="screen" href="%www%/Files/css/wubbo.css" />
<script type="text/javascript" src="%www%/Files/js/jquery.js"></script>
<script type="text/javascript" src="%www%/Files/js/wubbo.js"></script>
</head>
<body>
<div class="disconnected">
<div class="c-box-disconnected">
<div class="c-title red">Disconnected</div>
<div class="c-main-disconnected">
<center>
<img src="%www%/images/loderse.gif" height="110" width="64"><br><br>
You were disconnected from %hotel_name%!<br><br>
<a href="%client_url%">Please click here to reload!</a>
</center>
</div>
</div>
</div>
</body>
</html>
<?php
}
else {
$client_host = '%client_host%';
$client_port = '%client_port%';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>%hotel_name% ~ Client</title>
<link rel="stylesheet" href="%www%/files/client/css/client.css" type="text/css">
<script type="text/javascript" src="%www%/files/client/swfobject.js"></script>
</head>
<body>
<script type="text/javascript">
var BaseUrl = "%www%/swfs/gordon/PRODUCTION-201701242205-837386173/";
var flashvars =
{
"client.starting" : "Please wait, %hotel_name% is loading",
"client.allow.cross.domain" : "0",
"client.notify.cross.domain" : "0",
"connection.info.host" : "MY IP ADDRESS",
"connection.info.port" : "30000",
"site.url" : "%www%",
"url.prefix" : "%www%",
"hotelview.banner.url" : "%www%/game/rs4.php",
"client.reload.url" : "%www%/client",
"client.fatal.error.url" : "%www%/me",
"client.connection.failed.url" : "%www%/me",
"external.variables.txt" : "%www%/swfs/gamedata/%external_vars%",
"external.texts.txt" : "%www%/swfs/gamedata/%external_texts%",
"productdata.load.url" : "%www%//swfs/gamedata/%product_data%",
"furnidata.load.url" : "%www%/swfs/gamedata/%furni_data%",
"use.sso.ticket" : "1",
"sso.ticket" : "%sso%",
"processlog.enabled" : "0",
"flash.client.url" : BaseUrl,
"flash.client.origin" : "popup"
};
var params =
{
"base" : BaseUrl + "/",
"allowScriptAccess" : "always",
"menu" : "false"
};
swfobject.embedSWF(BaseUrl + "/Habbo.swf", "client", "100%", "100%", "10.0.0", "%www%/swfs/gordon/PRODUCTION-201701242205-837386173/expressInstall.swf", flashvars, params, null);
</script>
<div id="client"></div>
</body>
</html>
<?php
}
?>