Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
Housekeeping being strange
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="xXTrevXx" data-source="post: 432174" data-attributes="member: 65272"><p>Hello, i noticed i have a big problem, i moved my hotel from a VPS to a Dedicated Physical Server.. and after the move my ASE stopped workiing..</p><p>The login page comes up just fine, but once you login, it goes to a messed up page. no style, not reading the {}'s like {url}, {skins}, {hotelname} etc... anything i messed up? tried looking therough the global.php, and the class.html.php and things like that, couldnt get it figured out, looked through the login page itself, seemed fine, and also the "main" page... database is connected correctly, the Config in my app/tpl/management is correct</p><p>Login page: <a href="http://prntscr.com/j37hl6" target="_blank">http://prntscr.com/j37hl6</a></p><p>Main Page: <a href="http://prntscr.com/j37h6n" target="_blank">http://prntscr.com/j37h6n</a></p><p>[SPOILER="Global.php"][/SPOILER][SPOILER="Global.php"]</p><p>[PHP]<?php</p><p></p><p> // Special Functions</p><p> </p><p> function filter($var)</p><p> {</p><p> return mysql_real_escape_string(stripslashes(htmlspecialchars($var)));</p><p> }</p><p></p><p>if(!defined('IN_INDEX')) { die('Sorry, you cannot access this file.'); }</p><p>error_reporting(E_ALL ^ E_NOTICE);</p><p></p><p>define('A', '../app/');</p><p>define('I', 'interfaces/');</p><p>define('M', 'management/');</p><p>define('T', 'tpl/');</p><p></p><p></p><p>//REVOLUTION</p><p></p><p>use Revolution as Rev;</p><p></p><p></p><p> //INTERFACES</p><p> </p><p> require_once A . I . 'interface.core.php';</p><p> </p><p> require_once A . I . 'interface.engine.php';</p><p> </p><p> require_once A . I . 'interface.users.php';</p><p> </p><p> require_once A . I . 'interface.template.php';</p><p> </p><p> //TPL</p><p> </p><p> require_once A . T . I . 'interface.forms.php';</p><p> </p><p> //HTML</p><p> </p><p> require_once A . T . I . 'interface.html.php';</p><p> </p><p> //CSS</p><p> </p><p> require_once A . T . I . 'interface.css.php';</p><p> </p><p> //JS</p><p> </p><p> require_once A . T . I . 'interface.js.php';</p><p> </p><p> </p><p> //CLASSES</p><p> </p><p> //app</p><p> </p><p> require_once A . 'class.core.php';</p><p> </p><p> require_once A . 'class.engine.php';</p><p> </p><p> require_once A . 'class.users.php';</p><p> </p><p> require_once A . 'class.template.php';</p><p> </p><p> //MANAGEMENT</p><p> </p><p> require_once A . M . 'config.php';</p><p> </p><p> require_once A . M . 'recaptchalib.php';</p><p> </p><p> //TPL</p><p> </p><p> require_once A . T . 'class.forms.php';</p><p> </p><p> //HTML</p><p> </p><p> require_once A . T . 'class.html.php';</p><p> </p><p> //CSS</p><p> </p><p> require_once A . T . 'class.css.php';</p><p> </p><p> //JS</p><p> </p><p> require_once A . T . 'class.js.php';</p><p> </p><p> </p><p> //OBJ</p><p> </p><p> $core = new Rev\core();</p><p> </p><p> $engine = new Rev\engine(); </p><p> </p><p> $users = new Rev\users();</p><p> </p><p> $template = new Rev\template();</p><p> </p><p> $template->form = new Rev\forms();</p><p> </p><p> $template->html = new Rev\html();</p><p> </p><p> $template->css = new Rev\css();</p><p> </p><p> $template->js = new Rev\js();</p><p> </p><p> //START </p><p> </p><p> session_start();</p><p> </p><p> $engine->Initiate();</p><p> </p><p> $template->Initiate();</p><p> </p><p>?>[/PHP]</p><p>[/SPOILER]</p><p></p><p>[SPOILER="class.html.php"]</p><p>[PHP]<?php</p><p></p><p>namespace Revolution;</p><p>if(!defined('IN_INDEX')) { die('Sorry, you cannot access this file.'); }</p><p>class html implements iHTML</p><p>{</p><p></p><p> private $html;</p><p></p><p> final public function get($file)</p><p> {</p><p> global $template, $_CONFIG;</p><p> </p><p> if($file != null && ctype_alnum($file))</p><p> {</p><p> if(file_exists('app/tpl/skins/'.$_CONFIG['template']['style'].'/' . $file . '.php'))</p><p> {</p><p> ob_start();</p><p> include('app/tpl/skins/'.$_CONFIG['template']['style'].'/' . $file . '.php');</p><p> $this->html .= ob_get_contents();</p><p> ob_end_clean();</p><p> </p><p> $this->setHTML();</p><p> }</p><p> else</p><p> {</p><p> $this->get('404');</p><p> }</p><p> }</p><p> else</p><p> {</p><p> header('Location: '.$_CONFIG['hotel']['url'].'/index');</p><p> exit;</p><p> }</p><p></p><p> }</p><p> </p><p> final public function getHK($file)</p><p> {</p><p> global $template, $_CONFIG;</p><p> </p><p> if($file != null)</p><p> {</p><p> if(file_exists('../app/tpl/skins/'.$_CONFIG['template']['style'].'/hk/' . $file . '.php'))</p><p> {</p><p> ob_start();</p><p> require_once('../app/tpl/skins/'.$_CONFIG['template']['style'].'/hk/' . $file . '.php');</p><p> $this->html .= ob_get_contents();</p><p> ob_end_clean();</p><p> </p><p> $this->setHTML();</p><p> }</p><p> else</p><p> {</p><p> $this->getHK('404');</p><p> }</p><p> }</p><p> else</p><p> {</p><p> $this->getHK('main');</p><p> }</p><p> }</p><p> </p><p> final public function setHTML()</p><p> {</p><p> global $template;</p><p> $template->tpl .= $this->html;</p><p> unset($this->html);</p><p> }</p><p></p><p></p><p>}</p><p>?>[/PHP]</p><p>[/SPOILER]</p><p>[SPOILER="htaccess"]</p><p>[CODE]RewriteEngine On</p><p></p><p>RewriteRule ^(|/)$ index.php?url=$1</p><p>RewriteRule ^([a-zA-Z0-9_-]+)(|/)$ index.php?url=$1</p><p>RewriteEngine on</p><p>RewriteRule ^(.*)\.htm$ $1.php [NC][/CODE]</p><p>[/SPOILER]</p><p></p><p>Any suggestions?</p></blockquote><p></p>
[QUOTE="xXTrevXx, post: 432174, member: 65272"] Hello, i noticed i have a big problem, i moved my hotel from a VPS to a Dedicated Physical Server.. and after the move my ASE stopped workiing.. The login page comes up just fine, but once you login, it goes to a messed up page. no style, not reading the {}'s like {url}, {skins}, {hotelname} etc... anything i messed up? tried looking therough the global.php, and the class.html.php and things like that, couldnt get it figured out, looked through the login page itself, seemed fine, and also the "main" page... database is connected correctly, the Config in my app/tpl/management is correct Login page: [URL]http://prntscr.com/j37hl6[/URL] Main Page: [URL]http://prntscr.com/j37h6n[/URL] [SPOILER="Global.php"][/SPOILER][SPOILER="Global.php"] [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.'); } 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(); ?>[/PHP] [/SPOILER] [SPOILER="class.html.php"] [PHP]<?php namespace Revolution; if(!defined('IN_INDEX')) { die('Sorry, you cannot access this file.'); } class html implements iHTML { private $html; final public function get($file) { global $template, $_CONFIG; if($file != null && ctype_alnum($file)) { if(file_exists('app/tpl/skins/'.$_CONFIG['template']['style'].'/' . $file . '.php')) { ob_start(); include('app/tpl/skins/'.$_CONFIG['template']['style'].'/' . $file . '.php'); $this->html .= ob_get_contents(); ob_end_clean(); $this->setHTML(); } else { $this->get('404'); } } else { header('Location: '.$_CONFIG['hotel']['url'].'/index'); exit; } } final public function getHK($file) { global $template, $_CONFIG; if($file != null) { if(file_exists('../app/tpl/skins/'.$_CONFIG['template']['style'].'/hk/' . $file . '.php')) { ob_start(); require_once('../app/tpl/skins/'.$_CONFIG['template']['style'].'/hk/' . $file . '.php'); $this->html .= ob_get_contents(); ob_end_clean(); $this->setHTML(); } else { $this->getHK('404'); } } else { $this->getHK('main'); } } final public function setHTML() { global $template; $template->tpl .= $this->html; unset($this->html); } } ?>[/PHP] [/SPOILER] [SPOILER="htaccess"] [CODE]RewriteEngine On RewriteRule ^(|/)$ index.php?url=$1 RewriteRule ^([a-zA-Z0-9_-]+)(|/)$ index.php?url=$1 RewriteEngine on RewriteRule ^(.*)\.htm$ $1.php [NC][/CODE] [/SPOILER] Any suggestions? [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
Housekeeping being strange
Top