$hr_3style = "style=\"width:100%; height:1px; margin:2px 0 ; padding:0; background:{$hr_3color}; border:1px solid {$hr_3color};\""; $hr_4style = "style=\"width:100%; height:1px; margin:2px 0 ; padding:0; background:{$hr_4color}; border:2px solid {$hr_4color};\""; $hr_5style = "style=\"width:100%; height:1px; margin:2px 0 ; padding:0; background:{$hr_5color}; border:2px solid {$hr_5color};\""; $input_e_style = ""; $input_e = "mode=\"alphabet\""; $input_m_style = ""; $input_m = "mode=\"numeric\""; } $contentType = "application/xhtml+xml"; // PCその他の場合 } else { $xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"; $docType = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n"; $docType .= "<html>\n<head>\n"; $userAgentSmartPhoneOBJ = new ComUserAgentSmartPhone(); if ($userAgentSmartPhoneOBJ->isSmartPhone() && $isURIMobile) { $docType .= "<meta name=\"viewport\" content=\"width=device-width, initial-scale=1, maximum-scale=2\">\n"; //$docType .= "<link media=\"only screen and (max-device-width:480px)\" href=\"http://image." . $_config["define"]["SITE_DOMAIN"] . "/systemtest/smart.css\" type=\"text/css\" rel=\"stylesheet\" />\n"; if (!$_config["define"]["TEST_DEVELOPMENT_FLAG"]) { // 本番環境 $docType .= "<link media=\"only screen and (max-device-width:480px)\" href=\"http://image." . $_config["define"]["SITE_DOMAIN"] . "/contents/smartcss/smart.css\" type=\"text/css\" rel=\"stylesheet\" />\n"; $docType .= "<link rel=\"stylesheet\" href=\"http://image." . $_config["define"]["SITE_DOMAIN"] . "/contents/smartcss/settle.css\" />\n"; } else { // ローカル or TEST環境 $docType .= "<link media=\"only screen and (max-device-width:480px)\" href=\"http://" . $_config["define"]["SITE_DOMAIN"] . "/i/contents/smartcss/smart.css\" type=\"text/css\" rel=\"stylesheet\" />\n"; $docType .= "<link rel=\"stylesheet\" href=\"http://" . $_config["define"]["SITE_DOMAIN"] . "/i/contents/smartcss/settle.css\" />\n"; } } $hr_1style = "size=\"1\" style=\"width:100%; color:{$hr_1color};\""; $hr_2style = "size=\"1\" style=\"width:100%; color:{$hr_2color};\""; $hr_3style = "size=\"1\" style=\"width:100%; color:{$hr_3color};\"";
// 共通ファイル読込み require_once D_BASE_DIR . "/common/doctype.php"; // 携帯端末種別・PC毎にheader,doctype 等を生成・出力する require_once D_BASE_DIR . "/common/ack.php"; // istyle等設定ファイル // デフォルトセッションキー $defaultSessionName = ini_get("session.name"); $sesName = $_config["define"]["SESSION_NAME"]; // ユーザエージェントオブジェクト作成 $useragentOBJ = new ComUserAgentMobile(); $mbUa = $useragentOBJ->getCarrier(); $mbSerialNo = $useragentOBJ->getSerialNumber(); //スマートフォン判別 $userAgentSmartPhoneOBJ = new ComUserAgentSmartPhone(); $isSmartPhone = FALSE; if ($userAgentSmartPhoneOBJ->isSmartPhone()) { $isSmartPhone = TRUE; } $server["HTTP_USER_AGENT"] = $requestOBJ->getParameter("HTTP_USER_AGENT", "", "server"); $server["QUERY_STRING"] = $requestOBJ->getParameter("QUERY_STRING", "no_escape", "server"); $server["REMOTE_ADDR"] = $requestOBJ->getParameter("REMOTE_ADDR", "", "server"); $server["HTTPS"] = $requestOBJ->getParameter("HTTPS", "", "server"); $server["HTTP_REFERER"] = $requestOBJ->getParameter("HTTP_REFERER", "", "server"); $actionKey = $requestOBJ->getActionKey(); // getParameterExceptで排除する項目 $exceptArray = array($actionKey, $sesName, $defaultSessionName, Auth::ACCESS_KEY_NAME, "guid", "mlid"); $sessionId = $requestOBJ->getParameter($sesName); $commonParam = $requestOBJ->getAllParameter(); // セッションスタート // モバイル if ($mbUa != "NonMobile" and !array_key_exists($server["REMOTE_ADDR"], $_config["common_config"]["corporation_ip_address"]) or preg_match("/" . implode("|", $_config["web_config"]["crawler_mb"]) . "/", $server["HTTP_USER_AGENT"])) {