Skip to content
Snippets Groups Projects
vote.php 435 B
Newer Older
TonyFord's avatar
TonyFord committed
---
---
<?php

include_once('functions/db_connect.php');
include_once('functions/db_methods.php');


//$M=db_getActiveManager({{ page.saison }});

$secret=$_POST['secret'];
$saison={{ site.data.global.saison_now }};
$teamvote=$_POST['teamvote'];

if( $saison*1 != {{ site.data.global.saison_now }}*1 ) exit;

$result=db_addTeamVote( $secret, $saison, $teamvote );

$A=[ $secret, $saison, $teamvote, $result ];

echo json_encode($A);
?>