/*************************************************************
ファイル名:cont_session.php
--------------------------------------------------------------
内 容:セッションへ値をセットして飛び先を振り分けるプログラム
テンプレート無し
--------------------------------------------------------------
作成者:亘
作成日:2005.02.01
--------------------------------------------------------------
備 考:
**************************************************************/
require_once('../prepare.php');
require_once('../config.php');
require_once('./lib/config_bbs.php');
require_once('./lib/bbs_function.php');
/*
//- 会員登録チェック開始
$db_member = u4user_open();
$user_prof = bsc_get_user_profile($db_member,$p['uid'],'0');
u4user_close($db_member);
if(!$user_prof){
header("Location: ".BSC_BASE_URL."signup/free_reg_top.php?uid=NULLGWDOCOMO&p[contents]=bbs");
exit;
}
//- 会員登録チェック終了
//- メールアドレス登録チェック ---- !! テスト時はスルー 本番移行時に稼動
if(empty($user_prof['mem_eml']) && $_SERVER['REMOTE_ADDR'] != '219.118.172.30'){
header("Location: ".BSC_BASE_URL."mail_reg/mail_send.php?uid=NULLGWDOCOMO&p[contents]=bbs");
exit;
}
*/
function bbs_session($p)
{
if(constant('BBS_DEBUG_MODE')){
print "
--- bbs_session Param ---
";
print "
"; print_r($p); print ""; } bsc_session(); // session_start(); // パラメータを一度すべてセッションに foreach($p as $key => $val){ $_SESSION['param'][$key] = $val; } /* if(constant('BBS_DEBUG_MODE')){ print "
"; print_r($_SESSION); print ""; } */ $next_url = ""; // ページ名をパラメータで渡し、それにより処理を振り分ける switch($p['p_name']){ // 材料入力ページ case 'bbs_post2': // 初期値チェック /* if(($p['amount'] == "") or (!preg_match("/^[0-9]{1}$/", $p['amount']))){ $message = "人数分を入力してください。"; bsc_error($message,$p,"/bbs/bbs_top.php"); exit; } */ // unitの数値チェックも必要か・・ for($i=1;$i<=5;$i++){ if(!empty($p['little'.$i])){ //print "little -> ".$p['little'.$i]; //print "