Skip to content

Instantly share code, notes, and snippets.

@radimklaska
Created August 24, 2017 15:16
Show Gist options
  • Save radimklaska/3cada326eae5922bb31041aa1fe02d9f to your computer and use it in GitHub Desktop.
Save radimklaska/3cada326eae5922bb31041aa1fe02d9f to your computer and use it in GitHub Desktop.
Include settings specific to Wedos only when running there.
/**
* Detect Wedos.
*/
$wedos_settings = DRUPAL_ROOT . "/sites/default/settings.wedos.php";
if (isset($_SERVER['SERVER_ADMIN']) && $_SERVER['SERVER_ADMIN'] == ' hosting@wedos.com' && file_exists($local_settings)) {
include $local_settings;
}
@knoflice
Copy link

knoflice commented Aug 24, 2017

Mám dotaz... :-)
Nemělo by tam být include $wedos_settings; ?

$wedos_settings = DRUPAL_ROOT."/sites/$site/settings.wedos.php";

if (isset($_SERVER['SERVER_ADMIN']) && $_SERVER['SERVER_ADMIN'] == 'hosting@wedos.com' && file_exists($wedos_settings)) {
include wedos_settings;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment