mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-10-13 18:04:54 +02:00
Fix #153 You can now load sub files (custom pages created in layout folder) instead of the default Znote AAC files. (override system).
This commit is contained in:
14
sub.php
14
sub.php
@@ -1,6 +1,10 @@
|
||||
<?php require_once 'engine/init.php'; include 'layout/overall/header.php';
|
||||
|
||||
if ($config['allowSubPages']) include 'layout/sub.php';
|
||||
<?php require_once 'engine/init.php'; require_once 'layout/overall/header.php';
|
||||
if ($config['allowSubPages']) {
|
||||
$page = (isset($_GET['page']) && !empty($_GET['page'])) ? getValue($_GET['page']) : '';
|
||||
if (isset($subpages[$page]['file'])) require_once 'layout/sub/'.$subpages[$page]['file'];
|
||||
else {
|
||||
if (isset($subpages)) echo '<h2>Sub page not recognized.</h2><p>The sub page you requested is not recognized.</p>';
|
||||
}
|
||||
}
|
||||
else echo '<h2>System disabled.</h2><p>The sub page system is disabled.</p>';
|
||||
|
||||
include 'layout/overall/footer.php'; ?>
|
||||
require_once 'layout/overall/footer.php'; ?>
|
Reference in New Issue
Block a user