Blob


1 <?php
2 //
3 // OpenSMTPD Admin
4 // by Mischa Peters <mischa at high5 dot nl>
5 // Copyright (c) 2022 High5!
6 // License Info: LICENSE.TXT
7 //
8 // File: list-admin.php
9 //
10 // Template File: list-admin.tpl
11 //
12 // Template Variables:
13 //
14 // list_admins
15 //
16 // POST / GET Variables:
17 //
18 // -none-
19 //
20 require './functions.inc.php';
21 include './languages/' . check_language() . '.lang';
23 $SESSID_USERNAME = check_session();
24 $ROLE = check_role($SESSID_USERNAME);
26 $list_admins = array();
27 $list_domains = array();
29 if ($_SERVER['REQUEST_METHOD'] == "GET") {
30 if ($ROLE == ADMIN_ROLE) {
31 $list_admins = list_admins();
32 $list_domains = list_domains();
33 }
34 }
35 include './templates/header.tpl';
36 include './templates/menu.tpl';
37 include './templates/list-admin.tpl';
38 include './templates/footer.tpl';
39 ?>