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:
Any suggestions?
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:
You must be registered for see links
Main Page:
You must be registered for see links
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: