get("rss"); $sub_category = $request->get("s"); // サブカテゴリ $lang = $request->get("l"); // 言語 //5桁じゃない場合はエラー $errMsg = "ご指定のRSSは閲覧できません。"; if ( trim($channelID) != "" && strlen($channelID) != 5 ){ die( $errMsg ); } if ( strlen(trim($channelID)) == 0 ){ if ( $lang == "j" ) { $filename = "/export/home/httpd/html/template/cms/new/info_list.xml"; } else { $filename = "/export/home/httpd/html/template/cms/new/e_info_list.xml"; } } else { if ( $lang == "j" ) { switch($channelID) { case "C0003": $filename = "/export/home/httpd/html/template/cms/press/index.xml"; break; } } else { switch($channelID) { case "C0003": $filename = "/export/home/httpd/html/template/cms/press/e_index.xml"; break; } } } // PHPのデフォルトエンコーディング指定 mb_internal_encoding("UTF-8"); mb_http_output("UTF-8"); mb_detect_order("UTF-8"); ob_end_clean(); $filetype = "text/xml; charset=utf-8"; header("Content-Type: " . $filetype ); readfile($filename); ?>