opensmtpdadmin/list-admin.php

40 lines
777 B
PHP
Raw Normal View History

2022-09-05 20:31:23 +02:00
<?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();
2022-09-06 13:56:05 +02:00
$ROLE = check_role($SESSID_USERNAME);
2022-09-05 20:31:23 +02:00
$list_admins = array();
2022-09-06 13:56:05 +02:00
$list_domains = array();
2022-09-05 20:31:23 +02:00
if ($_SERVER['REQUEST_METHOD'] == "GET") {
if ($ROLE == ADMIN_ROLE) {
2022-09-05 20:31:23 +02:00
$list_admins = list_admins();
2022-09-06 10:40:52 +02:00
$list_domains = list_domains();
2022-09-05 20:31:23 +02:00
}
}
include './templates/header.tpl';
include './templates/menu.tpl';
include './templates/list-admin.tpl';
2022-09-05 20:31:23 +02:00
include './templates/footer.tpl';
?>