X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=install%2Findex.php;h=adc88051aed2ef3faedb7c11647d495ec5a9bbcd;hb=5abfcc4fb3e7db263ad89739fd13be5d66d1a95e;hp=c70deebe328dfa83a00293c7d60937868a971b32;hpb=25d95f38e877adc852b7fee2e27b59f96ab654a8;p=civicrm-core.git diff --git a/install/index.php b/install/index.php index c70deebe32..adc88051ae 100644 --- a/install/index.php +++ b/install/index.php @@ -57,6 +57,9 @@ else { // set installation type - drupal if (!session_id()) { + if (defined('PANTHEON_ENVIRONMENT')) { + ini_set('session.save_handler', 'files'); + } session_start(); } @@ -103,25 +106,32 @@ require_once $crmPath . '/CRM/Core/ClassLoader.php'; CRM_Core_ClassLoader::singleton()->register(); // Load civicrm database config -if (isset($_REQUEST['mysql'])) { - $databaseConfig = $_REQUEST['mysql']; +if (isset($_POST['mysql'])) { + $databaseConfig = $_POST['mysql']; } else { - if ($installType == 'wordpress') { - //WP Database Data - $databaseConfig = array( - "server" => DB_HOST, - "username" => DB_USER, - "password" => DB_PASSWORD, - "database" => DB_NAME, - ); - } + $databaseConfig = array( + "server" => "localhost", + "username" => "civicrm", + "password" => "", + "database" => "civicrm", + ); +} + +if ($installType == 'wordpress') { + //WP Database Data + $databaseConfig = array( + "server" => DB_HOST, + "username" => DB_USER, + "password" => DB_PASSWORD, + "database" => DB_NAME, + ); } if ($installType == 'drupal') { // Load drupal database config - if (isset($_REQUEST['drupal'])) { - $drupalConfig = $_REQUEST['drupal']; + if (isset($_POST['drupal'])) { + $drupalConfig = $_POST['drupal']; } else { $drupalConfig = array( @@ -134,7 +144,7 @@ if ($installType == 'drupal') { } $loadGenerated = 0; -if (isset($_REQUEST['loadGenerated'])) { +if (isset($_POST['loadGenerated'])) { $loadGenerated = 1; } @@ -164,9 +174,9 @@ global $tsLocale; $tsLocale = 'en_US'; $seedLanguage = 'en_US'; -if (isset($_REQUEST['seedLanguage']) and isset($langs[$_REQUEST['seedLanguage']])) { - $seedLanguage = $_REQUEST['seedLanguage']; - $tsLocale = $_REQUEST['seedLanguage']; +if (isset($_POST['seedLanguage']) and isset($langs[$_POST['seedLanguage']])) { + $seedLanguage = $_POST['seedLanguage']; + $tsLocale = $_POST['seedLanguage']; } $config = CRM_Core_Config::singleton(FALSE); @@ -297,14 +307,14 @@ if ($databaseConfig) { } // Actual processor -if (isset($_REQUEST['go']) && !$req->hasErrors() && !$dbReq->hasErrors()) { +if (isset($_POST['go']) && !$req->hasErrors() && !$dbReq->hasErrors()) { // Confirm before reinstalling - if (!isset($_REQUEST['force_reinstall']) && $alreadyInstalled) { + if (!isset($_POST['force_reinstall']) && $alreadyInstalled) { include $installDirPath . 'template.html'; } else { $inst = new Installer(); - $inst->install($_REQUEST); + $inst->install($_POST); } // Show the config form