Update update.php

Added support for HTTP_X_FORWARDED_FOR