Created
August 24, 2017 15:16
-
-
Save radimklaska/3cada326eae5922bb31041aa1fe02d9f to your computer and use it in GitHub Desktop.
Include settings specific to Wedos only when running there.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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;
}