Commit Graph

1428 Commits (5b1ab56dac99b23490bccc95eb0df495903af9bb)
 

Author SHA1 Message Date
Christian Boltz 4bbc223804 edit.php:
- if values[$key] is not set, use the field's default value for smarty->assign
  (also avoids an "undefined" warning with read-only fields)


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1631 a1433add-5e2c-0410-b055-b7f2511e0802
11 years ago
Christian Boltz bf170f043b edit.php:
- add error message if $handler->init() fails without error message
  (indicates a bug in $handler->init())


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1630 a1433add-5e2c-0410-b055-b7f2511e0802
11 years ago
Christian Boltz 0cf9d7e53c templates/editform.tpl:
- change all field names to "value[$key]" instead of just "$key"
  to keep the main "namespace" clean

edit.php:
- adjust POST handling code to changed form field names ("value[$key]")



git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1629 a1433add-5e2c-0410-b055-b7f2511e0802
11 years ago
David Goodwin 5db370fdb3 add sasl auth listener config, a few more comments etc
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1628 a1433add-5e2c-0410-b055-b7f2511e0802
11 years ago
David Goodwin a0d07df3db typo fix
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1627 a1433add-5e2c-0410-b055-b7f2511e0802
11 years ago
David Goodwin fa984a5b5f upgrade.php : fix postgres complaining about addition of boolean not null field when existing data exists and no default is specified
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1626 a1433add-5e2c-0410-b055-b7f2511e0802
11 years ago
David Goodwin c7bceb77cb smarty.inc.php : use !empty to avoid php moaning
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1625 a1433add-5e2c-0410-b055-b7f2511e0802
11 years ago
David Goodwin c2cfd6fe04 templates/header.tpl : check for existance of thing before trying to use it
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1624 a1433add-5e2c-0410-b055-b7f2511e0802
11 years ago
David Goodwin e39510726a use !empty to avoid error
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1623 a1433add-5e2c-0410-b055-b7f2511e0802
11 years ago
Christian Boltz a0cf264976 update smarty from 3.1.5 to 3.1.16
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1621 a1433add-5e2c-0410-b055-b7f2511e0802
11 years ago
Christian Boltz 4a653e0da6 footer.tpl:
- do not escape $CONF.footer_text - it is already escaped


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1620 a1433add-5e2c-0410-b055-b7f2511e0802
11 years ago
David Goodwin 7f40cc071c DOVECOT.txt: update configuration for dovecot for version 1.2.x (Debian Wheezy)
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1619 a1433add-5e2c-0410-b055-b7f2511e0802
11 years ago
Christian Boltz 7236333587 default.css:
- apply the same font family and size to input, textarea and select
  https://sourceforge.net/p/postfixadmin/bugs/40/


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1618 a1433add-5e2c-0410-b055-b7f2511e0802
11 years ago
Christian Boltz 861dfc084d setup.php:
- recommend PHP >= 5.2.3
- beautify some mysql/pgsql messages

CHANGELOG.TXT
- add vacation.pl "$SUBJECT"
- remove TODO for setup.php
- add "Changes since 2.3.6 release" (from 2.3 branch)



git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1617 a1433add-5e2c-0410-b055-b7f2511e0802
11 years ago
Christian Boltz 657617d637 vacation.pl:
- disable TLS by default due to a bug in Mail::Sender 0.8.22
  (https://rt.cpan.org/Public/Bug/Display.html?id=85438)
  Actually, due to a bug in Mail::Sender 0.8.21, it was never enabled ;-)
- add new config option $smtp_tls_allowed to allow enabling TLS


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1615 a1433add-5e2c-0410-b055-b7f2511e0802
11 years ago
Christian Boltz 2e3998c14c vacation.pl:
- Add capability to include the subject of the original mail in the 
  subject of the vacation message.
  A good vacation subject could be: 'Re: $SUBJECT'
- corrected log entry about "Already informed ..." to show the 
  $orig_from, not $email

Patch by Christoph Lechleitner <christoph.lechleitner@iteg.at>
http://sourceforge.net/p/postfixadmin/patches/117/



git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1614 a1433add-5e2c-0410-b055-b7f2511e0802
11 years ago
Christian Boltz c4e723b355 config.inc.php:
- remove unused config options:
  - $CONF['vacation_replytype_control']
  - $CONF['vacation_allow_user_reply'];
  - $CONF['vacation_autoreplydelay_default']
  - $CONF['vacation_intervaldelay_default']

CHANGELOG.TXT
- update with vacation changes


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1613 a1433add-5e2c-0410-b055-b7f2511e0802
11 years ago
Christian Boltz 23ec3da059 vacation.pl:
- whitespace fixes
- update vim: line to 4 spaces tab (which seems to be used everywhere already)



git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1612 a1433add-5e2c-0410-b055-b7f2511e0802
11 years ago
Christian Boltz ba4ccfdcf9 setup.php:
- add hint about SELinux and AppArmor if templates_c is not writeable
  https://sourceforge.net/p/postfixadmin/feature-requests/112/


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1611 a1433add-5e2c-0410-b055-b7f2511e0802
11 years ago
Christian Boltz 8c139c95d6 vacation:
restrict reply type to a list of options ($CONF[vacation_choice_of_reply]),
remove input field for custom interval


config.inc.php:
- change $CONF['vacation_choice_of_reply'] to [seconds] => [$PALANG label]
  (note: reply to every mail is commented by default because it can be
  annoying. Admins will have to explicitely add/enable it in their config.)
- remove $CONF[vacation_replytype_default]
- update comment about dovecot:* for $CONF[encrypt]

*.lang:
- add texts for reply types

VacationHandler.php:
- remove reply_type at various places
- set_away(): remove reply_type from list of function parameters

templates/vacation.tpl:
- update reply type dropdown for the changed $CONF['vacation_choice_of_reply']
- remove the input fields for custom reply delay

vacation.php:
- restrict reply type to a list of options ($CONF[vacation_choice_of_reply])
- if vacation is disabled, but old values are stored in the database,
  change the activeFrom and activeUntil date to today to avoid users
  have to scroll through the calendar a lot

xmlrpc.php:
- update set_away() call to match the removed parameter

upgrade.php:
- comment out upgrade_1345_mysql() which created the reply_type and 
  interval_time fields in the vacation table in mysql
- add upgrade_1610() to add the vacation.interval_time field


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1610 a1433add-5e2c-0410-b055-b7f2511e0802
11 years ago
David Goodwin 99f871d45d spelling fixes; make $friendly_name a configuration option (From: Nice Name <someone@domain.com> control)
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1609 a1433add-5e2c-0410-b055-b7f2511e0802
11 years ago
Christian Boltz 31467479b5 CHANGELOG.TXT:
- whitespace fixes


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1608 a1433add-5e2c-0410-b055-b7f2511e0802
11 years ago
Christian Boltz fbfd7beb1d CHANGELOG.TXT:
- big update with all changes since 2.3.x (about 300 lines!)
- starts with a TL;DR summary ;-)
- still includes some details that need to be checked or finetuned
  (search for "***")


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1607 a1433add-5e2c-0410-b055-b7f2511e0802
11 years ago
Christian Boltz 77c0fbcb22 upgrade.php:
- upgrade_729 - add comment about r1605 changes


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1606 a1433add-5e2c-0410-b055-b7f2511e0802
11 years ago
Christian Boltz 975956b73e upgrade.php:
- change {BIGINT} to include "NOT NULL DEFAULT 0"
- add {INT} (not used anywhere yet)
- upgrade_729:
  - quota2 table: change "{BIGINT} NOT NULL DEFAULT 0" to "{BIGINT}" to 
    match the above change
  - note: quota table created with old versions of upgrade.php will not 
    have explicit "NOT NULL DEFAULT 0" for the "current" field 
    (shouldn't hurt)


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1605 a1433add-5e2c-0410-b055-b7f2511e0802
11 years ago
Christian Boltz 8d99a8a9fb DomainHandler:
- initStruct(): set valid bool default for backupmx


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1604 a1433add-5e2c-0410-b055-b7f2511e0802
11 years ago
Christian Boltz 635eed201f xmlrpc.php:
- setAway(): remove superfluous $reply_type
  (https://sourceforge.net/p/postfixadmin/patches/113/)


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1603 a1433add-5e2c-0410-b055-b7f2511e0802
11 years ago
Christian Boltz cf8ccc167f xmlrpc.php:
- setAway(): add (optional) new parameters for reply_type, 
  interval_time, activeFrom and activeUntil
- change $_SESSION['username'] to $_SESSION['sessid']['username']
  (that's what postfixadmin expects)

Based on a patch from Norm Brandinger,
https://sourceforge.net/p/postfixadmin/patches/113/



git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1602 a1433add-5e2c-0410-b055-b7f2511e0802
11 years ago
Christian Boltz 252ae047d5 various files:
- get rid of global $table_* variables, use table_by_key() instead



git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1601 a1433add-5e2c-0410-b055-b7f2511e0802
11 years ago
Christian Boltz 9f062cf181 login.php, users/login.php
- error_log() failed login attemps
  https://sourceforge.net/p/postfixadmin/feature-requests/111/


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1600 a1433add-5e2c-0410-b055-b7f2511e0802
11 years ago
Christian Boltz a9e0638d82 postfixadmin-cli.php:
- update help()
- comment out commands() - it's outdated and now unused


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1599 a1433add-5e2c-0410-b055-b7f2511e0802
11 years ago
Christian Boltz e2658394a1 vacation.pl:
- encode subject
  https://sourceforge.net/p/postfixadmin/bugs/272/
  https://sourceforge.net/p/postfixadmin/patches/119/


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1597 a1433add-5e2c-0410-b055-b7f2511e0802
11 years ago
Christian Boltz beffb3ec85 r1595 accidently included more changed files than it should.
This commit contains some dummy changes to get a proper changelog
attached to those files.

VacationHandler:
- (r1595) rewrite based on PFAHandler (not useable yet)
- (this commit) add a dummy init() function that calls die()

DOCUMENTS/DOVECOT.txt:
- (r1595) TODO note
- (this commit) remove the TODO note again

CHANGELOG.TXT:
- (r1595) include changes of 2.3.4, 2.3.5 and 2.3.6 (copied from 2.3 branch)
- (r1595) update some notes about SVN version (still far from complete)	


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1596 a1433add-5e2c-0410-b055-b7f2511e0802
11 years ago
Christian Boltz 57f4ad0b75 functions.inc.php pacrypt():
- for 'system' encryption, use full hashed password as salt 
  https://sourceforge.net/p/postfixadmin/bugs/2/


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1595 a1433add-5e2c-0410-b055-b7f2511e0802
11 years ago
Christian Boltz bafd2f1f58 edit.php:
- use prefill values from $_SESSION (if not provided in GET/POST)
- remember prefill values for next usage of the form

list-virtual.php
- set prefill values for edit.php

PFAHandler.php:
- let prefill() store the value in $struct if no prefill_$field()
  function exists

This fixes the remaining parts of
http://sourceforge.net/p/postfixadmin/bugs/298/



git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1594 a1433add-5e2c-0410-b055-b7f2511e0802
11 years ago
Christian Boltz 1a35cccf5e list-virtual.php:
- remember domain and page browser offset in $_SESSION
  (fixes 50% of http://sourceforge.net/p/postfixadmin/bugs/298/ )
- various cleanups

functions.inc.php:
- add safesession() (like safeget(), but for $_SESSION)



git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1593 a1433add-5e2c-0410-b055-b7f2511e0802
11 years ago
Christian Boltz c349420210 functions.inc.php
- db_query(): do not print out the failed query, error_log() it instead
  to avoid information leaks.
- update SF forum URL


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1592 a1433add-5e2c-0410-b055-b7f2511e0802
11 years ago
Christian Boltz 7bffdc9907 upgrade.php:
- convert TODO to a note


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1591 a1433add-5e2c-0410-b055-b7f2511e0802
11 years ago
Christian Boltz 75c2c9cea5 config.inc.php:
- add missing $CONF[*_struct_hook] options
- add empty defails for various $CONF[*_post*_script]



git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1590 a1433add-5e2c-0410-b055-b7f2511e0802
11 years ago
Christian Boltz b947495b09 (follow-up for r1588)
languages/*.lang:
- add texts for DomainHandler
- delete empty pAdminCreate_domain_defaultaliases_text



git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1589 a1433add-5e2c-0410-b055-b7f2511e0802
11 years ago
Christian Boltz 1688065fca DomainHandler.php:
- better error/info messages
- remove superfluous (and never displayed) success message in storemore()

languages/*.lang:
- add texts for DomainHandler
- delete empty pAdminCreate_domain_defaultaliases_text



git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1588 a1433add-5e2c-0410-b055-b7f2511e0802
11 years ago
Christian Boltz 801acc6cf2 AliasHandler:
- only allow @domain as target if $this->id is a catchall
- delete commented out version of delete()
- better error messages

languages/*.lang
- add new texts needed for AliasHandler


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1587 a1433add-5e2c-0410-b055-b7f2511e0802
11 years ago
Christian Boltz 4e489df526 AliasdomainHandler:
- better error messages

languages/*.lang
- rename pCreate_alias_domain_error3 to alias_domain_create_failed
- add new texts needed for AliasdomainHandler


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1586 a1433add-5e2c-0410-b055-b7f2511e0802
11 years ago
Christian Boltz c11932e58c MailboxHandler:
- use better/translateable messages at various places

languages/*.lang
- add texts needed by MailboxHandler


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1585 a1433add-5e2c-0410-b055-b7f2511e0802
11 years ago
Christian Boltz 53c28990ad PFAHandler:
- read_from_db(): convert $limit and $offset with (int) to make sure
  they contain a sane value


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1584 a1433add-5e2c-0410-b055-b7f2511e0802
11 years ago
Christian Boltz 79274dcedf AdminHandler:
- clear some TODO notes


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1583 a1433add-5e2c-0410-b055-b7f2511e0802
11 years ago
Christian Boltz 20d1ffcafc functions.inc.php:
- new function db_pgsql() to replace lots of
  "if ($CONF[database_type] == 'pgsql')) checks
- delete unused function boolconf()

several files:
- use db_pgsql() instead of checking $CONF[database_type]



git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1582 a1433add-5e2c-0410-b055-b7f2511e0802
11 years ago
Christian Boltz b11ee57e0e de.lang:
- better translation for "edit" in various texts


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1581 a1433add-5e2c-0410-b055-b7f2511e0802
11 years ago
Christian Boltz 60297e483c *.lang:
- rename pAdminCreate_admin_username_text to email_address
- rename pAdminEdit_admin_super_admin to super_admin

AdminHandler.php - initStruct(): 
- adopt to the renamed $PALANG texts
- remove some TODOs
- whitespace changes

setup.php, adminlistadmin.tpl:
- adopt to the renamed $PALANG texts


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1580 a1433add-5e2c-0410-b055-b7f2511e0802
11 years ago
Christian Boltz 2bf5df92ea functions.inc.php, DomainHandler, MailboxHandler:
- move mailbox_postdeletion() to MailboxHandler
- move domain_postcreation() and domain_postdeletion() to
  DomainHandler
- adopt those functions for usage inside the *Handler (replace
  print with $this->errormsg etc.)



git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1579 a1433add-5e2c-0410-b055-b7f2511e0802
11 years ago