-
Notifications
You must be signed in to change notification settings - Fork 35
/
contact.php
43 lines (31 loc) · 1.02 KB
/
contact.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
define('INSIDE', true);
$_DontCheckPolls = TRUE;
$_AllowInVacationMode = TRUE;
$_DontForceRulesAcceptance = true;
$_EnginePath = './';
include($_EnginePath.'common.php');
if(isset($_User['is_banned']) && $_User['is_banned'] == 1)
{
$_DontShowMenus = true;
}
includeLang('contact');
$BodyTPL = gettemplate('contact_body');
$RowsTPL = gettemplate('contact_body_rows');
$parse = $_Lang;
$parse['InsertRows'] = '';
$QrySelectUser = '';
$QrySelectUser .= "SELECT `username`, `email`, `authlevel` ";
$QrySelectUser .= "FROM {{table}} ";
$QrySelectUser .= "WHERE `authlevel` > 0 ORDER BY `authlevel` DESC;";
$SQLResult_GetData = doquery($QrySelectUser, 'users');
while($DataRow = $SQLResult_GetData->fetch_assoc())
{
$Row['Username'] = $DataRow['username'];
$Row['Authlabel'] = $_Lang['user_level'][GetAuthLabel($DataRow)];
$Row['Email'] = $DataRow['email'];
$parse['InsertRows'] .= parsetemplate($RowsTPL, $Row);
}
$page = parsetemplate($BodyTPL, $parse);
display($page, $_Lang['Title'], false);
?>