$val){ $_SESSION['param'][$key] = $val; } $_SESSION['page']['pre'] = $_SESSION['page']['now']; $_SESSION['page']['now'] = 'tonari_baseconf.php'; //デバッグ処理 if(constant('BBS_DEBUG_MODE')){ print "
--- tonari_baseconf.php Top SESSION ---
"; print "
";
		print_r($_SESSION);
		print "
"; } // 初期値チェック if(strlen($_SESSION['param']['cmt']) > '50'){ $message = "コメントが長すぎます。"; bsc_error($message,$p,"/tonari/tonari_post1.php"); exit; } if(preg_match('/bbs_post3_1.php/',$_SESSION['page']['pre'])){ // パラメータを一度すべてセッションに foreach($p as $key => $val){ $_SESSION['param'][$key] = $val; } // 初期値チェック if(strlen($_SESSION['param']['cmt']) > '50'){ $message = "コメントが長すぎます。"; bsc_error($message,$p,"/tonari/tonari_post1.php"); exit; } } $template =& loadTemplate( $p ); $template->setVariable('contents_top',TONARI_NAME); $template->setVariable('rcp_nm',htmlspecialchars($_SESSION['param']['nm'])); $template->setVariable('rcp_cmt',htmlspecialchars($_SESSION['param']['cmt'])); $template->setVariable('user_name',$main_arr[$_SESSION['param']['user_name']]); $template->show(); } tonari_baseconf($p); ?>