Housekeeping

Nutty

Member
Aug 28, 2013
115
10
uhm I followed this

and I get this

 

Ghost

Legacy, it's all anyone leaves behind.
Jun 8, 2012
1,640
503
Check the links to the images and CSS in the hk folder, one of the php files in there might be linked off.
 

Nutty

Member
Aug 28, 2013
115
10
Check the links to ASE in the class.php's in app, Interfaces, The Interfaces in tpl. maybe that has something you can edit.

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();
   
?>
 

Ghost

Legacy, it's all anyone leaves behind.
Jun 8, 2012
1,640
503
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);
    }


}
?>
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);
    }


}
?>
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);
    }


}
?>
 

Users who are viewing this thread

Top