GIF89a; Mini Shell

Mini Shell

Direktori : /home/serb/www/poll/poll-multi-choice/
Upload File :
Current File : /home/serb/www/poll/poll-multi-choice/class.inc.php

<?php
//==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>==>>>
//
// Ajax Poll Script v3.02 [ GPL ]
// Copyright (c) phpkobo.com ( http://www.phpkobo.com/ )
// Email : admin@phpkobo.com
// ID : APSMX-302
//
//==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<==<<<

class CTClass extends CTClassBase
{
	function setupPoll( $poll ) {

		//-- Poll Title
		$poll->attr( "title", "Which pet do you want to have?" );

		//-- Poll Options
		$poll->addItem( "Dog" );
		$poll->addItem( "Cat" );
		$poll->addItem( "Fish" );
		$poll->addItem( "Snake" );

		//-- Text used in polls
		$poll->attr( "msg-vote", "Vote" );
		$poll->attr( "msg-select-one", "Please select one option" );
		$poll->attr( "msg-already-voted", "You have already voted!" );
		$poll->attr( "msg-view-result", "View Results" );
		$poll->attr( "msg-thank-you", "Thank you for voting!" );
		$poll->attr( "msg-return", "Back" );
		$poll->attr( "msg-total", "Total" );
		$poll->attr( "msg-reset-block", "Reset IP & Cookie Block" );
		$poll->attr( "msg-not-started", "Voting has not begun yet." );
		$poll->attr( "msg-ended", "Voting has ended, thank you!" );

		//-- Display "Reset IP & Cookie Block" button
		//--	Show: true
		//--	Hide: false
		$poll->attr( "b-reset-block", true );

		//-- Single selection or multiple selection
		//--	single selection: "radio"
		//--	multiple selection: "checkbox"
		$poll->attr( "vote-input", "checkbox" );

		//-- Specify the time delay on tool tips in milliseconds
		$poll->attr( "tip-box-duration", 2000 );

		//-- Prevent users from voting more than once by IP address
		//--	"true" or "false"
		$poll->attr( "enable-ip-block", true );

		//-- Prevent users from voting more than once by Cookie
		//--	"true" or "false"
		$poll->attr( "enable-cookie-block", true );

		//-- Specifiy the cookie's life span in seconds
		//--	(e.g.) 60*60*24 => One Day
		//--	(e.g.) 60*60*24*365 => One Year
		$poll->attr( "cookie-block-period", 60*60*24*365 );

		//-- Specifiy Start and End Date&Time:
		//-- Enter an empty string ("") if you don't need to specify it.
		//--	(e.g.) "2010-01-02"
		//--	(e.g.) "2015-03-01 15:20"
		$poll->attr( "dt-start", "" );
		$poll->attr( "dt-end", "" );

		//-- end
		return true;
	}
}

?>

./BlackJoker Mini Shell 1.0