Update boot.php

The http or https detection does not work, add a test on $ _SERVER ["HTTPS"]