Hi,
While a tough call without a physical examination, it would seem that you may be having an infection of the reproductive tract. This could explain the pain, and the discharge.
Other possibilities could be an ovarian cyst, UTI, or even a back problem (since the pain is going to the leg too).
You need a physician to evaluate your symptoms, and possible ob/gyn opinion too, for confirming the same, and giving appropriate treatment,
regards
Dr. Gupta