diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3319b07 --- /dev/null +++ b/.gitignore @@ -0,0 +1,15 @@ +# 忽略上传的应用文件 +uploads/ + +# 忽略文件目录 +files/ + +# 忽略图片目录 +images/ + +# 忽略日志文件 +logs/ + +# 忽略Windows系统文件 +Thumbs.db +.DS_Store \ No newline at end of file diff --git a/admin/index.php b/admin/index.php index 306d86c..0d766f2 100644 --- a/admin/index.php +++ b/admin/index.php @@ -16,7 +16,7 @@ if (isset($_GET['logout'])) { } // 获取App列表 -$sqlApps = "SELECT * FROM apps ORDER BY created_at DESC"; +$sqlApps = "SELECT * FROM apps WHERE status = 'approved' ORDER BY created_at DESC"; $resultApps = $conn->query($sqlApps); if (!$resultApps) { @@ -56,7 +56,13 @@ if (!$resultApps) { App列表
| ID | +用户名 | +邮箱 | +注册时间 | +操作 | +
|---|---|---|---|---|
| + | + | + | + | + 编辑 + + | +
| 暂无开发者用户 | +||||
待审核应用:
+ + +开发者:
+提交时间:
+描述:
+ + + prepare("SELECT image_path FROM app_images WHERE app_id = ?"); + $stmt->bind_param("i", $app['id']); + $stmt->execute(); + $imgResult = $stmt->get_result(); + while ($img = $imgResult->fetch_assoc()) { + $images[] = $img['image_path']; + } + $stmt->close(); + ?> + + +您还没有上传任何应用。
+ + ++ 状态: + + 已通过 + + 未通过 +