PostfixAdmin for BananaNetwork - to apply required patches before release or release in async to the official version https://github.com/postfixadmin/postfixadmin
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Go to file
Christian Boltz 84a5203fe1 list-domain.php:
- replace get_domain_properties() calls with two SQL queries that fetch
  the domain data and count the number of mailboxes and aliases per domain.
  This change speeds up list-domain extremely on setups with lots of domains,
  mailboxes and aliases. The old code took several minutes on my test data
  (that's about 55000 mailboxes and their aliases), the new code only needs
  some seconds.
- $domain_properties now uses the domain name as index key instead of a
  serial number

templates/admin_list-domain.php:
- replace usage of $list_domains with $domain_properties
- change main loop to use the domain name as $domain_properties array key 
  instead of a serial number

upgrade.php:
- upgrade_655(): add index on domain column in mailbox and alias table.
  This speeds up list-domain from 14s to about 1s on my test data in MySQL
  (the 14s were _after_ the changes in list_domain.php)
- added _add_index() function to hide the database specific details in 
  upgrade functions

This commit should fix the performance problems reported on
http://sourceforge.net/forum/forum.php?thread_id=2343349&forum_id=676076



git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@655 a1433add-5e2c-0410-b055-b7f2511e0802
16 years ago
ADDITIONS cleanupdirs.pl: 16 years ago
DOCUMENTS update documentation; get ready for a 2.3rc4 release 16 years ago
VIRTUAL_VACATION INSTALL.TXT - see https://sourceforge.net/forum/forum.php?thread_id=3026548&forum_id=676076 ; general update, and add in a note on alias expansion 16 years ago
admin Finally got rid of admin/ :-) 17 years ago
css css/default.css 16 years ago
debian changed 'configured = false' to 'configured = true'. The package should do all necessary things... 16 years ago
images applied patch from lenix - theme support for postfixadmin; see http://sourceforge.net/tracker/index.php?func=detail&aid=1898481&group_id=191583&atid=937966 - thank you 17 years ago
languages nb.lang 16 years ago
model model/*, tests/*: 16 years ago
templates list-domain.php: 16 years ago
tests model/*, tests/*: 16 years ago
users users/vacation.php: 16 years ago
CHANGELOG.TXT update documentation; get ready for a 2.3rc4 release 16 years ago
GPL-LICENSE.TXT Initial Import in SourceForge 18 years ago
INSTALL.TXT update documentation; get ready for a 2.3rc4 release 16 years ago
LICENSE.TXT LICENSE.TXT: updated contributors 17 years ago
backup.php backup.php: 17 years ago
broadcast-message.php broadcast-message.php: fix hard coded table names 16 years ago
common.php login.php, index.php: 16 years ago
config.inc.php functions.inc.php: 16 years ago
create-admin.php rename templates to .php instead of .tpl 17 years ago
create-alias-domain.php create-alias-domain.php: fix undefined variables 16 years ago
create-alias.php reverting most changes from SVN r572 aka 16 years ago
create-domain.php create-domain.php: if the user makes a domain a backup mx, then accept whatever they type in for mailboxes/aliases 16 years ago
create-mailbox.php create-mailbox.php: Remove commented out & dead code 16 years ago
delete.php reverting most changes from SVN r572 aka 16 years ago
edit-active-admin.php rename templates to .php instead of .tpl 17 years ago
edit-active-domain.php rename templates to .php instead of .tpl 17 years ago
edit-active.php fix undefined variables 16 years ago
edit-admin.php - added/fixed vim: lines to nearly all *.php files (exception: templates/*) 16 years ago
edit-alias.php alias editing - ensure template uses correct list of aliases 16 years ago
edit-domain.php list-virtual.php 16 years ago
edit-mailbox.php allow local_part to change (in theory this code serves no purpose, as the username cannot be changed.. but perhaps it will be in the future (part 2 of operation shut-up-libertytek-charles :) ) 16 years ago
edit-vacation.php edit-vacation.php: 17 years ago
fetchmail.php fetchmail.php: 16 years ago
functions.inc.php reverting most changes from SVN r572 aka 16 years ago
index.php login.php, index.php: 16 years ago
list-admin.php - added/fixed vim: lines to nearly all *.php files (exception: templates/*) 16 years ago
list-domain.php list-domain.php: 16 years ago
list-virtual.php reverting most changes from SVN r572 aka 16 years ago
login.php login.php, index.php: 16 years ago
logout.php - added/fixed vim: lines to nearly all *.php files (exception: templates/*) 16 years ago
main.php - added/fixed vim: lines to nearly all *.php files (exception: templates/*) 16 years ago
motd-users.txt Initial Import in SourceForge 18 years ago
motd.txt Initial Import in SourceForge 18 years ago
password.php - added/fixed vim: lines to nearly all *.php files (exception: templates/*) 16 years ago
search.php - added/fixed vim: lines to nearly all *.php files (exception: templates/*) 16 years ago
sendmail.php sendmail.php: 16 years ago
setup.php setup.php: 16 years ago
upgrade.php list-domain.php: 16 years ago
variables.inc.php - added/fixed vim: lines to nearly all *.php files (exception: templates/*) 16 years ago
viewlog.php rename templates to .php instead of .tpl 17 years ago
xmlrpc.php xmlrpc.php: 16 years ago