# HG changeset patch # User Matti Hamalainen # Date 1382451363 -10800 # Node ID 6b71472cda774ffcdd4e3180143e41cdbdafbfcd # Parent 71c35d5302c20c45f8794cc9f8c03741a11d5f9c A tiny bit of work on voting. diff -r 71c35d5302c2 -r 6b71472cda77 vote.inc.php --- a/vote.inc.php Tue Oct 22 17:00:49 2013 +0300 +++ b/vote.inc.php Tue Oct 22 17:16:03 2013 +0300 @@ -12,6 +12,7 @@ "\n"; } + // Check if voting is enabled if (!stChkSetting("allowVoting")) { @@ -59,7 +60,7 @@ echo "

Voting system

\n". stGetFormStart("vote", "usrvote.php"). - " ".stGetFormHiddenInput("mode", "vote")."\n". + " ".stGetFormHiddenInput("mode", "done")."\n". " ".stGetFormHiddenInput("goto", "vote")."\n". " ".stGetFormHiddenInput("key", stGetSessionItem("key"))."\n". stGetVoteButton(); @@ -69,8 +70,9 @@ { echo " \n". - " \n". + " \n". " \n". + " \n". " \n". ($compo["showAuthors"] ? " \n" : ""). " "; @@ -88,7 +90,7 @@ { echo " \n". - " \n". + " \n". " \n". ($compo["showAuthors"] ? " \n" : ""). " ";
".chentities($compo["name"])."
".chentities($compo["name"])."
#TitleAuthor
".($entry["show_id"] > 0 ? $entry["show_id"] : "-")."".($entry["show_id"] > 0 ? $entry["show_id"] : "-")."".$entry["name"]."".$entry["author"]."