What does the word "court" in the idiom "Dui Pu Gong Tang" mean now?

It is equivalent to today's "court", and the host's court session is called "rising to court". Just like in a play, the soap clothes on both sides also shouted "awesome!" If the decision is made behind the scenes or privately, it should also go through this "in court" procedure to show an "open and fair trial", and there should be a "hanging mirror" in the class.

In the old dynasty, extorting confessions by letters was open and legal, which was called "using form". The master threw an arrow: "Hit 50 more boards to see if he confessed", but it was not allowed to use the form outside the court, contrary to what happened later.