41d03fa158
Update functions.inc.php
2020-03-05 18:02:43 -05:00
1ecada175c
and support whether we verify ssl certs; default to true
2020-02-28 14:30:40 +00:00
4cbd82d750
remove empty settings so not all SSL things are required for using SSL with MySQL
2020-02-28 14:19:22 +00:00
1ad184641d
php7.4 / psalm fixes
2020-01-31 16:30:46 +00:00
c0bd763c53
another replacement of string{x} with string[x]
2020-01-31 14:40:38 +00:00
aa37ab57e6
stop using { } for string character access (use [ ] instead) - see https://www.php.net/manual/en/language.types.string.php#language.types.string.substr
2020-01-31 14:28:54 +00:00
79c2e77a00
should fix: https://github.com/postfixadmin/postfixadmin/issues/323
2020-01-13 15:35:46 +00:00
d6bbecaf45
change row to r everywhere; see : https://sourceforge.net/p/postfixadmin/discussion/676076/thread/616c1d25/?limit=25#7da0 - hopefully removing "row" which might be a reserved keyword for some databases etc
2019-12-08 16:24:06 +00:00
bcae218cbb
composer format time
2019-10-19 21:36:27 +01:00
87824ef970
psalm fixes/workarounds; require PHP 5.6+
2019-10-19 20:51:05 +01:00
174b874c56
allow psalm to update
...
phpdoc fix
2019-10-17 19:38:01 +01:00
9526e68e3e
perhaps this will help https://github.com/postfixadmin/postfixadmin/issues/305
2019-10-17 19:30:00 +01:00
2742849e7b
reformat
2019-09-17 21:06:00 +01:00
7965a83aff
tighten psalm checks even more
2019-09-17 21:05:08 +01:00
29d990f5f4
fix page browser test for sqlite; see #87 and #161
2019-09-17 20:46:32 +01:00
f36ba9b4c2
format
2019-09-15 21:09:02 +01:00
4081267cb2
fix phpdoc; throw exception on error within phpunit - helps testing
2019-09-15 21:08:08 +01:00
f7c7e35b34
fix formatting
2019-09-15 11:42:21 +01:00
17a50c51f1
drop some dies; use Exception and catch after dispatch() - see #197
2019-09-14 21:01:09 +01:00
6a89b9a363
composer format
2019-08-13 09:24:30 +01:00
7b18d0386c
Merge pull request #287 from gabrielfin/fix-pagination
...
Fix pagination
2019-08-13 08:55:14 +01:00
8ba1cf20a7
use config::bool instead of read_string
2019-07-22 13:06:07 +02:00
88587f4cd3
Fix pagination
2019-07-19 19:11:54 -03:00
a46245eecc
Add config option for TLS
2019-07-17 11:44:04 +02:00
61ede42800
Send emails with TLS
2019-07-17 11:44:04 +02:00
600248e955
Add option to use smtp password when sending admin emails ( fixes #272 )
2019-07-02 13:41:58 +02:00
55858bf3a0
Fix table names in gen_show_status()
...
... by using table_by_key() instead of reading $CONF directly.
Otherwise, $CONF['database_prefix'] gets ignored and the query tries to
use a wrong table name.
This fixes a bug introduced in d809e0fbf7
2019-06-30 15:28:25 +02:00
8e2e4eb189
run: composer format
2019-06-08 20:38:54 +01:00
cc19870923
drop function: db_connect_with_errors(); just throw from db_connect() if something goes wrong
2019-06-07 16:23:34 +01:00
5d0a587fe7
Dont swallow database connection exceptions
2019-06-07 15:37:21 +02:00
ad858592f4
remove password_expiry logic from generic db_update function; the various *Handler classes should fix the password_expiry field already and this just breaks PgSQL; see #264
2019-04-26 11:34:21 +01:00
23a7f1bfda
allow TLD with 1 char
2019-04-14 16:25:15 +02:00
9024dddf46
move password_expiration code into the MailboxHandler.
2019-02-27 14:44:20 +00:00
b8ee437169
add throw_exceptions parameter to db_update and db_insert.
2019-02-27 14:44:20 +00:00
000416c401
pacrypt_dovecot: Don't blacklist SCRAM-SHA-1
...
Actually it doesn't include the username at all. Fixes commit f444de4
.
2019-02-19 20:50:21 +01:00
9ccf5250cd
remove config dump
2019-02-16 19:48:06 +00:00
496657aa5d
echo something helpful on db error when testing
2019-02-16 19:21:46 +00:00
2e87464fc8
initial attempt at connecting to mysql socket file through pdo
2019-02-15 22:17:41 +00:00
9cc04df973
move the password expiry date to be php generated so it works fine on all databases
2019-02-15 21:35:29 +00:00
8632cbd1a9
improve documentation around the various crypt functions
2019-02-15 21:34:49 +00:00
17a420152c
use pdo/prepared statement for list-virtual + page browser
2019-02-15 21:33:55 +00:00
a05f87723f
reformat
2019-02-10 12:12:28 +00:00
28870e4b45
explode if there is no db connection made
2019-02-10 12:11:58 +00:00
b4564958a1
phpdoc; touch sqlite file before trying to use it in tests
2019-02-10 11:03:52 +00:00
4f2dab357c
the directory the SQLite database is in must be writeable
2019-02-10 10:56:08 +05:00
ceae3caa37
sqlite3 databases: check that the file exists and is writeable
2019-02-10 10:06:59 +05:00
92d6259cd0
possibly fix PGSQL PDO DSN to be unicode aware; see #243
2019-02-09 21:19:28 +00:00
c71dd25afa
fix setup db_connect_with_errors PDO exceptions were not caught
2019-02-09 18:47:45 +05:00
583b8958c7
psalm
2019-01-16 09:24:33 +00:00
7838e85ff0
fix formatting
2019-01-11 17:20:25 +00:00