fixes #12458 , use cookie to disable user submit button.
fixes php 5.4 warning, upgrade smarty to 2.6.28