comparison pages/vote.inc.php @ 1096:bbc0a3d0b51e

Major renaming / refactor of site messages. Some that were previously modifiable from admin interface are now "hardcoded" in the configuration file. Having these settings made modifiable from there made no sense and just took space in the UI.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 27 Jan 2017 22:15:06 +0200
parents 95b74632cfe2
children b2bca5f6d0ff
comparison
equal deleted inserted replaced
1095:faa835271dfd 1096:bbc0a3d0b51e
30 "</div>\n"; 30 "</div>\n";
31 } 31 }
32 32
33 // Check if voting is enabled 33 // Check if voting is enabled
34 if (!stChkSetting("allowVoting")) 34 if (!stChkSetting("allowVoting"))
35 echo stGetSetting("votingDisabled"); 35 echo stGetSetting("msgVotingDisabled");
36 else 36 else
37 if (!stUserSessionAuth(FALSE)) 37 if (!stUserSessionAuth(FALSE))
38 { 38 {
39 // Perform authentication if we are not in session already 39 // Perform authentication if we are not in session already
40 if (($error = stGetRequestItem("error", 0, TRUE)) != 0) 40 if (($error = stGetRequestItem("error", 0, TRUE)) != 0)
175 } 175 }
176 else 176 else
177 if ($mode == "done") 177 if ($mode == "done")
178 { 178 {
179 // Voting finished successfully 179 // Voting finished successfully
180 echo stGetSetting("voteFinishedText"); 180 echo stGetSetting("msgVoteFinished");
181 stSessionEnd(SESS_USER); 181 stSessionEnd(SESS_USER);
182 } 182 }
183 else 183 else
184 if ($mode == "error") 184 if ($mode == "error")
185 { 185 {