]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blob - config/compat.php
Users: Scratch the "Secure" column, as it's less useful nowadays that
[irc/unrealircd/unrealircd-webpanel.git] / config / compat.php
1 <?php
2
3 /* Compatibility layer for old config -> new config */
4
5 /* Base url */
6 if (defined('BASE_URL'))
7 $config["base_url"] = BASE_URL;
8
9 /* UnrealIRCd settings */
10 if (defined('UNREALIRCD_RPC_USER'))
11 $config["unrealircd"]["rpc_user"] = UNREALIRCD_RPC_USER;
12 if (defined('UNREALIRCD_RPC_PASSWORD'))
13 $config["unrealircd"]["rpc_password"] = UNREALIRCD_RPC_PASSWORD;
14 if (defined('UNREALIRCD_HOST'))
15 $config["unrealircd"]["host"] = UNREALIRCD_HOST;
16 if (defined('UNREALIRCD_PORT'))
17 $config["unrealircd"]["port"] = UNREALIRCD_PORT;
18 if (defined('UNREALIRCD_SSL_VERIFY'))
19 $config["unrealircd"]["tls_verify_cert"] = UNREALIRCD_SSL_VERIFY;
20
21 /* Debug */
22 if (defined('UNREALIRCD_DEBUG'))
23 $config["debug"] = UNREALIRCD_DEBUG;
24
25 /* Plugins */
26 if (defined('PLUGINS'))
27 $config["plugins"] = PLUGINS;
28
29 /* SQL settings */
30 if (defined('SQL_IP'))
31 $config["mysql"]["host"] = SQL_IP;
32 if (defined('SQL_DATABASE'))
33 $config["mysql"]["database"] = SQL_DATABASE;
34 if (defined('SQL_USERNAME'))
35 $config["mysql"]["username"] = SQL_USERNAME;
36 if (defined('SQL_PASSWORD'))
37 $config["mysql"]["password"] = SQL_PASSWORD;
38 if (defined('SQL_PREFIX'))
39 $config["mysql"]["table_prefix"] = SQL_PREFIX;
40
41 /* DNS Blacklist */
42 if (defined('DNSBL'))
43 $config["dnsbl"] = DNSBL;
44
45 /* Mailer */
46 if (defined('EMAIL_SETTINGS'))
47 $config["smtp"] = EMAIL_SETTINGS;