David Goodwin
b6453c8d1e
try and improve dependencies; mention sqlite and allow eg mariadb
...
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1854 a1433add-5e2c-0410-b055-b7f2511e0802
9 years ago
Christian Boltz
13cdd50d0a
Add checks to login.php and cli to ensure database layout is up to date
...
- add check_db_version() to functions.inc.php
- add $min_db_version (needs to be updated at least before the release)
- call check_db_version in login.php, users/login.php and CLI - they'll
error out if the database layout is outdated
- change setup.php to use check_db_version()
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1853 a1433add-5e2c-0410-b055-b7f2511e0802
9 years ago
David Goodwin
1fc6f3b03e
update patches - they appear to now apply...
...
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1852 a1433add-5e2c-0410-b055-b7f2511e0802
9 years ago
David Goodwin
a3b19ed23e
update debian/README.txt to include debian/rules prep step
...
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1851 a1433add-5e2c-0410-b055-b7f2511e0802
9 years ago
David Goodwin
f780176070
add in prep rule for make so we have a .tar.gz to trick dpkg-buildpackage with...
...
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1850 a1433add-5e2c-0410-b055-b7f2511e0802
9 years ago
David Goodwin
bc5917c0ef
drop admin directory; no longer required
...
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1849 a1433add-5e2c-0410-b055-b7f2511e0802
9 years ago
David Goodwin
cf47c8c5de
Merge in Debian's /debian so we also support Apache 2.4 and PHP7 in our debs.... see: http://http.debian.net/debian/pool/main/p/postfixadmin/postfixadmin_2.3.7-2.debian.tar.xz and https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=821643
...
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1848 a1433add-5e2c-0410-b055-b7f2511e0802
9 years ago
Christian Boltz
386f37dfdb
Don't decode b64p (base64-encoded password) fields.
...
This is not supported in MySQL < 5.6.
Besides that, we don't display the content of b64p fields anywhere, so
the easiest way is not to decode it.
Note: Currently, the only user of b64p is FetchmailHandler.
Fixes https://sourceforge.net/p/postfixadmin/bugs/357/
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1847 a1433add-5e2c-0410-b055-b7f2511e0802
9 years ago
Christian Boltz
431bd3d810
rename session cookie
...
With the default PHPSESSID cookie name, there are some rare (and hard to
debug) cases that break logging in if a different application on the
domain also uses a PHPSESSID cookie. See
https://sourceforge.net/p/postfixadmin/bugs/314/ for details.
Using 'postfixadmin_session' as cookie name should fix this.
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1846 a1433add-5e2c-0410-b055-b7f2511e0802
9 years ago
Christian Boltz
1d76c5af88
VacationHandler: Fill 'cache' field on INSERT
...
The 'cache' field is a leftover from PostfixAdmin 2.2 and unused (except
if someone still uses an ancient vacation.pl). However, MySQL in strict
mode errors out if isn't included in INSERTs because it doesn't have a
default value.
Fixes https://sourceforge.net/p/postfixadmin/bugs/345/
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1845 a1433add-5e2c-0410-b055-b7f2511e0802
9 years ago
Christian Boltz
98659f4005
translate several german texts
...
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1844 a1433add-5e2c-0410-b055-b7f2511e0802
9 years ago
Christian Boltz
694d13f6db
delete suprefluous whitespace
...
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1843 a1433add-5e2c-0410-b055-b7f2511e0802
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
9 years ago
David Goodwin
f843f49f51
Merge remote-tracking branch 'svnexport/master'
9 years ago
David Goodwin
2bed4110a5
update Smarty to 3.1.29
...
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1841 a1433add-5e2c-0410-b055-b7f2511e0802
9 years ago
David Goodwin
4d77bff96e
Merge remote-tracking branch 'svnexport/master'
9 years ago
David Goodwin
54603b0968
reforamt cli commands; update code to php v5 syntax; remove regexp and use filter_var for email validation; use private/protected/public
...
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1840 a1433add-5e2c-0410-b055-b7f2511e0802
9 years ago
David Goodwin
6bc747ba9b
Merge remote-tracking branch 'svnexport/master'
9 years ago
Christian Boltz
a00e8a811d
functions.inc.php:
...
- check_domain(): someone had the great idea to allow punicode
even in TLDs, so we better allow it.
https://sourceforge.net/p/postfixadmin/feature-requests/93/
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1839 a1433add-5e2c-0410-b055-b7f2511e0802
9 years ago
Christian Boltz
a0151bd5a1
functions.inc.php:
...
- pacrypt(): don't stripslashes($pw) because this breaks passwords with
backslashes. This stripslashes() existed since forever, but probably
became harmful with all the rewrites in the last years.
https://sourceforge.net/p/postfixadmin/bugs/349/
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1838 a1433add-5e2c-0410-b055-b7f2511e0802
9 years ago
Christian Boltz
5dac4295a4
postfixadmin-cli.php:
...
- whitelist '-1' as valid value instead of misinterpreting it as option
https://sourceforge.net/p/postfixadmin/bugs/369/
- don't remove quote chars (") from parameter values
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1837 a1433add-5e2c-0410-b055-b7f2511e0802
9 years ago
Christian Boltz
8ad849e7b6
default.css:
...
- set z-index 101 for submenus to ensure quota usage bars don't hide them
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1836 a1433add-5e2c-0410-b055-b7f2511e0802
9 years ago
Christian Boltz
336d7a8e28
upgrade.php:
...
- change default date for 'created' and 'updated' columns from
0000-00-00 (which causes problems with MySQL strict mode) to
2000-01-01. This is done with a new {DATETIME} marker to reduce
code duplication.
- add upgrade_1835_mysql() to apply the same change to existing
databases
This fixes
https://sourceforge.net/p/postfixadmin/bugs/5/ and
https://sourceforge.net/p/postfixadmin/bugs/373/
(which are effectively duplicates)
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1835 a1433add-5e2c-0410-b055-b7f2511e0802
9 years ago
Christian Boltz
9335232024
functions.inc.php:
...
- fix db_quota_text() for postgresql (concat() vs. ||)
https://sourceforge.net/p/postfixadmin/bugs/370/
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1834 a1433add-5e2c-0410-b055-b7f2511e0802
9 years ago
Christian Boltz
a46720c8c8
config.inc.php:
...
- add more detailed notes about unsupported dovecot:* encryption types
(after hunting them down with r00t^2 on IRC)
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1833 a1433add-5e2c-0410-b055-b7f2511e0802
9 years ago
David Goodwin
6ba267a5be
Merge remote-tracking branch 'svnexport/master'
9 years ago
David Goodwin
d3ca74af0d
merge github pull request into svn manually - 3e62d3975a
- adding configurable smtp helo (CONF["smtp_client"])
...
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1832 a1433add-5e2c-0410-b055-b7f2511e0802
9 years ago
David Goodwin
3b0d971d73
merge svn into github; fix conflict in config.inc.php's require_once config.local.php line
9 years ago
Christian Boltz
ac43e1ad2a
update changelog with changes up to r1830
...
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1831 a1433add-5e2c-0410-b055-b7f2511e0802
9 years ago
Christian Boltz
6ee6574076
include_once(config.local.php) instead of include()ing it
...
This should avoid problems with endless include loops like in
https://sourceforge.net/p/postfixadmin/bugs/367/
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1830 a1433add-5e2c-0410-b055-b7f2511e0802
9 years ago
Christian Boltz
530c489ec4
editform.tpl:
...
- add {if} block for description column to make customization for
special fields/cases easier
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1829 a1433add-5e2c-0410-b055-b7f2511e0802
9 years ago
Pale Purple Ltd
3e62d3975a
Merge pull request #11 from captainark/master
...
Adding an option to configure the hostname in HELO when sending email from Postfix Admin
9 years ago
CaptainArk
21c4ec0dd8
smtp_client variable empty by default
9 years ago
CaptainArk
7778c0b9c6
Adding an option to configure the hostname in HELO when sending emails from Postfix Admin
9 years ago
David Goodwin
16b3615fcd
Merge remote-tracking branch 'svnexport/master'
9 years ago
Christian Boltz
a9bb4b83ad
cs.lang:
...
translation update by updated by Jan Laufik (jlaufik @ sf)
https://sourceforge.net/p/postfixadmin/patches/130/
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1828 a1433add-5e2c-0410-b055-b7f2511e0802
9 years ago
Christian Boltz
2102c1baa8
list.tpl:
...
- 'itemkey' escaping again. I found another corner case that was broken
with |escape:"html". Therefore switch to the exact htmlentities() call
that we use in smarty.inc.php.
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1827 a1433add-5e2c-0410-b055-b7f2511e0802
9 years ago
Christian Boltz
48dde6468a
list.tpl:
...
- getting the key from $RAW_item.$id_field turned out to be broken in
corner cases, leading to empty output. The better (and simpler) fix is
to just let the foreach loop set 'itemkey'.
- the example for special handling of a specific table and field
contained a superfluous </tr>
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1826 a1433add-5e2c-0410-b055-b7f2511e0802
9 years ago
Christian Boltz
80e99e1b54
tw.lang language update by Wally LEE <Wally @SF>
...
https://sourceforge.net/p/postfixadmin/bugs/362/
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1825 a1433add-5e2c-0410-b055-b7f2511e0802
9 years ago
Christian Boltz
b261db86c7
Merge pull request #9 from phyrog/master
...
Add sqlite backend option (thank you @phyrog for doing this)
(imported from github)
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1824 a1433add-5e2c-0410-b055-b7f2511e0802
9 years ago
Pale Purple Ltd
ce53a81683
Merge pull request #9 from phyrog/master
...
Add sqlite backend option (thank you @phyrog for doing this)
9 years ago
Tom Gehrke
92f1dbdf39
Add sqlite backend option
9 years ago
David Goodwin
c817c56bac
Merge remote-tracking branch 'svnexport/master'
9 years ago
David Goodwin
4b37a249c7
remove incorrect advice; see bug report:359
...
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1823 a1433add-5e2c-0410-b055-b7f2511e0802
9 years ago
David Goodwin
88e1239115
Merge remote-tracking branch 'svnexport/master'
9 years ago
Christian Boltz
ba46282f92
use smarty html_options instead of select_options()
...
list-virtual and viewlog were the last users of select_options()
smarty.inc.php:
- drop (now unused) select_options()
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1822 a1433add-5e2c-0410-b055-b7f2511e0802
9 years ago
David Goodwin
b7c6bc1399
Merge remote-tracking branch 'svnexport/master'
9 years ago
David Goodwin
96a89889a2
apparently a typo - thanks marcin-github - see d93c56e34a
...
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1821 a1433add-5e2c-0410-b055-b7f2511e0802
9 years ago
David Goodwin
d1dad8a31c
merge patch from 54a77ecb9c
- thanks lisergey - encode message body with wide-chars UTF8
...
git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1820 a1433add-5e2c-0410-b055-b7f2511e0802
9 years ago
David Goodwin
a71d0b2fa1
Merge remote-tracking branch 'svnexport/master'
9 years ago