示例#1
0
文件: Engine.php 项目: nsdown/ffs
          <td>' . date('Y-m-d H:i', $re['time']) . '</td>
		  <td>' . date('Y-m-d H:i', $re['last']) . '</td>
          <td>' . $re['down'] . '次</td>
        </tr>
';
                }
                $FFS['html']['tag']['{html:data}'] = !empty($_GET['data']) ? $_GET['data'] : '';
                $FFS['html']['tag']['{html:counts}'] = $resc;
                $FFS['html']['tag']['{html:filelist}'] = $filelist;
                $FFS['html']['tag']['{html:pages}'] = $page_li;
                $FFS['html']['tag']['{html:nextpage}'] = $nextpage;
                $FFS['html']['tag']['{html:previouspage}'] = $previouspage;
                if (!empty($_POST['files_del'])) {
                    if ($_POST['files_del']) {
                        $select = $_POST['select'];
                        if ($select != "") {
                            $del_num = count($select);
                            for ($i = 0; $i <= $del_num; $i++) {
                                FILE_DELETE($select[$i]);
                            }
                            STR_EDITNOTICE('Delete_Files_Is_Ok!');
                            FILE_MAKEDB();
                        }
                    }
                }
            }
        }
    } else {
        ERROR('运行提示', '当前系统核心版本过低,请升级到C-110924');
    }
}
示例#2
0
文件: Engine.php 项目: nsdown/ffs
 }
 /*检测密码是否正确*/
 if (!empty($_POST['info_pw'])) {
     if ($info['pw'] != trim($_POST['info_pw'])) {
         ERROR('登陆错误', '分享码或管理密码错误!');
     } else {
         //密码正确
         if (!empty($_POST['fileEdit'])) {
             //如果获取到是修改文件信息的提交
             $info['name'] = trim($_POST['info_name']);
             $info['pw'] = trim($_POST['info_pw']);
             $info['info'] = trim($_POST['info_info']);
             FILE_MKINFO($info);
         }
         if (!empty($_POST['fileDel'])) {
             FILE_DELETE($info['id']);
             header('location:index.php');
         }
     }
 } else {
     ERROR('警告', '请通过正确的方式来访问本页面!');
 }
 /*生成,猜你喜欢*/
 $data = FILE_SEARCH('type', $info['type']);
 if (count($data) < 3) {
     $rands = count($data);
 } else {
     $rands = 3;
 }
 $rand = array_rand($data, $rands);
 $yl = '';