You've already forked postfixadmin
mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2026-01-03 17:02:30 +03:00
config.inc.php, functions.inc.php, templates/list-virtual.php:
- dropped $CONF['show_custom_count'], it can easily be calculated with count($CONF['show_custom_domains']). This fixes part (6) of https://sourceforge.net/tracker2/?func=detail&aid=1951926&group_id=191583&atid=937967 config.inc.php: - added some comments explaining $CONF['show_undeliverable_exceptions'] and $CONF['show_custom_domains'] git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@471 a1433add-5e2c-0410-b055-b7f2511e0802
This commit is contained in:
@@ -274,11 +274,13 @@ $CONF['show_status_text']=' ';
|
||||
// elsewhere, you will probably want to disable this.
|
||||
$CONF['show_undeliverable']='NO';
|
||||
$CONF['show_undeliverable_color']='tomato';
|
||||
// mails to these domains will never be flagged as undeliverable
|
||||
$CONF['show_undeliverable_exceptions']=array("unixmail.domain.ext","exchangeserver.domain.ext","gmail.com");
|
||||
$CONF['show_popimap']='NO';
|
||||
$CONF['show_popimap_color']='darkgrey';
|
||||
// set 'show_custom_count' to 0 to disable custom indicators
|
||||
$CONF['show_custom_count']=2;
|
||||
// you can assign special colors to some domains. To do this,
|
||||
// - add the domain to show_custom_domains
|
||||
// - add the corresponding color to show_custom_colors
|
||||
$CONF['show_custom_domains']=array("subdomain.domain.ext","domain2.ext");
|
||||
$CONF['show_custom_colors']=array("lightgreen","lightblue");
|
||||
|
||||
|
||||
@@ -2061,7 +2061,7 @@ function gen_show_status ($show_alias)
|
||||
}
|
||||
|
||||
// CUSTOM DESTINATION CHECK
|
||||
if ( $CONF['show_custom_count'] > 0 )
|
||||
if ( count($CONF['show_custom_domains']) > 0 )
|
||||
{
|
||||
for ($i = 0; $i < sizeof ($CONF['show_custom_domains']); $i++)
|
||||
{
|
||||
|
||||
@@ -370,7 +370,7 @@ if ($CONF['show_status'] == 'YES' && $CONF['show_status_key'] == 'YES')
|
||||
print " <span style='background-color:" . $CONF['show_popimap_color'] .
|
||||
"'>" . $CONF['show_status_text'] . "</span>=" . $PALANG['pStatus_popimap'] . "\n";
|
||||
}
|
||||
if ( $CONF['show_custom_count'] > 0 )
|
||||
if ( count($CONF['show_custom_domains']) > 0 )
|
||||
{
|
||||
for ($i = 0; $i < sizeof ($CONF['show_custom_domains']); $i++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user