Shared code needed by RideNet and other PHP apps