2011-03-28 14:21:28 +00:00
|
|
|
<?
|
|
|
|
$Campaign = 'forumaudio';
|
2013-07-10 00:08:53 +00:00
|
|
|
if (!$Votes = $Cache->get_value("support_$Campaign")) {
|
2013-04-05 08:00:43 +00:00
|
|
|
$Votes = array(0,0);
|
|
|
|
}
|
2011-03-28 14:21:28 +00:00
|
|
|
if (!isset($_GET['support'])) {
|
|
|
|
?>
|
|
|
|
<h1>Browser Support Campaign: <?=$Campaign?></h1>
|
|
|
|
<ul>
|
|
|
|
<li><?=number_format($Votes[0])?> +</li>
|
|
|
|
<li><?=number_format($Votes[1])?> -</li>
|
2013-07-10 00:08:53 +00:00
|
|
|
<li><?=number_format(($Votes[0] / ($Votes[0] + $Votes[1])) * 100, 3)?> %</li>
|
2011-03-28 14:21:28 +00:00
|
|
|
</ul>
|
|
|
|
<?
|
|
|
|
} elseif ($_GET['support'] === 'true') {
|
|
|
|
$Votes[0]++;
|
|
|
|
} elseif ($_GET['support'] === 'false') {
|
|
|
|
$Votes[1]++;
|
|
|
|
}
|
2013-07-10 00:08:53 +00:00
|
|
|
$Cache->cache_value("support_$Campaign", $Votes, 0);
|
2011-03-28 14:21:28 +00:00
|
|
|
|
|
|
|
?>
|