'I', 'You', 'He/she/it', 'We', 'You', 'They'); $be = array(1 => 'am', 'are', 'is', 'are', 'are', 'are'); $words = explode(' ', $verb); // if there is a preposition after the verb $question = $persons[$person].' '; if ($negative) { if ($words[0]=='be') { $question .= $be[$person] . " not"; } else { if ($person==3) $question .= "does not $words[0]"; else $question .= "do not $words[0]"; } } else { if ($words[0]=='be') { $question .= $be[$person]; } else { if ($person==3) $question .= eng3sgVerb($words[0]); else $question .= $words[0]; } } for ($i=1; $i5) $numberOfMissingLetters = 1; } $fntClass = 'pers'; if (isset($_POST['fontclass'])) { $fntClass = $_POST['fontclass']; } $basic = isset($_GET['basic']); $title = "Combined Test of Present Indicative $numberOfMissingLetters Missing Letter".($numberOfMissingLetters>1?"s":""); if ($basic) $title .= " (Basic Verbs)"; //#################################### // Sending a letter to the instructor if (isset($_POST['sendinfo'])) { $stname = htmlspecialchars($_POST['stname']); $email = htmlspecialchars($_POST['email']); if ($_POST['univer']=='University of Texas at Austin') { $sql = "INSERT INTO test_results (`date`, `name`, `email`, `othertest_id`, `grade`, `comment`) VALUES ('".date('Y-m-d H:i:s')."', '$stname', '$email', ".(25+$numberOfMissingLetters+($basic?0:5)).", 'A', '');"; mysql_query($sql) or die(mysql_error()); } $mailtext = "This is the letter from the $title Test page. {$_POST['stname']} from {$_POST['univer']} has successfully answered all the questions of this test! His/her e-mail is {$_POST['email']} Best regards, Persian Test System {$_SERVER['HTTP_REFERER']}"; $uri = $_SERVER['HTTP_REFERER']; $header = "From: {$_POST['email']}\n" ."MIME-Version: 1.0\n" ."Content-Type: text/plain; charset=\"windows-1252\"\n" ."Content-Transfer-Encoding: 7bit\n"; if ($_POST['univer']=='University of Michigan') { $mb = 0; $mailto = "aghaeib@umich.edu"; } elseif ($_POST['univer']=='South Orange County Community College District') { $mb = 1; $mailto = "monird@cox.net"; } elseif ($_POST['univer']=='UT Informal Class') { $mb = 2; $mailto = "blake.atwood@gmail.com"; } else { $mb = 3; $mailto = "connieb@gmail.com"; } $subject = $title; $uri = base64_encode($uri); $error = "Sorry. This service is unavailable right now. Try to send a e-mail later."; /* $PostData = "mb=$mb&sbj=$subject&stname=$stname&email=$email&uri=$uri"; $len = strlen($PostData); $fp = fsockopen("students.washington.edu", 80, $errno, $errstr, 30); if ($fp) { fputs($fp, "POST /irina/tests/emailer.php HTTP/1.1 User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;.NET CLR 1.1.4322; .NET CLR 2.0.50215) Host: students.washington.edu Connection: close Content-Type: application/x-www-form-urlencoded Content-Length: $len $PostData"); $page = ""; while (!feof($fp)) $page .= fgets($fp, 128); fclose($fp); if (substr($page, strlen($page)-6)=="SENDOK") { $sent = true; $error = ""; } // echo ""; } */ // header("Location: http://students.washington.edu/irina/tests/emailer.php?mb=$mb&sbj=$subject&stname=$stname&email=$email&uri=$uri"); // exit(); $sent = mail($mailto, "Persian Test System - $title", $mailtext, $header); exit(" $title

".($sent?"Your results have successfully been sent to your Instructor!":$error)."

Back to the Persian Tests "); } //################### // Check the answer $wrong = false; if (isset($_POST['data'])) { $counter = intval($_POST['counter']); $data = $_POST['data']; $newdata = explode(":", base64_decode($data)); $randomVerb = $newdata[0]; $engVerb = $newdata[1]; $person = $newdata[2]; $letters = explode(",", $newdata[3]); $qletters = explode(",", $newdata[4]); $textname = $newdata[5]; $query = "SELECT * FROM verb_list WHERE ".($isPersScript?"pers":"trans")."=\"$randomVerb\";"; $r = mysql_query($query); $row = mysql_fetch_assoc($r); $presStem = ($isPersScript) ? $row['pers_pres'] : $row['trans_pres']; $presStemTrans = $row['trans_pres']; $correct = true; for ($i=0; $i $letter) { $nletters[] = $lindex + 1; } if ($numberOfMissingLetters>=count($nletters)) { $qletters = $nletters; } else { $ar_ind = array_rand($nletters, $numberOfMissingLetters); if ($numberOfMissingLetters==1) { $qletters = array($nletters[$ar_ind]); } else { $qletters = array(); for ($i=0; $i<$numberOfMissingLetters; $i++) { $qletters[] = $nletters[$ar_ind[$i]]; } array_multisort($qletters); } } // if the yeh of mim-yeh-zwnj- is questioned and zwnj is not, add zwnj $has2 = false; $pos2 = 0; $has3 = false; $pos3 = 0; for ($i=0; $i 50) { print "

$title

\n"; print "

You have answered all questions correctly. Fill the form and click the button to send the results to your instructor:

\n"; include("emailform.php"); exit(); } ?>

Question out of 50

Please translate the verb "to " in the Present Indicative by filling in the missing letter1) print "s"?>.
Please note: the nim-fāsele (ZWNJ) is considered a letter and counts! You will find it on shift-b.

".GetQuestion($person, false, $engVerb); ?>

0) print "‍"; print ""; if ($i

Keyboard layout, unshifted




Persian Verb Conjugator

Back to the Basic Verb Conjugation Tests

Back to the Persian Tests