forked from GMX9/Crypto-Exchange-PHP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
52 lines (51 loc) · 1.79 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
<?php
############################################################
# CRYPTO EXCHANGE SOFTWARE - GMX #
############################################################
//error_reporting(E_ALL);
//ini_set('display_errors', '1');
if(file_exists("configs/database.php")){ require_once("configs/database.php"); }
if(file_exists("configs/global.php")){ require_once("configs/global.php"); }
require_once("lib/controllers.php");
require_once("lib/exchange.php");
############################################################
# CUSTOM MVC FRAMEWORK PHP 7.0 #
############################################################
############################################################
# Developed by Gonçalo M. #
############################################################
# CONFIGURAÇÃO DB && SESSION #
############################################################
session_start();
if(file_exists("configs/database.php")){
$connect = new mysqli($config['database']['host'],$config['database']['user'],$config['database']['pass'],$config['database']['db']);
}
if(file_exists("configs/global.php")){
define("URL", $config['global']['website']);
$website_name =$config['global']['websitename'];
$url = URL;
}
$user_session = $_SESSION['username'] ?? NULL;
$user = new user($user_session);
global $url;
global $main_logo;
global $website_name;
global $user;
global $exchange;
############################################################
# LOAD WEBSITE
############################################################
/* __
_ |@@|
/ \ \--/ __
) O|----| | __
/ / \ }{ /\ )_ / _\
*/
$controllers->pageIndex("page");
/*
)/ /\__/\ \__O (__
|/ (--/\--) \__/
/ _)( )(_
`---''---`
*/
?>