<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja"> <head> <meta name="viewport" content="width=device-width, initial-scale=1.0" charset="utf-8"> <link href="css/bootstrap.min.css" rel="stylesheet" media="screen"> <title>bbs</title> </head> <body class="text-center"> <?php require_once "functions.php"; if (!empty($_POST["sentence"])) { if (isset($_POST["sentence"])) { if (!@$_SESSION["time"]) { $_SESSION["time"] = 1; } $keyCheck = keyCheck($_POST["key"]); if ($_SESSION['time'] < time() && $keyCheck) { $name = convString($_POST["name"]); $sentence = convString($_POST["sentence"]); $key = $_POST["key"]; date_default_timezone_set('Asia/Tokyo'); $body = "\n" . date('Y/m/d A h:i:s') . "\n" . $name . "\n" . $sentence . "\n" . $key . "\n"; $fp = @fopen("./data.txt", "a"); flock($fp, LOCK_EX); fputs($fp, $body); fclose($fp); $time = time() + 30; $_SESSION["time"] = $time; ?> <br> <h3>投稿しました。</h3>
foreach ($info['neededColumns'] as $column) { $column = 'Post ' . $postNumber . ' ' . $column; $allColumnsNeeded[$column] = true; } foreach ($info['outputColumns'] as $column) { $column = 'post' . $postNumber . '_' . $column; $allColumnsOutput[$column] = true; } } } foreach ($allColumnsOutput as &$column) { $column = null; } unset($column); foreach (array_keys($allColumnsNeeded) as $column) { $errors = keyCheck($proc, $column, $errors, $_SESSION['Condition']['Procedure']); } include 'shuffleFunctions.php'; #### Create $_SESSION['Trials'] #### Load all Stimuli and Procedure info for this participant's condition then combine to create the experiment // load stimuli for this condition then block shuffle $cleanStimuli = GetFromFile($_FILES->stim_files . '/' . $_SESSION['Condition']['Stimuli']); $stimuli = multiLevelShuffle($cleanStimuli); $stimuli = shuffle2dArray($stimuli, $_CONFIG->stop_at_login); $_SESSION['Stimuli'] = $stimuli; // load and block shuffle procedure for this condition $cleanProcedure = GetFromFile($_FILES->proc_files . '/' . $_SESSION['Condition']['Procedure']); $addColumns = array('Text'); foreach ($addColumns as $add) { foreach ($trialTypeColumns as $number => $colName) { // check all trial type levels we found