*/ require_once D_BASE_DIR . "/common/admin_common.php"; require_once $controllerOBJ->getIncludeBusinessLogic("admInclude"); // セッションオブジェクトのインスタンス $messageSessOBJ = new ComSessionNamespace("exec_msg"); $returnSessOBJ = new ComSessionNamespace("return"); $admMonthlyCourseOBJ = AdmMonthlyCourse::getInstance(); $param = $requestOBJ->getParameterExcept($exceptArray); $msg = $messageSessOBJ->getIterator(); // セッション変数の破棄 $messageSessOBJ->unsetAll(); $smartyOBJ->assign("msg", $msg); // 入力項目の取得 $returnValue = $returnSessOBJ->return; // セッション変数の破棄 $returnSessOBJ->unsetAll(); // 商品カテゴリーデータ取得 $monthlyCourseGroupData = $admMonthlyCourseOBJ->getMonthlyCourseGroupData($param["mcgid"]); $smartyOBJ->assign("monthlyCourseGroupData", $monthlyCourseGroupData); // 表示フラグ $smartyOBJ->assign("isDisplay", AdmItem::$_isDisplay); // 登録エラーで戻った場合 if ($returnValue["return_flag"]) { $param = $returnValue; } else { $param = $monthlyCourseGroupData; } // 戻り値の取得 $smartyOBJ->assign("param", $param); $tags = array("mcgid"); $POSTparam = $requestOBJ->makePostTag($tags);
$itemPayTotal = $itemPayTotal + $val["price"]; } // アクセスキーと合計金額の更新 $updateOrderingArray["access_key"] = $OrderingOBJ->getNewAccessKey($orderingId); $updateOrderingArray["pay_total"] = $itemPayTotal; if (!$OrderingOBJ->updateOrderingData($updateOrderingArray, array("id=" . $orderingId))) { // ロールバック $OrderingOBJ->rollbackTransaction(); $errSessOBJ->errMsg[] = "予約できませんでした。"; header("Location: ./?action_SettleSelect=1" . ($comURLparam ? "&" . $comURLparam : "")); exit; } // コミット $OrderingOBJ->commitTransaction(); // カートセッション変数の破棄 $cartSessOBJ->unsetAll(); header("Location: ./?" . $requestOBJ->getActionKey() . "=1&odid=" . $updateOrderingArray["access_key"] . ($comURLparam ? "&" . $comURLparam : "")); exit; // 注文情報があれば更新 } else { // 商品の有効性を確認 if ($ItemIdList) { foreach ($ItemIdList as $val) { // 注文詳細に商品がなければ商品詳細情報を取得 $itemDetailData = $ItemOBJ->getItemData($comUserData, array("access_key" => $val)); if (!$OrderingOBJ->getOrderingDetailDataFromItemId($orderingData["id"], $itemDetailData["id"])) { $itemDetailList[] = $itemDetailData; } } // トランザクション開始 $OrderingOBJ->beginTransaction();
/** * MBログイン後クイックチャージ処理ファイル。 * * @copyright 2010 Fraise, Inc. * @author mitsuhiro nakamura */ require_once D_BASE_DIR . "/common/post_common.php"; require_once $controllerOBJ->getIncludeBusinessLogic("postInclude"); $param = $requestOBJ->getParameterExcept($exceptArray); // エラーメッセージの取得 $errSessOBJ = new ComSessionNamespace("err_msg"); if ($errSessOBJ->errMsg) { $errMsg = implode("<br>", $errSessOBJ->errMsg); $smartyOBJ->assign("errMsg", $errMsg); // セッション変数の破棄 $errSessOBJ->unsetAll(); } $OrderingOBJ = Ordering::getInstance(); $ItemOBJ = Item::getInstance(); // 注文情報の取得 if (!($orderingData = $OrderingOBJ->getOrderingDataFromAccessKey($param["odid"], $comUserData["user_id"]))) { $errSessOBJ->errMsg[] = "注文がありません。"; header("Location: ./?action_ItemList=1" . ($comURLparam ? "&" . $comURLparam : "") . "&" . $sessId); exit; } // 注文詳細リストの確認 if (!($itemList = $ItemOBJ->getOrderingDetailItemList($orderingData["id"]))) { // エラーメッセージ作成 $errSessOBJ->errMsg[] = "ご注文商品がありません。"; header("Location: ./?action_ItemList=1" . ($comURLparam ? "&" . $comURLparam : "") . "&" . $sessId); exit;
* 管理画面サポートメール一括送信作成処理ページファイル。 * * @copyright 2009 Fraise, Inc. * @author mitsuhiro nakamura */ require_once D_BASE_DIR . "/common/admin_common.php"; require_once $controllerOBJ->getIncludeBusinessLogic("admInclude"); $param = $requestOBJ->getParameterExcept($exceptArray); // セッションオブジェクトのインスタンス $returnSessOBJ = new ComSessionNamespace("return"); $execMsgSessOBJ = new ComSessionNamespace("exec_msg"); $orderingSearchSessOBJ = new ComSessionNamespace("ordering_search"); // メッセージの取得 $smartyOBJ->assign("execMsg", $execMsgSessOBJ->getIterator()); // セッション変数の破棄 $execMsgSessOBJ->unsetAll(); // 入力項目の取得 $returnValue = $returnSessOBJ->return; // セッション変数の破棄 $returnSessOBJ->unsetAll(); // 送信されたデータを設定 $mailElements["from_address"] = $param["from_address"]; $mailElements["from_name"] = $param["from_name"]; $mailElements["pc_to_address"] = $param["pc_to_address"]; $mailElements["mb_to_address"] = $param["mb_to_address"]; $mailElements["subject"] = $param["subject"]; $mailElements["text_body"] = $param["text_body"]; $tags = array("sesKey"); $POSTparam = $requestOBJ->makePostTag($tags); $URLparam = $requestOBJ->makeGetTag($tags); $smartyOBJ->assign("POSTparam", $POSTparam);
foreach ($itemList as $key => $val) { if ($val["sales_end_datetime"] != "0000-00-00 00:00:00") { $salesEndDatetimeAry[] = $val["sales_end_datetime"]; } } if (count($salesEndDatetimeAry)) { $countDownDate = min($salesEndDatetimeAry); $smartyOBJ->assign("countDownYear", substr($countDownDate, 0, 4)); $smartyOBJ->assign("countDownMonth", substr($countDownDate, 5, 2)); $smartyOBJ->assign("countDownDay", substr($countDownDate, 8, 2)); $smartyOBJ->assign("countDownHour", substr($countDownDate, 11, 2)); $smartyOBJ->assign("countDownMinute", substr($countDownDate, 14, 2)); $smartyOBJ->assign("showCountDown", $itemList[0]["id"]); } } // エラーメッセージの取得 if ($errMsgSessOBJ->errMsg) { $errMsg = implode("<br>", $errMsgSessOBJ->errMsg); $smartyOBJ->assign("errMsg", $errMsg); // セッション変数の破棄 $errMsgSessOBJ->unsetAll(); } // 表示配列を逆順にしてアサイン $smartyOBJ->assign("itemList", array_reverse($itemList)); $smartyOBJ->assign("itemTotalMoney", $itemTotalMoney); //リダイレクト決済選択処理 $settlementOBJ = Settlement::getInstance(); $settleControlData = $settlementOBJ->getSettleSelectData(); if ($settleControlData["direct_settle_name"] != "not_select") { header("Location:./?action_" . $settleControlData["direct_settle_name"] . "=1" . ($comURLparam ? "&" . $comURLparam : "")); }
require_once D_BASE_DIR . "/common/admin_common.php"; require_once $controllerOBJ->getIncludeBusinessLogic("admInclude"); $AdminUserOBJ = AdmUser::getInstance(); $offset = $requestOBJ->getParameter("offset"); if (!$offset) { $offset = 0; } $exceptArray[] = "offset"; $param = $requestOBJ->getParameterExcept($exceptArray); $smartyOBJ->assign("param", $param); $dispCnt = 20; // セッションオブジェクトのインスタンス $messageSessOBJ = new ComSessionNamespace("exec_msg"); $msg = $messageSessOBJ->getIterator(); // セッション変数の破棄 $messageSessOBJ->unsetAll(); $smartyOBJ->assign("msg", $msg); $dataList = $AdminUserOBJ->getUserSearchConditionList($param, $offset, "id DESC", $dispCnt); $totalCount = $AdminUserOBJ->getFoundRows(); $dispFirst = $offset + 1; $dispLast = $offset + count($dataList); $smartyOBJ->assign("dataList", $dataList); $smartyOBJ->assign("totalCount", $totalCount); $smartyOBJ->assign("dispFirst", $dispFirst); $smartyOBJ->assign("dispLast", $dispLast); $reloadTags = array("category_id", "offset"); $POSTParam = $requestOBJ->makePostTag($reloadTags); $reloadParam = $requestOBJ->makePostTag($reloadTags); $smartyOBJ->assign("POSTParam", $POSTParam); // 画面リロード用 $smartyOBJ->assign("reloadParam", $reloadParam);
} } } } } } } } } $getRequestOBJ->setParameter("advcd", $advCd); if ($mbUa != "NonMobile" or $isSmartPhone) { $sessId = $sesName . "=" . ComSession::getId(); } // SESSIONへの格納 if (!$userSessOBJ->affiliate_value or $affiliateParam["advcd"]) { $userSessOBJ->unsetAll(); $userSessOBJ->affiliate_value = $getRequestOBJ->makeGetTagExcept($exceptArray); // ポータルから性別、生年月日があれば、リダイレクトしてパラメータを隠す if ($affiliateParam["s"] or $affiliateParam["b"]) { if ($isURIMobile) { header("Location: " . $_config["define"]["SITE_URL_MOBILE"] . ($mbUa == "Docomo" ? "?guid=ON" . ($sessId ? "&" . $sessId : "") : ($sessId ? "?" . $sessId : ""))); exit; } else { header("Location: " . $_config["define"]["SITE_URL"]); exit; } } } // モバイルなら表示文字コードを設定する if (($mbUa != "NonMobile" or $isSmartPhone) 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"])) { // モバイルURLでなければ
* @author mitsuhiro nakamura */ require_once D_BASE_DIR . "/common/post_common.php"; require_once $controllerOBJ->getIncludeBusinessLogic("postInclude"); $param = $requestOBJ->getParameterExcept($exceptArray); $errSessOBJ = new ComSessionNamespace("err_msg"); // エラーメッセージの取得 if ($errSessOBJ->errMsg) { $errMsg = implode("<br>", $errSessOBJ->errMsg); $smartyOBJ->assign("errMsg", $errMsg); // セッション変数の破棄 $errSessOBJ->unsetAll(); } $mailSessOBJ = new ComSessionNamespace("mail_msg"); // セッション変数の破棄 $mailSessOBJ->unsetAll(); $OrderingOBJ = Ordering::getInstance(); $ItemOBJ = Item::getInstance(); $comUserData["user_id"] = 544022; // 注文の再取得 if (!($orderingData = $OrderingOBJ->getOrderingData(86086, $comUserData["user_id"]))) { // ロールバック $OrderingOBJ->rollbackTransaction(); $errSessOBJ->errMsg[] = "注文データを取得できませんでした。"; header("Location: ./?action_SettleSelect=1&" . $URLparam . ($comURLparam ? "&" . $comURLparam : "") . "&" . $sessId); exit; } // メール文言取得 $AutoMailOBJ = AutoMail::getInstance(); // 別途%変換用にセット $convAry = $OrderingOBJ->makeOrderConvertArray($orderingData);
} // セッションスタート if (!ComSession::isStarted()) { ComSession::setOptions(array("save_path" => "/tmp/" . $_config["define"]["PROJECT_NAME"] . "/baitaiAgency", "cache_expire" => 360, "cache_limiter" => "nocache", "name" => $sesName, "gc_maxlifetime" => 60 * 60 * 5)); ComSession::start(); } // 処理タイムアウトの制限を取る set_time_limit(0); $loginId = $requestOBJ->getParameter("login_id", null, "post"); $password = $requestOBJ->getParameter("password", null, "post"); $adminId = $requestOBJ->getParameter("aid", null); $adminIdOBJ = new ComSessionNamespace("admin_id"); // 代理店URLからのアクセスはセッション破棄 if (!$requestOBJ->getActionName()) { // セッション変数の破棄 $adminIdOBJ->unsetAll(); } if ($adminId) { $adminIdOBJ->admin_id = $adminId; } else { if ($adminIdOBJ->admin_id) { $adminId = $adminIdOBJ->admin_id; } else { // セッション変数の破棄 $adminIdOBJ->unsetAll(); } } // アクセス時のIPアドレス $server["REMOTE_ADDR"] = $requestOBJ->getParameter("REMOTE_ADDR", "", "server"); // 管理画面からのアクセスは、IPアドレスチェックはしない if ($adminId) {