From 299eeaee3ffbac49b88577bef60c6267da27c4a9 Mon Sep 17 00:00:00 2001 From: mischa Date: Sun, 4 Sep 2022 10:17:53 +0000 Subject: [PATCH] remove overview --- overview.php | 33 ----------- templates/overview-get.tpl | 52 ------------------ templates/overview.tpl | 110 ------------------------------------- 3 files changed, 195 deletions(-) delete mode 100644 overview.php delete mode 100644 templates/overview-get.tpl delete mode 100644 templates/overview.tpl diff --git a/overview.php b/overview.php deleted file mode 100644 index 5d47211..0000000 --- a/overview.php +++ /dev/null @@ -1,33 +0,0 @@ - -// Copyright (c) 2022 High5! -// License Info: LICENSE.TXT -// -// File: overview.php -// -// Template File: overview.tpl -// -// Template Variables: -// -// alias -// domain -// mailbox -// -// Form POST \ GET Variables: -// -// domain -// limit -// -require_once './functions.inc.php'; -include './languages/' . check_language() . '.lang'; - -$SESSID_USERNAME = check_session(); -$list_domains = list_domains($SESSID_USERNAME); - -include './templates/header.tpl'; -include './templates/menu.tpl'; -include './templates/list-domains.tpl'; -include './templates/footer.tpl'; -?> diff --git a/templates/overview-get.tpl b/templates/overview-get.tpl deleted file mode 100644 index 5d40c42..0000000 --- a/templates/overview-get.tpl +++ /dev/null @@ -1,52 +0,0 @@ -
-
- - -
-
- -
-
-\n"; - echo " \n"; - echo "

".$LANG['Overview_title']."

"; - echo " "; - echo " \n"; - echo " " . $LANG['Overview_get_domain'] . "\n"; - echo " " . $LANG['Overview_get_aliases'] . "\n"; - echo " " . $LANG['Overview_get_mailboxes'] . "\n"; - if ($CONF['quota'] == 'YES') echo " " . $LANG['Overview_get_quota'] . "\n"; - echo " \n"; - - for ($i = 0; $i < count($list_domains); $i++) { - if ((is_array($list_domains) and count($list_domains) > 0)) { - $limit = get_domain_properties($list_domains[$i]); - - if ($limit['aliases'] == 0) $limit['aliases'] = $LANG['Overview_unlimited']; - if ($limit['mailboxes'] == 0) $limit['mailboxes'] = $LANG['Overview_unlimited']; - if ($limit['maxquota'] == 0) $limit['maxquota'] = $LANG['Overview_unlimited']; - if ($limit['aliases'] < 0) $limit['aliases'] = $LANG['Overview_disabled']; - if ($limit['mailboxes'] < 0) $limit['mailboxes'] = $LANG['Overview_disabled']; - if ($limit['maxquota'] < 0) $limit['maxquota'] = $LANG['Overview_disabled']; - - echo " \n"; - echo " " . $list_domains[$i] . "\n"; - echo " " . $limit['alias_count'] . " / " . $limit['aliases'] . "\n"; - echo " " . $limit['mailbox_count'] . " / " . $limit['mailboxes'] . "\n"; - if ($CONF['quota'] == 'YES') echo " " . $limit['maxquota'] . "\n"; - echo " \n"; - } - } - echo "\n"; -?> diff --git a/templates/overview.tpl b/templates/overview.tpl deleted file mode 100644 index 70e5857..0000000 --- a/templates/overview.tpl +++ /dev/null @@ -1,110 +0,0 @@ -
-
- - - -
- -

-

-

- -
- -
-
- $limit || $list_domains[$selected_domain]['mailbox_count'] > $limit) { - echo "
\n"; - if ($offset >= $limit) { - - echo "\n"; - } - if (($list_domains[$selected_domain]['alias_count'] > $limit) || ($list_domains[$selected_domain]['mailbox_count'] > $limit)) { - - echo "\n"; - } - if ((($offset + $limit) < $list_domains[$selected_domain]['alias_count']) || (($offset + $limit) < $list_domains[$selected_domain]['mailbox_count'])) { - echo "\n"; - } - echo "
\n"; -} - -if (count($list_alias) > 0) { - echo "\n"; - echo " \n"; - echo " "; - echo " "; - echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; - - foreach ($list_alias as $row) { - echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; - - if ($CONF['special_alias_control'] == 'YES') { - echo " \n"; - echo " \n"; - } else { - if (!in_array($row['goto'], $CONF['default_aliases'])) { - echo " \n"; - echo " \n"; - } else { - echo " \n"; - echo " \n"; - } - } - echo " \n"; - } - - echo "

".$LANG['Overview_alias_title']."

" . $LANG['Overview_alias_address'] . "" . $LANG['Overview_alias_goto'] . "" . $LANG['Overview_alias_modified'] . " 
" . $row['address'] . "" . preg_replace("/,/", "
", $row['goto']) . "
" . $row['modified'] . "" . $LANG['edit'] . "" . $LANG['del'] . "" . $LANG['edit'] . "" . $LANG['del'] . "  
\n"; -} - -if (count($list_mailbox) > 0) { - echo "\n"; - echo " \n"; - echo " "; - echo " "; - echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; - - foreach ($list_mailbox as $row) { - echo " \n"; - echo " \n"; - echo " \n"; - echo " \n"; - $active = ($row['active'] == 1) ? $LANG['YES'] : $LANG['NO']; - echo " \n"; - echo " \n"; - echo " \n"; - } - echo "

".$LANG['Overview_mailbox_title']."

" . $LANG['Overview_mailbox_username'] . "" . $LANG['Overview_mailbox_name'] . "" . $LANG['Overview_mailbox_modified'] . "" . $LANG['Overview_mailbox_active'] . " 
" . $row['username'] . "" . $row['name'] . "" . $row['modified'] . "" . $LANG['edit'] . "" . $LANG['del'] . "
\n"; -} -?>