예제 #1
0
 function restore_action() {
 	chkpw('func_data_restore');
     $dir=ROOT.'/data';
     if(front::post('submit') &&is_array(front::post('select'))) {
         foreach(front::post('select') as $d) {
             front::remove($dir.'/'.$d);
         }
         front::flash('成功删除 '.count(front::post('select')).' 个档案!');
     }
     $dirs=front::scan($dir);
     $db_dirs=array();
     foreach($dirs as $dir) {
         if(!preg_match('/\./',$dir) &&!preg_match('/hotsearch/',$dir)) $db_dirs[]=$dir;
     }
     $this->view->db_dirs=$db_dirs;
 }
예제 #2
0
 function init() {