-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathconfig.php
More file actions
116 lines (85 loc) · 3.41 KB
/
config.php
File metadata and controls
116 lines (85 loc) · 3.41 KB
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
<?php
// Used for the session ID, must be unique if running more than one WebCP on a server
$cpid = 'EODB';
// Link and site name used in the header
$homeurl = 'http://localhost/';
$sitename = 'MySite';
// Password salt, this must be the same as in EOSERV's config.ini
$salt = 'ChangeMe';
// Database connection info
$dbtype = 'mysql';
$dbhost = 'localhost';
$dbuser = 'eoserv';
$dbpass = 'eoserv';
$dbname = 'eoserv';
//Data Files
$datafiles = 'C:\data';
//Images per database page
$imgperpage = 30;
// Template file to use, directory ./tpl/$template/ must exist
$template = 'green';
// Page file extension, keep this as .php unless you know you can change it
$phpext = '.php';
// Server details, the online list is grabbed from here
$serverhost = '127.0.0.1';
$serverport = 8078;
// Purely cosmetic, number of players that can be online at once
$maxplayers = 2000;
// How many items to show per page (eg. All Character list)
$perpage = 100;
// How many players are shown on the top players page
$topplayers = 100;
// How many guilds are shown on the top guilds page
$topguilds = 100;
// How many seconds to keep the online list/status cached, reducing this will increase the accuracy of the online list/status, but increase server load
$onlinecache = 60;
// Where the EIF and ECF files are found, no trailing slash
$pubfiles = 'C:\data\pub';
// Caches EIF and ECF file data to a native PHP format, disabling this will use a lot more CPU power than neccessary
$pubcache = true;
// Where the map files are found, no trailing slash
$mapfiles = 'C:/data/maps';
// Where the quest files are found, no trailing slash
$questfiles = 'C:/data/quests';
// Quest preferred file extension
$questext = '.eqf';
// Turning this on will cause HTTP 400 errors if you refresh a form, but provides a little more security
$dynamiccsrf = false;
// Print debug info at the bottom of the page (never use this on live servers)
$DEBUG = false;
// Turning this on will cause HTTP 400 errors if you refresh a form, but provides a little more security
$dynamiccsrf = false;
// Rate-limits authentication requests by IP address
// Driver can either be 'none', 'file' or 'db'
// DB driver requires an additional table added to the database (see install.sql)
//$loginrate_driver = 'none';
//$loginrate_driver = 'file';
$loginrate_driver = 'db';
// File path for loginrate 'file' driver, requires a trailing slash
// For privacy reasons this path shouldn't be accessible via your webserver
$loginrate_file_path = './.htloginrate/';
// Filename salt for loginrate 'file' driver
// This should be changed to something random
$loginrate_file_salt = 'ChangeMe';
// Database table for loginrate 'db' driver
$loginrate_db_table = 'webcp_loginrate';
// Require a CAPTCHA after:
// - more than 5 requests in an hour
// - or, more than 20 requests in a day
// Make blank to disable.
$loginrate_captcha = '5:3600; 20:86400';
// Rejects requests after:
// - more than 2 requests in 10 seconds
// - or, more than 10 requests in 5 minutes
// - or, more than 100 requests in 24 hours
$loginrate = '2:10; 10:300; 100:86400';
// List of fonts to use for CAPTCHA generation
// Leave blank to use PHP's basic pixel font instead.
$captcha_fonts = array(
'/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf',
'/usr/share/fonts/truetype/dejavu/DejaVuSerif.ttf',
);
//if (is_file("./config.local.php"))
//{
//include "./config.local.php";
//}