case "me":
case "account":
case "news":
header('Location: '.$_CONFIG['hotel']['url'].'/index');
exit;
break;
case "me":
case "account":
case "news":
case "community":
case "staff":
header('Location: '.$_CONFIG['hotel']['url'].'/index');
exit;
break;
$this->setParams('hotelName', $_CONFIG['hotel']['name']);
$this->setParams('username', '<a href="/register">Register<a>');
The first one worked great, but it's not that fun to have. But it'll do.App -> open class.core.php
Search:
PHP:case "me": case "account": case "news": header('Location: '.$_CONFIG['hotel']['url'].'/index'); exit; break;
Change it to:
PHP:case "me": case "account": case "news": case "community": case "staff": header('Location: '.$_CONFIG['hotel']['url'].'/index'); exit; break;
And for the {username} stuff, I'm not sure, but try this:
App -> open class.template.php
Search:
Add below:PHP:$this->setParams('hotelName', $_CONFIG['hotel']['name']);
PHP:$this->setParams('username', '<a href="/register">Register<a>');
case "me":
case "account":
case "news":
header('Location: '.$_CONFIG['hotel']['url'].'/index');
exit;
break;
case "me":
header('Location: '.$_CONFIG['hotel']['url'].'/register');
exit;
break;
case "account":
case "news":
case "community":
case "staff":
header('Location: '.$_CONFIG['hotel']['url'].'/index');
exit;
break;
$this->setParams('username', '<a href="/register">Register<a>');
$this->setParams('username', 'Register');
So, if you go to url/me it redirects you to the register page, but all the other pages redirects you to url/index.What you could do is:
Change
PHP:case "me": case "account": case "news": header('Location: '.$_CONFIG['hotel']['url'].'/index'); exit; break;
To:
PHP:case "me": header('Location: '.$_CONFIG['hotel']['url'].'/register'); exit; break; case "account": case "news": case "community": case "staff": header('Location: '.$_CONFIG['hotel']['url'].'/index'); exit; break;
And
ToPHP:$this->setParams('username', '<a href="/register">Register<a>');
PHP:$this->setParams('username', 'Register');