uiisc/clientarea.php

27 lines
663 B
PHP
Raw Normal View History

2019-06-24 13:04:26 +00:00
<?php
session_start();
define('IN_SYS', true);
2019-06-26 02:02:35 +00:00
require_once "core.php";
2019-06-24 13:04:26 +00:00
2019-06-24 15:03:17 +00:00
include_once "{$ROOT}/library/email.class.php";
2019-06-24 13:04:26 +00:00
$section = empty($_GET["s"]) ? "main" : $_GET["s"];
$section_page = "{$ROOT}/clientarea/views/{$section}.php";
if (!is_file($section_page)) {
exit('Page Not Found!');
}
$objDB = objDB();
2019-06-26 02:02:35 +00:00
$dbpdo = DBPDO::getInstance($dbconfig);
2019-06-24 13:04:26 +00:00
$user = get_userinfo();
$controller = "{$ROOT}/clientarea/controllers/{$section}.php";
if (is_file($controller)) {
include_once $controller;
}
require_once "clientarea/views/header.php";
require_once "clientarea/views/navbar.php";
require_once $section_page;
require_once "clientarea/views/footer.php";