Commit Graph
1724 Commits
Author SHA1 Message Date
David Goodwin 0951629a48 config.inc.php: debian has doveadm in /usr/bin not /usr/sbin postfixadmin-3.1 2017-06-25 18:49:32 +01:00
David Goodwin 5036b83ac2 fix debian changelog 2017-06-25 16:35:32 +01:00
Christian Boltz be5fafa9fb changelog update etc. for 3.1 release 2017-06-25 16:37:42 +02:00
Christian Boltz 7bb688121f don't display database name and user in setup.php 2017-06-25 16:35:24 +02:00
Christian Boltz c2ce2518e8 setup.php: check for and recommend config.local.php 2017-06-25 16:34:22 +02:00
Christian Boltz e3a701ba24 drop fallback for templates_c, die() instead
Using /tmp/ as fallback is insecure (predictible filenames in a
world-writeable directory enable symlink attacks). Better die() with an
useful error message.
2017-06-25 15:59:53 +02:00
Christian Boltz 0ec24885e6 Non-empty ;-) favicon
We have to ship a favicon (see #44), so we can also include our logo
in it ;-)
2017-06-25 15:37:53 +02:00
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
2017-06-25 14:46:21 +02:00
Christian Boltz 40a11c0186 Merge pull request #50 from danmdm/patch-1
Update broadcast-message.php to send broadcast message to active users only
2017-06-25 14:39:43 +02:00
Christian Boltz a366654757 Better use Config::Lang instead of global $PALANG 2017-06-25 14:35:27 +02:00
David Goodwin 8508b8e119 global PALANG 2017-06-25 13:29:55 +01:00
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."
2017-06-23 13:23:16 +03:00
Christian Boltz 64f1593818 revert "support unicode domain names - see #47"
Unicode support is a much bigger can of worms (see the discussion in #47),
and having just a little part of unicode support in is a bad idea.

You can of course use the xn--whatever notation for unicode domains ;-)
2017-06-22 20:48:07 +02:00
David Goodwin d2d066d13a empty favicon - see #44 2017-06-02 12:57:24 +01:00
David Goodwin a09a3fa3b0 support unicode domain names - see #47 2017-06-02 12:54:34 +01:00
David Goodwin 3b481082c4 Update README.md 2017-05-26 10:15:44 +01:00
David Goodwin 8bb1c4f459 update squirrelmail plugin 2017-05-26 10:14:42 +01:00
David Goodwin 27b835c161 remove php4 constructor; hide some cNav_bar variables and rename some variables 2017-05-21 05:41:04 +01:00
Christian Boltz 7833ac9ab7 Merge pull request #24 from Janfred/broadcast_improvements
Broadcast improvements:
- allow to send to mailboxes only
- allow to send to only some domains
- allow domain admins to send to their domains - new config option $CONF['sendmail_all_admins']
2017-04-17 15:19:07 +02:00
Jan-Frederik Rieckers 54532e7cee Fix issue with checkbox in broadcast 2017-04-17 14:02:37 +02:00
Jan-Frederik Rieckers 5712a35f71 Fix some Language issues in broadcast 2017-04-17 14:00:44 +02:00
Christian Boltz 8aecf3eae3 Merge branch 'master' into broadcast_improvements 2017-04-17 13:22:16 +02:00
Christian Boltz 88bd9bfd19 drop $db_conn parameter from escape_string()
Connection caching is now done in db_connect() which is a much better
place.

This reverts most of c253ef7dbd
2017-04-17 12:39:04 +02:00
Christian Boltz 6ee85ac6cc Merge pull request #41 from froonix/mysqli-connect
Better static DB connection cache

(+ lots of whitespace fixes)
2017-04-17 12:28:56 +02:00
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.
2017-04-10 20:54:34 +02:00
Christian Boltz 1ec2ec1199 Move initialization of $fDomain to viewlog.php
The other files using this variable (vacation.php and list-virtual.php)
initialize it properly.
2017-04-10 20:39:30 +02:00
Christian Boltz f4f2d1b0f4 Get rid of most variable definitions in variables.inc.php
variables.inc.php is an old hack to save having to declare variables
before using them in pages.

Lots of the variables there are unused (leftovers from the old
create-*.php or edit-*.php scripts) or properly initialized in the file
using them, so there's no need to keep them in variables.inc.php.

The remaining variables in this file should also be dropped after
further investigation.
2017-04-10 20:32:11 +02:00
Tjebbe Westendorp b3b87385e0 Fix for PHP 7+ (#43)
Removed $fDomains as it's not used anymore and produced a PHP 7+ warning
2017-04-10 14:15:41 +02:00
Christian Schrötter 846dcb756c Remove unnecessary code 2017-03-27 18:15:11 +02:00
Christian Boltz f7f3781770 Fix default for $CONF[create_mailbox_subdirs_hostoptions]
array('') means to include an empty item, and that results in an invalid
remote specification with a trailing "/"

Using an empty array() fixes this.

Reported by oftc_ftw on IRC.
2017-03-22 22:08:53 +01:00
Christian Schrötter e28f3f5959 Fix for mysqli_connect() 2017-03-21 18:05:33 +01:00
Christian Schrötter 2dea9fadd4 Remove whitespace 2017-03-21 17:43:27 +01:00
Christian Boltz 0b82dec825 Fix filename for *.menu.conf.php in gitignore
Looks like svn:ignore was wrong or outdated ;-)
2017-03-17 20:24:31 +01:00
Christian Boltz c5564c2af9 Merge pull request #36 from isleshocky77/git-ignore
Add a .gitignore file which follows the svn:ignore
2017-03-17 20:22:55 +01:00
Stephen Ostrow a3e08dd2f8 Adding a .gitignore file which follows the svn:ignore for now 2017-03-17 12:44:40 -04:00
Christian Boltz 7edbfb045b Merge pull request #33 from acs-ferreira/patch-1
Update French language
2017-03-15 22:52:45 +01:00
Carlos Ferreira 83836a2477 Update fr.lang 2017-03-15 22:46:01 +01:00
Carlos Ferreira 1b9fa66493 Small fix 2017-03-11 05:43:46 +01:00
Carlos Ferreira 061f950661 Update French language 2017-03-11 05:33:18 +01:00
Jan-Frederik Rieckers 797da4f694 Fix typo 2017-03-06 10:12:48 +01:00
Jan-Frederik Rieckers 7ee587bb87 [Broadcast] Use db_in_clause instead of a foreach loop 2017-03-06 09:58:35 +01:00
Christian Boltz 67a6d0e27a use $CONF[page_size] in viewlog.php
This replaces the hardcoded "LIMIT 10" with "LIMIT <page_size>".

Patch by Dan <dannyro @SF>, https://sourceforge.net/p/postfixadmin/patches/133/

Additional change on top of Dan's patch:
- wrap $CONF['page_size'] in intval() to avoid that a broken config
  setting can break or exploit the query
2017-03-04 00:34:45 +01:00
Christian Boltz 29364b4734 ensure some fields are really latin1
The previous commit changed vacation_notificatoin.notified,
alias_domain.alias_domain and alias_domain.target_domain to latin1, but
did this only in their original upgrade function.

upgrade_1836_mysql() also applies this change to existing databases.
(It's unlikely that these fields are not latin1 - creating them as utf8
or utf8mb4 would break at the index length, but better safe than sorry ;-)
2017-02-25 23:22:47 +01:00
Christian Boltz ba94c3a75e fix problems with utf8mb4 as default charset
When trying to create a new database with utf8mb4 as default charset,
upgrade.php fails at various places because of too long indexes.

- no longer run upgrade_1_mysql, upgrade_2_mysql and upgrade_3_mysql
  which all affect updates from pre-2.1 database layout
- add {LATIN1} to vacation_notificatoin.notified,
  alias_domain.alias_domain and alias_domain.target_domain

Thanks to martinx who reported this on IRC and helped to debug it.
2017-02-25 22:18:59 +01:00
David Goodwin 7e496094e0 fall back to sys_get_temp_dir() if we cannot write to a templates_c like place 2017-02-24 11:04:21 +00:00
David Goodwin c253ef7dbd allow escape_string() to take a db connection as a parameter; should improve performance when there are a large number of things to escape 2017-02-24 10:59:45 +00:00
David Goodwin 1a7b2df81f fix undefined variable 2017-02-24 10:58:05 +00:00
David Goodwin 71e412f6c2 make error messages red; fix slightly invalid html; remove templates_c check (unnecessary); note we want php5+; add label tags to input elements 2017-02-14 09:23:17 +00:00
David Goodwin 8c2d447421 remove silencing of @include_once - fixes #20 2017-02-14 09:21:35 +00:00
Jan-Frederik Rieckers 2e92eb5cd1 Fix small syntax bug 2017-02-13 16:15:15 +01:00