header("HTTP/1.0 500 "); echo rawurlencode($e->getMessage()) . ' (' . $e->getCode() . ')'; } exit; } if (isset($_GET['ctg']) && $_GET['ctg'] == 'checkout' && $_GET['checkout'] && $_SESSION['s_login']) { try { /**Handles cart and catalog*/ include "catalog.php"; } catch (Exception $e) { $smarty->assign("T_EXCEPTION_TRACE", $e->getTraceAsString()); $message = $e->getMessage() . ' <a href = "javascript:void(0)" onclick = "eF_js_showDivPopup(event, \'' . _ERRORDETAILS . '\', 2, \'error_details\')">' . _MOREINFO . '</a>'; $message_type = failure; } } else { $smarty->assign("T_CART", cart::prepareCart()); } if (isset($_SESSION['s_login']) && ($GLOBALS['currentTheme']->options['sidebar_interface'] == 2 && $GLOBALS['currentTheme']->options['show_header'] == 2)) { try { //$currentUser = EfrontUserFactory :: factory($_SESSION['s_login']); $currentUser = EfrontUser::checkUserAccess(); refreshLogin(); //$_SESSION['last_action_timestamp'] = time(); //Keep the last time something happened to the session if ($accounts = unserialize($currentUser->user['additional_accounts'])) { $result = eF_getTableData("users", "login, user_type", 'login in ("' . implode('","', array_values($accounts)) . '")'); $smarty->assign("T_MAPPED_ACCOUNTS", $result); } } catch (Exception $e) { } } if (isset($_GET['ctg']) && is_numeric($_GET['ctg'])) {