Jump to content
MakeWebGames

trying to get my retro working


Raven1992

Recommended Posts

Hi all as you may know Imade 2 retros the HothRP and Hoth Hotel well now they both lost so instead I found all my old files and I thought Why Not Keep the Hotel Running but give it a better Name so it took me a while to think of a name and possibly a server and I not talking about a Cheap $10 VPS server that cant do it Job I Wanted something Bigger. So I done some hunting around and manged to find a cheap DEDI Server somewhere ok I have to pay for the windows Key seperate for it to work. It does have Plesk Parallel installed and of Course it to set up the domain I got.

Anyways while fixing the files that were proberly Buggy I stumble on an error and it not a common error for a Habbo Retro to have

Parse error: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING or '(' in C:\Inetpub\vhosts\xotel.co\inetpub\wwwroot\global.php on line 22

as Requested here is my globals.php

<?php

// Special Functions

function filter($var)
{
	return mysql_real_escape_string(stripslashes(htmlspecialchars($var)));
}

if(!defined('IN_INDEX')) { die('Sorry, you cannot access this file.'); }
if(isset($_SERVER['HTTP_CF_CONNECTING_IP'])) { $_SERVER['REMOTE_ADDR'] = $_SERVER['HTTP_CF_CONNECTING_IP']; }
error_reporting(E_ALL ^ E_NOTICE);

define('A', 'app/');
define('I', 'interfaces/');
define('M', 'management/');
define('T', 'tpl/');


//REVOLUTION

use Revolution as Rev;


//INTERFACES

	require_once A . I . 'interface.core.php';

	require_once A . I . 'interface.engine.php';

	require_once A . I . 'interface.users.php';

	require_once A . I . 'interface.template.php';

	//TPL

		require_once A . T . I . 'interface.forms.php';

		//HTML

			require_once A . T . I . 'interface.html.php';

		//CSS

			require_once A . T . I . 'interface.css.php';

		//JS

			require_once A . T . I . 'interface.js.php';


//CLASSES

	//app

	require_once A . 'class.core.php';

	require_once A . 'class.engine.php';

	require_once A . 'class.users.php';

	require_once A . 'class.template.php';

	//MANAGEMENT

		require_once A . M . 'config.php';

		require_once A . M . 'recaptchalib.php';

	//TPL

		require_once A . T . 'class.forms.php';

		//HTML

			require_once A . T . 'class.html.php';

		//CSS

			require_once A . T . 'class.css.php';

		//JS

			require_once A . T . 'class.js.php'; 


//OBJ

$core = new Rev\core();

$engine = new Rev\engine();	

$users = new Rev\users();

$template = new Rev\template();

$template->form = new Rev\forms();

$template->html = new Rev\html();

$template->css = new Rev\css();

$template->js = new Rev\js();

//START	

session_start();

$engine->Initiate();

$template->Initiate();

?>

so If any Of you like to take a shot at it then Please help me as I can't see the error

Link to comment
Share on other sites

Bro, take some time out to learn grammar, my eyes hurt reading that mess.

As for your code, its obviously a problem with

 

use Revolution as Rev;

 

The only thing I can think of is that Revolution isnt the full file path to the namespace in question

Link to comment
Share on other sites

Bro, take some time out to learn grammar, my eyes hurt reading that mess.

As for your code, its obviously a problem with

 

use Revolution as Rev;

 

The only thing I can think of is that Revolution isnt the full file path to the namespace in question

considering I not been on this forums for a while what you expect

Link to comment
Share on other sites

not that i know off i change codes when i rename the hotel

Then you need to include the file that contains the namespace Revolution. That would be a good start..

Also these forums have nothing to do with your grammar. It's not that difficult, even if you just learn how to punctuate your sentences then it might be easier to make sense of it .

Link to comment
Share on other sites

Then you need to include the file that contains the namespace Revolution. That would be a good start..

Also these forums have nothing to do with your grammar. It's not that difficult, even if you just learn how to punctuate your sentences then it might be easier to make sense of it .

Considering i doing this on a Dedi VPS so it laggs and i not sure what i am typeing half the time

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...