Ejemplo n.º 1
0
 function update($post)
 {
     $this->add($post[0]);
     unset($post[0]);
     foreach ($post as $k => $v) {
         if (isset($v['delete'])) {
             $this->delete($k);
             unset($post[$k]);
         }
     }
     $this->edit($post);
     cache_banword();
 }
Ejemplo n.º 2
0
                             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 'cacheclear':
     if ($CFG['cache'] == 'file') {
         dheader('?action=update');
     }
     $dc->clear();