5. Ten days after the mailing of such notice, if such building or any part thereof still continues to be used as a disorderly house, any person may apply for and obtain an injunction directed to the owner, lessor, lessee or occupant of such building, or to all such persons, restraining them, their heirs, assignees or successors from using or permitting the use of such building or any other building for the purposes above mentioned.