\n";
$html_error.="
このページは「myTOKYOGASビジネス」会員限定のコンテンツです。
\n";
$html_error.="以下よりログインしてご覧ください。
\n";
$html_error.="
\n";
$html_error.="
\n";
$html_error.="\n";
//ドキュメントルート取得
$doc=getenv('DOCUMENT_ROOT');
//-を/に置換
$pas_id = str_replace("/","",$_GET["id"]);
$pas_id = str_replace("-","/",$pas_id);
$pas_id = str_replace(" ","",$pas_id);
$pas_id = str_replace(">","",$pas_id);
$pas_id = str_replace(">","",$pas_id);
$pas_id = str_replace('"','',$pas_id);
$pas_id = str_replace('.','',$pas_id);
$pas_id = str_replace('=','',$pas_id);
$pas_id = str_replace('(','',$pas_id);
$pas_id = str_replace(')','',$pas_id);
$pas_id = str_replace('javascript:','',$pas_id);
//ログイン状態チェック(セッションに値が格納されているかで判断)
if(isset($_SESSION['sess_tgc_client']['account_info']) and $_SESSION['sess_tgc_client']['account_info']!=""){
//idが取得できていればhtmlを取得する処理にそうで無い場合はログイン画面に
//置換したIDをセット(取得するhtmlはindex.html固定)
$pas_tmp = $doc."/service/saitekichubo/asdfwefwsefdsadsweadfgvhrte/".$pas_id."/index.html";
//パスからhtml取得
$html = file_get_contents($pas_tmp);
if($html===FALSE){
header("Location: ".$html_action_error);
exit;
}
}else{
//ログイン画面への警告画面を取得
$pas_tmp = $doc."/service/saitekichubo/asdfwefwsefdsadsweadfgvhrte/".$pas_id."/index.html";
//パスからhtml取得
$html = file_get_contents($pas_tmp);
if($html===FALSE){
header("Location: ".$html_action_error);
exit;
}else{
$html_temp3 = explode("",$html);
$html_temp1 = $html_temp3[0];
// $html_temp1 = strstr($html,"", true);
$html_temp1 = str_replace("");
$html = $html_temp1.$html_error.$html_temp2;
}
}
//取得したhtmlを出力
$html_ary=explode("\n",$html);
foreach ($html_ary as $key => $val) {
if(strpos($val,'', '', $pas_id);
$pas_id=str_replace('\t', '', $pas_id);
$pas_id=trim($pas_id);
$pas_tmp = $doc.$pas_id;
$html_include = file_get_contents($pas_tmp);
$html=str_replace($val,$html_include, $html);
}
}
echo $html;?>