RevCMS Housekeeping Fix (Habbo theme)

Status
Not open for further replies.

Bullethotel

Brick Hotel Owner
Dec 3, 2011
73
7
Just a simple fix for Housekeeping on RevCMS if your using IIS.

you will need this:
for .htaccess to configure with IIS. After you have installed this Restart IIS.

Then download this HK Fix



Instruction after that;

Add hk to your skin folder so it looks like this: app/tpl/skins/Habbo/hk/login - Then while there edit
PHP Code:
action="index.php?url=dash"
to

PHP Code:
action="index.php?url=login">
code can be found in hk/login.php /file

Then Head to /wwwroot/app/
Replace your class.core.php and class.template.php with the files included in the Housekeeping Fix Folder above.

Then you will have your .htaccess fixed for IIS working but for CMS to work you will still need WEB.config file :

Then your housekeeping should work 100% if you go to this link:

Credits: Subway @ From Rage | Me for Posting & editing a few words X)

Thanks, till next time.
 

LimitedEdition

New Member
Jan 8, 2012
4
0
Mines worked at first, then it changed back to its error, help?​
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 261904 bytes) in C:\xampp\htdocs\app\tpl\class.html.php on line 27
-.-
 

iJoeyHD

New Member
May 28, 2012
2
0
i Have a Problem with the Houskeeping, I've followed the steps correctly. this is what Happens.​

You must be registered for see images attach




All steps have been done correctly..​
You must be registered for see images attach
I Also replaced the 2 files that it says in the Tutorial, it was working for about 5 minuites? i reloaded the Page and the error came up, Thanks.​
 

Attachments

  • Untitled.png
    Untitled.png
    205.9 KB · Views: 18

Legion

Gaming Lord
Staff member
Nov 23, 2011
1,801
669
Just a simple fix for Housekeeping on RevCMS if your using IIS.
i Have a Problem with the Houskeeping, I've followed the steps correctly. this is what Happens.​
I Also replaced the 2 files that it says in the Tutorial, it was working for about 5 minuites? i reloaded the Page and the error came up, Thanks.​



This is for IIS. Not Xampp
 

oltem4682

New Member
Jun 30, 2012
11
0
Does somebody know how to fix:
Code:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 261904 bytes) in C:\Habbo R63B Server\xampp\htdocs\app\tpl\class.html.php on line 27

I get this when I try to go to

This is my 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'); // Line 27
            }
        }
        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('dash');
        }
    }
 
    final public function setHTML()
    {
        global $template;
        $template->tpl .= $this->html;
        unset($this->html);
    }
 
 
}
?>

Does somebody know how to fix this?
 

lose123

Member
Dec 8, 2011
122
12
, replace your ""C:\Habbo R63B Server\xampp\htdocs\app\tpl\class.html.php"" with mine below. Should work.

Code:
<?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('dash');
        }
    }
       
    final public function setHTML()
    {
        global $template;
        $template->tpl .= $this->html;
        unset($this->html);
    }
 
 
}
?>
 

Khalil

IDK
Dec 6, 2011
1,642
786
I hate CSS, can you help?
Just got to your hk folder check if the css/styles folder is there, if it is there, open up your login.php and check if the file is properly linked as so:
HTML:
<link type="text/css" rel="stylesheet" href="YOURHOTELLINK.COM/app/tpl/skins/SKIN/hk/CSSFOLDERNAME/CSSFILENAME.css" />
 

Nutty

Member
Aug 28, 2013
115
10
Just got to your hk folder check if the css/styles folder is there, if it is there, open up your login.php and check if the file is properly linked as so:
HTML:
<link type="text/css" rel="stylesheet" href="YOURHOTELLINK.COM/app/tpl/skins/SKIN/hk/CSSFOLDERNAME/CSSFILENAME.css" />
its styles folder but has CSS in it..
 

Nutty

Member
Aug 28, 2013
115
10
my login.php
PHP:
<div id="main">
    <div id="links"></div>
    <div class="header" id="login">
</div>
    <div id="site_conten" class="login">
      <div id="content_container" class="login">

        <div id="content" class="login">
          <!-- insert the page content here -->
          <h1>{hotelName} ASE</h1>
          <p>Welcome to the {hotelName} Hotel All Seeing Eye. Your IP has been logged (<?php echo $_SERVER["REMOTE_ADDR"]; ?>)
            Please note any attempt to brute-force or exploit this system will be noticed by Zap administration so if you do not have clearance to this area, fuck off. <br /></p>
           
            <?php echo $template->form->error; ?>
           
            <br />
                <form method="post" action="index.php?url=login">
                Username: <br /> <input type="text" name="username" class="login"/> <br /> <br />
                Password: <br /> <input type="password" name="password" class="login"/> <br /> <br /><br />
                        <input type="submit" value="Log into ASE" name="login" class="login"/>
                </form><br /><br />    <center>Powered by ZapASE by Jontycat - Design by Predict</center>
      <center>Implemented into RevCMS by Kryptos</center><br />
        </div>
      </div>
    </div>
  </div>
 

Khalil

IDK
Dec 6, 2011
1,642
786
Does somebody know how to fix:
Code:
Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 261904 bytes) in C:\Habbo R63B Server\xampp\htdocs\app\tpl\class.html.php on line 27

That error pops up when your skin folder isn't there, or a folder that's supposed to be in your skin folder isn't there.

my login.php
PHP:
<div id="main">
    <div id="links"></div>
    <div class="header" id="login">
</div>
    <div id="site_conten" class="login">
      <div id="content_container" class="login">

        <div id="content" class="login">
          <!-- insert the page content here -->
          <h1>{hotelName} ASE</h1>
          <p>Welcome to the {hotelName} Hotel All Seeing Eye. Your IP has been logged (<?php echo $_SERVER["REMOTE_ADDR"]; ?>)
            Please note any attempt to brute-force or exploit this system will be noticed by Zap administration so if you do not have clearance to this area, fuck off. <br /></p>
         
            <?php echo $template->form->error; ?>
         
            <br />
                <form method="post" action="index.php?url=login">
                Username: <br /> <input type="text" name="username" class="login"/> <br /> <br />
                Password: <br /> <input type="password" name="password" class="login"/> <br /> <br /><br />
                        <input type="submit" value="Log into ASE" name="login" class="login"/>
                </form><br /><br />    <center>Powered by ZapASE by Jontycat - Design by Predict</center>
      <center>Implemented into RevCMS by Kryptos</center><br />
        </div>
      </div>
    </div>
  </div>
I made a mistake, don't check in login.php but in class.css.php, but don't mind that, here you go a global.css save it in the styles directory:
 

Nutty

Member
Aug 28, 2013
115
10
replace my whole class.css with that?

EDIT: pastebin file is private, make it public.
 

Khalil

IDK
Dec 6, 2011
1,642
786
Dude no, don't replace your class.css.php with that, i said don't mind that, go and save that global.css in the styles folder in your skin folder! Paste status updated!
 
Status
Not open for further replies.

Users who are viewing this thread

Top