This repository has been archived by the owner on Feb 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
109 lines (99 loc) · 5.83 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<?php
/*
This code is under MIT License
+--------------------------------+
| DO NOT MODIFY THIS HEADERS |
+--------------------------------+-----------------+
| Created by BiuStudio |
| Email: support@biuhub.net |
| Link: https://www.biurad.tk |
| Source: https://github.com/biustudios/biurad |
| Real Name: Divine Niiquaye - Ghana |
| Copyright Copyright (c) 2018-2019 BiuStudio |
| License: https://biurad.tk/LICENSE.md |
+--------------------------------------------------+
+--------------------------------------------------------------------------------+
| Version: 0.0.1.1, Relased at 18/02/2019 13:13 (GMT + 1.00) |
+--------------------------------------------------------------------------------+
+----------------+
| Tested on |
+----------------+-----+
| APACHE => 2.0.55 |
| PHP => 5.4 |
+----------------------+
+---------------------+
| How to report bug |
+---------------------+-----------------------------------------------------------------+
| You can e-mail me using the email addres written above. That email is also my msn |
| contact, so you can use it for contact me on MSN. |
+---------------------------------------------------------------------------------------+
+-----------+
| Notes |
+-----------+------------------------------------------------------------------------------------------------+
| - BiuRad's simple-as-possible architecture was inspired by several conference talks, slides |
| and articles about php frameworks that - surprisingly and intentionally - |
| go back to the basics of programming, using procedural programming, static classes, |
| extremely simple constructs, not-totally-DRY code etc. while keeping the code extremely readable. |
| - Features of Biuraad Php Framework
| +--> Proper security features, like CSRF blocking (via form tokens), encryption of cookie contents etc.|
| +--> Built with the official PHP password hashing functions, fitting the most modern password |
hashing/salting web standards. |
| +--> Uses [Post-Redirect-Get pattern](https://en.wikipedia.org/wiki/Post/Redirect/Get) |
| <--+ Uses URL rewriting ("beautiful URLs"). |
| - Masses of comments | |
| +--> Uses Libraries including Composer to load external dependencies. |
| <--+ Proper security features, like CSRF blocking (via form tokens), encryption of cookie contents etc.|
| - Fits PSR-0/1/2/4 coding guideline. |
+------------------------------------------------------------------------------------------------------------+
+------------------+
| Special Thanks |
+------------------+-----------------------------------------------------------------------------------------+
| I always thank the HTML FORUM COMMUNITY (http://www.html.it) for the advice about the regular expressions |
| A special thanks at github.com(http://www.github.com), because they provide me the list of php libraries, |
| snippets, and any more... |
| I thanks Php.net and Sololearn.com for its guildline in PHP Programming |
| Finally, i thank Wikipedia for the countries's icons 20px |
+------------------------------------------------------------------------------------------------------------+
*/
/*
|--------------------------------------------------------------------------
| Track the Pre-Execution Time
|--------------------------------------------------------------------------
|
| Get the time in microtime format for you to measure the awesomeness by
| Damn Stupid Simple framework.
|
*/
define('BR_START', microtime(true));
/*
|--------------------------------------------------------------------------
| Use Full Paths for Better Performance
|--------------------------------------------------------------------------
|
| The full path starting from the index.php file. Improves performance (a
| bit)
|
*/
define('BR_PATH', realpath(dirname(__FILE__)).'/');
/*
|--------------------------------------------------------------------------
| Include the Autoloader file
|--------------------------------------------------------------------------
|
| In this file we will register the Autoloader from Composer. Environment
| variables (that you set on config/env.php) will be registered this time.
| Our sweet debugging tool will also be loaded to track errors as earlier
| as possible.
|
*/
require_once BR_PATH.'Application/autoloader.php';
/*
|--------------------------------------------------------------------------
| Include the Bootstrap File
|--------------------------------------------------------------------------
|
| The bootstrapper will make sure that every services, like database, cache
| manager and routing runs perfectly well.
|
*/
require_once BR_PATH.'Application/bootstrap.php';