* moved template menus to database, they're now dynamically loaded

* you can edit them in Admin Panel under 'Menus' option.
* you can also add custom links, like http://google.pl
* removed videos pages, as it can be easily added using custom Menus and Pages with insert Media
* removed bug_report configurable, its now enabled by default
This commit is contained in:
slawkens
2017-10-24 14:42:23 +02:00
parent 195ec4b11e
commit 6c9e09ea73
22 changed files with 497 additions and 604 deletions

View File

@@ -55,6 +55,7 @@ else
$uri = str_replace_first('/', '', $uri);
$uri = str_replace(array('index.php/', '?'), '', $uri);
define('URI', $uri);
$found = false;
if(empty($uri) || isset($_REQUEST['template'])) {
@@ -116,6 +117,7 @@ else {
'/^news\/archive\/[0-9]+\/?$/' => array('subtopic' => 'newsarchive', 'id' => '$2'),
'/^polls\/[0-9]+\/?$/' => array('subtopic' => 'polls', 'id' => '$1'),
'/^spells\/[A-Za-z0-9-_%]+\/[A-Za-z0-9-_]+\/?$/' => array('subtopic' => 'spells', 'vocation' => '$1', 'order' => '$2'),
'/^gifts\/history\/?$/' => array('subtopic' => 'gifts', 'action' => 'show_history'),
);
foreach($rules as $rule => $redirect) {
@@ -333,7 +335,7 @@ if($load_it)
else
{
$file = SYSTEM . 'pages/' . $page . '.php';
if(!@file_exists($file) && !$found)
if(!@file_exists($file))
{
$page = '404';
$file = SYSTEM . 'pages/404.php';