Ver código fonte

Migrate to SITE_DOMAIN constant from (NON)SSL_SITE_URL

undefined
spaghetti 8 anos atrás
committed by Tomochin
pai
commit
334ba71081
2 arquivos alterados com 3 adições e 3 exclusões
  1. +2
    -2
      design/privateheader.php
  2. +1
    -1
      design/publicheader.php

+ 2
- 2
design/privateheader.php Ver arquivo

@@ -1,7 +1,7 @@
<?

define('FOOTER_FILE', SERVER_ROOT.'/design/privatefooter.php');
$HTTPS = ($_SERVER['SERVER_PORT'] == 443) ? 'ssl_' : '';
$HTTPS = true;
$UseTooltipster = !isset(G::$LoggedUser['Tooltipster']) || G::$LoggedUser['Tooltipster'];

?>
@@ -75,7 +75,7 @@ if ($Mobile) { ?>
$StyleURLInfo = parse_url(G::$LoggedUser['StyleURL']);
if (substr(G::$LoggedUser['StyleURL'], -4) == '.css'
&& empty($StyleURLInfo['query']) && empty($StyleURLInfo['fragment'])
&& in_array($StyleURLInfo['host'], array(NONSSL_SITE_URL, SSL_SITE_URL))
&& ($StyleURLInfo['host'] == SITE_DOMAIN)
&& file_exists(SERVER_ROOT.$StyleURLInfo['path'])) {
$StyleURL = G::$LoggedUser['StyleURL'].'?v='.filemtime(SERVER_ROOT.$StyleURLInfo['path']);
} else {


+ 1
- 1
design/publicheader.php Ver arquivo

@@ -1,5 +1,5 @@
<?
global $LoggedUser, $SSL;
global $LoggedUser;
define('FOOTER_FILE',SERVER_ROOT.'/design/publicfooter.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


Carregando…
Cancelar
Salvar