<?php 

define( 'CBT_DIR', __DIR__ );

uss::$global['portal'] = core::url( ROOT_DIR . "/portal/register" );

events::addListener('dashboard::ready', function() {
	
	require CBT_DIR . '/database.php';
	require CBT_DIR . '/class.php';
	require CBT_DIR . '/global.php';

	/*
		CBT Hierarchy:
			- Exam
				- Subject
					- Question
						- answers
							- solutions
	*/

	/*
		The institute dashboard file will control the interface of the main dashboard
		Hence, converting the member dashboard into a teacher cPanel
		
		DASHBOARD IS DISABLED!!!
	*/

	require CBT_DIR . "/TEACHER/index.php";

	/*
		The student exam file will control the interface required for students to answer exams
		It is responsible for providing questions that has been given by the institution
		Hence! It will take over the main index page
	*/

	require CBT_DIR . "/STUDENT/index.php";

}, EVENT_FLOAT - 1);


events::addListener('admin::ready', function() {
	
	/*
		The institute dashboard file will control the interface of the main dashboard
		Hence, converting the member dashboard into a admin cPanel
	*/

	require CBT_DIR . "/ADMIN/index.php";
	
});