David Goodwin
460c624275
remove more references to sourceforge
7 months ago
David Goodwin
759304ecb8
apparently these all need reformatting
1 year ago
David Goodwin
f01274ec94
try relaxing composer dependencies to allow php8.2 dev support, reformat so composer format passes
2 years ago
David Goodwin
efeb698bc0
ensure POST[domains] is not empty
5 years ago
David Goodwin
0565cde6f3
ensure POST[domains] is not empty
5 years ago
David Goodwin
dadd40a9e9
fix broadcast message to load a template that does exist - see #465
5 years ago
Gianluca Giacometti
79284ddff8
Call to the template fixed
The name ogìf the template is missing the prefix "broadcast-"
5 years ago
David Goodwin
f6f62180e8
remove some global variables
5 years ago
Felix Ableitner
600248e955
Add option to use smtp password when sending admin emails ( fixes #272 )
7 years ago
David Goodwin
803e2342f8
fix psalm issues; reformat; rename new db functions
7 years ago
David Goodwin
ea33d9951a
try migrating to pdo
7 years ago
David Goodwin
4fcdba9cf4
run php-cs-fixer (code reforamt)
7 years ago
David Goodwin
74002bbf57
psalm fixes
7 years ago
David Goodwin
c147eb053b
move to use db_assoc() rather than db_array() (code assumes assoc. array)
8 years ago
David Goodwin
2615b6fece
see #132 - better broadcast mail format, perhaps
8 years ago
Adrien Crivelli
15df6c1d7b
Reformat everything with PHP-Cs-Fixer
8 years ago
David Goodwin
99147d51eb
move public facing stuff into public/, this allows us to stop exposing templates_c/ etc to the world
8 years ago
Aaron Howell
cf72bf1dcc
Fixed: php 5.4 array shortcut syntax errors on 5.3
9 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
9 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."
9 years ago
Jan-Frederik Rieckers
54532e7cee
Fix issue with checkbox in broadcast
9 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.
9 years ago
Jan-Frederik Rieckers
797da4f694
Fix typo
9 years ago
Jan-Frederik Rieckers
7ee587bb87
[Broadcast] Use db_in_clause instead of a foreach loop
9 years ago
Jan-Frederik Rieckers
2e92eb5cd1
Fix small syntax bug
9 years ago
Jan-Frederik Rieckers
3c360f646f
Switch config item for broadcast.
The new config item is now `sendmail_all_admins`
9 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
9 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
10 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
11 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
11 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
12 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
15 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
15 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
16 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
16 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
17 years ago
David Goodwin
4d54548b72
reindent
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@642 a1433add-5e2c-0410-b055-b7f2511e0802
17 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
17 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
18 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
18 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
18 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
19 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
19 years ago
David Goodwin
bf5b01a624
spelling tpyo fix (s/succes/success/)
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@82 a1433add-5e2c-0410-b055-b7f2511e0802
19 years ago
David Goodwin
2d3058ed9c
patch from amsys - see http://sourceforge.net/tracker/index.php?func=detail&aid=1800367&group_id=191583&atid=937966 - thank you!
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@72 a1433add-5e2c-0410-b055-b7f2511e0802
19 years ago
David Goodwin
cf5b117aa5
admin/*, users/* - code refactoring
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@67 a1433add-5e2c-0410-b055-b7f2511e0802
19 years ago
Christian Boltz
984afca938
- fix file header information
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@35 a1433add-5e2c-0410-b055-b7f2511e0802
19 years ago
David Goodwin
b934b083fc
broadcast-message.php: add ability for admins to email everyone, patch from Georgi Naplatanov - goshoo (via sf.net)
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@25 a1433add-5e2c-0410-b055-b7f2511e0802
19 years ago