4 // by Mischa Peters <mischa at high5 dot nl>
5 // Copyright (c) 2022 High5!
6 // License Info: LICENSE.TXT
8 // File: list-domains.php
10 // Template File: list-domains.tpl
12 // Template variables:
16 // GET / POST variables:
20 require_once './functions.inc.php';
21 include './languages/' . check_language() . '.lang';
23 $SESSID_USERNAME = check_session();
24 $ROLE = check_role($SESSID_USERNAME);
26 if ($_SERVER['REQUEST_METHOD'] == "GET") {
27 $username = filter_input(INPUT_GET, 'username', FILTER_VALIDATE_EMAIL);
28 if ($ROLE == ADMIN_ROLE) {
29 $list_admins = list_admins();
30 if (empty($username)) {
31 $list_domains = list_domains();
33 $list_domains = list_domains($username);
36 $list_domains = list_domains($SESSID_USERNAME);
39 include './templates/header.tpl';
40 include './templates/menu.tpl';
41 include './templates/list-domain.tpl';
42 include './templates/footer.tpl';