Skip to content

Latest commit

 

History

History
39 lines (34 loc) · 1.2 KB

File metadata and controls

39 lines (34 loc) · 1.2 KB

Introduction

The poll is fully customizable, It saves data in json files based on user's IP address.

Example Url

http://c.404.ge/

Installation

define("DIR", __DIR__);
include("studio404_ajax.php"); 
include("studio404_poll.php"); 

if(
	studio404_ajax::method("GET","ajax") && 
	is_numeric(studio404_ajax::method("GET","qid")) && 
	is_numeric(studio404_ajax::method("GET","aid"))
){
	$studio404_ajax = new studio404_ajax(); 
	$studio404_ajax->receiver(); 
}

$main_options = array(
	"poll_id"=>"1", /* Poll unique ID */
	"header_text"=>"გამოკითხვა", /* Poll header text */
	"poll_question"=>"მოგწონთ ჩვენი გამოკითხვის მოდული ?", /* Poll Question */
	"poll_answers"=>array(
		"ძალიან მომწონს", 
		"მომწონს", 
		"კარგია",
		"არაუშავს", 
		"არა"
	), /* Poll possible answers, You can have as many as you want */
	"please_wait"=>"გთხოვთ დაიცადოთ ...", /* waiting text */
	"temp_path"=>"_temp/" /* Temp folder path, recommending file permition 0755 */
);

$studio404_poll = new studio404_poll(); 
$studio404_poll->lanch($main_options);