Commit Graph

26 Commits (90d3a0ded7ea4a2b3bc4b956aa179905c30065b6)

Author SHA1 Message Date
Aaron Howell cf72bf1dcc Fixed: php 5.4 array shortcut syntax errors on 5.3 7 years ago
Christian Boltz 4eaf0d98b9
Fix broadcast-message queries to work with postgresql
This is a follow-up fix as discussed on
https://github.com/postfixadmin/postfixadmin/pull/50
8 years ago
Dan 3e4ac2ab73 Update broadcast-message.php
Send broadcast message to active users only. 
Without "active=1" condition in WHERE will clause a lot of "Recipient address rejected: User unknown in virtual mailbox table."
8 years ago
Jan-Frederik Rieckers 54532e7cee
Fix issue with checkbox in broadcast 8 years ago
Christian Boltz 8aecf3eae3 Merge branch 'master' into broadcast_improvements 8 years ago
Christian Boltz 9df6de65af
Finally get rid of variables.inc.php
Initialize $error and $tMailbox where needed.

The other variables in variables.inc.php are already initialized
everywhere.
8 years ago
Jan-Frederik Rieckers 797da4f694
Fix typo 8 years ago
Jan-Frederik Rieckers 7ee587bb87
[Broadcast] Use db_in_clause instead of a foreach loop 8 years ago
Jan-Frederik Rieckers 2e92eb5cd1
Fix small syntax bug 8 years ago
Jan-Frederik Rieckers 3c360f646f
Switch config item for broadcast.
The new config item is now `sendmail_all_admins`
8 years ago
Jan-Frederik Rieckers 3c3d844130
Improve the broadcast message tool
* Make it possible by config option that non global admins can send
  broadcast messages to their domains.
* Allow the sender to select the domains the broadcast message should be
  delivered to
* Allow the sender to decide if the broadcast message should just be
  delivered to mailboxes
8 years ago
Christian Boltz 52a7df2b3a Add CSRF protection for POST requests
Add the CSRF token to all forms, and validate it when those forms are
submitted.

https://sourceforge.net/p/postfixadmin/bugs/372/



git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1842 a1433add-5e2c-0410-b055-b7f2511e0802
9 years ago
Christian Boltz 23bdd02dcb broadcast-message.php, sendmail.php, MailboxHandler, *.lang:
- include mailbox name in pSendmail_result_error and
  pSendmail_result_success



git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1781 a1433add-5e2c-0410-b055-b7f2511e0802
10 years ago
Christian Boltz 06c1125e19 broadcast-message.php:
- remove raw HTML ("<br />") from flash_info()/flash_error() calls


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1695 a1433add-5e2c-0410-b055-b7f2511e0802
10 years ago
Christian Boltz 6e2e132bac remove "postfixadmin.com" in comments in lots of files
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1558 a1433add-5e2c-0410-b055-b7f2511e0802
11 years ago
Christian Boltz f0a153f0fc sendmail.php, broadcast-message.php:
- use smtp_get_admin_email() to determinate the mail sender
- rename $SESSID_USERNAME to $smtp_from_email
- replaced tMessage with flash_error() / flash_info()

sendmail.php:
- changes compared to Dale's patch:
  - use flash_info() for $PALANG['pSendmail_result_success']

broadcast-message.php:
- use flash_error() for $PALANG['pBroadcast_error_empty'] instead of
  hardcoding it in the template


sendmail.tpl,templates/broadcast-message.tpl:
- replace <h3> with <th>
- replaced $SESSID_USERNAME / $CONF[admin_email] with $smtp_from_email
- mark labels with <label>
- mark non-editable fields with <em>
- align buttons with input fields
- remove tMessage

sendmail.tpl:
- changes compared to Dale's patch:
  - fixed colspan for buttons cell

templates/broadcast-message.tpl:
- remove hardcoded error message (see broadcast-message.php change above)
- changes compared to Dale's patch:
  - fixed colspan for <th>

This commit is part of the huge cleanup patch by Dale Blount (lnxus@SF),
https://sourceforge.net/tracker/?func=detail&atid=937966&aid=3370510&group_id=191583


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1094 a1433add-5e2c-0410-b055-b7f2511e0802
14 years ago
Christian Boltz d66262f00e Remove usage of $CONF['postfix_admin_url'] in various Location: headers
to avoid problems with wrong values of $CONF['postfix_admin_url'].

https://sourceforge.net/tracker/?func=detail&atid=937964&aid=3039042&group_id=191583
contains the technical details and reasons.

Note: $CONF['postfix_admin_url'] is still used at some places that are
a bit harder to change.


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1021 a1433add-5e2c-0410-b055-b7f2511e0802
14 years ago
Sebastian 9ddf15439f - fix some display errors after rev. 788, found and patch supplied by Jan-Kruis, thx.
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@791 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 e97bad87ab broadcast-message.php: fix hard coded table names
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@643 a1433add-5e2c-0410-b055-b7f2511e0802
16 years ago
David Goodwin 4d54548b72 reindent
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@642 a1433add-5e2c-0410-b055-b7f2511e0802
16 years ago
Christian Boltz 8b05971af9 broadcast-message.php:
- set mb_internal_encoding("UTF-8") to avoid broken encoding in mailheaders
  https://sourceforge.net/tracker/?func=detail&atid=937964&aid=2641660&group_id=191583


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@570 a1433add-5e2c-0410-b055-b7f2511e0802
16 years ago
Christian Boltz 6cb2953c90 broadcast-message.php:
- fix typo: encode_base64 -> base64_encode
  https://sourceforge.net/forum/forum.php?thread_id=1891143&forum_id=676076


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@267 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
David Goodwin 39953d029d rename templates to .php instead of .tpl
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@250 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz 332d2d607b broadcast-message.php:
- exit if $CONF['sendmail'] != 'YES'


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@236 a1433add-5e2c-0410-b055-b7f2511e0802
17 years ago
Christian Boltz 1132b958e5 Finally got rid of admin/ :-)
- moved admin-only scripts from admin/ to /
- removed all merged files ("require('../$file')") from admin/
- changed include paths - no more admin/superadmin switching needed
- admin_menu.tpl is also gone
- removed all menu.tpl / admin_menu.tpl switches - no more needed
- admin/index.php still exists and redirects to /



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