"; print_r($p); print ""; */ //$this->db = cs4_open(); $template =& loadTemplate( $p ); // session_start(); bsc_session(); if(constant('BBS_DEBUG_MODE')){ print "
";
print_r($_SESSION);
print "
"; } $_SESSION['page']['pre'] = $_SESSION['page']['now']; $_SESSION['page']['now'] = 'bbs_post3_1.php'; // 通常の遷移のみチェックする if(preg_match('/bbs_post3.php/',$_SESSION['page']['pre'])){ for($i=6;$i<=10;$i++){ // 画面遷移が通常であり、なおかつ配列が存在しない場合 if(!array_key_exists('method'.$i,$_SESSION['param'])){ $_SESSION['param']['method'.$i] = ""; } } } // 作り方についてデフォルト値をセット for($i=6;$i<=10;$i++){ $template->setVariable('method'.$i,$_SESSION['param']['method'.$i]); } $template->setVariable('contents_top',BBS_NAME); //$template->setVariable('second_button',SUBMIT_COOK_CHAR_SECOND); $template->setVariable('next_button',SUBMIT_COOK_CHAR_NEXT); $template->show(); //cs4_close($this->db); if(constant('BBS_DEBUG_MODE')){ print "
--- Bottom 
"; print_r($_SESSION); print "
"; } } bbs_post3_1($p); ?>