Logo Search packages:      
Sourcecode: aegir-provision version File versions  Download package

install_verify_settings (  ) 

Verify existing settings.php

Definition at line 25 of file install_5.inc.

Referenced by install_main().

                                   {
  global $db_prefix, $db_type, $db_url;

  // Verify existing settings (if any).
  if ($db_url != 'mysql://username:password@localhost/databasename') {
    // We need this because we want to run form_get_errors.

    $url = parse_url(is_array($db_url) ? $db_url['default'] : $db_url);
    $db_user = urldecode($url['user']);
    $db_pass = urldecode($url['pass']);
    $db_host = urldecode($url['host']);
    $db_port = isset($url['port']) ? urldecode($url['port']) : '';
    $db_path = ltrim(urldecode($url['path']), '/');
    $settings_file = './'. conf_path() .'/settings.php';

    return TRUE;
  }
  return FALSE;
}


Generated by  Doxygen 1.6.0   Back to index