if ($isURIMobile) { ini_set("default_charset", "SJIS"); } // セッションパス用ディレクトリ作成 if (!is_dir("/tmp/" . $_config["define"]["PROJECT_NAME"] . "/www")) { if (!is_dir("/tmp/" . $_config["define"]["PROJECT_NAME"])) { mkdir("/tmp/" . $_config["define"]["PROJECT_NAME"]); } mkdir("/tmp/" . $_config["define"]["PROJECT_NAME"] . "/www"); } $sessionSetOption = array("save_path" => "/tmp/" . $_config["define"]["PROJECT_NAME"] . "/www", "name" => $sesName, "gc_maxlifetime" => 60 * 60 * 24 * 7); } if (!ComSession::isStarted()) { ComSession::setOptions($sessionSetOption); if ($sessionId) { ComSession::setId($sessionId); } ComSession::start(); } // アクセスページ名 $accessPageName = $controllerOBJ->convertActionName($requestOBJ->getActionName()); // common用エラーセッション $ComErrSessOBJ = new ComSessionNamespace("common_err"); // セッションにセットします $userSessOBJ = new ComSessionNamespace("user"); $getRequestOBJ = new ComRequest(); $affiliateParam = $getRequestOBJ->getAllParameter("", "get"); $advCd = $affiliateParam["advcd"]; // 検索アドコード取得 if (preg_match("/^http:\\/\\/www.google.co.jp\\/search\\//", $server["HTTP_REFERER"])) { $advCd = $_config["define"]["GOOGLE_AD_CD_PC"];