1
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2025-09-11 23:10:41 +03:00
Commit Graph

281 Commits

Author SHA1 Message Date
Christian Boltz
d50d171914 Fix 404 when loading css etc. for admins
For admins, the relative path to css etc. is '', not '../'
2025-09-11 21:56:35 +02:00
David Goodwin
460c624275 remove more references to sourceforge 2025-07-13 18:29:37 +01:00
David Goodwin
2330b94439 list.php: just exit() after outputting a csv, which allows us to remove the else indentation 2025-07-12 19:10:45 +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
72c0dd1184 token code refactor 2025-05-26 15:53:33 +01:00
David Goodwin
4c01abf440 try and ensure core db tables are InnoDB format for MySQL users upgrading. 2025-05-26 15:51:48 +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
5f46bdedaf respect db prefix stuff for the TOTP database tables. 2025-05-26 15:49:29 +01:00
David Goodwin
798e8b269c Topt app passwords fixes (WIP) (#805)
various improvements to the TOTP code see also:  #802
2025-05-16 20:31:20 +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
James Lucas III
dce68cdf50 Update upgrade.php (#906)
fix upgrade.php - admin.totp_secret field was not being added in the right place which caused an error. 

see also #899, thanks @jimlucas
2025-02-23 20:21:27 +00:00
David Goodwin
b30af8fc6a upgrade moment.js to v2.30.1 - should fix issue with ReDOS (regex denial of service) - see #902 2025-02-21 09:55:20 +00:00
David Goodwin
8461afb4ff add {BOOLEAN_TRUE} for pgsql, see #891 2025-01-18 09:01:35 +00:00
David Goodwin
9ac03371ce formatting 2025-01-17 11:20:22 +00:00
David Goodwin
f61266cd7d see https://github.com/postfixadmin/postfixadmin/issues/891 - fix addition of mailbox.smtp_active to work on postgresql, add {BOOLEAN_TRUE} placeholder for mysql (not sure how this did not exist) 2025-01-17 10:43:20 +00:00
David Goodwin
759304ecb8 apparently these all need reformatting 2024-12-05 14:33:41 +00:00
David Goodwin
5047f9d1d4 stop smarty moaning about an undefined div on list.php 2024-11-22 20:32:56 +00:00
David Goodwin
5f5c52257d add token "global search" on the frontpage for superadmins to perhaps find some things quickly 2024-07-23 20:57:39 +01:00
David Goodwin
56dd787ce2 when going through password recovery, only wipe the recovery token after the user has updated their password
see https://github.com/postfixadmin/postfixadmin/issues/550
2024-05-17 22:02:01 +01: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
8c1369068f fix #801 - incorrect path for common.php 2024-02-06 08:29:54 +00:00
David Goodwin
64c34b2c0a fix deletion of app password - see #800 2024-02-05 20:30:31 +00:00
David Goodwin
45557a6ed4 code formatting fix 2024-01-11 08:57:27 +00:00
David Goodwin
c700f3c9c7 update mailbox - add smtp_active for #796 2024-01-10 10:02:07 +00:00
John Fawcett
668960ccf6 Add a flag to mailbox table for enable/disable smtp protocol. The table column name
is "smtp_active". This enables use of this flag instead of active flag for postfix
mysql queries. There is a new configuration parameter $CONF['smtp_active_flag'] =
YES or NO, which defaults to NO, providing the existing behaviour. When set to YES
the active_smtp field is displayed in the edit mode and can be modified.
The commit includes update to the language files and documentation.

The commit does not include the code to add the field to existing installs,
which I presume can be added during the release cycle in upgrade.php along the
lines of:

_db_add_field('mailbox',  'smtp_active', 'int DEFAULT 1');
2024-01-09 20:50:49 +01:00
David Goodwin
0632d39d0c login.php was writing to $_SESSION just before the 'init_session' function was called which just overwrote everything, so reorder code to fix #795
see https://github.com/postfixadmin/postfixadmin/issues/795 (thanks @kwitkow)
2024-01-05 19:30:36 +00:00
David Goodwin
0829e032d4 try and fix db schema for app password stuff for Sqlite 2023-12-27 16:17:55 +00:00
David Goodwin
ccbf3f9ab3 reformat/reorganise code 2023-12-23 21:59:33 +00:00
David Goodwin
8003978ca5 type hints etc and todo notes 2023-12-23 21:55:50 +00:00
David Goodwin
824ba906b1 more type hints 2023-12-23 21:49:57 +00:00
David Goodwin
015d4ec9cd reindent / reformat; add type hints for some of the app password stuff; try and make sure someone can only remove their own app password (see revokeAppPassword() ) 2023-12-23 21:43:31 +00:00
David Goodwin
4d17aa6ef9 manaul merge in of verdigado:master (see #753) (MFA/TOTP support) 2023-12-23 17:05:52 +00: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
f8e6cf408a replace jquery 1.12.4 with 3.7.0 - see #734 2023-06-13 11:06:43 +01:00
Dennis Lübke
5476bb3abd Ignore CSV labels with a whitespace
Currently, exporting the alias list to CSV, the first column label is only a whitespace. For some reason the contents of this column consists of a long concatenation of "nbsp;"s.
This fix ignores the whitespace column label and gets rid of the "nbsp;nbsp;......" contents of this column.
This was successfully tested on a running installation of postfixadmin 3.2 on a Debian 11 system.
2023-02-01 12:28:58 +01:00
David Goodwin
fcf14f0165 rename some tables so someone migrating from 3.3.x to 3.4 (?) should not have problems 2022-12-08 20:46:47 +00: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
65aea00a1f see https://github.com/postfixadmin/postfixadmin/issues/667 - re-use smtp_get_admin_email(), try and make sure there is a From: set in password recovery emails 2022-11-30 21:18:06 +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
Christian Boltz
43ce9feda1 Fix typos introduced in https://github.com/postfixadmin/postfixadmin/pull/665 / e279c77ca5 2022-10-18 23:24:38 +02:00
David Goodwin
7caf25244a composer format time 2022-10-12 20:41:14 +01:00
Jan Kruis
e279c77ca5 languages/nl.lang translation from english for new function such as dkim and password
public/editactive.php			edit wrong description text it said this module is used for deleting admin domains mailbos etc
					modify templates that it is used

public/list-virtual.php			modify templates that it is used
					modify the remarks behind arguments and internal , the texteditor thought the text after this was still remark text untl is see */

public/vacation.php and
model/VacantionHandel.php		adjust date string actionFrom and activeUntil these are written in the database as e.g. 2020-10-01 15:14:00 and 2020-10-30-15:14:00
					this should be 2020-10-01 00:00:00 and 2020-10-30 23:59:59 so that it contains all day, this happens if no holiday has been set for the account yet
					when adjusting the dates, the seconds of until are set to 00 instead of 59. When the holiday is canceled and then action is taken again, the from time
					to the time when the setting is made.

templates/editform.tpl			remove blank space

templates/list-virtual_mailbox.tpl	remove indent tabs
2022-10-12 17:46:15 +02:00
David Goodwin
80567e6920 see #642 - do the same pagination restoration stuff in editactive.php 2022-07-30 21:23:57 +01:00
David Goodwin
6cc7922284 see #642 - possible fix for pagination being lost 2022-07-25 09:44:12 +01:00
David Goodwin
d3e101e9d8 Merge remote-tracking branch 'origin/master' into feature/dkim 2022-07-18 08:55:07 +01:00