Commit Graph

678 Commits (1d3aa6c3285138a9a76688271084699cdf056e58)
 

Author SHA1 Message Date
Christian Boltz 1d3aa6c328 config.inc.php:
- better documentation for $CONF[alias_control], $CONF[alias_control_admin]
  and $CONF[special_alias_control] because the existing comments were 
  confusing (as pointed out by libertytrek in #postfixadmin)


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/branches/postfixadmin-2.3@935 a1433add-5e2c-0410-b055-b7f2511e0802
14 years ago
Christian Boltz 2c9f015714 CHANGELOG.TXT:
- added changes of the previous commits


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/branches/postfixadmin-2.3@904 a1433add-5e2c-0410-b055-b7f2511e0802
14 years ago
Christian Boltz 81ddc9416c functions.inc.php:
- check_domain(): don't trim() the domain - whitespace is an error.
  This catches "foo@ domain.com" that wasn't catched before.


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/branches/postfixadmin-2.3@903 a1433add-5e2c-0410-b055-b7f2511e0802
14 years ago
Christian Boltz 7fd366e46e edit-alias:
some small fixes that came up while integrating the multiple alias
target patch from anexius (r898):
- replace spaces only at the start and end of a line, not in the
  middle of an (BTW: invalid) mail address
- prevent input data loss on validation errors
- allow multiple error messages (separated by <br />

(I'll port that to trunk also.)


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/branches/postfixadmin-2.3@899 a1433add-5e2c-0410-b055-b7f2511e0802
14 years ago
Christian Boltz 90766b88cf create-alias: support multiple alias targets
- support multiple alias targets, patch by anexius@SF,
  http://sourceforge.net/projects/postfixadmin/forums/forum/676076/topic/4004442
  The patch fixes
  https://sourceforge.net/tracker/?func=detail&aid=2706290&group_id=191583&atid=937964

additional small fixes:
- replace spaces only at the start and end of a line, not in the
  middle of an (BTW: invalid) mail address
- allow multiple error messages (separated by <br />
- prevent input data loss on validation errors

(I'll port this to trunk.)


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/branches/postfixadmin-2.3@898 a1433add-5e2c-0410-b055-b7f2511e0802
14 years ago
Christian Boltz 0c6f5c6d8c upgrade.php:
- backport of r894 (replaced split() with explode(), added $Id)
- already covered in CHANGELOG.TXT


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/branches/postfixadmin-2.3@895 a1433add-5e2c-0410-b055-b7f2511e0802
14 years ago
Christian Boltz 303acce580 Backport of various fixes from trunk to the 2.3 branch
- list-virtual: fix displaying of 'modified' column for aliases when using
  postgres
- replaced deprecated split() with preg_split() or explode()
- functions.inc.php: better error messages when database functions are missing
- create domain: fixed typo in variable name that broke the default value for
  default aliases
- create domain: backup MX checkbox is now XHTML compliant
- vacation.pl logged literal $variable instead of the variable content at two
  places
- POSTFIX_CONF.txt: fixed filename for quota map
- config.inc.php: removed double $CONF['database_prefix']
- config.inc.php: fixed comments about domain_post* script parameters
- CHANGELOG.TXT: add new section for 2.3.3, include all the above



git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/branches/postfixadmin-2.3@893 a1433add-5e2c-0410-b055-b7f2511e0802
14 years ago
Christian Boltz 19dbcdeec7 merged most bugfix changes between 2.3 release and SVN r791 to
2.3 branch

- merged: SVN r745, r746, r747, r748, r749, r750, r752, r754, r756, 
  r767, r770, r771, r772, r773, r774, r777, r778, r779, r789, r790 
- r763 partly merged (except smarty part)
- r787 - only part a) merged
- see CHANGELOG.txt changes ;-) or SVN log for details

ToDo: display alias targets for mailboxes (r751 and r787 part b)



git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/branches/postfixadmin-2.3@792 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
Christian Boltz 8420ff730c templates/main.php:
- fix php short open tags
  https://sourceforge.net/tracker/?func=detail&atid=937964&aid=2908994&group_id=191583


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/branches/postfixadmin-2.3@786 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
David Goodwin 1f57b94d7e login.php: fix XSS hole as per bug 2905599
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/branches/postfixadmin-2.3@783 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
David Goodwin f7be4a7494 postfixadmin 2.3 branch
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/branches/postfixadmin-2.3@740 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
Christian Boltz 7c890a49ea postfixadmin 2.3 final(ly) :-)
- updating version number in various places


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@739 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
David Goodwin eb68607f56 create the plpgsql language if it is not already there; will error if already enabled, but we will just ignore this - this may cause issues if the db user does not have priviledges to create language ... if this is the case the next query will fail
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@738 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
Christian Boltz 4782a885b4 CHANGELOG.TXT:
- updated with all changes since 2.3 rc7
- fixed SVN revision of 2.3 rc7


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@737 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
Christian Boltz 4168dd5d7b config.inc.php:
- add comment about courier_authlib SHA passwords

backup.php
- also backup quota and quota2 table


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@736 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
David Goodwin cd7172dcea vacation.pl: see email conversation with stevan@bajic.ch and #2835877 (https://sourceforge.net/tracker/?func=detail&aid=2835877&group_id=191583&atid=937964); thanks to stevan for taking the time to explain why he was right :) - this change makes the vacation script look for user#domain@vacation.domain in the alias table, rather than user@domain, which is a better check (as it implies they also have vacation turned on)
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@734 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
Christian Boltz 562ab4dc14 setup.php:
- define('POSTFIXADMIN') to avoid session_start() call in common.php
  This avoids breakage if php5-session is not installed. Fixes
  https://sourceforge.net/tracker/?func=detail&aid=2855430&group_id=191583&atid=937964

common.php
- only define('POSTFIXADMIN') if it is not yet defined (avoids a warning)



git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@733 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
Christian Boltz 0eb3cb9acf templates/create-mailbox.php
- always tick the "create mailbox" - even if $CONF['create_mailbox_subdirs'] is set
  https://sourceforge.net/tracker/?func=detail&aid=2834441&group_id=191583&atid=937964


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@731 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
Christian Boltz 04b272472d support for displaying quota (dovecot 1.1 and 1.2 format)
upgrade.php
- create quota and quota2 table (upgrade_729)
- create the triggers required by dovecot (upgrade_730_pgsql)

list-virtual.php
- updated to work with both quota tables
  Patch by Varren Volz, https://sourceforge.net/tracker/?func=detail&amp;aid=2867629&amp;group_id=191583&amp;atid=937966
- changed query for 1.1 quota table to 
      WHERE [...] AND  (  $table_quota.path='quota/storage' OR $table_quota.path IS NULL  )
  This fixes https://sourceforge.net/tracker/?func=detail&aid=2794247&group_id=191583&atid=937964
  (users not shown when initial email is not sent)

config.inc.php, functions.php
- new config option $CONF['new_quota_table'] (YES means dovecot 1.2 format)
- set variables for new quota2 table

DOCUMENTS/DOVECOT.txt
- added note that quota table is automatically created
- added note about different quota tables for dovecot 1.0/1.1 and >= 1.2


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@730 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
Christian Boltz 246a793a7d upgrade.php:
- replaced TYPE=... in CREATE/ALTER TABLE statements with ENGINE= to fix
  compability with MySQL 6.x (TYPE= is no longer supported)
  https://sourceforge.net/projects/postfixadmin/forums/forum/676076/topic/3377035
- new placeholders {INNODB} and {MYISAM} - I don't hope that this needs to be
  changed again, but you never know ;-)


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@723 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
David Goodwin 08f37bb6ad vacation.pl: change syslog facility
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@721 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
Christian Boltz 826ec62203 config.inc.php
- fix comment about $CONF['configured'] - it explicitely needs to be set to true


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@720 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
David Goodwin b8401e5b48 quotation fix; use double quotes with $ silly (thanks to ksb4ever - #2858717 )
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@719 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
Christian Boltz e3e012d597 DOVECOT.txt:
- set latin1 charset to avoid index length problems
- set engine MyISAM
https://sourceforge.net/tracker/index.php?func=detail&aid=2852526&group_id=191583&atid=937964


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@718 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
David Goodwin 93b4d3e71a functions.inc.php: allow for port specification for PostgreSQL
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@717 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
David Goodwin e658820dfe config.inc.php: update to include port specification for pgsql dbs
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@716 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
David Goodwin 4706d9d058 require that xmlrpc is turned on in config file
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@715 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
David Goodwin 1406412a95 default xmlrpc support to off
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@714 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
David Goodwin 53e3bd0eb0 doc fix
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@713 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
Christian Boltz 365f34a43a model/*.php:
- fix unquoted boolean values in sql queries which probably caused postgresql errors


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@712 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
Christian Boltz b9be63fc81 edit-vacation.php:
- fix another unqouted usage of boolean values


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@711 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
David Goodwin c4002d5e0b functions.inc.php: fix as per Geoff Shangs report via email
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@710 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
David Goodwin 98d9d0e525 edit-vacation: fix second postgresql issue (removing vacation)
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@708 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
David Goodwin 06b170c70a edit-vacation.php: fix postgresql issue
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@707 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
Christian Boltz ff3de29241 vacation.pl:
- fix typo (?) in query: "goto like %" should most probably be "goto like ?" (placeholder)
  (if this was not a typo, the whole "AND ..." would be superfluous)


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@706 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
Christian Boltz 773d97bca2 create-domain.php:
- fix pgsql error "Invalid query: ERROR: column "f" does not exist" by adding quotes
  (reported by Zelut in IRC)


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@705 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
David Goodwin 1432d7c806 VIRTUAL_VACATION/vacation.pl: fix sql query - see https://sourceforge.net/tracker/index.php?func=detail&aid=2835877&group_id=191583&atid=937964
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@703 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
David Goodwin 6f653b1697 fix boolean handling for postgres - see https://sourceforge.net/tracker/?func=detail&aid=2830001&group_id=191583&atid=937964
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@701 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
David Goodwin 814539fe50 fix db_get_boolean behaviour - postgres returns "t" or "f" - and also accepts this
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@700 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
David Goodwin e1661563e3 remove old url reference
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@699 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
David Goodwin d487507e8e functions.inc.php: support base64 encoded sha1 passwords (flavour=SHA); thanks to mez@sourceguru.net
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@698 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
David Goodwin df41f03d96 backup.php: fix bug 2829452
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@697 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
Christian Boltz e46f73fed2 functions.inc.php
- replace ereg (introduced in r693) with preg_match


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@696 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
David Goodwin 345de9214c bump up to 2.3rc7
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@694 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
David Goodwin f1fc057f43 fix crypt() usage - see https://sourceforge.net/tracker/?func=detail&aid=2814820&group_id=191583&atid=937964 ; thanks for the patch
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@693 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
David Goodwin ad62c5e450 update patch for config.inc.php ... dunno if i can rename it or should remove it... weird debian stuff ;) see also https://sourceforge.net/tracker/?func=detail&aid=2827499&group_id=191583&atid=937964
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@692 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
David Goodwin b40bb95e8c rules: alaways install the confd-link.sh script... partial fix to https://sourceforge.net/tracker/?func=detail&aid=2827499&group_id=191583&atid=937964
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@691 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
David Goodwin 8200ef4788 ready for 2.3rc6
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@689 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
Christian Boltz b23620cd8a templates/search.php, templates/list-virtual.php:
- replaced the remaining ereg_* calls with preg_* calls


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@688 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
David Goodwin dfe10bf036 try and be a bit more intelligent over which domain is selected by default in list-virtual & the menu
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@687 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago