]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blame - plugins/sql_auth/SQL/settings.php
Move to new style config, with config in config/ directory.
[irc/unrealircd/unrealircd-webpanel.git] / plugins / sql_auth / SQL / settings.php
CommitLineData
ce9cf366
VP
1<?php
2
d72d1923 3
ce9cf366
VP
4class AuthSettings {
5
6 public $list = [];
7
8 function __construct()
9 {
10 $conn = sqlnew();
ea90b321 11 $query = "SELECT * FROM " . get_config("mysql::table_prefix") . "auth_settings";
ce9cf366
VP
12 $result = $conn->query($query);
13 while ($row = $result->fetch())
14 {
15 $this->list[$row['setting_key']] = $row['setting_value'];
16 }
17 }
d72d1923 18}