diff --git a/templates/admin_search.php b/templates/admin_search.php deleted file mode 100644 index 6633e820..00000000 --- a/templates/admin_search.php +++ /dev/null @@ -1,111 +0,0 @@ - - - -
-
- - - - -
-

-
- : - -
-
-
- - 0) -{ - print "\n"; - print " \n"; - print " "; - print " "; - print " \n"; - print " \n"; - print " \n"; - print " \n"; - print " \n"; - print " \n"; - print " \n"; - - for ($i = 0; $i < sizeof ($tAlias); $i++) - { - if ((is_array ($tAlias) and sizeof ($tAlias) > 0)) - { - print " \n"; - print " \n"; - print " \n"; - print " \n"; - $active = ($tAlias[$i]['active'] == 1) ? $PALANG['YES'] : $PALANG['NO']; - print " \n"; - print " \n"; - print " \n"; - print " \n"; - } - } - - print "

".$PALANG['pOverview_alias_title']."

" . $PALANG['pOverview_alias_address'] . "" . $PALANG['pOverview_alias_goto'] . "" . $PALANG['pOverview_alias_modified'] . "" . $PALANG['pOverview_alias_active'] . " 
" . $tAlias[$i]['address'] . "" . ereg_replace (",", "
", $tAlias[$i]['goto']) . "
" . $tAlias[$i]['modified'] . "" . $active . "" . $PALANG['edit'] . "" . $PALANG['del'] . "
\n"; -} - -if (sizeof ($tMailbox) > 0) -{ - print "\n"; - print " \n"; - print " "; - print " "; - print " \n"; - print " \n"; - print " \n"; - if ($CONF['quota'] == 'YES') print " \n"; - print " \n"; - print " \n"; - if ($CONF['alias_control'] == 'YES') - { - print " \n"; - } - else - { - print " \n"; - } - print " \n"; - - for ($i = 0; $i < sizeof ($tMailbox); $i++) - { - if ((is_array ($tMailbox) and sizeof ($tMailbox) > 0)) - { - print " \n"; - print " \n"; - print " \n"; - if ($CONF['quota'] == 'YES') print " \n"; - print " \n"; - $active = ($tMailbox[$i]['active'] == 1) ? $PALANG['YES'] : $PALANG['NO']; - print " \n"; - if ($CONF['alias_control'] == 'YES') - { - print " \n"; - } - print " \n"; - print " \n"; - print " \n"; - } - } - print "

".$PALANG['pOverview_mailbox_title']."

" . $PALANG['pOverview_mailbox_username'] . "" . $PALANG['pOverview_mailbox_name'] . "" . $PALANG['pOverview_mailbox_quota'] . "" . $PALANG['pOverview_mailbox_modified'] . "" . $PALANG['pOverview_mailbox_active'] . "  
" . $tMailbox[$i]['username'] . "" . $tMailbox[$i]['name'] . "" . divide_quota ($tMailbox[$i]['quota']) . "" . $tMailbox[$i]['modified'] . "" . $active . "" . $PALANG['pOverview_alias_edit'] . "" . $PALANG['edit'] . "" . $PALANG['del'] . "
\n"; -} - -/* */ -?> diff --git a/templates/search.php b/templates/search.php index dfdb01d6..8f9b2244 100644 --- a/templates/search.php +++ b/templates/search.php @@ -161,11 +161,10 @@ $has_alias_control = 0; # temporary variable to simplify admin vs. superadmin co if ($CONF['alias_control'] == 'YES') $has_alias_control = 1; } else { if ($CONF['alias_control_admin'] == 'YES') $has_alias_control = 1; - if ($CONF['vacation_control_admin'] == 'YES') - { - $v_active = ($tMailbox[$i]['v_active'] == 1) ? $PALANG['pOverview_vacation_edit'] : ''; - print " " . $v_active . "\n"; - } + } + if ($CONF['vacation_control_admin'] == 'YES') { + $v_active = ($tMailbox[$i]['v_active'] == 1) ? $PALANG['pOverview_vacation_edit'] : $PALANG['pOverview_vacation_option']; + print " " . $v_active . "\n"; } if ($has_alias_control == 1) {