Ledger Nano X - The secure hardware wallet
SHARE
TWEET

/o1/static/833-160617/sites/example.com/settings.php

Juc1 Jun 16th, 2017 (edited) 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /**
  3.  * @file Drupal's settings.php file
  4.  *
  5.  * This file was automatically generated by Aegir 7.x-3.x
  6.  * on Fri, 16 Jun 2017 15:59:54 +0000.
  7.  *
  8.  * If it is still managed by Aegir, changes to this file may be
  9.  * lost. If it is not managed by aegir, you should remove this header
  10.  * to avoid further confusion.
  11.  */
  12.  
  13. /**
  14.  * Detecting subdirectory mode
  15.  */
  16. if (isset($_SERVER['SITE_SUBDIR']) && isset($_SERVER['RAW_HOST'])) {
  17.   $base_url = 'http://' . $_SERVER['RAW_HOST'] . '/' . $_SERVER['SITE_SUBDIR'];
  18. }
  19.  
  20. if (isset($_SERVER['db_name'])) {
  21.   /**
  22.    * The database credentials are stored in the Apache or Nginx vhost config
  23.    * of the associated site with SetEnv (fastcgi_param in Nginx) parameters.
  24.    * They are called here with $_SERVER environment variables to
  25.    * prevent sensitive data from leaking to site administrators
  26.    * with PHP access, that potentially might be of other sites in
  27.    * Drupal's multisite set-up.
  28.    * This is a security measure implemented by the Aegir project.
  29.    */
  30.   $databases['default']['default'] = array(
  31.     'driver' => $_SERVER['db_type'],
  32.     'database' => $_SERVER['db_name'],
  33.     'username' => $_SERVER['db_user'],
  34.     'password' => $_SERVER['db_passwd'],
  35.     'host' => $_SERVER['db_host'],
  36.     /* Drupal interprets $databases['db_port'] as a string, whereas Drush sees
  37.      * it as an integer. To maintain consistency, we cast it to a string. This
  38.      * should probably be fixed in Drush.
  39.      */
  40.     'port' => (string) $_SERVER['db_port'],
  41.   );
  42.   $db_url['default'] = $_SERVER['db_type'] . '://' . $_SERVER['db_user'] . ':' . $_SERVER['db_passwd'] . '@' . $_SERVER['db_host'] . ':' . $_SERVER['db_port'] . '/' . $_SERVER['db_name'];
  43. }
  44.  
  45.   /**
  46.    * Now that we used the credentials from the apache environment, we
  47.    * don't need them anymore. Clear them from apache and the _SERVER
  48.    * array, otherwise they show up in phpinfo() and other friendly
  49.    * places.
  50.    */
  51.   if (function_exists('apache_setenv')) {
  52.     apache_setenv('db_type', null);
  53.     apache_setenv('db_user', null);
  54.     apache_setenv('db_passwd', null);
  55.     apache_setenv('db_host', null);
  56.     apache_setenv('db_port', null);
  57.     apache_setenv('db_name', null);
  58.     // no idea why they are also in REDIRECT_foo, but they are
  59.     apache_setenv('REDIRECT_db_type', null);
  60.     apache_setenv('REDIRECT_db_user', null);
  61.     apache_setenv('REDIRECT_db_passwd', null);
  62.     apache_setenv('REDIRECT_db_host', null);
  63.     apache_setenv('REDIRECT_db_port', null);
  64.     apache_setenv('REDIRECT_db_name', null);
  65.   }
  66.   unset($_SERVER['db_type']);
  67.   unset($_SERVER['db_user']);
  68.   unset($_SERVER['db_passwd']);
  69.   unset($_SERVER['db_host']);
  70.   unset($_SERVER['db_port']);
  71.   unset($_SERVER['db_name']);
  72.   unset($_SERVER['REDIRECT_db_type']);
  73.   unset($_SERVER['REDIRECT_db_user']);
  74.   unset($_SERVER['REDIRECT_db_passwd']);
  75.   unset($_SERVER['REDIRECT_db_host']);
  76.   unset($_SERVER['REDIRECT_db_port']);
  77.   unset($_SERVER['REDIRECT_db_name']);
  78.  
  79.  
  80.   $profile = "standard";
  81.   $install_profile = "standard";
  82.  
  83.   /**
  84.   * PHP settings: (managed in BOA via site and platform level INI files)
  85.   *
  86.   * To see what PHP settings are possible, including whether they can
  87.   * be set at runtime (ie., when ini_set() occurs), read the PHP
  88.   * documentation at http://www.php.net/manual/en/ini.php#ini.list
  89.   * and take a look at the .htaccess file to see which non-runtime
  90.   * settings are used there. Settings defined here should not be
  91.   * duplicated there so as to avoid conflict issues.
  92.   */
  93.   ini_set('magic_quotes_runtime',     '0');
  94.   ini_set('magic_quotes_sybase',      '0');
  95.   ini_set('session.cache_limiter',     '');
  96.   ini_set('session.cookie_httponly',  '1');
  97.   ini_set('session.use_cookies',      '1');
  98.   ini_set('session.use_only_cookies', '1');
  99.   ini_set('session.use_trans_sid',    '0');
  100.  
  101.   /**
  102.   * Set the umask so that new directories created by Drupal have the correct permissions
  103.   */
  104.   umask(0002);
  105.  
  106.   global $conf;
  107.   $conf['install_profile'] = 'standard';
  108.   $conf['file_directory_path'] = 'sites/example.com/files';
  109.   $conf['file_directory_temp'] = 'sites/example.com/private/temp';
  110.   $conf['clean_url'] = 1;
  111.   $conf['aegir_api'] = 3;
  112.   $conf['allow_authorize_operations'] = FALSE;
  113.  
  114.   // Nginx tries to cache the admin_menu if we don't do this.
  115.   $conf['admin_menu_cache_client'] = FALSE;
  116.  
  117.  
  118. # Extra configuration from modules:
  119.  
  120.   # Additional host wide configuration settings. Useful for safely specifying configuration settings.
  121.   if (is_readable('/data/disk/o1/config/includes/global.inc')) {
  122.     include_once('/data/disk/o1/config/includes/global.inc');
  123.   }
  124.  
  125.   # Additional site configuration settings.
  126.   if (is_readable('/data/disk/o1/static/833-160617/sites/example.com/local.settings.php')) {
  127.     include_once('/data/disk/o1/static/833-160617/sites/example.com/local.settings.php');
  128.   }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top