]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blobdiff - plugins/sql_auth/SQL/sql.php
Move to new style config, with config in config/ directory.
[irc/unrealircd/unrealircd-webpanel.git] / plugins / sql_auth / SQL / sql.php
index a9b0a556cf5ec490b67fc348618eaa6b51e025e5..b325c96bc4610ba5a5fda9a6386db797d85bffe7 100644 (file)
@@ -2,10 +2,10 @@
 
 function sqlnew()
 {
-       $host = SQL_IP;
-       $user = SQL_USERNAME;
-       $pass = SQL_PASSWORD;
-       $db = SQL_DATABASE;
+       $host = get_config("mysql::host");
+       $user = get_config("mysql::username");
+       $pass = get_config("mysql::password");
+       $db = get_config("mysql::database");
        $charset = 'utf8mb4';
 
        if ($host[0] == "/")