43 lines
1.1 KiB
PHP
43 lines
1.1 KiB
PHP
<?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: list-virtual.tpl
|
|
//
|
|
// Template Variables:
|
|
//
|
|
// list_alias
|
|
// list_mailbox
|
|
//
|
|
// Form POST / GET Variables:
|
|
//
|
|
// domain
|
|
// offset
|
|
//
|
|
require_once './functions.inc.php';
|
|
include './languages/' . check_language() . '.lang';
|
|
|
|
$SESSID_USERNAME = check_session();
|
|
$list_domains = list_domains($SESSID_USERNAME);
|
|
|
|
if ($_SERVER['REQUEST_METHOD'] == "GET") {
|
|
$offset = filter_input(INPUT_GET, 'offset', FILTER_VALIDATE_INT) ?? '0';
|
|
$limit = PAGE_SIZE;
|
|
$domain = filter_input(INPUT_GET, 'domain', FILTER_VALIDATE_DOMAIN);
|
|
if (in_array($domain, array_column($list_domains, 'domain'))) {
|
|
$domain_key = array_search($domain, array_column($list_domains, 'domain'));
|
|
$list_alias = list_aliases($domain, $offset, $limit);
|
|
$list_mailbox = list_mailboxes($domain, $offset, $limit);
|
|
}
|
|
}
|
|
include './templates/header.tpl';
|
|
include './templates/menu.tpl';
|
|
include './templates/list-virtual.tpl';
|
|
include './templates/footer.tpl';
|
|
?>
|