  We consider the phase diagram of a classical fluid in the presence of a
random pinning potential of arbitrary strength. Introducing replicas for
averaging over the quenched disorder, we use the hypernetted chain
approximation to calculate the correlations in the replicated liquid. The
freezing transition of the liquid into a nearly crystalline state is studied
using a density functional approach, and the liquid-to-glass transition is
studied using a phenomenological replica symmetry breaking approach introduced
by Mezard and Parisi. The first-order liquid-to-crystal transition is found to
change to a continuous liquid-to-glass transition as the strength of the
disorder is increased above a threshold value.
