Undefined index: HTTPS in /XXX/index.php on line 35 at post.
if($_SERVER['HTTPS'] == 'on'){
    $mydomain = 'https://'.$_SERVER['HTTP_HOST'];
} else {
    $mydomain = 'http://'.$_SERVER['HTTP_HOST'];
}
The code at line 35 are as follows;
if($_SERVER['HTTPS'] == 'on'){
 
    