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
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="Ghost" data-source="post: 294574" data-attributes="member: 18103"><p>If you still haven't managed to fix this,</p><p></p><p>replace your class.html.php with</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 . '.html'))</p><p> {</p><p> ob_start();</p><p> require_once('../app/tpl/skins/'.$_CONFIG['template']['style'].'/hk/' . $file . '.html');</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('dashboard');</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>Class.css.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 css implements iCSS</p><p>{</p><p> </p><p> private $css;</p><p> </p><p></p><p> final public function get()</p><p> {</p><p> global $_CONFIG;</p><p> foreach (glob("app/tpl/skins/".$_CONFIG['template']['style']."/styles/*.css") as $filename)</p><p> {</p><p> $this->css = '<link rel="stylesheet" type="text/css" href="'.$filename.'"/>';</p><p> </p><p> $this->setCSS();</p><p> }</p><p> }</p><p> </p><p> final public function getHK()</p><p> {</p><p> global $_CONFIG;</p><p> foreach (glob("../app/tpl/skins/".$_CONFIG['template']['style']."/hk/styles/*.css") as $filename)</p><p> {</p><p> $this->css = '<link rel="stylesheet" type="text/css" href="'.$filename.'"/>';</p><p> </p><p> $this->setCSS();</p><p> }</p><p> }</p><p> </p><p> final public function setCSS()</p><p> {</p><p> global $template;</p><p> $template->tpl .= $this->css;</p><p> unset($this->css);</p><p> }</p><p></p><p></p><p>}</p><p>?>[/PHP]</p><p>and last but not lease your</p><p>class.core.php incase something is missing.</p><p></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 css implements iCSS</p><p>{</p><p> </p><p> private $css;</p><p> </p><p></p><p> final public function get()</p><p> {</p><p> global $_CONFIG;</p><p> foreach (glob("app/tpl/skins/".$_CONFIG['template']['style']."/styles/*.css") as $filename)</p><p> {</p><p> $this->css = '<link rel="stylesheet" type="text/css" href="'.$filename.'"/>';</p><p> </p><p> $this->setCSS();</p><p> }</p><p> }</p><p> </p><p> final public function getHK()</p><p> {</p><p> global $_CONFIG;</p><p> foreach (glob("../app/tpl/skins/".$_CONFIG['template']['style']."/hk/styles/*.css") as $filename)</p><p> {</p><p> $this->css = '<link rel="stylesheet" type="text/css" href="'.$filename.'"/>';</p><p> </p><p> $this->setCSS();</p><p> }</p><p> }</p><p> </p><p> final public function setCSS()</p><p> {</p><p> global $template;</p><p> $template->tpl .= $this->css;</p><p> unset($this->css);</p><p> }</p><p></p><p></p><p>}</p><p>?>[/PHP]</p></blockquote><p></p>
[QUOTE="Ghost, post: 294574, member: 18103"] If you still haven't managed to fix this, replace your class.html.php with [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 . '.html')) { ob_start(); require_once('../app/tpl/skins/'.$_CONFIG['template']['style'].'/hk/' . $file . '.html'); $this->html .= ob_get_contents(); ob_end_clean(); $this->setHTML(); } else { $this->getHK('404'); } } else { $this->getHK('dashboard'); } } final public function setHTML() { global $template; $template->tpl .= $this->html; unset($this->html); } } ?>[/PHP] Class.css.php [PHP]<?php namespace Revolution; if(!defined('IN_INDEX')) { die('Sorry, you cannot access this file.'); } class css implements iCSS { private $css; final public function get() { global $_CONFIG; foreach (glob("app/tpl/skins/".$_CONFIG['template']['style']."/styles/*.css") as $filename) { $this->css = '<link rel="stylesheet" type="text/css" href="'.$filename.'"/>'; $this->setCSS(); } } final public function getHK() { global $_CONFIG; foreach (glob("../app/tpl/skins/".$_CONFIG['template']['style']."/hk/styles/*.css") as $filename) { $this->css = '<link rel="stylesheet" type="text/css" href="'.$filename.'"/>'; $this->setCSS(); } } final public function setCSS() { global $template; $template->tpl .= $this->css; unset($this->css); } } ?>[/PHP] and last but not lease your class.core.php incase something is missing. [PHP]<?php namespace Revolution; if(!defined('IN_INDEX')) { die('Sorry, you cannot access this file.'); } class css implements iCSS { private $css; final public function get() { global $_CONFIG; foreach (glob("app/tpl/skins/".$_CONFIG['template']['style']."/styles/*.css") as $filename) { $this->css = '<link rel="stylesheet" type="text/css" href="'.$filename.'"/>'; $this->setCSS(); } } final public function getHK() { global $_CONFIG; foreach (glob("../app/tpl/skins/".$_CONFIG['template']['style']."/hk/styles/*.css") as $filename) { $this->css = '<link rel="stylesheet" type="text/css" href="'.$filename.'"/>'; $this->setCSS(); } } final public function setCSS() { global $template; $template->tpl .= $this->css; unset($this->css); } } ?>[/PHP] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
Housekeeping
Top