@https
@フォロワー #0
0
https 判定サンプルコード
{{{
if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on')
{
//'https'
} else if (isset($_SERVER['HTT...
https 判定サンプルコード
{{{
if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on')
{
//'https'
} else if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') {
//'https'
} else {
// 'http'
}
}}}
{{{
if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on')
{
//'https'
} else if (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') {
//'https'
} else {
// 'http'
}
}}}