95 Commits
Author SHA1 Message Date
Jean-Francois Jauvin 06e3af5fe0 Fix session warnings in setup.php (#1183)
Move `<!DOCTYPE html>` below the opening PHP block in `public/setup.php`
so `common.php` initializes the session and sends headers before any
HTML output.

thanks @jfjauvin
2026-10-27 09:37:45 +00:00
Rodrigo Cortés Cano bf47bddc9c Update Bootstrap Icons to 1.13.1 (#1095)
Update bootstrap icons to 1.13.1 (was 1.11.3); thanks @TrapoSAMA
2026-07-28 09:36:32 +01:00
Rodrigo Cortés Cano ab94193611 Update Bootstrap to 5.3.8 (#1094)
upgrade from bootstrap 5.3.0 to 5.3.8
2026-07-28 09:32:23 +01:00
Rodrigo Cortés Cano 9a930b61ad Add a read-only database integrity check to setup.php (#1091)
attempt to highlight any orphaned data, see also https://github.com/postfixadmin/postfixadmin/issues/972

thanks @TrapoSAMA
2026-07-24 09:09:03 +01:00
Copilot ae7339afd4 Use native booleans for prepared SQL params; stop binding db_get_boolean() values (#1019)
Prepared statements were binding DB-specific boolean literals (`'t'/'f'`) produced by `db_get_boolean()`, which breaks PostgreSQL parameter typing in some paths (notably mailbox creation via handler flows). 

This change standardizes bound boolean parameters to native PHP `true`/`false` (which are then cast to 0/1 which seems to work fine within PDO/PostgreSQL).

fixes https://github.com/postfixadmin/postfixadmin/issues/1017
2026-04-23 19:28:01 +01:00
Kent Riboe ae96481c99 Remove old Bootstrap 3 remnants (dark-theme.css, col-sm-offset in setup.php) (#1002) 2026-03-31 06:17:54 +01:00
Copilot 3bdc282289 Upgrade to Bootstrap 5.3.0, add lightmode/darkmode switch, drop datepicker js (use html5 datetime-local) (#987)
* Upgrade to Bootstrap 5.3.0 with Bootstrap Icons
* token improvements to setup.php rendering 
* improve backup page rendering
* move to use html5 datetime-local field for vacation from/to rather than the previous js version
* remove datetimepicker js and bootstrap js and jquery (no longer needed)
* vacation: we load any previous dates in from the database, these could include ancient dates, so default them to now and now+1 if they are before today
* drop bootstrap 3.4.1 css
* bootstrap - add light mode / dark mode switch - taken from https://github.com/404GamerNotFound/bootstrap-5.3-dark-mode-light-mode-switch
2026-02-28 10:17:56 +00:00
David Goodwin 02751ec369 formatting 2026-01-28 09:50:26 +00:00
David Goodwin 3b5515f17d add templates_c check to setup.php 2026-01-28 09:50:26 +00:00
David Goodwin 52794bede7 misc fixes for psalm after allowing it to be updated 2026-01-28 09:50:26 +00:00
David Goodwin 460c624275 remove more references to sourceforge 2025-07-13 18:29:37 +01:00
David Goodwin 6dff69392c typo fix 2025-05-27 08:46:34 +01:00
David Goodwin b97d89c280 try and only moan about db drivers missing if the specific driver is in the config, try and improve rendering of warnings/errors etc 2025-05-26 19:40:08 +01:00
David Goodwin de50ba1d30 only moan about database extensions missing if there are none found. 2025-05-26 15:50:42 +01:00
David Goodwin 2669045ed8 formatting 2025-02-23 20:25:02 +00:00
David Goodwin d250a47e4a fix tag nesting etc (broken footer) on setup.php 2025-02-23 20:23:30 +00:00
David Goodwin f01274ec94 try relaxing composer dependencies to allow php8.2 dev support, reformat so composer format passes 2024-04-22 21:02:01 +01:00
David Goodwin 81a1d45617 drop use of the deprecated PHP imap extension (php-imap) - see #472 and #812 2024-04-01 19:32:47 +01:00
Gabriel Sambarino f81a070cc9 Fix typo ( s/pasword/password/ ) 2024-02-15 15:56:57 +01:00
David Goodwin f1ee7b23a4 setup.php does not use the datetime widget or any funky bootstrap special effects, so we might as well remove JS from it 2023-06-17 19:24:53 +01:00
Christian Boltz 656b44d60c also replace jquery 1.12.4 with 3.7.0 in setup.php
... and delete the old jquery-1.12.4.min.js
2023-06-13 13:25:02 +02:00
David Goodwin ae6ff93c95 better markup; warn admin if admin_from is not defined - see #667 2022-11-30 21:18:32 +00:00
David Goodwin 9fbb2fcc14 see https://github.com/postfixadmin/postfixadmin/issues/683 - add in error_log for e.g. fail2ban to pick up on someone trying to get into setup.php 2022-11-15 16:33:49 +00:00
David Goodwin a99d6b7bc8 setup.php -> stray \n in error message 2022-07-17 21:15:32 +01:00
Adrien Crivelli a97771adfd Automatic code style fixes 2022-07-15 11:29:55 +02:00
David Goodwin 41894e0875 see: https://github.com/postfixadmin/postfixadmin/commit/71199fd0cbe30330649c7878a67c4e6f30b1f8ef and #596 2022-03-08 11:55:00 +00:00
Christian Eichert 38524f5c03 NOT && NOT && NOT = at lest 1
the logic is wrong, if you want to say at least of a list of negations you must put the condition with AND
2022-02-19 20:40:08 +01:00
David Goodwin 272e5bddb9 stop psalm moaning about non-strict comparisons 2022-02-13 20:40:34 +00:00
David Goodwin cd73f27569 remove unnecessary warning if sqlite is available but not the configured db backend - see https://github.com/postfixadmin/postfixadmin/issues/534 2021-09-02 21:45:38 +01:00
David Goodwin 884147e6df composer format time ... i shouldh ave a commit hook for this 2021-05-15 11:43:06 +01:00
David Goodwin ba17fbe6d6 improve setup.php to apply database updates and avoid deadlock with not being able to login - see https://github.com/postfixadmin/postfixadmin/issues/494 2021-05-15 11:42:20 +01:00
David Goodwin 2edabc3e03 phpcs insists on some brace changes 2021-04-13 21:19:16 +01:00
David Goodwin a51cc34b83 try and avoid relying on output buffering for setup.php 2021-03-09 20:33:40 +00:00
David Goodwin 84de818f22 merge postgresql fix from postfixadmin_3.3 2021-02-24 21:35:13 +00:00
David Goodwin 599b39b833 fix sql for postgres bool / t 2021-02-24 21:33:42 +00:00
David Goodwin 9107cc9a46 possible fix for #461 - postgresql does not like ints for bool fields... 2021-02-24 21:15:45 +00:00
David Goodwin f6bbf116d8 possible fix for #461 - postgresql does not like ints for bool fields... 2021-02-24 21:15:13 +00:00
David Goodwin c755e82a36 Merge branch 'postfixadmin_3.3' 2021-02-18 12:12:27 +00:00
David Goodwin b2831d1241 psalm improvements 2021-02-17 21:29:18 +00:00
David Goodwin 6d81439f41 unused var 2021-02-07 20:36:55 +00:00
David Goodwin d9813d4cf8 see #446 - try and detect site url but allow for $CONF['site_url'] override to be used. 2021-02-07 20:35:58 +00:00
David Goodwin 4d505211ef reformat 2021-02-04 20:40:45 +00:00
David Goodwin 4e7d86ca07 try and improve setup.php labels/layout - see #445 2021-02-04 20:40:38 +00:00
David Goodwin 3fa1716ad7 composer format 2021-02-04 20:40:31 +00:00
David Goodwin 01d1967de0 move html around a bit, list existing admin users if setup_password confirmed 2021-02-04 20:40:20 +00:00
David Goodwin b531925859 message seems unnecessary if you have logged in 2021-02-04 20:40:12 +00:00
David Goodwin d0c3cdc4d5 try and make setup.php more useful (error detection, logging etc) 2021-02-04 20:39:31 +00:00
David Goodwin 5bcafb9c91 reformat 2021-02-03 20:28:32 +00:00
David Goodwin 50ca5944b6 try and improve setup.php labels/layout - see #445 2021-02-03 20:27:53 +00:00
David Goodwin 582b5e91b9 composer format 2021-01-29 21:46:57 +00:00