mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-14 01:34:55 +02:00
Version v0.0.2
* updated forum links to use friendly_urls * some more info will be shown when cannot connect to database * show more error infos when creating character * fixed forum link on newses * fixed spells loading when there's vocation name instead of id * fixed bug when you have changed template but it doesn't exist anymore * fixed vocations with promotion loading * fixed support for gesior pages and templates * added function OTS_Acount:getGroupId()
This commit is contained in:
@@ -26,14 +26,22 @@ if($config['template_allow_change'])
|
||||
}
|
||||
else if(isset($_SESSION['template']))
|
||||
{
|
||||
if(!preg_match("/[^A-z0-9_\-]/", $_SESSION['template']))
|
||||
if(!preg_match("/[^A-z0-9_\-]/", $_SESSION['template'])) {
|
||||
$template_name = $_SESSION['template'];
|
||||
else
|
||||
}
|
||||
else {
|
||||
$template_name = $config['template'];
|
||||
}
|
||||
}
|
||||
}
|
||||
$template_path = 'templates/' . $template_name;
|
||||
|
||||
if(!file_exists($template_path . '/config.php'))
|
||||
{
|
||||
$template_name = 'kathrine';
|
||||
$template_path = 'templates/' . $template_name;
|
||||
}
|
||||
|
||||
$file = $template_path . '/config.ini';
|
||||
$exists = file_exists($file);
|
||||
if($exists || ($config['backward_support'] && file_exists($template_path . '/layout_config.ini')))
|
||||
@@ -92,6 +100,7 @@ $template['link_screenshots'] = internalLayoutLink('screenshots');
|
||||
$template['link_movies'] = internalLayoutLink('movies');
|
||||
$template['link_serverInfo'] = internalLayoutLink('serverInfo');
|
||||
$template['link_experienceTable'] = internalLayoutLink('experienceTable');
|
||||
$template['link_faq'] = internalLayoutLink('faq');
|
||||
$template['link_points'] = internalLayoutLink('points');
|
||||
$template['link_gifts'] = internalLayoutLink('gifts');
|
||||
$template['link_gifts_history'] = internalLayoutLink('gifts', 'show_history');
|
||||
|
Reference in New Issue
Block a user