A php clone of the webwargaming code