'; print '

:
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"; //highlight search string $tAlias[$i]['display_address'] = $tAlias[$i]['address']; if (stristr($tAlias[$i]['display_address'],$fSearch)) { $new_address = str_ireplace($fSearch, "" . $fSearch . "", $tAlias[$i]['display_address']); $tAlias[$i]['display_address'] = $new_address; } print " \n"; if (stristr($tAlias[$i]['goto'],$fSearch)) { $new_goto = str_ireplace($fSearch, "" . $fSearch . "", $tAlias[$i]['goto']); $tAlias[$i]['goto'] = $new_goto; } print " \n"; print " \n"; if ($CONF['special_alias_control'] == 'YES' || authentication_has_role('global-admin')) { $active = ($tAlias[$i]['active'] == 1) ? $PALANG['YES'] : $PALANG['NO']; print " \n"; print " \n"; print " \n"; } else { if (check_alias_owner ($SESSID_USERNAME, $tAlias[$i]['address'])) { $active = ($tAlias[$i]['active'] == 1) ? $PALANG['YES'] : $PALANG['NO']; print " \n"; print " \n"; print " \n"; } else { 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]['display_address'] . "" . ereg_replace (",", "
", $tAlias[$i]['goto']) . "
" . $tAlias[$i]['modified'] . "" . $active . "" . $PALANG['edit'] . "" . $PALANG['del'] . "" . $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"; print " \n"; $colspan=2; if ($CONF['vacation_control_admin'] == 'YES') $colspan=$colspan+1; if ($CONF['alias_control_admin'] == 'YES') $colspan=$colspan+1; if (authentication_has_role('global-admin') && $CONF['alias_control'] == 'YES') { $colspan = 3; } print " \n"; print " \n"; for ($i = 0; $i < sizeof ($tMailbox); $i++) { if ((is_array ($tMailbox) and sizeof ($tMailbox) > 0)) { print " \n"; $tMailbox[$i]['display_username'] = $tMailbox[$i]['username']; if (stristr($tMailbox[$i]['display_username'],$fSearch)) { $new_name = str_ireplace($fSearch, "" . $fSearch . "", $tMailbox[$i]['display_username']); $tMailbox[$i]['display_username'] = $new_name; } print " \n"; if (stristr($tMailbox[$i]['name'],$fSearch)) { $new_name = str_ireplace($fSearch, "" . $fSearch . "", $tMailbox[$i]['name']); $tMailbox[$i]['name'] = $new_name; } print " \n"; if ($CONF['quota'] == 'YES') print " \n"; print " \n"; $active = ($tMailbox[$i]['active'] == 1) ? $PALANG['YES'] : $PALANG['NO']; print " \n"; $has_alias_control = 0; # temporary variable to simplify admin vs. superadmin code if (authentication_has_role('global-admin')) { 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 " \n"; } } if ($has_alias_control == 1) { 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]['display_username'] . "" . $tMailbox[$i]['name'] . "" . divide_quota ($tMailbox[$i]['quota']) . "" . $tMailbox[$i]['modified'] . "" . $active . "" . $v_active . "" . $PALANG['pOverview_alias_edit'] . "" . $PALANG['edit'] . "" . $PALANG['del'] . "
\n"; } # vim: ts=3 expandtab ft=php ?>