{server_ip} problem

Aug 25, 2013
38
2
the {server_ip} ---- Client wont work unless the code is there : $this->setParams('server_ip', $_CONFIG['hotel']['server_ip']);

My client will not load without that but i want that removed cuz you can simple do {server_ip} in your motto
removed cuz you can simple do {server_ip} in your motto
 

Khalil

IDK
Dec 6, 2011
1,642
786
There are many methods to go around this even with that parameter removed. You can set a variable in your 'global.php', something like:
PHP:
$SERVER_IP = 'server ip here'; // then call this on your 'client.php'
OR, you could simply go to your 'client.php' and edit the IP there.. smh
 

ArchoCrime

Member
Aug 13, 2014
98
1
There are many methods to go around this even with that parameter removed. You can set a variable in your 'global.php', something like:
PHP:
$SERVER_IP = 'server ip here'; // then call this on your 'client.php'
OR, you could simply go to your 'client.php' and edit the IP there.. smh
He can't just replace his client.php with the one he has, thy client.php that his revcms provides has more important information than just the server ip. Like you said he needs to go on his client.php and edit the IP that is suppose to be saying {server_ip} or he can replace it with hamachi ip, localhost, 127.0.0.1
 

Khalil

IDK
Dec 6, 2011
1,642
786
He can't just replace his client.php with the one he has, thy client.php that his revcms provides has more important information than just the server ip. Like you said he needs to go on his client.php and edit the IP that is suppose to be saying {server_ip} or he can replace it with hamachi ip, localhost, 127.0.0.1

Are you retarded? He could just go on to his 'client.php' and replace {server_ip} by his server ip, and he could leave the other parameters untouched.
 

Unidentified

Living the Developer Life...
Jun 19, 2012
144
20
Are you retarded? He could just go on to his 'client.php' and replace {server_ip} by his server ip, and he could leave the other parameters untouched.
facepalm.jpg
Just Put your Client.php as .. And replace YOUR IP ADDRESS TO YOUR VPS OR PROXY HERE with the IP

Code:
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta http-equiv="content-type" content="text/html; charset=utf-8">
        <title>{hotelName} - Client</title>
       
        <link rel="stylesheet" href="{url}/app/tpl/skins/{skin}/styles/client.css" type="text/css">
       
        <script type="text/javascript" src="{url}/app/tpl/skins/{skin}/js/swfobject.js"></script>
        <script type="text/javascript">
            var BaseUrl = "{swf_folder}";
            var flashvars =
            {
                "client.starting" : "Please wait, {hotelname} loading",
                "hotelview.banner.url" : "{url}/game/rs4.php",
                "client.allow.cross.domain" : "1",
                "client.notify.cross.domain" : "0",
                "connection.info.host" : "YOUR IP ADDRESS TO YOUR VPS OR PROXY HERE",
                "connection.info.port" : "30000",
                "site.url" : "{url}",
                "url.prefix" : "{url}",
                "client.reload.url" : "{url}/client",
                "client.fatal.error.url" : "{url}/me",
                "client.connection.failed.url" : "{url}/me",
                "external.variables.txt" : "{external_vars}",
                "external.texts.txt" : "{external_texts}",
                "productdata.load.url" : "{product_data}",
                "furnidata.load.url" : "{url}/game/furnidata_xml.xml",
                "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", "{swf_folder}/expressInstall.swf", flashvars, params, null);
        </script>
    </head>
   
    <body>
   
        <div id="client"></div>
   
    </body>
</html>
 

Users who are viewing this thread

Top