-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
29 lines (21 loc) · 906 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
/**
* @author Kevin Newesil <[email protected]>
* @version 0.1-BETA
*
* @todo get icons for file extentions and show file extention as fileTypeIcon
*/
// Start session and enable error reporting to all for now as it's debugging version.
session_start();
error_reporting(-1);
// Check for first runtime.
if( !file_exists( 'init-/config/config.php' ) ) { header( 'location: init-/install.php' ); exit(1); }
// Require the autoloader and helper file for easy access to rest of filestructure
require_once('init-/core/autoloader.php');
require_once('init-/core/helper.php');
// Set the default date and timezone to amsterdam.
date_default_timezone_set( \core\Helper::config( 'timezone' ) );
// Register the autoloader because I'm lazy.
\core\Helper::With('autoloader') -> registerLoad();
die( \core\Helper::With('base') -> build() );
//testing this shit mwuhaahaha;