-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbootstrap.php
More file actions
33 lines (30 loc) · 994 Bytes
/
bootstrap.php
File metadata and controls
33 lines (30 loc) · 994 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
<?php
require_once("./vendor/autoload.php");
include_once("./utils/config.php");
require_once("./utils/emails.php");
require_once("./utils/utils.php");
require_once("./utils/coinbase-utils.php");
function requireDirectory(string $directory){
$content = scandir($directory);
$exp = "(.*)\.php";
foreach($content as $index => $file){
$matches = [];
if(preg_match("/^$exp\$/",$file,$matches) === 1){
require_once("$directory/$file");
}
}
}
function includeDirectory(string $directory){
$content = scandir($directory);
$exp = "(.*)\.php";
foreach($content as $index => $file){
$matches = [];
if(preg_match("/^$exp\$/",$file,$matches) === 1){
include_once("$directory/$file");
}
}
}
requireDirectory("./stringbuilder");
requireDirectory("./router");
requireDirectory("./core");
?>