*PLEASE* Rev CMS *HELP*

JabHotel

New Member
Jun 1, 2011
12
0
Hello i was wondering if i can get some help with my retro that im making witch is ganna be REV_CMS... I only need help with onething though and that the VOTING part. when i go the login to my client the API.PHP shows up and since i dont got a THEHABBOS Login i can get the voting to work so i click CONTINUE TO CLIENT and i get this..>> Sorry, but you can not access this file directly. :(

Can anyone please help me? I been working on this awhile and i really wanna get my hotel up, but i need some help please.
 
Last edited:

Tails

Go the fuck to sleep.
Jan 11, 2014
156
6
Hi,

It may be a CHMOD/permissions thing, Have you tried checking the permissions on client.php and making sure users (depending on what webserver you use - it will be different, but it usually goes along the line of asi/xammp/ect user) and making sure they have the ability to execute the file?
 

JabHotel

New Member
Jun 1, 2011
12
0
to be honest with you im not sure what you mean by that, but i checked my CLIENT.PHP and this is the CODE.. Ideas?

<?php
////////////////////////////////////////////////////////
// # TheHabbos Topsites API Script - Release 1.0.3 //
// # © Copyright TheHabbos 2011. All rights reserved. //
////////////////////////////////////////////////////////

if(!defined('IN_THEHABBOS_API')) {
die('Sorry, but you can not access this file directly. :(');
}

switch($lookingFor) {
case 1:
{
//what happens if someone does successfully vote
header("Location: client.php");
break;
}
case 2:
{
//what happens if someone has already voted
header("Location: client.php");
break;
}
case 3:
{
//what happens if someone hasn't voted yet
echo '<div class="contentTitle">Please Vote</div>
It appears that you have not voted yet today! Please click the button below.<br />
<br />
<form action=" .'" method="post">
<input type="hidden" name="api_url" value="'.$CONFIG['URL'].'" />
<input class="button" type="submit" name="votingAPI" value="" />
</form>';
break;
}
case 4:
case 5:
{
//what happens if someone sends an invalid request
echo $LANG['content'][4].'<br /><br />Click <a href="client.php" style="color: #000000;">here</a> to proceed to the client.';
break;
}
case 6:
{
//what happens if thehabbos is down or having connection issues
header("Location: client.php");
break;
}
}
 

Tails

Go the fuck to sleep.
Jan 11, 2014
156
6
It does not matter about the code, if Client.php is not able to be read by users, it won't open.

If your on a windows VPS, Go to Client.php, right click, Properties, Security, and make sure that users/web users can "Read & Execute"
 

JabHotel

New Member
Jun 1, 2011
12
0
the problem is, i can click on ENTER HOTEL
You must be registered for see images attach


but then it goes to and when it goes to loalhost/api.php i get this...

You must be registered for see images attach



When i try to skip right to LOCALHOST/CLIENT.PHP i get this....

You must be registered for see images attach





Im so confused and dont know what to do :( please help me, i been trying to get a hotel up for 2-3 days now. and im using WINDOWS VISTA
 

JabHotel

New Member
Jun 1, 2011
12
0
<script type="text/javascript">
var habboName = "{username}";
var habboReqPath = "{url}";
var habboStaticFilePath = " ";
var habboImagerUrl = " ";
var habboPartner = "";
var habboDefaultClientPopupUrl = "{url}/client";
window.name = "ClientWndw";
if (typeof HabboClient != "undefined") { HabboClient.windowName = "ClientWndw"; }
</script>

<link rel="alternate" type="application/rss+xml" title="Habbo Hotel - RSS" href=" " />
<script src="app/tpl/skins/{skin}/client/libs2.js" type="text/javascript"></script>
<script src="app/tpl/skins/{skin}/client/visual.js" type="text/javascript"></script>
<script src="app/tpl/skins/{skin}/client/libs.js" type="text/javascript"></script>
<script src="app/tpl/skins/{skin}/client/common.js" type="text/javascript"></script>

<link rel="stylesheet" href=" " type="text/css" />

<link rel="stylesheet" href=" " type="text/css" />


<noscript>
<meta http-equiv="refresh" content="0;url=/client/nojs" />
</noscript>

<link rel="stylesheet" href="app/tpl/skins/{skin}/client/client.css" type="text/css" />
<script src="app/tpl/skins/{skin}/client/habboflashclient.js" type="text/javascript"></script>

<script type="text/javascript">
FlashExternalInterface.loginLogEnabled = false;
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" : "{server_ip}",
"connection.info.port" : "30000",
"site.url" : "{url}/",
"url.prefix" : "{url}/",
"client.reload.url" : "{url}/client",
"client.fatal.error.url" : "{url}/disconnected",
"client.connection.failed.url" : "{url}/disconnected",
"external.variables.txt" : "{external_vars}",
"external.texts.txt" : "{external_texts}",
"productdata.load.url" : "{product_data}",
"furnidata.load.url" : "{furni_data}",
"use.sso.ticket" : "1",
"sso.ticket" : "{sso}",
"processlog.enabled" : "0",
"account_id" : "1",
"client.starting" : "Please wait! {hotelName} is starting up",
"flash.client.url" : "{swf_folder}/",
"user.hash" : "31385693ae558a03d28fc720be6b41cb1ccfec02",
"has.identity" : "0",
"flash.client.origin" : "popup",
"token" : "{sso}"
};
var params = {
"base" : "{swf_folder}/",
"allowScriptAccess" : "always",
"menu" : "false"
};

if (!(HabbletLoader.needsFlashKbWorkaround())) {
params["wmode"] = "opaque";
}

var clientUrl = "{swf_folder}/Habbo.swf";

swfobject.embedSWF(clientUrl, "flash-container", "100%", "100%", "10.0.0", " ", flashvars, params);

window.onbeforeunload = unloading;
function unloading() {
var clientObject;
if (navigator.appName.indexOf("Microsoft") != -1) {
clientObject = window["flash-container"];
} else {
clientObject = document["flash-container"];
}
try {
clientObject.unloading();
} catch (e) {}
}
</script>

<body id="client" class="flashclient">
<div id="overlay"></div>
<img src=" " style="position:absolute; margin: -1500px;" />

<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 update your Flash Player to the latest version.</h2>
<div class="box-content">
<p>You can install and download Adobe Flash Player here: <a href=" ">Install flash player</a>. More instructions for installation can be found here: <a href=" ">More information</a></p>
<p><a href=" "><img src=" " 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>
<div style="display: none">

<div id="habboCountUpdateTarget">
{status}
</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");
if (window.opener && window.opener != window && typeof window.opener.location.href != "undefined") {
window.opener.location.replace(window.opener.location.href);
}
$(document.body).addClassName("js");
HabboClient.startPingListener();
</script>

<script type="text/javascript">
HabboView.run();
</script>

<script type="text/javascript">

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-15697942-2']);
_gaq.push(['_trackPageview']);

(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? ' ' : ' ') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();

</script>
 

Tails

Go the fuck to sleep.
Jan 11, 2014
156
6
Does not look like its in the .php then, I would set your permissions using the way I posted above.

Make sure everyone can "read & execute"
 

Users who are viewing this thread

Top