forked from Vitagliano/Minecraft-Server-Website
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
49 lines (35 loc) · 1.08 KB
/
Copy pathindex.php
File metadata and controls
49 lines (35 loc) · 1.08 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
<?php
session_start();
header_remove( 'X-Powered-By' );
header("X-XSS-Protection: 1; mode=block");
header("X-WebKit-CSP: policy");
header('Content-Type: text/html; charset=utf-8');
ini_set('display_errors',1);
ini_set('display_startup_erros',1);
error_reporting(E_ALL);
setlocale(LC_TIME, 'pt_BR', 'pt_BR.utf-8', 'pt_BR.utf-8', 'portuguese');
date_default_timezone_set('America/Sao_Paulo');
define('DOMAIN', "redeuniverse.net");
if (! empty($_SERVER['HTTPS'])) {
$config['base_url'] = 'https://'.DOMAIN.'/';
} else {
$config['base_url'] = 'https://'.DOMAIN.'/';
}
define('APP_ROOT', $config['base_url']);
require_once 'app/helper/Autoload.php';
require_once 'vendor/autoload.php';
use app\lib\System;
use app\lib\Model;
use app\api\Maintenance;
$maintenance = new Maintenance();
$model = new Model();
$System = new System();
if($maintenance->show()) {
if($System->getArea() != "admin") {
define('MAINTENACE_MESSAGE', $maintenance->htmlMESSAGE());
include("app/content/site/layouts/maintenance.phtml");
return;
}
}
$System->Run();
$model->closeConnection();