Mercurial > hg > fapweb
comparison pages/vote.inc.php @ 1088:4f132374df75
Fix a 10L.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 26 Jan 2017 00:48:34 +0200 |
parents | 4c76b4994414 |
children | 95b74632cfe2 |
comparison
equal
deleted
inserted
replaced
1087:4c76b4994414 | 1088:4f132374df75 |
---|---|
15 " </div>\n"; | 15 " </div>\n"; |
16 } | 16 } |
17 | 17 |
18 function stVoteLoginForm() | 18 function stVoteLoginForm() |
19 { | 19 { |
20 $userKeyLen = stGetSetting("userKeyLength"); | |
20 return | 21 return |
21 "<div class=\"voteLogin\">\n". | 22 "<div class=\"voteLogin\">\n". |
22 " ".stGetFormStart("vote", "usrlogin.php"). | 23 " ".stGetFormStart("vote", "usrlogin.php"). |
23 " ".stGetFormHiddenInput("mode", "vote")."\n". | 24 " ".stGetFormHiddenInput("mode", "vote")."\n". |
24 " ".stGetFormHiddenInput("goto", "vote")."\n". | 25 " ".stGetFormHiddenInput("goto", "vote")."\n". |
34 echo stGetSetting("votingDisabled"); | 35 echo stGetSetting("votingDisabled"); |
35 else | 36 else |
36 if (!stUserSessionAuth(FALSE)) | 37 if (!stUserSessionAuth(FALSE)) |
37 { | 38 { |
38 // Perform authentication if we are not in session already | 39 // Perform authentication if we are not in session already |
39 $userKeyLen = stGetSetting("userKeyLength"); | |
40 | |
41 if (($error = stGetRequestItem("error", 0, TRUE)) != 0) | 40 if (($error = stGetRequestItem("error", 0, TRUE)) != 0) |
42 { | 41 { |
43 echo | 42 echo |
44 "<h1>Voting system login failed</h1>\n". | 43 "<h1>Voting system login failed</h1>\n". |
45 "<p class=\"notice\">\n"; | 44 "<p class=\"notice\">\n"; |