opensmtpdadmin/admin/list-domain.php

37 lines
784 B
PHP
Raw Normal View History

2022-08-18 14:01:52 +02:00
<?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:
//
2022-09-02 23:06:08 +02:00
// list_domains
2022-08-18 14:01:52 +02:00
//
2022-09-04 12:10:27 +02:00
// Form POST \ GET Variables:
2022-08-18 14:01:52 +02:00
//
2022-09-02 23:06:08 +02:00
// username
2022-08-18 14:01:52 +02:00
//
2022-09-02 23:06:08 +02:00
require_once '../functions.inc.php';
include '../languages/' . check_language() . '.lang';
2022-08-18 14:01:52 +02:00
$list_admins = list_admins();
if ($_SERVER['REQUEST_METHOD'] == "GET") {
2022-09-02 23:06:08 +02:00
$username = filter_input(INPUT_GET, 'username', FILTER_VALIDATE_EMAIL);
$list_domains = list_domains($username);
} else {
$list_domains = list_domains();
2022-08-18 14:01:52 +02:00
}
2022-09-02 23:06:08 +02:00
include '../templates/header.tpl';
include '../templates/admin_menu.tpl';
include '../templates/admin_list-domain.tpl';
include '../templates/footer.tpl';
2022-08-18 14:01:52 +02:00
?>