Added vote to site

This commit is contained in:
Unick Soft
2017-07-28 00:17:42 +03:00
parent a64fff2dd9
commit ab0d155367
23 changed files with 199 additions and 9 deletions

View File

@@ -1,6 +1,7 @@
<?php
include ("./src/donate.php");
include ("./src/vote_func.php");
$graphName = "";
if (isset($_GET["graph"]))
@@ -35,4 +36,13 @@
$g_lang["m_keyWords"] = $graphName . ", " . $g_lang["m_keyWords"];
$g_lang["m_description"] = $g_lang["title_notg"] . ": " . $graphName;
}
$wasVote = (isset($_COOKIE["vote0"]));
$voteTopics = getVoteTopics();
for ($i = 0; $i < count($voteTopics); $i++)
{
$voteTopics[$i]["index"] = $i;
}
shuffle($voteTopics);
?>