cache_category(); msg('分类缓存更新成功', '?action=' . $action . '&step=' . ($step + 1)); } else { if ($step == 5) { cache_clear('area'); cache_area(); msg('地区缓存更新成功', '?action=' . $action . '&step=' . ($step + 1)); } else { if ($step == 6) { cache_clear('fields'); cache_fields(); cache_clear('option'); msg('自定义字段更新成功', '?action=' . $action . '&step=' . ($step + 1)); } else { if ($step == 7) { cache_clear_ad(); tohtml('index'); msg('全部缓存更新成功'); } else { cache_clear('group'); cache_group(); cache_clear('type'); cache_type(); cache_clear('keylink'); cache_keylink(); cache_pay(); cache_banip(); cache_banword(); cache_bancomment(); msg('正在开始更新缓存', '?action=' . $action . '&step=' . ($step + 1)); }
break; case 'delete_place': $pids or msg('请选择广告位'); $do->delete_place($pids); dmsg('删除成功', $forward ? $forward : $this_place_forward); break; case 'order_place': $do->order_place($listorder); dmsg('排序成功', $forward ? $forward : $this_place_forward); break; case 'html': $all = isset($all) && $all ? 1 : 0; $one = isset($one) && $one ? 1 : 0; if (!isset($num)) { $num = 100; cache_clear_ad(1); $result = $db->query("SELECT * FROM {$DT_PRE}ad_place WHERE ads=0 AND code<>''"); $totime = $DT_TIME + 86400 * 365 * 10; while ($r = $db->fetch_array($result)) { if ($r['typeid'] > 5) { $filename = 'ad_' . $r['moduleid'] . '_d' . $r['typeid'] . '.htm'; } else { $filename = 'ad_' . $r['pid'] . '_d0.htm'; } $data = '<!--' . $totime . '-->' . $r['code']; file_put(DT_CACHE . '/htm/' . $filename, $data); if ($r['typeid'] > 1 && $r['typeid'] < 6) { $data = 'document.write(\'' . dwrite($r['code']) . '\');'; file_put(DT_ROOT . '/file/script/A' . $r['pid'] . '.js', $data); } }