Update manage_albums.php
Browse files- manage_albums.php +0 -3
manage_albums.php
CHANGED
@@ -51,9 +51,6 @@ if (isset($_SESSION['password']) && $_SESSION['password'] === $correctPassword)
|
|
51 |
if (!file_exists($newAlbumFile)) {
|
52 |
file_put_contents($newAlbumFile, '');
|
53 |
echo "<p>新相册 '{$newAlbumName}' 创建成功。</p>";
|
54 |
-
// 相册创建成功,模拟点击以刷新
|
55 |
-
const createButton = document.querySelector('input[name="create"]'); // 获取“create”按钮
|
56 |
-
createButton.click();
|
57 |
} else {
|
58 |
echo "<p>相册 '{$newAlbumName}' 已存在。</p>";
|
59 |
}
|
|
|
51 |
if (!file_exists($newAlbumFile)) {
|
52 |
file_put_contents($newAlbumFile, '');
|
53 |
echo "<p>新相册 '{$newAlbumName}' 创建成功。</p>";
|
|
|
|
|
|
|
54 |
} else {
|
55 |
echo "<p>相册 '{$newAlbumName}' 已存在。</p>";
|
56 |
}
|