Issues (1369)

includes/pages/contact.php (1 issue)

Severity
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
The function db_user_list() has been deprecated. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated  annotation

12
  $query = /** @scrutinizer ignore-deprecated */ db_user_list("`authlevel` > 0 ORDER BY `authlevel` ASC");
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