Background management delete / restore to recycle bin with one function

From , 3 Years ago, written in PHP, viewed 213 times.
URL https://pastebin.vip/view/8ce5d989
  1.      public function totrach(){
  2.                 $update =array(
  3.                         'id' => I('id',0,'intval'),// I('id',0,'intval'),<=>(int) $_GET['ID'],
  4.                         'del' => I('type',0,'intval')
  5.                         );
  6.                 $msg = ($update['del']==1) ? '删除' :'还原';
  7.                 if (M('blog')->save($update)) {
  8.                         $this->success($msg . '成功',U(GROUP_NAME . '/Blog/index'));
  9.                 } else {
  10.                         $this->error($msg . '失败')
  11.                         }
  12.     }

Reply to "Background management delete / restore to recycle bin with one function"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website