-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfiguration.php
59 lines (45 loc) · 1.6 KB
/
configuration.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
53
54
55
56
57
<?php
/**
***************************************************************
* PaniCode v2.0-2018
*
* Filename : configuration.php
*
* @author Alin Koko Mansuby < alinkokomansuby@gmail.com >
* @version 2.0-2018
* @copyright 2018 (c) alinko.id
* @license The MIT License (MIT)
*
***************************************************************
*/
$config = [];
$config['path']['includes'] = 'pc_includes/';
$config['path']['modules'] = 'pc_includes/pc_modules/';
$config['path']['views'] = 'pc_includes/pc_views/';
$config['path']['class'] = 'pc_includes/pc_class/';
$config['path']['admin'] = 'pc_admin/';
$config['url']['base'] = 'http://127.0.0.1:5758/';
$config['url']['admin'] = 'http://127.0.0.1:5758/pc_admin/';
$config['url']['module'] = 'm'; // $_GET['m'];
$config['url']['page'] = 'p'; // $_GET['p'];
$config['url']['id'] = 'id'; // $_GET['id'];
$config['db']['hostname'] = 'localhost';
$config['db']['username'] = 'root';
$config['db']['password'] = 'koko';
$config['db']['database'] = 'panicode';
$config['route']['default'] = 'AppMain';
$config['route']['static_header'] = '';
$config['route']['static_footer'] = '';
$config['route']['static_sidebar'] = '';
// Except. kecuali
$config['route']['except_header'] = ['auth'];
$config['route']['except_footer'] = ['auth'];
$config['route']['except_sidebar'] = ['auth'];
if(file_exists(__DIR__.'/'.$config['path']['class'].'/config.pclass.php'))
{
require_once(__DIR__.'/'.$config['path']['class'].'/config.pclass.php');
$conf = new Config($config);
}else{
print __DIR__.'/'.$config['path']['class'].'/config.class.php : Not found';
exit;
}