Warning: connection not secure, switch to https if possible";
} ?>
Configure and Setup Postfixadmin
- = $configSetupLabel ?> You need to have a setup_password configured in a
config.local.php file.
- = $authenticatedLabel ?> Login using your setup password.
- Then you can run some self tests to check compatability with
Postfixadmin
- Create / update your database of choice
- and Add a new super user account
Login with setup_password
If you've forgotten your super-admin password, you can generate a new one using the Generate
form
and update your config.local.php
For a new installation, you must generate a 'setup_password' to go into your config.local.php file.
You can use the form below, or run something like the following in a shell - php -r 'echo password_hash("password", PASSWORD_DEFAULT);'
EOF;
}
?>
Generate setup_password hash
If you want to use the password you entered as setup password, edit config.inc.php or config.local.php and set';
$result .= "
\$CONF['setup_password'] = '$hash';
";
} else {
$form_error = 'has-error';
$errors['setup_password'] = implode(', ', $msgs);
}
}
}
?>
= $result ?>
Hosting Environment Check
Errors were found with your environment. These will be displayed once you've configured a setup_password and confirmed it.
";
}
if (!empty($check['info'])) {
echo "
Information
";
foreach ($check['info'] as $msg) {
echo "- {$tick} {$msg}
";
}
echo "
";
}
if (!empty($check['warn'])) {
echo "
Warnings
";
foreach ($check['warn'] as $msg) {
echo "- ⚠ {$msg}
";
}
echo "
";
}
if (!empty($check['error'])) {
echo "
Errors (MUST be fixed)
";
foreach ($check['error'] as $msg) {
echo "- ⛔{$msg}
";
}
echo "
";
}
} else {
if (!empty($check['error'])) {
echo '
Hosting Environment errors found. Login to see details.
';
}
if (!empty($check['warn'])) {
echo '
Hosting Environment warnings found. Login to see details.
';
}
}
?>
Database Update
Everything seems fine... attempting to create/update database structure\n";
require_once(dirname(__FILE__) . '/upgrade.php');
} else {
echo "Please login to see perform database update.
";
}
?>
'ALL', 'description' => '', 'transport' => ''));
}
$values = array(
'username' => safepost('username'),
'password' => safepost('password'),
'password2' => safepost('password2'),
'superadmin' => 1,
'domains' => array(),
'active' => 1,
);
list($error, $setupMessage, $errormsg) = create_admin($values);
if ($error == 1) {
$tUsername = htmlentities($values['username']);
} else {
// all good!.
$setupMessage .= "
You are done with your basic setup. ";
$setupMessage .= "
You can now login to PostfixAdmin using the account you just created.";
}
}
?>