$cachefile = htmlcac_dir('ms', 'm' . $mid % 100, 1) . cac_namepre($mid, 'product' . $cid) . '_' . $page . '.php'; if (is_file($cachefile) && filemtime($cachefile) > $timestamp - $cachemscircle * 60) { mexit(read_htmlcac($cachefile)); } } if (!($_offer = $db->fetch_one("SELECT * FROM {$tblprefix}offers WHERE cid='{$cid}' AND mid='{$mid}'"))) { message('chooseproduct'); } $arc = new cls_archive(); if (!$arc->arcid($_offer['aid'])) { message('choosearchive'); } if (!$arc->archive['checked'] && !$curuser->isadmin()) { message('poinarcnoche'); } $tplname = ms_arctpl($arc->archive['chid'], 'product'); if (!$tplname) { message('definereltem'); } $arc->detail_data(); $_arc =& $arc->archive; arc_parse($_arc); $_mp = array(); $_mp['durlpre'] = $mspaceurl . en_virtual('product.php?mid=' . $mid . '&cid=' . $cid . '&page={$page}', 1); $_mp['static'] = 0; $_mp['nowpage'] = max(1, intval($page)); _aenter($_arc, 1); _aenter($_da); _aenter($_offer); @extract($btags); extract($_arc, EXTR_OVERWRITE);
empty($aid) && message('choosearchive'); include_once M_ROOT . './include/mparse.fun.php'; if ($cachemscircle && (!$mslistcachenum || $page <= $mslistcachenum)) { $cachefile = htmlcac_dir('ms', 'm' . $mid % 100, 1) . cac_namepre($mid, 'archive' . $aid . $addno) . '_' . $page . '.php'; if (is_file($cachefile) && filemtime($cachefile) > $timestamp - $cachemscircle * 60) { mexit(read_htmlcac($cachefile)); } } $arc = new cls_archive(); if (!$arc->arcid($aid)) { message('choosearchive'); } if (!$arc->archive['checked'] && !$curuser->isadmin()) { message('poinarcnoche'); } $tplname = ms_arctpl($arc->archive['chid'], 'archive'); if (!$tplname) { message('definereltem'); } $arc->detail_data(); $durlpre = $arc->m_urlpre($addno); $_arc =& $arc->archive; arc_parse($_arc); $_mp = array(); $_mp['durlpre'] = $durlpre; $_mp['static'] = 0; $_mp['nowpage'] = max(1, intval($page)); _aenter($_arc, 1); _aenter($_da); @extract($btags); extract($_arc, EXTR_OVERWRITE);