Mercurial > hg > fapweb
comparison pages/vote.inc.php @ 1069:5f92fa5e683a
Refactor how the "AJAX" stuff works.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 24 Jan 2017 17:25:48 +0200 |
parents | ffacd904fd1f |
children | 7e497188e4c6 |
comparison
equal
deleted
inserted
replaced
1068:50d005dd22d8 | 1069:5f92fa5e683a |
---|---|
3 // FAPWeb - Simple Web-based Demoparty Management System | 3 // FAPWeb - Simple Web-based Demoparty Management System |
4 // Competition voting page | 4 // Competition voting page |
5 // (C) Copyright 2012-2015 Tecnic Software productions (TNSP) | 5 // (C) Copyright 2012-2015 Tecnic Software productions (TNSP) |
6 // | 6 // |
7 $sessionType = "user"; | 7 $sessionType = "user"; |
8 require_once "majax.inc.php"; | |
9 | 8 |
10 | 9 |
11 function stGetVoteButton() | 10 function stGetVoteButton() |
12 { | 11 { |
13 return | 12 return |
75 "</div>\n"; | 74 "</div>\n"; |
76 } | 75 } |
77 else | 76 else |
78 if (($mode = stGetSessionItem("mode")) == "vote") | 77 if (($mode = stGetSessionItem("mode")) == "vote") |
79 { | 78 { |
80 stCommonAJAX("usrajax.php", "usrlogout.php"); | |
81 ?> | 79 ?> |
82 <noscript> | 80 <noscript> |
83 <div class="notice">If your browser supports JavaScript, enable it for smoother voting experience.</div> | 81 <div class="notice">If your browser supports JavaScript, enable it for smoother voting experience.</div> |
84 </noscript> | 82 </noscript> |
85 <script type="text/javascript"> | 83 <script type="text/javascript"> |