-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
34 lines (26 loc) · 1.38 KB
/
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
30
31
32
33
34
<?php
/*///////////////////////////////////////////////////
All the things around this
framework can be found at our
official repository
https://github.com/zonblade/phpr
We advice you not to change index.php
default settings, if you're not sure
what to do.
///////////////////////////////////////////////////*/
/*Start Session :: */ session_start();
/*Activate Reporting :: */ error_reporting(E_ALL);
/*Error Display :: */ ini_set('display_errors', 'On');
/*Limit Header to :: */ header('X-Frame-Options: SAMEORIGIN');
/*Root Folder :: */ define("ROOT_FOLDER" ,__DIR__ ,true);
/*Model Folder :: */ define("MODL_FOLDER" ,__DIR__.'/module' ,true);
/*APPS Folder :: */ define("APPS" ,__DIR__.'/module/apps' ,true);
/*URLS Folder :: */ define("URLS" ,__DIR__.'/module/urls.php' ,true);
/*Include System :: */ include __DIR__.'/module/.system/system.php';
/*/////////////////////////////////////////////////*/
set_error_handler(function ($errno, $errstr, $errfile, $errline)
{if (0 === error_reporting()) {return false;}
throw new ErrorException($errstr, 0, $errno, $errfile, $errline);});
try {include __DIR__.'/module/urls.php';}
catch (\Throwable $e){ logSystem($e->getMessage());}
catch (\ErrorException $e){ logSystem($e->getMessage());}