mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-04-26 01:09:22 +02:00
11 lines
546 B
PHP
11 lines
546 B
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>';
|
|
require_once 'layout/overall/footer.php'; ?>
|