-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathconfig.dev.php
98 lines (81 loc) · 3.63 KB
/
config.dev.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<?php
date_default_timezone_set( 'America/Chicago' );
define( 'CONFIG', true );
error_reporting( E_ALL );
ini_set( 'display_errors', '1' );
// HTTP
define( 'ORK_DIST_NAME', '');
define( 'HTTP_SERVICE', 'http://' . $_SERVER['HTTP_HOST'] . '/orkservice/');
define( 'HTTP_UI', 'http://' . $_SERVER['HTTP_HOST'] . '/orkui/');
define( 'HTTP_UI_REMOTE', 'http://' . $_SERVER['HTTP_HOST'] . '/orkui/');
define( 'HTTP_TEMPLATE', HTTP_UI . 'template/' );
define( 'HTTP_ASSETS', 'http://' . $_SERVER['HTTP_HOST'] . '/assets/');
define( 'HTTP_WAIVERS', 'http://' . $_SERVER['HTTP_HOST'] . '/assets/waivers/' );
define( 'HTTP_HERALDRY', 'http://' . $_SERVER['HTTP_HOST'] . '/assets/heraldry/' );
define( 'HTTP_PLAYER_IMAGE', 'http://' . $_SERVER['HTTP_HOST'] . '/assets/players/' );
define( 'HTTP_PLAYER_HERALDRY', HTTP_HERALDRY . 'player/' );
define( 'HTTP_PARK_HERALDRY', HTTP_HERALDRY . 'park/' );
define( 'HTTP_KINGDOM_HERALDRY', HTTP_HERALDRY . 'kingdom/' );
define( 'HTTP_EVENT_HERALDRY', HTTP_HERALDRY . 'event/' );
define( 'HTTP_UNIT_HERALDRY', HTTP_HERALDRY . 'unit/' );
define( 'HERALDRY_PLAYER_DEFAULT', HTTP_PLAYER_HERALDRY . '000000.jpg' );
define( 'HERALDRY_PARK_DEFAULT', HTTP_PARK_HERALDRY . '00000.jpg' );
define( 'HERALDRY_KINGDOM_DEFAULT', HTTP_KINGDOM_HERALDRY . '0000.jpg' );
define( 'HERALDRY_EVENT_DEFAULT', HTTP_EVENT_HERALDRY . '00000.jpg' );
define( 'HERALDRY_UNIT_DEFAULT', HTTP_UNIT_HERALDRY . '00000.jpg' );
// HTTPS
define( 'HTTPS_SERVICE', "https://{$_SERVER[ 'HTTP_HOST' ]}/orkservice/" );
define( 'HTTPS_UI', "https://{$_SERVER[ 'HTTP_HOST' ]}/orkui/" );
// DIR
define( 'DIR_BASENAME', dirname( __FILE__ ) . '/' );
define( 'DIR_SERVICE', DIR_BASENAME . "orkservice/" );
define( 'DIR_UI', DIR_BASENAME . "orkui/" );
define( 'DIR_SYSTEM', DIR_BASENAME . "system/" );
define( 'DIR_ASSETS', DIR_BASENAME . "assets/" );
define( 'DIR_TMP', DIR_ASSETS . 'tmp/' );
define( 'DIR_WAIVERS', DIR_ASSETS . "waivers/" );
define( 'DIR_HERALDRY', DIR_ASSETS . "heraldry/" );
define( 'DIR_PLAYER_IMAGE', DIR_ASSETS . "players/" );
define( 'DIR_PLAYER_HERALDRY', DIR_HERALDRY . "player/" );
define( 'DIR_PARK_HERALDRY', DIR_HERALDRY . "park/" );
define( 'DIR_KINGDOM_HERALDRY', DIR_HERALDRY . "kingdom/" );
define( 'DIR_EVENT_HERALDRY', DIR_HERALDRY . "event/" );
define( 'DIR_UNIT_HERALDRY', DIR_HERALDRY . "unit/" );
define( 'DIR_CACHE', DIR_BASENAME.'cache/');
// System
define( 'DIR_LIB', DIR_SYSTEM . 'lib/' );
define( 'DIR_ORK3', DIR_LIB . 'ork3/' );
define( 'DIR_SYSTEMLIB', DIR_LIB . 'system/' );
define( 'DIR_LOGS', DIR_SYSTEM . 'logs/' );
// UI
define( 'DIR_CONTROLLER', DIR_UI . 'controller/' );
define( 'DIR_LANGUAGE', DIR_UI . 'language/' );
define( 'DIR_TEMPLATE', DIR_UI . 'template/' );
define( 'DIR_VIEW', DIR_UI . 'view/' );
define( 'DIR_MODEL', DIR_UI . 'model/' );
// DB
define( 'DB_DRIVER', 'mysql' );
define( 'DB_HOSTNAME', 'ork3-php8-db' );
define( 'DB_USERNAME', 'ork' );
define( 'DB_PASSWORD', 'secret' );
define( 'DB_DATABASE', 'ork' );
define( 'DB_PREFIX', 'ork_' );
define( 'CUSTOM_CSS', HTTP_TEMPLATE.'default/style/custom.css');
// System Config
define( 'LOGIN_TIMEOUT', 72 * 60 * 60 );
define( 'APP_STAGE', 'DEV' );
define( 'UI_LOCALITY', 'LOCAL' ); // REMOTE
define( 'ORK3_SERVICE_URL', HTTP_SERVICE );
define( 'SETUP_ADMIN_EMAIL', '[email protected]' );
define( 'DO_SETUP', false );
define( 'TRACE', false );
define( 'DUMPTRACE', false );
define('GOOGLE_MAPS_API_KEY', '');
define('GOOGLE_MAPS_ACCESS_API_KEY', '');
define('SENDGRID_API_KEY', '');
define('BEHOLD_KEY', '');
// INCLUDE
require_once( DIR_LIB . 'mail.php' );
require_once( DIR_LIB . 'Yapo2/class.Yapo.php' );
require_once( DIR_SYSTEMLIB . 'class.Log.php' );
define( 'CACHE_ENABLED', true);