Update index.php

Added the ability to use HTTPS and set the HSTS (Stict Transport Security) headers.
Fixed the reflective XSS attack vector by removing all non-integer chars from the variable.