<?php use App\Page; use App\Admin; // error_reporting(0); require_once "./vendor/autoload.php"; require "./config.php"; $page = Page::GetById(isset($_GET['pid']) && is_numeric($_GET['pid']) ? $_GET['pid'] : 1); include APP_DIR . "public/layout/header.php"; include APP_DIR . "app/Modules/mod_menu/index.php"; if ($page->modules_arr) { foreach ($page->modules_arr as $module) { if ($module) { include APP_DIR . "app/modules/{$module}/index.php"; } } } include APP_DIR . "public/layout/footer.php";