forked from danopia/php-ircd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.php
127 lines (110 loc) · 3.5 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<?php
//
// IRCd (IRC Server) written in PHP
// written and copyright 2008 Daniel Danopia
// (danopia) <me@danopia.net> http://danopia.net/
//
// originally MonoNet protocol version 0.1 server
// originally written/copyright 2008 Nick Markwell (RockerMONO/duck)
//
// feel free to edit and distribute as long as you leave all original
// credit for this
//
// config.php - June 15, 2008 by danopia
// Read over the whole file before you run the server!
$config = array(); // Array to store configoration values
////////////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
// Simple stuff \\
////////////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
//
// (string) Name of the server. Must be a valid domain name, doens't
// have to exist though. You might want to have it acutally resolve to
// the server IP. This is used in the onconnect greet, server notices,
// /links, /map, /who, etc.
//
// Examples: homebrew.danopia.no-ip.org
// zeus.devnode.org
// card.freenode.net
// irc.hackthissite.org
// locahost. (xD)
//
$config['name'] = 'homebrew.danopia.no-ip.org';
//
// (string) Name of the network. Should be global accross a network
// (once php-ircd links). Make it short and sweet! Can't have spaces.
//
// Examples: DevNet
// DevNode
// Freenode
// HackThisSite
// Localhost
//
$config['net'] = 'PHP-IRCd';
//
// (number) Maximum packet length, in bytes. 512 is the standard.
//
$config['max_len'] = 512;
//
// (number) Maximum amount of users that can be connected to the IRCd
// at ay time. When links work, this will only be local client but will
// include server links.
//
// Prefered range: 10-100
// Default: 25
//
$config['max_users'] = 25;
//
// (number) TCP/IP port that will be listened on for incoming clients.
//
// Range: Any TCP/IP port (1-51something)
// Default: 6667 (Standard)
//
$config['port'] = 6667;
//
// Server version
//
$config['version'] = 0.1;
//
// (string)
// IP to bind IRC server to
//
$config['bind_ip'] = '0.0.0.0';
//
// (string) Line ending to be used in sockets. I use \n because it
// seems to work the best.
//
$config['line_ending'] = "\n";
//
// (string) Line ending to be used in muliline config values. I use a
// normal newline so it is consistant. You probably can leave this alone
//
$config['line_ending_conf'] = "
";
//
// (string) MOTD (Message of the Day). Shown to everyone when they
// connect and/or use the /motd command.
//
// You may use newlines.
//
$config['motd'] = "THIS IS THE MESSAGE OF THE DAY!
Welcome to my PHP IRCd test server! PHP IRCd is registered on SourceForge.net
<https://sf.net/projects/php-ircd>
Please submit any bugs you find.
#botters is the main channel on here!
/OPER john asdf";
////////////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
// Arrays (for linking, opering, and the sort) \\
////////////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
//
// ((string,string)[]) O:Lines
// O:Lines define opers. You oper with /oper <username> <password>
// (without the < and >, of course). You may deifne multiple O:Lines.
//
// Definition syntax:
// $config['opers']['username'] = 'password';
//
// Example:
// $config['opers']['john'] = 'asdf'; // Oper with /oper john adsf
//
$config['opers'] = array();
$config['opers']['john'] = 'asdf';