]>
jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blob - config/compat.php
3 /* Compatibility layer for old config -> new config */
6 if (defined('BASE_URL'))
7 $config["base_url"] = BASE_URL
;
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
;
22 if (defined('UNREALIRCD_DEBUG'))
23 $config["debug"] = UNREALIRCD_DEBUG
;
26 if (defined('PLUGINS'))
27 $config["plugins"] = PLUGINS
;
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
;
43 $config["dnsbl"] = DNSBL
;
46 if (defined('EMAIL_SETTINGS'))
47 $config["smtp"] = EMAIL_SETTINGS
;