if (!tep_session_is_registered('currency') || isset($HTTP_GET_VARS['currency']) || USE_DEFAULT_LANGUAGE_CURRENCY == 'true' && LANGUAGE_CURRENCY != $currency) { if (!tep_session_is_registered('currency')) { tep_session_register('currency'); } if (isset($HTTP_GET_VARS['currency']) && $currencies->is_set($HTTP_GET_VARS['currency'])) { $currency = $HTTP_GET_VARS['currency']; } else { $currency = USE_DEFAULT_LANGUAGE_CURRENCY == 'true' && $currencies->is_set(LANGUAGE_CURRENCY) ? LANGUAGE_CURRENCY : DEFAULT_CURRENCY; } } // navigation history if (!tep_session_is_registered('navigation') || !is_object($navigation)) { tep_session_register('navigation'); $navigation = new navigationHistory(); } $navigation->add_current_page(); // action recorder include 'includes/classes/action_recorder.php'; // Shopping cart actions if (isset($HTTP_GET_VARS['action'])) { // redirect the customer to a friendly cookie-must-be-enabled page if cookies are disabled if ($session_started == false) { tep_redirect(tep_href_link(FILENAME_COOKIE_USAGE)); } if (DISPLAY_CART == 'true') { $goto = FILENAME_SHOPPING_CART; $parameters = array('action', 'cPath', 'products_id', 'pid'); } else { $goto = basename($PHP_SELF); if ($HTTP_GET_VARS['action'] == 'buy_now') { $parameters = array('action', 'pid', 'products_id');
/** * セッションIDがパラメータとしてわたってきていない場合は * セッション付きURLでリロード */ function initSession() { global $session_started; if ($this->isMobile() && !isset($_POST[zen_session_name()]) && !isset($_GET[zen_session_name()])) { require_once DIR_WS_CLASSES . 'navigation_history.php'; $navigation = new navigationHistory(); $navigation->add_current_page(); $navigation->set_snapshot(); $snapshot_parameter_array = $navigation->snapshot['get']; $self_href = zen_href_link($navigation->snapshot['page'], zen_array_to_string($snapshot_parameter_array), $navigation->snapshot['mode']); //$self_href .= "&" . zen_session_name() . '=' . zen_session_id(); zen_redirect($self_href); } return true; }