diff vote.inc.php @ 126:71c35d5302c2

More work on cleanups, and AJAX modularization.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 22 Oct 2013 17:00:49 +0300
parents 9a52fa9d4ecc
children 6b71472cda77
line wrap: on
line diff
--- a/vote.inc.php	Tue Oct 22 16:20:47 2013 +0300
+++ b/vote.inc.php	Tue Oct 22 17:00:49 2013 +0300
@@ -1,5 +1,6 @@
 <?
 $sessionType = "user";
+require "majax.php";
 $userKeyLen = stGetSetting("userKeyLength");
 
 
@@ -38,11 +39,7 @@
 else
 if (($mode = stGetSessionItem("mode")) == "vote")
 {
-?>
-<script type="text/javascript">
-// <? include "ajax.js"; ?>
-</script>
-<?
+  stCommonAJAX("usrajax.php", "usrlogout.php", TRUE);
   stGetCompoList(TRUE, TRUE);
 
   // Try fetching previously stored votes