This repository was archived by the owner on Jan 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.php
More file actions
51 lines (39 loc) · 1.57 KB
/
init.php
File metadata and controls
51 lines (39 loc) · 1.57 KB
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
<?php
declare(strict_types = 1);
const MAIN = __DIR__;
const FILE_SIZES = [
'avatar' => 8388608,
'banner' => 33554432,
'free_post' => 16777216,
'premium_post' => 33554432
];
const AVAILABLE_COLORS = [ "2fe0b7", "26a5ef", "a653f4", "6926ef", "e250fc", "fc2ae0", "fc2a93", "fc4160", "fc7641", "fc7c20", "fcc520", "e9ef3e", "5cc326", "87e529", "50f736", "36f7b7", "CCCCFF", "9FE2BF", "FF7F50", "6495ED" ];
const FILE_TYPES = [
'video' => ['mp4'],
'image' => ['gif', 'jpeg', 'jpg', 'png']
];
$db = json_decode(file_get_contents(MAIN . '/config/db.json'), true);
$default = [
'script_url' => 'static/build/script/dist.js',
'style_url' => 'static/build/style/main.css',
];
// Functions
require_once MAIN . '/app/source/php/func/functions.php';
// Application
require_once MAIN . '/app/source/php/Database.php';
require_once MAIN . '/app/source/php/Router.php';
require_once MAIN . '/app/source/php/Viewer.php';
// Client
require_once MAIN . '/app/source/php/src/Client/Client.php';
require_once MAIN . '/app/source/php/src/Client/ClientUpdate.php';
// Notifications
require_once MAIN . '/app/source/php/src/Notifications/Notifications.php';
// UserOptions
require_once MAIN . '/app/source/php/src/User/User.php';
require_once MAIN . '/app/source/php/src/User/UserOptions.php';
// Posts
require_once MAIN . '/app/source/php/src/Posts/Posts.php';
require_once MAIN . '/app/source/php/src/Posts/Stories.php';
// Suggestions
require_once MAIN . '/app/source/php/src/Suggestions/Suggestions.php';
require_once MAIN . '/app/source/php/src/Suggestions/ExploreCategories.php';