Sfoglia il codice sorgente

Migrate to SITE_DOMAIN constant from (NON)SSL_SITE_URL

undefined
spaghetti 8 anni fa
committed by Tomochin
parent
commit
334ba71081
2 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. +2
    -2
      design/privateheader.php
  2. +1
    -1
      design/publicheader.php

+ 2
- 2
design/privateheader.php Vedi File

@@ -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 Vedi File

@@ -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">


Caricamento…
Annulla
Salva