function ctl_cart(&$system) { parent::shopPage($system); $this->_verifyMember(false); if (!$this->system->getConf('system.use_cart', true)) { $system->responseCode(404); echo '<h1>cart has been disabled</h1>'; exit; } $this->objCart =& $this->system->loadModel('trading/cart'); $this->objCart->checkMember($this->member); if ($_POST['isfastbuy']) { if ($_POST['goods']) { $aParams = $this->objCart->getParams($_POST['goods']); $this->cart = $this->objCart->setFastBuy('g', $aParams); setcookie('S[Cart_Fastbuy]', $this->objCart->_save($this->cart)); } else { $this->cart = $this->objCart->getCart('all', $_COOKIE['Cart_Fastbuy']); } } else { $this->cart = $this->objCart->getCart('all'); } $this->products = $this->cart['g']; $this->pkggoods = $this->cart['p']; $this->gifts = $this->cart['f']; }
function ctl_product() { parent::shopPage(); $this->title = $this->system->getConf('site.goods_title'); $this->keywords = $this->system->getConf('site.goods_meta_key_words'); $this->desc = $this->system->getConf('site.goods_meta_desc'); }
function cct_appGallery() { parent::shopPage(); $this->title = str_replace("{ENV_path}", "{ENV_sort_path}", $this->system->getConf('site.list_title')); $this->keywords = str_replace("{ENV_path}", "{ENV_sort_path}", $this->system->getConf('site.list_meta_key_words')); $this->desc = str_replace("{ENV_path}", "{ENV_sort_path}", $this->system->getConf('site.list_meta_desc')); }
function ctl_article() { parent::shopPage(); $this->title = $this->system->getConf('site.article_title'); $this->keywords = $this->system->getConf('site.article_meta_key_words'); $this->desc = $this->system->getConf('site.article_meta_desc'); }
function ctl_passport(&$system) { parent::shopPage($system); $this->header .= "<meta name=\"robots\" content=\"noindex,noarchive,nofollow\" />\n"; $this->pagedata['redirectInfo'] = ''; if (isset($_POST['form'])) { $form = get_magic_quotes_gpc() ? stripcslashes($_POST['form']) : $_POST['form']; $this->pagedata['redirectInfo'] .= '<input type="hidden" name="form" value="' . htmlspecialchars($form) . '" />'; } if (isset($_REQUEST['url'])) { $this->pagedata['redirectInfo'] .= '<input type="hidden" name="url" value="' . htmlspecialchars($_REQUEST['url']) . '" />'; } }
function ctl_cart(&$system) { parent::shopPage($system); $this->_verifyMember(false); if (!$this->system->getConf('system.use_cart', true)) { $system->responseCode(404); echo '<h1>cart has been disabled</h1>'; exit; } $this->objCart =& $this->system->loadModel('trading/cart'); $this->objCart->checkMember($this->member); $this->cart = $this->objCart->getCart('all'); $this->products = $this->cart['g']; $this->pkggoods = $this->cart['p']; $this->gifts = $this->cart['f']; }
function ctl_paycenter(&$system) { parent::shopPage($system); $this->payment =& $this->system->loadModel('trading/payment'); $this->_verifyMember(false); }
function _output() { if ($GLOBALS['runtime']['member_lv']) { $oLevel =& $this->system->loadModel('member/level'); $aLevel = $oLevel->getFieldById($GLOBALS['runtime']['member_lv']); if ($aLevel['disabled'] == 'false') { $this->member['levelname'] = $aLevel['name']; } } $oSex =& $this->system->loadModel('member/member'); $aSex = $oSex->getFieldById($this->member['member_id']); $trust_uname = $oSex->trust_check($this->member['uname']); if ($trust_uname) { $this->member['uname'] = $trust_uname; $this->pagedata['member'] = $this->member; } else { $this->pagedata['member'] = $this->member; } $this->pagedata['sex'] = $aSex['sex']; $this->pagedata['cpmenu'] = $this->map; $this->pagedata['current'] = $this->_action; $this->pagedata['_PAGE_'] = $this->pagedata['_PAGE_'] ? 'member/' . $this->pagedata['_PAGE_'] : 'member/' . $this->_tmpl; $this->pagedata['_MAIN_'] = 'member/main.html'; parent::output(); }
function ctl_page() { parent::shopPage(); }
function ctl_comment(&$system) { parent::shopPage($system); $this->_verifyMember(false); }
function splash($status, $url, $msg, $links = '', $wait = 1, $json = false) { if ($json) { echo json_encode(array('status' => $status, 'url' => $url, 'msg' => $msg)); exit; } else { parent::splash($status, $url, $msg, $links, $wait); } }
function ctl_cron() { parent::shopPage(); }
function shop_scarebuying() { parent::shopPage(); }