Révision c9e51f47
Ajouté par Julien Enselme il y a environ 7 ans
drupal7/includes/bootstrap.inc | ||
---|---|---|
8 | 8 |
/** |
9 | 9 |
* The current system version. |
10 | 10 |
*/ |
11 |
define('VERSION', '7.53');
|
|
11 |
define('VERSION', '7.54');
|
|
12 | 12 |
|
13 | 13 |
/** |
14 | 14 |
* Core API compatibility. |
... | ... | |
718 | 718 |
&& preg_match('/^\[?(?:[a-zA-Z0-9-:\]_]+\.?)+$/', $host); |
719 | 719 |
} |
720 | 720 |
|
721 |
/** |
|
722 |
* Checks whether an HTTPS request is being served. |
|
723 |
* |
|
724 |
* @return bool |
|
725 |
* TRUE if the request is HTTPS, FALSE otherwise. |
|
726 |
*/ |
|
727 |
function drupal_is_https() { |
|
728 |
return isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on'; |
|
729 |
} |
|
730 |
|
|
721 | 731 |
/** |
722 | 732 |
* Sets the base URL, cookie domain, and session name from configuration. |
723 | 733 |
*/ |
... | ... | |
731 | 741 |
if (file_exists(DRUPAL_ROOT . '/' . conf_path() . '/settings.php')) { |
732 | 742 |
include_once DRUPAL_ROOT . '/' . conf_path() . '/settings.php'; |
733 | 743 |
} |
734 |
$is_https = isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on';
|
|
744 |
$is_https = drupal_is_https();
|
|
735 | 745 |
|
736 | 746 |
if (isset($base_url)) { |
737 | 747 |
// Parse fixed base URL from settings.php. |
Formats disponibles : Unified diff
Udpate to 7.54