Housekeeping being strange

xXTrevXx

Member
Dec 29, 2015
66
3
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:
Main Page:
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:
<?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);
    }


}
?>
Code:
RewriteEngine On

RewriteRule ^(|/)$ index.php?url=$1
RewriteRule ^([a-zA-Z0-9_-]+)(|/)$ index.php?url=$1
RewriteEngine on
RewriteRule ^(.*)\.htm$ $1.php [NC]

Any suggestions?
 
Last edited:

n4te

zzz
Oct 27, 2014
669
293
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:
Main Page:
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:
<?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);
    }


}
?>
Code:
RewriteEngine On

RewriteRule ^(|/)$ index.php?url=$1
RewriteRule ^([a-zA-Z0-9_-]+)(|/)$ index.php?url=$1
RewriteEngine on
RewriteRule ^(.*)\.htm$ $1.php [NC]

Any suggestions?
does it say anything about any missing columns/tables anywhere? I remember something similar happening to me before, and it was due to a missing database column.
 

Users who are viewing this thread

Top