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

import_6.inc

<?php

if (is_array($GLOBALS['db_url'])) {
  $db_url = $GLOBALS['db_url']['default'];
}
else {
  $db_url = $GLOBALS['db_url'];
}

if ($parts = @parse_url($db_url)) {
  drush_set_option('db_type', urldecode($parts['scheme']), 'site');
  drush_set_option('db_user', urldecode($parts['user']), 'site');
  drush_set_option('db_host', urldecode($parts['host']), 'site');
  drush_set_option('db_passwd', urldecode($parts['pass']), 'site');
  drush_set_option('db_name', substr(urldecode($parts['path']), 1), 'site');

  drush_set_option('profile', variable_get('install_profile', 'default'), 'site');
  $language = language_default();
  drush_set_option('language', $language->language, 'site');
}

Generated by  Doxygen 1.6.0   Back to index