mirror of
https://github.com/fortressforever/fortressforever-web.git
synced 2024-11-10 06:42:10 +00:00
Make https friendly
This commit is contained in:
parent
fdbb634971
commit
1dd2eb56bc
2 changed files with 3 additions and 2 deletions
|
@ -11,7 +11,8 @@ else
|
||||||
define( 'FF_IS_LOCAL', false );
|
define( 'FF_IS_LOCAL', false );
|
||||||
}
|
}
|
||||||
define( 'FF_URI', FF_URI_BASE );
|
define( 'FF_URI', FF_URI_BASE );
|
||||||
define( 'FF_DOMAIN', "http://".$_SERVER["SERVER_NAME"] );
|
$isHTTPS = isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on';
|
||||||
|
define( 'FF_DOMAIN', ($isHTTPS ? "https" : "http")."://".$_SERVER["SERVER_NAME"] );
|
||||||
define( 'FF_HOST_BASE', FF_DOMAIN.FF_URI_BASE );
|
define( 'FF_HOST_BASE', FF_DOMAIN.FF_URI_BASE );
|
||||||
define( 'FF_HOST', FF_DOMAIN.FF_URI );
|
define( 'FF_HOST', FF_DOMAIN.FF_URI );
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ $DB = $config["site_db"];
|
||||||
<!-- Optimized mobile viewport -->
|
<!-- Optimized mobile viewport -->
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
|
||||||
<link href='http://fonts.googleapis.com/css?family=Cabin:400,500,600,700' rel='stylesheet' type='text/css'>
|
<link href='https://fonts.googleapis.com/css?family=Cabin:400,500,600,700' rel='stylesheet' type='text/css'>
|
||||||
<link href="css/style.css" rel="stylesheet" />
|
<link href="css/style.css" rel="stylesheet" />
|
||||||
<link rel="alternate" type="application/rss+xml" href="<?=GetLink("rss")?>" />
|
<link rel="alternate" type="application/rss+xml" href="<?=GetLink("rss")?>" />
|
||||||
</head>
|
</head>
|
||||||
|
|
Loading…
Reference in a new issue