Commit Graph

492 Commits (49079bd1e543529e2bc22c7f10b7b13f6e172460)
 

Author SHA1 Message Date
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
David Goodwin b15d558c81 functions.inc.php: fix escape_string to handle arrays, move magic_quotes stuff to common.php; add flash message stuff (See also header.php)
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@101 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz 9c0a7f4ad3 - fix: edit links contained <span ...>...</span> from search highlighting.
(see forum post: https://sourceforge.net/forum/message.php?msg_id=4540915)
  Now using separate variables for highlighting in strings that end up in links.


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@100 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz 1b603782d0 - fix: added edit_mailbox as allowed log action
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@99 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
David Goodwin 65fafc8275 admin/edit-domain.php: sql refactoring
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@98 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
David Goodwin d56ada24e2 users/login.php: sql refactoring
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@97 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
David Goodwin fd67e6b120 screenshots: adding
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@96 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz 14bd1d6cd9 - removed forgotten TODO
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@95 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz 8e88a41691 - added missing "global $CONF" in authentication_require_role
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@94 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
David Goodwin 97767d4800 en.lang: added missing key for "create mailbox"
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@93 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago