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

	$poll_file = "poll.txt";
	$options_file = "options.txt";
	$redirect_page = "form.php"; // The page the user will be redirect to after voting
	
	$display_votes = false; // If you want to leave the vote totals for each option hidden until the user votes, leave this at false; if you want the vote totals for each option to be shown all the time, change it to true

	$read_options = @fopen($options_file, "r");
	$options = @fread($read_options, 1024);
	$options = @explode("\n", $options);
	@fclose($read_options);
	
	$read_poll = @fopen($poll_file, "r");
	$choices = @fread($read_poll, 1024);
	$choices = @explode("|", $choices);
	@fclose($read_poll);
	
	$date = $options[0];
	$header = $options[1];
	$question = $options[2];
	$cookie_name = $options[3];
	$redirect_page = $options[4];
	$cookie_timeout = $options[5];
	$total_votes = $choices[10]+$choices[11]+$choices[12]+$choices[13]+$choices[14]+$choices[15]+$choices[16]+$choices[17]+$choices[18]+$choices[19];
?>
Return current item: Silentum Poll