Code is in sys.php

Right at the top. Think it still works. Is based on old code that let
users add new tags to DB so will actually be simpler in the new
implementation.