Christian Boltz
16036cfd4d
list-virtual.php
...
- add in_array check to avoid that superadmins can enter invalid domains
- the check_owner check is probably obsolete after this change. I left it
in (with a clear message) until I'm 100% sure that it's really unneeded.
- move sticky domain code below error checking - the session should only
include valid domains ;-)
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@779 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
Christian Boltz
3922f6fece
after an hour of debugging with Han on #postfixadmin...
...
functions.inc.php:
- added error message if the check_owner query returns more than one result.
This can happen with old databases (pre-2.3) where the domain_admins table
contains "ALL" _and_ a domain for a superadmin - which results in the
superadmin not able to edit mailboxes etc. for this domain.
(Error message not translatable - this is a corner case.)
list-virtual.php:
- add "invalid parameter" error message before redirecting to list-domain
if the user doesn't have permissions for a domain
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@778 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
Christian Boltz
f1c9e278f5
DOCUMENTS/DOVECOT.txt
...
- add query for pgsql (thanks s0undt3ch)
- added 'active' check for MySQL query
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@777 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
Sebastian
42bf87bb58
- fixed minor table error.
...
- default text alignment is now "left"
- fixed variable assignment in templates/menu.tpl
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@775 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
Christian Boltz
091cd59d77
import_users_from_csv.py
...
- add known restrictions (MySQL only, hardcoded "domain/username/") to usage()
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@774 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
Christian Boltz
f456d8f9c3
ru.lang
...
- updated by Pavel Usischev (pusischev @SF)
https://sourceforge.net/tracker/?func=detail&atid=937966&aid=2900334&group_id=191583
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@773 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
Christian Boltz
76dc501a52
*.lang:
...
- added missing strings
language-update.sh:
- made --forcepatch more robust
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@772 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
Christian Boltz
ad5a4fff9f
language updates:
...
- es.lang by virtualminds @SF
https://sourceforge.net/tracker/?func=detail&atid=937966&aid=2894512&group_id=191583
- fr.lang by fschmutz @SF
https://sourceforge.net/tracker/?func=detail&atid=937964&aid=2898500&group_id=191583
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@771 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
Christian Boltz
cc38342087
config.inc.php
...
- document commandline parameters for $CONF[*_script] options
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@770 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
Sebastian
3271b2d822
- fix templates to honour $CONF['sendmail'] and $CONF['fetchmail'] settings
...
- fix some small undefined errors
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@769 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
Sebastian
4a3e525f24
- small fix to smarty.inc.php. Really use our compile and templates directory
...
- Fix in menu.tpl to honor "show fetchmail tab"
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@768 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
David Goodwin
281dde9cbd
adding script as provided by Simone Piccardi via the postfixadmin-devel mailing list
...
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@767 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
Sebastian
283c563d84
- small bugfix. Display date correctly
...
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@766 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
Sebastian
2dca007dbf
- add some images
...
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@765 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
Sebastian
5275e17c20
- add ability to choose activation date for vacation message in user module
...
- add files to user module
TODO: clean up whole user module, use VacationHandler in admin module
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@764 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
Sebastian
e701d6e756
- improved error message of setup.php
...
- Use $incpath in setup.php to make sure nobody is doing evil things
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@763 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
Sebastian
8360ca09d0
- fixed one more short open tag.
...
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@762 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
Norman Messtorff
7229502738
Small typo fixed...
...
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@761 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
Sebastian
0b41887b36
- add <?php tags.
...
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@760 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
Sebastian
cf40467570
- accidentially deleted header.php. Needed for setup
...
- add some error checks.
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@759 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
Sebastian
cb029a5daf
- add images for calendar JavaScript application
...
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@758 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
Sebastian
b1287d97e2
- big merge of Postfixadmin smarty into trunk
...
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@757 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
David Goodwin
9a0e51c11b
add missing driver option for dovecot-mysql config file
...
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@756 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
David Goodwin
7280a2bf80
POSTFIX_CONF.txt: typo fix
...
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@754 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
Christian Boltz
188aa2bd5c
functions.inc.php:
...
- handle dovecot passwords without any tempfile (to prevent safe_mode issues)
Changed based on a patch from Aleksandr @SF,
https://sourceforge.net/tracker/?func=detail&atid=937966&aid=2890471&group_id=191583
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@752 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
Christian Boltz
6220b6d85c
after a long weekend...
...
list-virtual.php:
- merge search functionality into list-virtual.php (even more performant
for domain admins now - search.php checked domain ownership after
querying all domains...)
(Use list-virtual.php?search=searchterm to test searching)
- allow to display mailbox alias targets in mailbox list
Fields added to the mailbox list array:
* goto_mailbox (mailbox (=1) or forward-only (=0))
* goto_other (array with aliases not pointing to the mailbox)
* (vacation alias is skipped)
open question: is $display_mailbox_aliases = boolconf('special_alias_control')
correct? I'm slightly confused with alias_control, alias_control_admin
and special_alias_control...
- build mailbox query step by step instead of having several variants
which overlap 90% (and include a high bug potential, as already
demonstrated by me ;-)
templates/list-virtual.php
- added search result highlighting
- added displaying of mailbox aliases (goto_mailbox and goto_other)
- removed ?domain= parameter for edit-alias.php, other edit-*.php have
to follow (otherwise we'll have to extract the domain from the address
to avoid incorrect parameters in search mode)
functions.inc.php
- added db_in_clause() which builds a "field in(x, y)" clause for
database queries
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@751 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
Christian Boltz
7ea19f84ef
de.lang:
...
- fix wrong translation
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@750 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
Christian Boltz
2c4cdca5fd
edit-alias.php
...
- get domain name by splitting address parameter instead of relying
on the domain GET/POST parameter.
This makes linking to edit-alias easier.
- simplify reading $_GET/$_POST['address']
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@749 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
David Goodwin
7f4f8fd996
remove short open tags etc
...
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@748 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
Christian Boltz
9cbb2a5d57
list-virtual.php + its template
...
- better fix for used quota not showing up (SELECT quota2.bytes _as current_)
- this includes reverting the template patch from r746, patch from
https://sourceforge.net/tracker/?func=detail&atid=937964&aid=2889335&group_id=191583
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@747 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
David Goodwin
1b59229f11
fix quota display - as per http://sourceforge.net/tracker/?func=detail&atid=937964&aid=2889335&group_id=191583 - thanks for the patch
...
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@746 a1433add-5e2c-0410-b055-b7f2511e0802
15 years ago
Christian Boltz
0ec2c3aa41
upgrade.php
...
- upgrade_344_mysql(): fix MySQL 6.0 compatibility
reported by ant77191 on
https://sourceforge.net/projects/postfixadmin/forums/forum/676076/topic/3435180
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@745 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&aid=2867629&group_id=191583&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