Raven1992 Posted April 21, 2015 Share Posted April 21, 2015 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 Quote Link to comment Share on other sites More sharing options...
Coly010 Posted April 21, 2015 Share Posted April 21, 2015 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 Quote Link to comment Share on other sites More sharing options...
Raven1992 Posted April 21, 2015 Author Share Posted April 21, 2015 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 Quote Link to comment Share on other sites More sharing options...
KyleMassacre Posted April 22, 2015 Share Posted April 22, 2015 Is Revolution even included somewhere? We can see that your calling that namespace but in this file your not including the file where that is found. Quote Link to comment Share on other sites More sharing options...
Raven1992 Posted April 22, 2015 Author Share Posted April 22, 2015 Is Revolution even included somewhere? We can see that your calling that namespace but in this file your not including the file where that is found. not that i know off i change codes when i rename the hotel Quote Link to comment Share on other sites More sharing options...
Coly010 Posted April 22, 2015 Share Posted April 22, 2015 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 . Quote Link to comment Share on other sites More sharing options...
Raven1992 Posted April 22, 2015 Author Share Posted April 22, 2015 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 Quote Link to comment Share on other sites More sharing options...
Coly010 Posted April 22, 2015 Share Posted April 22, 2015 Considering i doing this on a Dedi VPS so it laggs and i not sure what i am typeing half the time I am at a complete loss at what you are trying to say Quote Link to comment Share on other sites More sharing options...
Raven1992 Posted April 24, 2015 Author Share Posted April 24, 2015 can a mod close this thread as i dont want it off track as i gonna try again with new files Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.