<?php

//UTF8-sampler: Τη γλώσσα μου έδωσαν ελληνική	
/******************************************************************************
 MachForm
  
 Copyright 2007 Appnitro Software. This code cannot be redistributed without
 permission from http://www.appnitro.com/
 
 More info at: http://www.appnitro.com/
 ******************************************************************************/
 	
 	//this function simply generate a pair of question and answer array
 	function mf_get_text_captcha(){
 		$captcha_text[0]['question'] = '2 + 2 = ?';
 		$captcha_text[0]['answer']	 = '4';

 		$captcha_text[1]['question'] = '5 + 3 = ?';
 		$captcha_text[1]['answer']	 = '8';

 		$captcha_text[2]['question'] = '2 + 4 = ?';
 		$captcha_text[2]['answer']	 = '6';

 		$captcha_text[3]['question'] = '6 + 2 = ?';
 		$captcha_text[3]['answer']	 = '8';

 		$captcha_text[4]['question'] = '8 + 1 = ?';
 		$captcha_text[4]['answer']	 = '9';

 		$captcha_text[5]['question'] = '7 + 1 = ?';
 		$captcha_text[5]['answer']	 = '8';

 		$captcha_text[6]['question'] = '3 + 4 = ?';
 		$captcha_text[6]['answer']	 = '7';

 		$captcha_text[7]['question'] = '4 + 2 = ?';
 		$captcha_text[7]['answer']	 = '6';

 		$captcha_text[8]['question'] = '2 + 3 = ?';
 		$captcha_text[8]['answer']	 = '5';

 		$captcha_text[9]['question'] = '1 + 2 = ?';
 		$captcha_text[9]['answer']	 = '3';

 		$captcha_text[10]['question'] = 'جمع 2 + 2 چند میشود ?';
 		$captcha_text[10]['answer']	  = '4';

 		$captcha_text[11]['question'] = 'جمع 5 + 3 چند میشود ?';
 		$captcha_text[11]['answer']	  = '8';

 		$captcha_text[12]['question'] = 'جمع 2 + 4 چند میشود ?';
 		$captcha_text[12]['answer']	  = '6';

 		$captcha_text[13]['question'] = 'جمع 6 + 2 چند میشود ?';
 		$captcha_text[13]['answer']	  = '8';

 		$captcha_text[14]['question'] = 'جمع 8 + 1 چند میشود ?';
 		$captcha_text[14]['answer']	  = '9';

 		$captcha_text[15]['question'] = 'جمع 7 + 1 چند میشود ?';
 		$captcha_text[15]['answer']	  = '8';

 		$captcha_text[16]['question'] = 'جمع 3 + 4 چند میشود ?';
 		$captcha_text[16]['answer']	  = '7';

 		$captcha_text[17]['question'] = 'جمع 4 + 2 چند میشود ?';
 		$captcha_text[17]['answer']	  = '6';

 		$captcha_text[18]['question'] = 'جمع 2 + 3 چند میشود ?';
 		$captcha_text[18]['answer']	  = '5';

 		$captcha_text[19]['question'] = 'جمع 1 + 2 چند میشود ?';
 		$captcha_text[19]['answer']	  = '3';

 		$captcha_text[20]['question'] = 'پایتخت ایران کدام استان می باشد?';
 		$captcha_text[20]['answer']	  = 'تهران';

 		$captcha_text[21]['question'] = 'عدد 1325 را در فیلد زیر وارد کنید';
 		$captcha_text[21]['answer']	  = '1325';

 		$captcha_text[22]['question'] = 'عدد 1555 را در فیلد زیر وارد کنید';
 		$captcha_text[22]['answer']	  = '1555';

 		$captcha_text[23]['question'] = 'عدد 453 را در فیلد زیر وارد کنید';
 		$captcha_text[23]['answer']	  = '453';

 		$captcha_text[24]['question'] = 'عدد 110 را در فیلد زیر وارد کنید';
 		$captcha_text[24]['answer']	  = '110';

 		$captcha_text[25]['question'] = 'عدد 1371 را در فیلد زیر وارد کنید';
 		$captcha_text[25]['answer']	  = '1371';

 		$captcha_text[26]['question'] = 'عدد 12536 را در فیلد زیر وارد کنید';
 		$captcha_text[26]['answer']	  = '12536';

 		$captcha_text[27]['question'] = 'برج میلاد در کدام استان میباشد? ';
 		$captcha_text[27]['answer']	  = 'تهران';

 		$random_key = array_rand($captcha_text,1);
 		$result_captcha = $captcha_text[$random_key];

 		return $result_captcha;

 	}
 ?>