"; } NameVerify($name,$id); $in_date = DatePrint(time()); $msg = JOINA."".$name."".JOINB.$in_host.$in_date.HR; WriteLog($msg); } function LogOut($name,$ncolor){ $name = CleanStr($name); $out_date = DatePrint(time()); $msg = EXITA."".$name."".EXITB.$out_date.HR; WriteLog($msg); ShowHeader(); echo '

'.$name.'さん、ご利用ありがとうございました

'; } function DispForm(){ global $Colors,$Reload,$title,$top_body; list($cname, $cemail, $cretime, $ccolor)=@explode("\t", $_COOKIE['chat_cook']); echo $top_body.$title; ?>
おなまえ 記入してね!
名前色を選んでね! 選択
"; if ($ccolor == $Colors[$cl]){ echo ""; echo "\n"; } else{ echo ""; echo "\n"; } } ?>
Eメール
リロード
<BODY>フレーム必須</BODY> EOT; } switch($act){ case 'form': $meta = << META; ShowHeader($headtitle,$meta); DispForm(); break; case 'login': $ncolor = ($colorb) ? $colorb : $colora; $name = substr($name, 0, NAMEMAX); $email = substr($email, 0, EMAILMAX); $name = CleanStr($name); $_SESSION['name'] = $name; $_SESSION['email'] = CleanStr($email); $_SESSION['mcolor'] = CleanStr($mcolor); $_SESSION['ncolor'] = CleanStr($ncolor); $_SESSION['retime'] = $retime; $_SESSION['line'] = $defline; Login($name,$email,$ncolor,$retime); DispMain("main.php", "act=post"); break; case 'logout': LogOut($name,$ncolor); unset($name); if(get_cfg_var('register_globals')) session_unregister('name'); else unset($_SESSION['name']); break; default: ShowHeader($headtitle); DispMain($PHP_SELF, "act=form"); break; } ?>