This repository has been archived by the owner on Sep 18, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.php
50 lines (42 loc) · 1.92 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
<?php
/**
* brACP - brAthena Control Panel for Ragnarok Emulators
* Copyright (C) 2015 brAthena, CHLFZ
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
// Arquivo de carregamento do composer.
$composerFile = join(DIRECTORY_SEPARATOR, [__DIR__, 'vendor', 'autoload.php']);
// Verifica se o arquivo do composer não existe para iniciar a execução
// do programa do composer.
if(!file_exists($composerFile))
exit('Não foi possível encontrar as dependencias do composer. Verifique sua instalação e tente novamente.');
// Inclui o arquivo de composer para as dependencias de classes.
require_once $composerFile;
// Arquivos padrões para serem incluidos durante a execução do brACP.
$_filesInclude = [
/* Arquivo de configuração será carregado após instalação */
// join(DIRECTORY_SEPARATOR, [__DIR__, 'config.php']),
join(DIRECTORY_SEPARATOR, [__DIR__, 'application', 'autoload.php']),
];
foreach($_filesInclude as $_fileInclude)
{
if(!file_exists($_fileInclude))
exit('Arquivo de configuração do sistema não encontrado. Verifique sua instalação.');
require_once $_fileInclude;
}
// setlocale(LC_ALL, 'pt_BR', 'pt_BR.utf-8', 'pt_BR.utf-8', 'portuguese');
// date_default_timezone_set(APP_DEFAULT_TIMEZONE);
$app = new App;
$app->run();