Commit Graph
55 Commits
Author SHA1 Message Date
David Goodwin d72f1e8006 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-20 09:22:55 +01:00
Christian Boltz 97434644ab 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-20 09:22:55 +01:00
David Goodwin 73dc83dbbd psalm fixes 2022-03-02 14:11:23 +00:00
David Goodwin 589e7ea403 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:46:19 +01:00
David Goodwin 73d416df33 format 2021-05-15 11:43:23 +01:00
David Goodwin aab3e945d4 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:41:08 +01:00
David Goodwin d5c14240a4 try and avoid relying on output buffering for setup.php 2021-03-15 20:28:17 +00:00
David Goodwin 599b39b833 fix sql for postgres bool / t 2021-02-24 21:33:42 +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 b2831d1241 psalm improvements 2021-02-17 21:29:18 +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 391d9a0f57 rejig setup.php so it displys error messages if admin creation fails etc 2021-01-14 16:44:10 +00:00
David Goodwin 89940dd6ab Fix for https://github.com/postfixadmin/postfixadmin/issues/418 2021-01-13 22:26:51 +00:00
David Goodwin 0f2aefe471 be more strict about the format of an obsolete setup_password 2021-01-13 09:26:32 +00:00
David Goodwin 5d77e3514b try and detect old setup_password and output appropriate message on setup.php 2021-01-12 22:31:05 +00:00
David Goodwin ea7ecb113d better wording as we are using PDO 2021-01-11 21:41:19 +00:00
David Goodwin 6940210402 code already depends on php 7.0 return types, so tidy up setup.php to not allow php5.x; remove setup check for phar as this is not required with php 7.0+ 2021-01-11 21:35:54 +00:00
David Goodwin 6b2fa8e607 see: https://github.com/postfixadmin/postfixadmin/issues/415 - fix setup page to use password type field - thanks @efelon 2021-01-11 13:01:37 +00:00
Christian Boltz 8b6ad23dbf setup.php: load bootstrap.min.css locally
... instead of using maxcdn.bootstrapcdn.com
2021-01-07 20:23:23 +01:00
Christian Boltz 2c6968b805 use a local copy of jquery
... instead of loading it from code.jquery.com
2021-01-07 20:18:15 +01:00
Christian Boltz 9d81facf32 fix typos in setup.php 2021-01-06 13:03:21 +01:00
David Goodwin a2dd768858 reformat 2020-12-23 16:24:41 +00:00
David Goodwin 4a77e93984 drop pointless text 2020-12-09 23:00:00 +00:00
David Goodwin 7545005426 rejig setup.php; retheme with bootstrap; hide sensitive info until someone has logged in (see #402) 2020-12-09 22:53:29 +00:00
David Goodwin b7afe73502 fix detection of postgresql pdo extension 2020-11-09 21:15:06 +00:00
David Goodwin 3c7da4f3b8 Refactor some methods
PFAHandler::store() -> PFAHandler::save();
 PFAHandler::storemore() -> PFAHandler::postSave();
 PFAHandler::beforestore() -> PFAHandler::preSave();
2020-09-25 21:29:45 +01:00
David Goodwin eea72e0019 check for PDO modules in setup.php, not old style functions 2020-04-10 22:30:48 +01:00
David Goodwin 2a1383ee2e give the browser a hint that we want a new password for new admin accounts - see https://github.com/postfixadmin/postfixadmin/issues/331 2020-02-23 20:11:42 +00:00
David Goodwin 6a10c869e5 allow existance of pdo for us to proceed with setup 2020-02-22 09:21:22 +00:00
David Goodwin 036245063e drop references to magic_quotes; see: https://github.com/postfixadmin/postfixadmin/pull/325 2020-02-10 11:26:23 +00:00
gotty 13549cea0f Favicon config and ru_lang:
1. Favicon configuration of the project:
  a. Fixed incorrect link to favicon from the subfolder /users/
  b. Added ability to set favicon via config
2. Completed translation of all string constants into Russian language.
2019-10-19 18:33:18 +03:00
David Goodwin 6a89b9a363 composer format 2019-08-13 09:24:30 +01:00
David Goodwin bee5fcbe24 improve setup form - only display "add superadmin account" if setup password is configured; change verbs depending on context etc; see https://github.com/postfixadmin/postfixadmin/issues/263 2019-08-13 09:19:22 +01:00
David Goodwin fa27c7c8b7 reindent/reformat 2019-08-13 09:00:21 +01:00
David Goodwin 8e2e4eb189 run: composer format 2019-06-08 20:38:54 +01:00
David Goodwin cc19870923 drop function: db_connect_with_errors(); just throw from db_connect() if something goes wrong 2019-06-07 16:23:34 +01:00
8ctopus 5528d8be30 added: line break so $error_text is on its own line 2019-02-10 11:04:04 +05:00
David Goodwin 98536f03e8 fix sqlite upgrade check; remove test database between runs; ignore lib/array_column.php from linting 2019-01-06 21:39:54 +00:00
David Goodwin 803e2342f8 fix psalm issues; reformat; rename new db functions 2019-01-06 21:32:58 +00:00
David Goodwin 1176c9ce78 reformat; fix some transition bugs 2019-01-06 21:32:58 +00:00
David Goodwin ea33d9951a try migrating to pdo 2019-01-06 21:32:58 +00:00
hawk 51320919fc add warning on setup over http connection 2019-01-05 18:56:31 +05:00
David Goodwin 8a59c9548a reformat 2019-01-01 20:39:41 +00:00
David Goodwin e8eea39b9d reformat; try and persuade people to move off use of "mysql" (to mysqli); add php version warning 2019-01-01 20:39:41 +00:00
David Goodwin 4fcdba9cf4 run php-cs-fixer (code reforamt) 2018-12-28 19:31:43 +00:00