]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blobdiff - config/config.php.sample
Make new settings-in-config work for file-based db as well.
[irc/unrealircd/unrealircd-webpanel.git] / config / config.php.sample
index 545fb18a5b987a5c66c569a0be41251e7d40c64d..87ba5c890d88a1fcb453f3136ecdc033657b35e2 100644 (file)
@@ -50,18 +50,32 @@ $config["debug"] = false;
 /**
  * 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",
@@ -72,7 +86,7 @@ define(
   * 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 "/"
   */
@@ -101,35 +115,19 @@ define(
 //$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";