forked from pdinklag/MinecraftStats
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.php
59 lines (44 loc) · 1.23 KB
/
config.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
<?php
/**
* General configuration.
*/
require_once("util.php");
$mcstatsVersion = "1.00";
//Time zone
date_default_timezone_set('America/Sao_Paulo');
$timezone = 'BRST';
//Data structure
$dataDir = "/var/www/html/stats/data";
$rawDataDir = "/var/www/html/stats/raw";
$playerCacheFile = "$dataDir/players.txt";
$hofFile = "$dataDir/hof.txt";
$awardsFile = "$dataDir/awards.txt";
$lastUpdateFile = "$dataDir/lastUpdate";
$statDataDir = "$dataDir/stats";
$playerDataDir = "$dataDir/players";
//Award output - %A% = award name, %W% = Winner, %D% = Award description, %S% = Score
$awardOutputFile = "$dataDir/awardsOutput.txt";
$awardOutputFormat = "%A%;%W%;%D%;%S%\n";
//General Settings
$title = "SatoshiCraft";
$inactiveTime = 432000; //seven days
//Paging
$itemsPerPage = 50;
//Hall of Fame score settings
$goldMedalScore = 3;
$silverMedalScore = 2;
$bronzeMedalScore = 1;
//Icons
$awardIconDir = "img/icons";
$defaultIcon = "minecraft-wiki/64px-No_image.svg.png";
//Skins
$defaultSkins = ["img/skins/steve.png", "img/skins/alex.png"];
//Load Stats configuration
require("config-stats.php");
//Load player data
if(is_file($playerCacheFile)) {
$players = unserialize(file_get_contents($playerCacheFile));
} else {
$players = [];
}
?>