password reset, admin upadte and Camel case update
This commit is contained in:
@@ -5,7 +5,7 @@ use Backend\Models\Vote;
|
||||
require "../../../bootstrap.php";
|
||||
|
||||
|
||||
if(isset($_POST['1vote_for'])){
|
||||
if(isset($_POST['1Vote'])){
|
||||
require "VoteChecking.php";
|
||||
|
||||
$vote = new Vote();
|
||||
|
||||
@@ -5,7 +5,7 @@ use Backend\Models\Vote;
|
||||
require "../../../bootstrap.php";
|
||||
|
||||
|
||||
if(isset($_POST['321vote_for'])){
|
||||
if(isset($_POST['321Vote'])){
|
||||
require "VoteChecking.php";
|
||||
|
||||
//give 1 point
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?php
|
||||
$votes = array();
|
||||
if(isset($_COOKIE["Voting_reg"])) {
|
||||
$votes = unserialize($_COOKIE["Voting_reg"]);
|
||||
if(isset($_COOKIE["votingReg"])) {
|
||||
$votes = unserialize($_COOKIE["votingReg"]);
|
||||
foreach ($votes as $vote){
|
||||
if($_POST['gameJamId'] === $vote) return;
|
||||
}
|
||||
}
|
||||
array_push($votes,$_POST['gameJamId']);
|
||||
setcookie("Voting_reg", serialize($votes), time() + 86400, "/");
|
||||
setcookie("VotingReg", serialize($votes), time() + 86400, "/");
|
||||
|
||||
Reference in New Issue
Block a user