Location: PHPKode > scripts > Silentum Poll > vote.php
<?PHP
	/*
	Silentum Poll v1.3
	Modified July 8, 2012
	vote.php copyright 2006-2012 HyperSilence
	*/
	
	include("poll_script.php");

	$choice = $_POST["choice"];

	if(isset($choice) && !isset($_COOKIE["$cookie_name"])) {
	
	$pick = "1".$choice;
	$choices[$pick] += 1;

	$file_write = $choices[0]."|".$choices[1]."|".$choices[2]."|".$choices[3]."|".$choices[4]."|".$choices[5]."|".$choices[6]."|".$choices[7]."|".$choices[8]."|".$choices[9]."|".$choices[10]."|".$choices[11]."|".$choices[12]."|".$choices[13]."|".$choices[14]."|".$choices[15]."|".$choices[16]."|".$choices[17]."|".$choices[18]."|".$choices[19];

	$choices_file = @fopen($poll_file, "w");
	@fwrite($choices_file, $file_write);
	@fclose($choices_file);

	setcookie("$cookie_name", "true", time()+$cookie_timeout);
	header("Location: $redirect_page?message=1#poll");
	exit;
	}

	elseif(!isset($choice)) {
	header("Location: $redirect_page?message=2#poll");
	exit;
	}

	elseif(isset($_COOKIE["$cookie_name"])) {
	header("Location: $redirect_page?message=3#poll");
	exit;
	}
?>
Return current item: Silentum Poll