This looks like the one sunslayer has posted, except with added modification using $md5() and $sha1(), along with the local var set for the regsubex.