Code for PHP Votifier for topsites