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-virtual.php
|
|
|
|
//
|
|
|
|
// Template File: admin_list-virtual.tpl
|
|
|
|
//
|
|
|
|
// Template Variables:
|
|
|
|
//
|
2022-09-02 23:06:08 +02:00
|
|
|
// list_alias
|
|
|
|
// list_mailbox
|
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
|
|
|
// domain
|
|
|
|
// offset
|
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_domains = list_domains();
|
|
|
|
|
|
|
|
if ($_SERVER['REQUEST_METHOD'] == "GET") {
|
2022-09-02 23:06:08 +02:00
|
|
|
$offset = filter_input(INPUT_GET, 'offset', FILTER_VALIDATE_INT) ?? '0';
|
|
|
|
$limit = PAGE_SIZE;
|
|
|
|
if (count($list_domains) > 0) {
|
|
|
|
$domain = filter_input(INPUT_GET, 'domain', FILTER_VALIDATE_DOMAIN) ?? $list_domains[0]['domain'];
|
2022-09-04 13:10:23 +02:00
|
|
|
$domain_key = array_search($domain, array_column($list_domains, 'domain'));
|
2022-09-02 23:06:08 +02:00
|
|
|
$list_alias = list_aliases($domain, $offset, $limit);
|
|
|
|
$list_mailbox = list_mailboxes($domain, $offset, $limit);
|
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-virtual.tpl';
|
|
|
|
include '../templates/footer.tpl';
|
2022-08-18 14:01:52 +02:00
|
|
|
?>
|