} trbasic(lang('choose_item'), '', $soperatestr, ''); } tabfooter('barcsedit'); } else { include M_ROOT . $u_tplname; } } else { if (empty($arcdeal)) { amessage('selectoperateitem', "?entry=farchives&action=farchivesedit&page={$page}{$filterstr}"); } if (empty($selectid)) { amessage('mselectmes', "?entry=farchives&action=farchivesedit&page={$page}{$filterstr}"); } $aedit = new cls_farcedit(); $arc = new cls_farchive(); foreach ($selectid as $aid) { $aedit->set_aid($aid); if (!empty($arcdeal['delete'])) { $aedit->arc_delete(); continue; } if (!empty($arcdeal['check'])) { $aedit->arc_check(1); } elseif (!empty($arcdeal['uncheck'])) { $aedit->arc_check(0); } if (!empty($arcdeal['static'])) { farc_static($aid); } elseif (!empty($arcdeal['unstatic'])) { farc_unstatic($aid);
<?php include_once dirname(__FILE__) . '/include/general.inc.php'; include_once M_ROOT . '/include/common.fun.php'; include_once M_ROOT . './include/farchive.cls.php'; include_once M_ROOT . './include/farcedit.cls.php'; parse_str(un_virtual($_SERVER['QUERY_STRING'])); $page = empty($page) ? 1 : max(1, intval($page)); $aid = empty($aid) ? 0 : max(0, intval($aid)); $fid = empty($fid) ? 0 : max(0, intval($fid)); if ($aid) { //单个附属信息的内容页面 $arc = new cls_farchive(); $arc->arcid($aid); if (!$arc->aid) { message('choosemesid'); } if (!$arc->archive['checked'] && !$curuser->isadmin()) { message('pointmessagenocheck'); } if ($arc->archive['startdate'] > $timestamp || $arc->archive['enddate'] && $arc->archive['enddate'] < $timestamp) { message('chooseavaimes'); } //分析是否失效信息 if (!($tplname = $arc->catalog['arctpl'])) { message('pointconpagetemp'); } if ($cache1circle) { $cachefile = htmlcac_dir('farc', date('Ym', $arc->archive['createdate']), 1) . cac_namepre($arc->aid, $arc->archive['createdate']) . '_' . $page . '.php'; if (is_file($cachefile) && filemtime($cachefile) > $timestamp - $cache1circle * 60) { mexit(read_htmlcac($cachefile));