Commit Graph

151 Commits (b424d395740065af2f060958f659900bbf41e117)
 

Author SHA1 Message Date
Christian Boltz b424d39574 - added fetchmail.php to menu.tpl (only displayed if $CONF['fetchmail'] == 'YES')
- shortened german menu text for fetchmail
- config.inc.php:
  - added $CONF['fetchmail'] and $CONF['fetchmail_extra_options'], including
    a big warning for the latter one.
  - include config.inc.php at the end if it exists. This can make future
    updates easier because you don't have to edit config.inc.php itsself.
    It should also make development easier because you don't need to undo
    local changes before commiting config.inc.php
- fetchmail.tpl:
  - new array display_fields, contains the list of fields to display in the
    table. This also solves most "undefined index" warnings.

Note: editing fetchmail does not honor $CONF['fetchmail_extra_options'] = 'NO' yet.


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@151 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz ba6ae2a311 - vacation.pl: replace DBD::MySQL with DBD::mysql in a comment.
Reported in the forum by jlbrown1:
  https://sourceforge.net/forum/message.php?msg_id=4563099


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@150 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz 430643b4dd - another hu.lang translation by Levente Farkas - thanks again!
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@149 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz 31fa1b6001 - updated hu.lang. Thanks to Levente Farkas <lfarkas at lfarkas dot org>
https://sourceforge.net/tracker/?func=detail&atid=937964&aid=1810646&group_id=191583


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@148 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz a48a7909ba - initial version of fetchmail support (by Viktor Gotwig,info AT symateam.de)
(see postfixadmin-devel mailinglist for detailed description and known
  problems, subject "fetchmail support").
  This commit adds fetchmail.pl which was missing in r140


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@147 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz 456fd9a372 - replaced admin creation code with a call to create_admin(),
see commit message of r135 for details


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@146 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz fdf00fe4c4 - added several german translations
- fixed a typo in fr.lang
- removed some no longer used translations from en.lang, cs.lang and es.lang


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@145 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
David Goodwin 94b033b97e create-domain.php: fix bug reported by ricflomag - see http://sourceforge.net/tracker/index.php?func=detail&aid=1752057&group_id=191583&atid=937964
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@144 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
David Goodwin 31c73f9256 fix edit-admin to not use the db password to pre-populate the field - as per emails with Christian Boltz
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@143 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
David Goodwin 1e5b40c348 common.php: caps change in headeR
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@142 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz a9aaefdb80 - DATABASE_*.TXT: Do no longer create default superadmin admin@domain.tld,
this is now done via setup.php


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@141 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz c4040c8227 - initial version of fetchmail support (by Viktor Gotwig,info AT symateam.de)
(see postfixadmin-devel mailinglist for detailed description and known 
  problems, subject "fetchmail support")
- encoded some german umlauts as htmlentities


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@140 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz 4386bf3f85 - always convert maildir name to lovercase - fixes
https://sourceforge.net/tracker/index.php?func=detail&aid=1783149&group_id=191583&atid=937964


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@139 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz eab71c6ba5 - escape_string(): preserve array keys when escaping arrays
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@138 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz a0ea681bfb - force user to delete setup.php (which allows creation of superadmins now!)
Note: Developers can use
  $CONF['configured'] == 'I_know_the_risk_of_not_deleting_setup.php'
  to avoid deletion of setup.php after every "svn up".

  WARNING:
  THIS ALLOWS NON-AUTHENTIFICATED USERS TO CREATE SUPERADMIN ACCOUNTS!

  Use this setting only on development systems, where the database is not
  used by postfix.


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@137 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz ac6af2c99e - read config.inc.php earlier to make the check for
$CONF['configured'] == FALSE work


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@136 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz 2d65b8b858 - setup.php now has a "create superadmin" form
- completely reworked HTML code in setup.php
- moved admin creation code from create_admin.php to functions.php,
  function create_admin
- several related changes in functions.inc.php:
  - use table_by_key() directly instead of the cached variables (which
    are empty if config.inc.php was not read before functions.php)
  - add an additional (optional) parameter $setup to db_connect, changed
    many die(msg) calls to $error_message .= msg.
    If $setup is given, the return value is array($link, $error_text)
    instead of $link
  - db_connect now checks for invalid $CONF['database_type']


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@135 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
David Goodwin a9d2038098 convert-passwd-to-postfixadmin.pl: initial attempt; wrote due to request by plip0 on irc
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@134 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz 119d70df85 - fix: do not remove . and .. (thanks rschetterer!)
- added support for domain subdir style layouts and lots of error checks (thanks abatie!)
- added exit status check after archiving mailbox before calling rmtree
- references:
  - https://sourceforge.net/tracker/index.php?func=detail&aid=1750088&group_id=191583&atid=937964
  - http://www.rdrop.com/files/mailbox_remover.pl


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@133 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
David Goodwin 78f2f8edbe languages/en.lang: pPasswordTooShort added
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@132 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
David Goodwin e94a7c4e33 try and stop ff from autocompleting the field; put the encrypted password in the field...
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@131 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
David Goodwin 736a1a0b1f common.php: ensure $CONF["configured"] is not false
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@130 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
David Goodwin 2267a22301 edit-admin.php: i think this fixes the outstanding problems, but I get horrible problems if firefox is allowed to remember passwords etc - is there a good way of disabling this behaviour beyond autocomplete="off" ?
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@129 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
David Goodwin e6025ff959 config.inc.php: renamed from config.inc.php.sample; added variable that needs disabling for site to work
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@128 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
David Goodwin c8ed2ffddf vacation.pl: patch from kope (via forum post at http://sourceforge.net/forum/forum.php?thread_id=1837942&forum_id=676076) - Thankyou
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@127 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz 809c1ec42c - merge admin/search.php into search.php
- merge GET and POST code
- admin/search.php still has the old code commented out

@pgsql users: please test the search - I can't promise that everything works. 
There are several TODOs / open questions regarding pgsql in search.php currently...


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@126 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz 57df6f53ea - added 'create admin' link
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@125 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz b0cd475b04 - fix: unlimited is 0, not -1
- remove debugging code


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@124 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz 4cdd5569cc fix password handling:
- always check if password == password2 (even if password2 is empty)
- skip changing password if new password is empty. Reasons:
  - empty passwords are insecure
  - editing an admin does not always mean to edit the password. One might 
    edit the allowed domains without even knowing the password of the 
	edited admin.


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@123 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz 76af386cb7 - workaround for undefined variables (needed after template merge)
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@122 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz 5712070060 - merge admin_list-virtual.tpl into overview.tpl
- deleted admin_list-virtual.tpl
- admin/list-virtual.php now uses overview.tpl template


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@121 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz 644997d8b0 - fix colspan in table headlines
- fix: display create mailbox link even if no mailbox exists yet


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@120 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz f91a6641c3 - Fix HTML (<span> is opened inside the error message, close it again)
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@119 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
David Goodwin 72991a4aa6 reformatting; should be ignorable
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@118 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
David Goodwin e4f2e45039 edit-mailbox.php; try and make it work properly
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@117 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
David Goodwin 4b84ff82bf templates/edit-vacation.tpl: explicit action url
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@116 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
David Goodwin c1c97bc77d edit-vacation.php: fix handling of empty goto field; fix handling of vacation editing if done by "someone else"
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@115 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
David Goodwin 2ffb2ef3e6 functions.inc.php: reduce global usage
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@114 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
David Goodwin 04ea2698f7 fix broken MySQL Schema (thanks to cytdevel - http://sourceforge.net/forum/forum.php?thread_id=1836415&forum_id=676076)
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@113 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
David Goodwin f854128947 functions.inc.php: mysqli is a valid database_type as well!
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@112 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
David Goodwin c1f25dce38 make links for adding mailbox and adding alias dependant on controller logic
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@111 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
David Goodwin 3b38d12315 ensure domain name is in a list of valid domain names; set for use within the template so the right one is selected if ?domain=XXX was in the url
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@110 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
David Goodwin 4e4af1a099 admin/list-virtual.php: correctly display add mailbox or add alias links for a domain as appropriate (not if it is a backup mx or inactive or alias/mailbox limit has been reached
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@109 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
David Goodwin 568f49a1f7 create-alias.php: syntax error fix
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@108 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
David Goodwin dc51d62e15 update license headers
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@107 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
David Goodwin 4e58481b8b fix template for edit-admin
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@106 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
David Goodwin 01d61d011b edit-admin.php: it should work now - if you are a super admin, the domain list is unhighlighted; note domains that are inactive or backupmx records will appear unhighlighted all the time
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@105 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
David Goodwin f2bf3cdf97 functions.inc.php: remove optional parameter for get_domains_for_admin()
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@104 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
David Goodwin cb66e25ba4 templates/header.tpl: basic flash messaging, basic capability for info and error messages; needs css styling
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@103 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
David Goodwin 53df296722 common.php: magic quotes stuff
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@102 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago