opensmtpdadmin/list-admin.php

39 lines
736 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();
$ROLE = check_role();
2022-09-05 20:31:23 +02:00
$list_admins = array();
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';
?>