-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
50 lines (39 loc) · 734 Bytes
/
index.php
File metadata and controls
50 lines (39 loc) · 734 Bytes
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
/**
* Index Page
*
* Created By Bruiz(@~codeHart~) 2022
*
* PHP Version 8
*/
function translate(){};
// echo "You have CORS!";
/**
* Autoload
*/
require 'vendor/autoload.php';
/**
* Add route to the Routing Table
*/
use Core\Router\Route;
// Load ENV
Route::ENV();
/**
* Twig
*/
// Twig_Autoloader::register();
ini_set('max_execution_time', 130);
date_default_timezone_set('Africa/Lagos');
/**
* Error
*/
error_reporting(E_ALL);
set_error_handler('Core\Error::errorHandler');
set_exception_handler('Core\Error::exceptionHandler');
// define('URL', $_SERVER['REQUEST_SCHEME'].'://'.$_SERVER['SERVER_NAME'].'/');
/**
* Session
*/
session_start();
Route::Route();
// echo $_SERVER['REQUEST_SCHEME'];