my cms isnt working

Status
Not open for further replies.

olliedean

ollie.cool
Jan 28, 2013
433
107
Used the exact smae files before on my other hotel (obviously changed IPs), but for some reason it doesn't load the user info and stuff.
OK8vm3mXQA_NzjUCbZ_Rvg.png

Any help is appriciated. Thank you in advance.
 

olliedean

ollie.cool
Jan 28, 2013
433
107
Post your class template, are you logged in?

Clear cache as well, see if that does anything.

I am logged in.

<?php

namespace Revolution;
if(!defined('IN_INDEX')) { die('Sorry, you cannot access this file.'); }
class template implements iTemplate
{

public $tpl;

private $params = array();

final public function Initiate()
{
global $_CONFIG, $users, $engine, $core, $template;
$this->setParams('hotelName', $_CONFIG['hotel']['name']);
$this->setParams('hotelDesc', $_CONFIG['hotel']['desc']);
$this->setParams('url', $_CONFIG['hotel']['url']);
$this->setParams('online', $core->getOnline());
$this->setParams('status', $core->getStatus());
$this->setParams('web_build', $_CONFIG['hotel']['web_build']);
$this->setParams('external_vars', $_CONFIG['hotel']['external_vars']);
$this->setParams('external_texts', $_CONFIG['hotel']['external_texts']);
$this->setParams('swf_folder', $_CONFIG['hotel']['swf_folder']);
$this->setParams('furni_data', $_CONFIG['hotel']['furni_data']);
$this->SetParams('product_data', $_CONFIG['hotel']['product_data']);
$this->setParams('server_ip', $_CONFIG['hotel']['server_ip']);
$this->setParams('server_port', $_CONFIG['hotel']['server_port']);

//Extras
$this->setParams('online_text', $_CONFIG['hotel']['online_text']);

//Facts
$this->setParams('fact_1', $_CONFIG['hotel']['fact_1']);
$this->setParams('fact_2', $_CONFIG['hotel']['fact_2']);
$this->setParams('fact_3', $_CONFIG['hotel']['fact_3']);
$this->setParams('fact_4', $_CONFIG['hotel']['fact_4']);
$this->setParams('fact_5', $_CONFIG['hotel']['fact_5']);

//Mysql Configuration
$this->setParams('mysql_host', $_CONFIG['mysql']['hostname']);
$this->setParams('mysql_port', $_CONFIG['mysql']['port']);

//Templating
$this->setParams('skin', $_CONFIG['template']['style']);

if($users->isLogged())
{
$this->setParams('username', $users->getInfo($_SESSION['user']['id'], 'username'));
$this->setParams('rank', $users->getInfo($_SESSION['user']['id'], 'rank'));
$this->setParams('motto', $users->getInfo($_SESSION['user']['id'], 'motto'));
$this->setParams('email', $users->getInfo($_SESSION['user']['id'], 'mail'));
$this->setParams('coins', $users->getInfo($_SESSION['user']['id'] ,'credits'));
$this->setParams('activitypoints', $users->getInfo($_SESSION['user']['id'], 'activity_points'));
$this->setParams('figure', $users->getInfo($_SESSION['user']['id'], 'look'));
$this->setParams('ip_last', $users->getInfo($_SESSION['user']['id'], 'ip_last'));
$this->setParams('lastSignedIn', date('M j, Y H:i:s A', $users->getInfo($_SESSION['user']['id'], 'last_online')));

if($this->params['rank'] > 6)
{
$this->setParams('housekeeping', '<li class="tab-register-now"><a href="ase/">Housekeeping</a></li>');
}
else
{
$this->setParams('housekeeping', '');
}

if($_GET['url'] == 'me' || $_GET['url'] == 'account' || $_GET['url'] == 'home' || $_GET['url'] == 'settings' || $_GET['url'] == 'community')
{
$template->form->getPageHome();
}

if($_GET['url'] == 'news' || $_GET['url'] == 'articles')
{
$template->form->getPageNews();
}
}

}

final public function setParams($key, $value)
{
$this->params[$key] .= $value;
}

final public function filterParams($str)
{
foreach($this->params as $key => $value)
{
$str = str_ireplace('{' . $key . '}', $value, $str);
}

return $str;
}

final public function write($str)
{
$this->tpl .= $str;
}

final public function outputTPL()
{
echo $this->filterParams($this->tpl);
unset($this->tpl);
}
}
?>
 

Joe

Well-Known Member
Jun 10, 2012
4,172
1,955
Ah it’s my Hablore theme :p

The theme works fine? I think this might be a session/cache issue since you’ve just changed themes.
 

Diddy

Active Member
Aug 14, 2011
109
35
Been awhile since I've even touched RevCMS however are you running cloudflare? Does it work fine if you pause cloudflare?
Have you set the right permissions for the IIS user for the cache folder?
 
Status
Not open for further replies.

Users who are viewing this thread

Top