Export Multiple Pages to TeX

Per a suggestion of Marco Gualtieri.
This commit is contained in:
Jacques Distler 2010-10-09 02:57:37 -05:00
parent 1c5df9e8b5
commit aee4f8b3a9
9 changed files with 312 additions and 278 deletions

View file

@ -18,13 +18,13 @@ module FormSpamProtection
if session[:form_keys].keys.include?(key)
session[:form_keys][key][1] += 1
if session[:form_keys][key][1] >= 4
render :text => "You cannot resubmit this form again.", :layout => 'error', :status => 403
return false
flash[:error] = "You cannot resubmit this form again."
redirect_to :back
end
end
else
render :text => "You must have Javascript on, and cookies enabled, to submit this form.", :layout => 'error', :status => 403
return false
flash[:error] = "You must have Javascript on, and cookies enabled, to submit this form."
redirect_to :back
end
end
end