-
Notifications
You must be signed in to change notification settings - Fork 14
/
config.php
102 lines (93 loc) · 3.83 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
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
<?php return [
/**
* Configuration File
*
* CoreProtect Lookup Web Interface config
* @since 1.0.0
*/
########################
# Account Configuration
# There's only two access accounts: administrator and user.
# The array is as follows: [ username, password ]
# Administrator account can manage configuration from the web.
# set password to enable admin access (no special permissions at the moment).
'administrator' => ['Administrator', ''],
# User account to access lookup.
# set password to require log in to use the lookup.
'user' => ['User', ''],
################################
# Database/Server configuration
# If you have multiple databases, configure each database source here by
# copying 'server' array right under and renaming 'server' to a different
# server name.
# type = 'mysql' or 'sqlite' all lowercase
# path = SQLite path to CoreProtect's database.db
# host = MySQL database host[:port]
# database = MySQL database name
# username = MySQL username
# password = MySQL password
# flags = MySQL flags to put at the end of connection URI
# (don't change if you don't need to)
# prefix = CoreProtect prefix
# preBlockName = Whether to prepend "minecraft:" for material name if no colon (:) is present
# (May need to be turned off for databases with data from MC 1.7)
# mapLink = Link to view on the map. (Dynmap, Overviewer, etc.)
# {world} for world; {x} {y} {z} for xyz coordinates
'database' => [
'server' => [
'type' => 'mysql',
'path' => 'path/to/database.db',
'host' => 'localhost:3306',
'database' => 'minecraft',
'username' => 'username',
'password' => 'password',
'flags' => '',
'prefix' => 'co_',
'preBlockName'=> true,
'mapLink' => 'https://localhost:8123/?worldname={world}&mapname=surface&zoom=3&x={x}&y={y}&z={z}'
],
],
########################
# Website Configuration
# Form Configuration
# limit = default lookup query limit
# moreLimit = default "load more" query limit
# max = maximum limit for single query
# pageInterval = how many entries to divide the pagination by
# timeDivider = how many entries the table displays before the interval shows up
# locale = Date locale (website locale coming soon?)
# dateTimeFormat = Date format (see https://momentjs.com/docs/#/parsing/string-format/)
# (try 'YYYY.MM.DD hh:mm:ss a')
'form' => [
'count' => 30,
'moreCount' => 10,
'max' => 300,
'pageInterval' => 25,
'timeDivider' => 300,
'dateTimeFormat'=> 'LL LTS'
],
# Webpage name and style configuration
# bootstrap = Link to a bootstrap swatch, local or from CDN.
# If from a CDN, using the HTML <link> with
# 'integrity' and 'crossorigin' is recommended!
# (you can get link to theme from:)
# https://www.bootstrapcdn.com/bootswatch/
# darkInput = if the bootstrap theme is a dark theme
# (Affects the color of input fields)
# name = Page name
# href = link where the page name leads to
'page' => [
'bootstrap' => '<link href="https://stackpath.bootstrapcdn.com/bootswatch/4.4.1/slate/bootstrap.min.css" rel="stylesheet" integrity="sha384-G9YbB4o4U6WS4wCthMOpAeweY4gQJyyx0P3nZbEBHyz+AtNoeasfRChmek1C2iqV" crossorigin="anonymous">',
'darkInput' => true,
'name' => 'CoreProtect Lookup Web Interface',
'href' => '/',
'copyright' => 'Awesome Server, 2020'
],
# Navigation Bar Customization
# add more pairs below to add more links to the navbar.
'navbar' => [
'Home' => 'index.php',
#'BanManager' => '/banmanager/',
#'Dynmap' => 'http://127.0.0.1:8123/',
]
];