Ok for the Hamachi IP thing, you can choose an Free Webhoster with MySQL Database Online and use that
or you can use dyndns / no-ip.
For the ToS thing you can use SESSION in PHP.
SESSION are things wich you can create and check if they allready set and many Things more
gz EnoiZe