40 lines
777 B
PHP
40 lines
777 B
PHP
<?php
|
|
//
|
|
// OpenSMTPD Admin
|
|
// by Mischa Peters <mischa at high5 dot nl>
|
|
// Copyright (c) 2022 High5!
|
|
// License Info: LICENSE.TXT
|
|
//
|
|
// File: list-admin.php
|
|
//
|
|
// Template File: list-admin.tpl
|
|
//
|
|
// Template Variables:
|
|
//
|
|
// list_admins
|
|
//
|
|
// POST / GET Variables:
|
|
//
|
|
// -none-
|
|
//
|
|
require './functions.inc.php';
|
|
include './languages/' . check_language() . '.lang';
|
|
|
|
$SESSID_USERNAME = check_session();
|
|
$ROLE = check_role($SESSID_USERNAME);
|
|
|
|
$list_admins = array();
|
|
$list_domains = array();
|
|
|
|
if ($_SERVER['REQUEST_METHOD'] == "GET") {
|
|
if ($ROLE == ADMIN_ROLE) {
|
|
$list_admins = list_admins();
|
|
$list_domains = list_domains();
|
|
}
|
|
}
|
|
include './templates/header.tpl';
|
|
include './templates/menu.tpl';
|
|
include './templates/list-admin.tpl';
|
|
include './templates/footer.tpl';
|
|
?>
|