security copy of core function get_core_checksums()

WARNING!
I do not speak PHP.