Mercurial > hg > fapweb
diff pages/vote.inc.php @ 789:24bbd1f89794
Add few new settings, bump database version.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 21 Nov 2014 08:05:27 +0200 |
parents | 85f5f569f6fc |
children | c1738ee91f6a |
line wrap: on
line diff
--- a/pages/vote.inc.php Fri Nov 21 08:04:13 2014 +0200 +++ b/pages/vote.inc.php Fri Nov 21 08:05:27 2014 +0200 @@ -19,11 +19,7 @@ // Check if voting is enabled if (!stChkSetting("allowVoting")) -{ - echo - "<h1>Sorry, voting disabled!</h1>\n". - "<p>Voting functionality not available at this time.</p>\n"; -} + echo stGetSetting("votingDisabled"); else if (!stUserSessionAuth(FALSE)) { @@ -120,6 +116,7 @@ stGetFormStart("vote", "usrajax.php"). " ".stGetFormHiddenInput("mode", "done")."\n". " ".stGetFormHiddenInput("action", "submit")."\n". + " ".stGetFormHiddenInput("onerror", "noauthvote")."\n". stGetVoteButton(); foreach (stExecSQL("SELECT * FROM compos WHERE visible<>0 AND voting<>0") as $compo)