opensmtpdadmin/admin/list-domain.php
2022-09-04 10:10:27 +00:00

37 lines
784 B
PHP

<?php
//
// OpenSMTPD Admin
// by Mischa Peters <mischa at high5 dot nl>
// Copyright (c) 2022 High5!
// License Info: LICENSE.TXT
//
// File: list-domain.php
//
// Template File: admin_list-domain.tpl
//
// Template Variables:
//
// list_domains
//
// Form POST \ GET Variables:
//
// username
//
require_once '../functions.inc.php';
include '../languages/' . check_language() . '.lang';
$list_admins = list_admins();
if ($_SERVER['REQUEST_METHOD'] == "GET") {
$username = filter_input(INPUT_GET, 'username', FILTER_VALIDATE_EMAIL);
$list_domains = list_domains($username);
} else {
$list_domains = list_domains();
}
include '../templates/header.tpl';
include '../templates/admin_menu.tpl';
include '../templates/admin_list-domain.tpl';
include '../templates/footer.tpl';
?>