| 1 |
<?php |
<?php |
| 2 |
// $Id: adsense.module,v 1.66.2.9.2.15 2009/05/19 21:25:35 jcnventura Exp $ |
// $Id: adsense.module,v 1.66.2.9.2.16 2009/06/04 21:53:20 jcnventura Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 539 |
// and it also prevents warnings about mixed-content |
// and it also prevents warnings about mixed-content |
| 540 |
// Thanks to Brad Konia http://drupal.org/node/29585 |
// Thanks to Brad Konia http://drupal.org/node/29585 |
| 541 |
// Should be restricted when running on Apache only |
// Should be restricted when running on Apache only |
| 542 |
if (isset($_SERVER['SERVER_SOFTWARE']) && (stripos($_SERVER['SERVER_SOFTWARE'], 'Apache') !== FALSE) && |
if (isset($_SERVER['SERVER_SOFTWARE']) && (stristr($_SERVER['SERVER_SOFTWARE'], 'Apache') !== FALSE) && |
| 543 |
isset($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] == 'on')) { |
isset($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] == 'on')) { |
| 544 |
return FALSE; |
return FALSE; |
| 545 |
} |
} |