]>
Commit | Line | Data |
---|---|---|
1 | <?php | |
2 | ||
3 | class AuthSettings { | |
4 | ||
5 | public $list = []; | |
6 | ||
7 | function __construct() | |
8 | { | |
9 | $conn = sqlnew(); | |
10 | $query = "SELECT * FROM " . SQL_PREFIX . "auth_settings"; | |
11 | $result = $conn->query($query); | |
12 | while ($row = $result->fetch()) | |
13 | { | |
14 | $this->list[$row['setting_key']] = $row['setting_value']; | |
15 | } | |
16 | } | |
17 | } |