forked from azerothcore/PvPstats
-
Notifications
You must be signed in to change notification settings - Fork 7
/
config.php.dist
77 lines (58 loc) · 1.92 KB
/
config.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
<?php
# Your server name
$server_name = "AzerothCore";
# Your server url
$server_url = "http://www.azerothcore.org/";
# Your server logo img url (optional)
$server_logo = "img/PvPstats.png";
# Your server armory url including character name param
# (set it blank if you don't have it)
$armory_url = "http://www.yourserver.org/armory/character.php?n=";
# Your server armory url including guild name param
# (set it blank if you don't have it)
$guild_armory_url = "http://www.yourserver.org/armory/guild.php?n=";
# The date PvPstats system is online from
$online_from = "01/08/2014";
# Show guilds
# 0 = don't show
# 1 = show
$show_guilds = 1;
# Your server expansion
# 0 = Classic
# 1 = The Burning Crusade
# 2 = Wrath of The Lich King
# 3 = Cataclysm
$expansion = 2;
# Connection to the database of characters (address, username, password, database, port)
$db = new mysqli("127.0.0.1","root","password","characters", 3306);
# Charset (you can set it blank if you want to maintain your default charset)
$charset = "utf8";
# Dates and times format
# Reference: http://php.net/manual/en/function.date.php
$date_format = "Y-m-d";
$time_format = "H:i:s";
# Max number of results allowed in battleground.php search
$max_results_allowed = 500;
# Show additional statistics in battleground.php page
# (guild members amount, day scores, month scores, other battlegrounds of day)
# 0 = don't show
# 1 = show
$additional_statistics = 1;
# Debug
# 0 = Debug mode disabled
# 1 = Debug mode enabled
$debug = 0;
if (mysqli_connect_error())
die('Connect Error (' . mysqli_connect_errno() . ') '
. mysqli_connect_error());
if (isset($charset) || $charset == "")
$db->set_charset($charset);
if ($expansion < 0 || $expansion > 3)
die("Wrong value provided for expansion parameter. Please config your expansion.");
if ($debug != 0)
{
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(-1);
}
?>