diff --git a/admin/about.php b/admin/about.php new file mode 100644 index 0000000..43b97de --- /dev/null +++ b/admin/about.php @@ -0,0 +1,8 @@ +"; +?> \ No newline at end of file diff --git a/found.php b/found.php index 80accaf..a25cd0c 100644 --- a/found.php +++ b/found.php @@ -4,18 +4,20 @@ // 载入类 include_once("config.php"); + //获取当前时间 + $thetime = date('Y-m',time()); //初始化 $domain = $config['domain']; $userdir = $config['userdir']; - $sql = "SELECT `id`,`path` FROM `imginfo` WHERE (`dir` = '$userdir' AND `level` < 3) ORDER BY random() LIMIT 12"; + $sql = "SELECT `id`,`path` FROM `imginfo` WHERE (`dir` = '$userdir' AND `level` < 3 AND `date` LIKE '$thetime%') ORDER BY random() LIMIT 12"; $datas = $database->query($sql)->fetchAll(); ?>