David Goodwin
391d9a0f57
rejig setup.php so it displys error messages if admin creation fails etc
5 years ago
David Goodwin
89940dd6ab
Fix for https://github.com/postfixadmin/postfixadmin/issues/418
5 years ago
David Goodwin
0f2aefe471
be more strict about the format of an obsolete setup_password
5 years ago
David Goodwin
5d77e3514b
try and detect old setup_password and output appropriate message on setup.php
5 years ago
David Goodwin
ea7ecb113d
better wording as we are using PDO
5 years ago
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+
5 years ago
David Goodwin
6b2fa8e607
see: https://github.com/postfixadmin/postfixadmin/issues/415 - fix setup page to use password type field - thanks @efelon
5 years ago
Christian Boltz
8b6ad23dbf
setup.php: load bootstrap.min.css locally
... instead of using maxcdn.bootstrapcdn.com
5 years ago
Christian Boltz
2c6968b805
use a local copy of jquery
... instead of loading it from code.jquery.com
5 years ago
Christian Boltz
9d81facf32
fix typos in setup.php
5 years ago
David Goodwin
a2dd768858
reformat
5 years ago
David Goodwin
4a77e93984
drop pointless text
5 years ago
David Goodwin
7545005426
rejig setup.php; retheme with bootstrap; hide sensitive info until someone has logged in (see #402 )
5 years ago
David Goodwin
b7afe73502
fix detection of postgresql pdo extension
5 years ago
David Goodwin
3c7da4f3b8
Refactor some methods
PFAHandler::store() -> PFAHandler::save();
PFAHandler::storemore() -> PFAHandler::postSave();
PFAHandler::beforestore() -> PFAHandler::preSave();
5 years ago
David Goodwin
eea72e0019
check for PDO modules in setup.php, not old style functions
6 years ago
Christian Boltz
3b704715dc
setup.php: replace last mentions of php5 with php7
6 years ago
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
6 years ago
David Goodwin
6a10c869e5
allow existance of pdo for us to proceed with setup
6 years ago
David Goodwin
036245063e
drop references to magic_quotes; see: https://github.com/postfixadmin/postfixadmin/pull/325
6 years ago
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.
6 years ago
David Goodwin
6a89b9a363
composer format
7 years ago
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
7 years ago
David Goodwin
fa27c7c8b7
reindent/reformat
7 years ago
David Goodwin
8e2e4eb189
run: composer format
7 years ago
David Goodwin
cc19870923
drop function: db_connect_with_errors(); just throw from db_connect() if something goes wrong
7 years ago
8ctopus
5528d8be30
added: line break so $error_text is on its own line
7 years ago
David Goodwin
cc079b773f
fix formatting
7 years ago
David Goodwin
98536f03e8
fix sqlite upgrade check; remove test database between runs; ignore lib/array_column.php from linting
7 years ago
David Goodwin
803e2342f8
fix psalm issues; reformat; rename new db functions
7 years ago
David Goodwin
1176c9ce78
reformat; fix some transition bugs
7 years ago
David Goodwin
ea33d9951a
try migrating to pdo
7 years ago
hawk
51320919fc
add warning on setup over http connection
7 years ago
David Goodwin
8a59c9548a
reformat
7 years ago
David Goodwin
e8eea39b9d
reformat; try and persuade people to move off use of "mysql" (to mysqli); add php version warning
7 years ago
David Goodwin
4fcdba9cf4
run php-cs-fixer (code reforamt)
7 years ago
David Goodwin
59dc05d746
use newer method (return type is consistent)
7 years ago
David Goodwin
cecfe6b215
see #217 - should solve looking in /etc/postfixadmin ...
7 years ago
David Goodwin
b6f75c9c2c
try and require Phar extension through setup if we are using php_crypt and PHP version < 7
8 years ago
Adrien Crivelli
15df6c1d7b
Reformat everything with PHP-Cs-Fixer
8 years ago
David Goodwin
99147d51eb
move public facing stuff into public/, this allows us to stop exposing templates_c/ etc to the world
8 years ago
David Goodwin
3593d23c6f
remove undefined variable _SERVER[REQUEST_METHOD] when running from the cli
8 years ago
Chris Lamb
e318b940ce
Correct some "=+ 1" -> "+= 1" typos in setup.py.
This probably wasn't causing a problem as we were setting $error to +1
and we only ever check whether it is non-zero.
9 years ago
Aaron Howell
cf72bf1dcc
Fixed: php 5.4 array shortcut syntax errors on 5.3
9 years ago
Christian Boltz
7bb688121f
don't display database name and user in setup.php
9 years ago
Christian Boltz
c2ce2518e8
setup.php: check for and recommend config.local.php
9 years ago
Christian Boltz
64f1593818
revert "support unicode domain names - see #47"
Unicode support is a much bigger can of worms (see the discussion in #47 ),
and having just a little part of unicode support in is a bad idea.
You can of course use the xn--whatever notation for unicode domains ;-)
9 years ago
David Goodwin
a09a3fa3b0
support unicode domain names - see #47
9 years ago
David Goodwin
1a7b2df81f
fix undefined variable
9 years ago
David Goodwin
71e412f6c2
make error messages red; fix slightly invalid html; remove templates_c check (unnecessary); note we want php5+; add label tags to input elements
9 years ago