1
0
mirror of https://github.com/silverstripe/silverstripe-installer synced 2024-10-22 17:05:33 +02:00

MINOR: Use password field for password, dont require call by reference

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/phpinstaller/branches/2.3@72928 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
aoneil 2009-03-11 23:02:48 +00:00 committed by Sam Minnee
parent 6f889ef939
commit 92d82236e2

View File

@ -57,7 +57,7 @@ if(isset($_REQUEST['admin'])) {
} else {
$_REQUEST['admin'] = $adminConfig = array(
'username' => 'admin',
'password' => 'password',
'password' => '',
'firstname' => '',
'surname' => ''
);
@ -113,7 +113,7 @@ if($installFromCli && ($req->hasErrors() || $dbReq->hasErrors())) {
exit(1);
}
if(isset($_REQUEST['go']) || $installFromCli && !$req->hasErrors() && !$dbReq->hasErrors()) {
if((isset($_REQUEST['go']) || $installFromCli) && !$req->hasErrors() && !$dbReq->hasErrors() && $adminConfig['username'] && $adminConfig['password']) {
// Confirm before reinstalling
if(!isset($_REQUEST['force_reinstall']) && !$installFromCli && $alreadyInstalled) {
include('sapphire/dev/install/config-form.html');
@ -221,10 +221,6 @@ class InstallRequirements {
$badClasses = array('Query', 'HTTPResponse');
$this->requireNoClasses($badClasses, array("PHP Configuration", "Check that certain classes haven't been defined by PHP plugins", "Your version of PHP has defined some classes that conflict with SilverStripe's"));
// Check allow_call_time_pass_reference
$this->suggestPHPSetting('allow_call_time_pass_reference', array(1,'1','on','On'), array("PHP Configuration", "Check that the php.ini setting allow_call_time_pass_reference is on",
"You can install with allow_call_time_pass_reference not set, but some warnings may get displayed. For best results, turn it on."));
return $this->errors;
}