|
3 | 3 | <?php
|
4 | 4 |
|
5 | 5 | require_once("utils/minifier.php");
|
6 |
| - |
7 |
| - // Set to false to enable the miinified versions of JS and CSS files |
8 |
| - // that should speed up content delivery on production websites |
9 |
| - $debug = true; |
10 |
| - |
11 |
| - // Set to the IP of the GTA server that has live_map. Make sure it has the trailing slash (/) |
12 |
| - $gtaServer = "http://127.0.0.1:30120/"; |
13 |
| - |
14 |
| - // Set tpo the name of "live_map". |
15 |
| - // Note: If you change the folder name on the GTA server you NEED to change this |
16 |
| - $liveMapName = "live_map"; |
17 |
| - |
18 |
| - // Builds the url that we need to use in ajax requests to get the blips |
19 |
| - $blipUrl = $gtaServer . $liveMapName . "/blips.json"; |
| 6 | + require_once("utils/config.php"); |
20 | 7 | ?>
|
21 | 8 |
|
22 | 9 | <html>
|
|
51 | 38 |
|
52 | 39 | <link type="text/css" rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700">
|
53 | 40 | <?php
|
54 |
| - |
| 41 | + // Print the CSS stuff for the webapp. This will either print the minfied version or, links to the CSS filees |
55 | 42 | printCss($debug);
|
56 |
| - |
57 | 43 | ?>
|
58 | 44 |
|
59 | 45 | <script src="js/jquery-3.2.1.min.js"></script>
|
|
64 | 50 | <script>
|
65 | 51 |
|
66 | 52 | ///////////////////////////////////////////////////////////////////////////
|
67 |
| - // CONFIGURATION STARTS HERE |
| 53 | + // PLEASE CHNAGE THE VAUES INSIDE THE CONFIG FILE |
68 | 54 | ///////////////////////////////////////////////////////////////////////////
|
69 | 55 |
|
70 | 56 | // Set relative tile directory
|
71 |
| - var _MAP_tileURL = "images/map/"; |
| 57 | + var _MAP_tileURL = "<?php echo $mapTileUrl; ?>"; |
72 | 58 |
|
73 | 59 | // Set relative icon directory
|
74 |
| - var _MAP_iconURL = "images/icons/"; |
| 60 | + var _MAP_iconURL = "<?php echo $mapIconUrl; ?>"; |
75 | 61 |
|
76 | 62 | // Set if to show Atlas map (WARNING: REQUIRES "atlas" TILE DIRECTORY)
|
77 |
| - var _MAP_atlasMap = true; |
| 63 | + var _MAP_atlasMap = <?php echo $atlasEnabled; ?>; |
78 | 64 |
|
79 | 65 | // Set if to show Satellite map (WARNING: REQUIRES "satellite" TILE DIRECTORY)
|
80 |
| - var _MAP_satelliteMap = true; |
| 66 | + var _MAP_satelliteMap = <?php echo $satelliteEnabled; ?>; |
81 | 67 |
|
82 | 68 | // Set if to show Road map (WARNING: REQUIRES "road" TILE DIRECTORY)
|
83 |
| - var _MAP_roadMap = true; |
| 69 | + var _MAP_roadMap = <?php echo $roadEnabled; ?>; |
84 | 70 |
|
85 | 71 | // Set if to show UV Invert map (WARNING: REQUIRES "uv-invert" TILE DIRECTORY)
|
86 |
| - var _MAP_UVInvMap = false; |
| 72 | + var _MAP_UVInvMap = <?php echo $uvInveredEnabled; ?>; |
87 | 73 |
|
88 | 74 | // Set to the IP of the GTA server running "live_map" and change the port to the
|
89 | 75 | // number that is set
|
90 |
| - var _SETTINGS_socketUrl = "ws://localhost:30121" |
| 76 | + var _SETTINGS_socketUrl = "<?php echo $socketUrl ?>"; |
91 | 77 |
|
92 | 78 | // Set to false if you don't want to show the player's identifiers (this may be their IP)
|
93 |
| - var _SETTINGS_showIdentifiers = true; |
| 79 | + var _SETTINGS_showIdentifiers = <?php echo $showIdentifiers; ?>; |
94 | 80 |
|
95 |
| - <?php |
96 |
| - echo "var _SETTINGS_blipUrl = \"$blipUrl\";" |
97 |
| - ?> |
| 81 | + var _SETTINGS_blipUrl = "<?php echo $blipUrl; ?>"; |
98 | 82 |
|
99 | 83 | // Do not remove unless you know what you're doing (and you have a google api key)
|
100 | 84 | // Hack from https://stackoverflow.com/questions/38148097/google-maps-api-without-key/38809129#38809129
|
|
0 commit comments