/*************************************************************
ファイル名:tonari_baseconf.php
--------------------------------------------------------------
内 容:基本情報確認
--------------------------------------------------------------
作成者:Aida
作成日:2005.05.24
--------------------------------------------------------------
備 考:
**************************************************************/
require_once('../prepare.php');
require_once('../config.php');
require_once('./lib/config_bbs.php');
require_once('./lib/bbs_function.php');
//- メンバーチェック
/*
if("e" == $p['carrier']){
chdir(dirname(__FILE__) . "/authcheck");
require_once("../authcheck/authcheck.php");
chdir(dirname(__FILE__));
}
*/
$db = u4user_open();
if(!get_UserDetail_uid($db, $p['uid'], '0', '1') && MEMBER_CHECK){
header("Location: " . MEMBER_REGIST_URL . "?p[contents]=" . substr(strrchr(dirname( __FILE__ ) , '/'), 1));
exit;
}
function tonari_baseconf($p){
bsc_session();
// パラメータを一度すべてセッションに
foreach($p as $key => $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); ?>