Quantum Entanglement and Quantum Discord of a Two-Qubit System in a Dissipative Cavity