supernova-ws /
SuperNova
| 1 | <?php |
||
| 2 | |||
| 3 | /** |
||
| 4 | * List of authorities: admin, ops, moders |
||
| 5 | */ |
||
| 6 | |||
| 7 | function sn_contact_view($template = null) { |
||
| 8 | global $template_result, $lang; |
||
| 9 | |||
| 10 | $template = SnTemplate::gettemplate('contact', $template); |
||
| 11 | |||
| 12 | $query = db_user_list("`authlevel` > 0 ORDER BY `authlevel` ASC"); |
||
|
0 ignored issues
–
show
Deprecated Code
introduced
by
Loading history...
|
|||
| 13 | |||
| 14 | foreach ($query as $row) { |
||
| 15 | $template_result['.']['contact'][] = array( |
||
| 16 | 'ID' => $row['id'], |
||
| 17 | 'NAME' => $row['username'], |
||
| 18 | 'LEVEL' => $lang['user_level'][$row['authlevel']], |
||
| 19 | 'EMAIL' => $row['email'], |
||
| 20 | ); |
||
| 21 | } |
||
| 22 | |||
| 23 | $template_result['PAGE_HEADER'] = $lang['ctc_title']; |
||
| 24 | |||
| 25 | return $template; |
||
| 26 | } |
||
| 27 |