This repository has been archived by the owner on Aug 21, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
appConfig.php.dist
154 lines (109 loc) · 4.04 KB
/
appConfig.php.dist
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<?php
// App Info
$appName="UTTracker2WEB";
$appFullName="Unreal Tournament Stats Tracker";
$appCredits="UTTWEB2 '13 '14 namonaki14, WaldoMG; contact: namonaki [at] mm.pl";
// App location (URL)
$appHost = "localhost";
$appPath = "/UTTrackerPub";
$appUrlProto = "http";
$appUrl = $appUrlProto.'://'.$appHost.$appPath;
// Host for cookies
$site_cookie_host='localhost';
// External paths for static files
// You can use separate domain for CDN like CloudFlare
$cdnDomain = "localhost";
$assetsPath = "//{$cdnDomain}/UTTrackerPub/Assets/Site"; // /Assets/Site/
$assetsGenericPath = "//{$cdnDomain}/UTTrackerPub/Assets/Global"; // /Assets/Global/
// Local path for static files
$assetsPathLocal=__DIR__."/Assets/Site"; // /Assets/Site/
$assetsGenericPathLocal=__DIR__."/Assets/Global"; // /Assets/Global/
/* DATABASE CONFIG */
$statdb_host="localhost";
$statdb_user="uttWeb";
$statdb_pass="EditMeEditMe";
$statdb_db="utt";
$I_Modified_The_Database_Config = false; // set to true if values above are correct
/* DATA FOLDER */
$dataDir = __DIR__ . "/N14Data";
/* NCORE Location */
define('N14CORE_API', '0.1THIN');
define('N14CORE_LOCATION', __DIR__. "/N14Core/v" . N14CORE_API);
/* OPTIONAL COMPONENTS */
// UT Map Page content (screenshots, polys and downloaded map files)
$utmpInstalled = true;
$utmpLoc = realpath(__DIR__ . "/UTMP"); // /Optional/UTMP/
// !! if you also wish to use Map Downloader Tool, edit the configs in UTMP/mapdlcron2.php
// Wireframe renderer for map page
$rendererInstalled = true;
$rendererLoc = realpath(__DIR__ . "/WireframeRenderer"); // /Optional/WireframeRenderer/
// UT Map Download Database
$utmdcInstalled = true;
$utmdcLoc = realpath(__DIR__ . "/UTMDC"); // /Optional/UTMDC/
// Fonts
$fontsLoc = realpath(N14CORE_LOCATION . "/GDWrapper/Fonts"); // /N14Core/vX.Y/GDWrapper/Fonts
// Location of server scanner config ini (optional)
$config_ini=__DIR__ . "\\Scanner\\bin\\Debug\\utt_updater3.ini";
// display benchmarking checkpoints
$debug_checkpoint=false;
$update_brief=true; // ?? UNUSED
$enable_updater=false; // ?? UNUSED
/* APPEARANCE */
$bodyclass="dark rage";
// used for graph drawing
$bgcolor=0x000000;
$textcolor=0xffffff;
$branchname="";
$defaultLocale="en";
$jsScriptVersion="utt150121-b5";
/* N14 Error Handler */
$errhndFatalPage=__DIR__ . "/errorpage.php"; // for n14phperrorhandler
$errhndExecPhp=true;
$sqlAutoexec="SET SESSION TRANSACTION ISOLATION LEVEL READ COMMITTED";
const SQLENG_DEBUG=false;
$showSqlHistory=false;
const UTT_BUILD=58;
const UTT_MAPREPORT_VER=57;
$appTables = array(
'trk.player.history'=>"playerhistory",
'trk.player.history.temporary'=>"playerhistorythin",
'trk.player.info'=>"playerinfo",
'trk.player.stats'=>"playerstats",
'trk.server.history'=>"serverhistory",
'trk.server.info'=>"serverinfo",
'trk.config'=>"utt_info",
'trk.mapdl.queue'=>"mapdownloadqueue",
'trk.utmap.info'=>"mapinfo",
'trk.bunnytrackaddon.records'=>"btrecords",
'trk.scanner3.gameendcatcher.schedule'=>"tinyscanschedule",
'trk.scanner3.serverrescan.queue'=>"serverqueue",
//'trk.utmdc.data'=>"utmdc_data",
//'trk.utmdc.sources'=>"utmdc_sources"
);
include_once "contentcfg.php";
/* N14Core */
$n14AppConfig['Host']=$appHost;
$n14AppConfig['Url']=$appUrl;
$n14AppConfig['Name']=$appName;
$n14AppConfig['FullName']=$appFullName;
$n14AppConfig['Credits']=$appCredits;
$n14AppConfig['AssetsPath']=$assetsPath;
$n14AppConfig['AssetsPathGeneric']=$assetsGenericPath;
$n14AppConfig['Logo']="$assetsPath/logos/mtatrlogo.png";
$n14AppConfig['Version']="UTTWEB 0.2.".UTT_BUILD;
/* N14Core Legacy (v0.-1) */
define("N14APPNAME",$appName);
define("N14APPFULLNAME",$appFullName);
define("N14APPURL",$appUrl);
/* N14 Crappy Includes stuff (get rid of it ASAP) */
$site_host=$appHost;
$site_url=$appUrl;
$sub_site_url=$site_url;
if(php_sapi_name()=="cli"){
$RQU="";
$basedir=__DIR__;
}else{
$RQU=$_SERVER['REQUEST_URI'];
$basedir=dirname($_SERVER['SCRIPT_FILENAME']);
}
?>