�s�b�^���܂��߂łƂ������`�I�I
���̉�ʂ͂Ȃ��Ȃ�����Ȃ��̂ŋM�d�����B
���Ȃ��͐�y�Ɠ����ŁA
���h�ȕ��ϓI�T�����[�}�������I
�ǂ��܂ł��‚��čs�������`�I
by �і약��

"; $trynext1 = "�����������i�w��50��ڎw����
�`�������W���Ă��������I"; //�΍��l45�ȉ��������� $comment2 = "������Ɩ�肪��߂����������I�H
���T�A�ԑg�𒮂��ĕ׋����������I
by �і약��

���Ȃ��̈�����i�N���X��"; $trynext2 = "�����������i�w��50��ڎw����
�`�������W���Ă��������I"; //�΍��l55�ȏゾ������ $comment3 = "�X�S�C�����I
���Ȃ��͖l�������ȁ`��D�G�����I�����������I
���H�l�Ɣ�ׂ��Ă�����܂�������Ȃ��������H
�E�E�E�����������B�����܂�������B
by �і약��

���Ȃ��̈�����i�N���X��"; $trynext3 = "�����������i�w��50��ڎw����
�`�������W���Ă��������I"; //�΍��l45�`55�������� $comment4 = "���߂łƂ������I�I
���Ȃ��͈�����y�Ɠ�����
���ϓI�ȃT�����[�}�������I
��y�݂����ɑ��h��������I
by �і약��

���Ȃ��̈�����i�N���X��"; $trynext4 = "�����������i�w��50��ڎw����
�`�������W���Ă��������I"; //�G���[�t���O�ݒ� $errFlg = 0; //�N�b�L�[���f�[�^�擾 $abename = $_COOKIE['abename']; $abeindex = $_COOKIE['abeindex']; //�ŏ㕔HTML�쐬 if (!empty($abename)) $tophtml1 = "�悤����" . $abename . "����B"; if (!empty($abeindex)) { $abeindexhd = round($abeindex, 1); $tophtml2 = "���Ȃ��̌��݂̃A�x���[�W�w����" . $abeindexhd . "�ł��B"; } if (!empty($abename) || !empty($abeindex)) { $tophtml = "{$tophtml1}{$tophtml2}"; } //�u���̖��ցv�������́u���ʂ�����v�{�^���������ꂽ�ꍇ if ($_POST['next'] || $_POST['result']) { // �����擾�iPOST�j if ($_SERVER["REQUEST_METHOD"] == "POST") { foreach($_POST as $k => $v){ // �umagic_quotes_gpc = On�v�̂Ƃ��̓G�X�P�[�v���� if (get_magic_quotes_gpc()) { $v = stripslashes($v); } $v = htmlspecialchars($v); $$k = $v; } } else { exit(); } //�G���[����y��ID�X�V if (!strlen($answer)) { $errFlg = 1; $errTxt = "
�񓚂��I������Ă��܂���B
"; $id = $id; } else { $id ++; } //�_���v�Z $total += $answer; } else { // �����擾�iGET�j if ($_SERVER["REQUEST_METHOD"] == "GET") { foreach($_GET as $k => $v){ // �umagic_quotes_gpc = On�v�̂Ƃ��̓G�X�P�[�v���� if (get_magic_quotes_gpc()) { $v = stripslashes($v); } $v = htmlspecialchars($v); $$k = $v; } } else { exit(); } } //�u���ʂ�����v�{�^���������ꂽ�ꍇ if ($_POST['result']) { //txt�t�@�C���̊e�s��z��Ƃ���$lines�ɑ�� $lines = file($filename); //$lines��$total��lj� $people = array_push($lines, $total); //���_���v $sum = array_sum($lines); //���ϓ_�Z�o $average = $sum / $people; if ($average == $total) { $abeindex = 50; } else { //�W���΍��Z�o for ($i = 0; $i < $people; $i++) { $point = $lines[$i]; $point = rtrim($point); $tmp = ($point - $average) * ($point - $average); $tmps += $tmp; } $stand = ($tmps / $people); $standard = sqrt($stand); //�΍��l�Z�o $abeindex = (($total - $average) / $standard * 10) + 50; } //�����p������쐬 $line = $total . "\n"; if ($line != null) { //�t�@�C���ɓ��_������ $file = fopen($filename, 'a'); flock($file, LOCK_EX); fwrite($file, $line); flock($file, LOCK_UN); fclose($file); } //���L���� $nextnotice = "������̎���̓����͍��[�́u�����̉𓚁v���炲���������B"; //�N�b�L�[�̗L��������90���ɃZ�b�g $expire = time() + 3600 * 24 * 90; //�΍��l���N�b�L�[�ɃZ�b�g setcookie("abeindex", $abeindex, $expire); //�u���ʂ�����v�{�^���������Ă��Ȃ��ꍇ } else { $nextnotice = " "; } ?> ���A������i���N�C�Y�ŕ����� ���Ȃ��̈�����i�w����<? echo($quiztitle); ?> by <? echo($prsnttr); ?>
�N�C�Y�ŕ�����@���Ȃ��̈�����i�w��
AVERAGE BUSINESSMAN INDEX
�����̏o��ҁF<? echo($prsnttr); ?>
���Ȃ��̈�����i�w��
RESULT; //�΍��l50�������� if ($abeindex == 50) { echo <<< RESULT1
50
{$comment1}


���̃t���b�V���R���e���c���������������ɂ�FLASH PLAYER 8�ȏオ�K�v�ł��B

����������FLASH PLAYER���_�E�����[�h�����������B
{$trynext1}
RESULT1; //�΍��l45�ȉ��������� } else if ($abeindex <= 45) { echo <<< RESULT2
$abeindexrd
{$comment2}
�і약��
{$trynext2}
�ă`�������W
RESULT2; //�΍��l55�ȏゾ������ } else if ($abeindex >= 55) { echo <<< RESULT3
$abeindexrd
{$comment3}
���J�E
{$trynext3}
�ă`�������W
RESULT3; //�΍��l45�`55�������� } else { echo <<< RESULT4
$abeindexrd
{$comment4}
������i
{$trynext4}
�ă`�������W
RESULT4; } //������� } else { echo <<< START1
{$quiztitle1}
{$quiztitle2}
by {$prsnttr}
START1; include("start.php"); echo <<< START2
�N�C�Y���n�߂�
START2; } ?>
�� ����̃N�C�Y�̉𓚂́A�S��𓚌�y�[�W�����Ɍ����u�����̉𓚁v�{�^����育�����������܂��B ANSWER; } ?>
{$alt}�̉� ANSWER1; } else { echo <<< ANSWER2   ANSWER2; } ?>
COPYRIGHT(c)TOKYO FM Broadcasting Co.,Ltd. ALL RIGHTS RESERVED. CLOSE