(a) In addition to sentencing authority granted in other provisions of this code to magistrate courts, magistrate courts have authority to suspend sentences and impose periods of unsupervised probation for a period not to exceed two years, except for offenses for which the penalty includes mandatory incarceration and offenses defined in sections eight and nine, article eight-b, chapter sixty-one of this code and subsection (c), section five, article eight-d of said chapter.
(b) Notwithstanding any other provision of law to the contrary, magistrate courts have the authority to impose periods of supervision or participation in a community corrections program created pursuant to article eleven-c, chapter sixty-two of this code. Periods of supervision or participation in community corrections programs imposed pursuant to this subsection are not to exceed two years.
(c) Release on probation is subject to the following conditions:
(1) That the probationer may not, during the term of his or her probation, violate any criminal law of this state, any other state of the United States or the United States;