[Client][servers_ajax] Add a new function: getServerTypeFromFlags()