(a) No person who has been convicted in this state or elsewhere of committing or attempting to commit a crime of violence shall own a pistol or have one in his or her possession or under his or her control.
(b) No person who is a drug addict or an habitual drunkard shall own a pistol or have one in his or her possession or under his or her control.
(c) Subject to the exceptions provided by Section 13A-11-74, no person shall knowingly with intent to do bodily harm carry or possess a deadly weapon on the premises of a public school.
(d) Possession of a deadly weapon with the intent to do bodily harm on the premises of a public school in violation of subsection (c) of this section is a Class C felony.
(e) School security personnel and school resource officers qualified under subsection (a) of Section 16-1-44.1, employed by a local board of education, and authorized by the employing local board of education to carry a deadly weapon while on duty are exempt from subsection (c) of this section. Law enforcement officers are exempt from this section, and persons with pistol permits issued pursuant to Section 13A-11-75, are exempt from subsection (c) of this section.
(f) The term "school resource officer" as used in this section means an Alabama Peace Officers' Standards and Training Commissioner-certified law enforcement officer employed by a law enforcement agency who is specifically selected and specially trained for the school setting.
(g) The term "public school" as used in this section applies only to a school composed of grades K-12 and shall include a school bus used for grades K-12.
(h) The term "deadly weapon" as used in this section means a firearm or anything manifestly designed, made, or adapted for the purposes of inflicting death or serious physical injury, and such term includes, but is not limited to, a bazooka, hand grenade, missile, or explosive or incendiary device; a pistol, rifle, or shotgun; or a switch-blade knife, gravity knife, stiletto, sword, or dagger; or any club, baton, billy, black-jack, bludgeon, or metal knuckles.