/**
* Your list of plugins:
*/
-define(
- 'get_config("plugins")', [
-
+$config["plugins"] = [
/* This is where you should type the name(s) of your plugins.
* Uncomment the following line to view the live example
*/
//"example_plugin", /* An example plugin */
+ //"file_auth", /* Provides a login page - uses a db file */
//"sql_auth", /* Provides a login page which uses SQL */
//"php_mailer", /* Provides ability to send emails on behalf of the admin panel */
- ]
-);
+ ];
+
+/* If you want a simple file-based database, and you have enabled
+ * "file_auth" in plugins above, then make sure your data/ directory
+ * is writable by the www user! Usually you need something like:
+ * chown www-data:www-data /var/www/html/webpanel/data/ -R
+ */
+/**
+ * If you load any of the auth plugins the first time, then this
+ * will create a "default user" as soon as you load the webpanel.
+ * Define a username and password here, start the webpanel, and
+ * after you have successfully logged in, remove the define here again:
+ */
+//define('DEFAULT_USER', [
+// "username" => "default",
+// "password" => "testing"
+//]);
/**
* If you wish to use the SQL user authentication system "sql_auth",
* SQL IP address or hostname
* You may specify a unix domain socket directory address
* E.g:
- * define('get_config("mysql::host")', "/path/to/unix/domain/socket");
+ * $config["mysql"]["host"] = "/path/to/unix/domain/socket";
*
* Path to unix socket MUST start with a slash "/"
*/
//$config["mysql"]["table_prefix"] = "unreal_";
-/**
- * The default user for the plugin "SQL_Auth". As soon as you load
- * the plugin, the user defined below will be created. It suggested
- * that you remove it after you've logged in successfully.
- */
-//define('SQL_DEFAULT_USER', [
-// "username" => "default",
-// "password" => "testing"
-//]);
-
/**
* Also part of the SQL_Auth plugin. This protects your login page.
* This is a list of DNS Blacklists that get checked for non-logged-in
* users.
*/
-define('DNSBL', [
- "dnsbl.dronebl.org",
- "rbl.efnetrbl.org"
-]);
+//$config["dnsbl"] = ["dnsbl.dronebl.org", "rbl.efnetrbl.org"];
/** Your email settings
* Requires plugin "php_mailer"
*/
-define('EMAIL_SETTINGS', [
- "host" => 'smtp.host.example.com',
- "port" => 587,
- "encryption" => 'tls', /* Use 'tls' for STARTTLS or 'ssl' for TLS/SSL */
- "username" => "youremail@example.com", /* The email to login with and send emails from */
- "password" => "supersecretpassword", /* The password for the above email */
- "from_name" => "UnrealIRCd Admin Panel",
-
-]);
+$config["smtp"]["host"] = "127.0.0.1";
+$config["smtp"]["port"] = 587;
+$config["smtp"]["encryption"] = "tls"; /* Use 'tls' for STARTTLS or 'ssl' for TLS/SSL */
+$config["smtp"]["username"] = "youremail@example.com"; /* The email to login with and send emails from */
+$config["smtp"]["password"] = "supersecretpassword"; /* The password for the above email */
+$config["smtp"]["from_name"] = "UnrealIRCd Admin Panel";