From 88d7cb4f69d854cd68a1709c1bfede757576f4b0 Mon Sep 17 00:00:00 2001 From: bogale Date: Mon, 28 Sep 2026 21:25:37 +0900 Subject: [PATCH] password - no echo, media - redirect --- .gitignore | 6 +++--- app/pswd.php | 4 +++- index.php | 5 +++-- local/{apps => media}/get.php | 9 ++++----- todo | 3 +++ 5 files changed, 16 insertions(+), 11 deletions(-) rename local/{apps => media}/get.php (73%) create mode 100644 todo diff --git a/.gitignore b/.gitignore index d69e2d9..783175d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -/favicon.ico /local/net -/local/urls -/local/videos +/favicon.ico +/local/media/urls +/local/media/videos diff --git a/app/pswd.php b/app/pswd.php index bc8a60e..f67568e 100644 --- a/app/pswd.php +++ b/app/pswd.php @@ -5,7 +5,9 @@ require "$root/templates/header.php"; $str = strtr(base64_encode(random_bytes(15)), '+/', '-_'); $str[random_int(0, 19)] = random_int(0, 1) ? '-' : '_'; -echo "
$str
\n"; +echo "
\n"; +echo "\n"; require "$root/templates/footer.php"; ?> diff --git a/index.php b/index.php index 026f32e..1589f25 100644 --- a/index.php +++ b/index.php @@ -9,8 +9,9 @@ require "$root/templates/header.php"; Password generator

Private

Vaultwarden
-Media manager
-Media downloader
+Grafana
+Media viewer
+Media downloader
diff --git a/local/apps/get.php b/local/media/get.php similarity index 73% rename from local/apps/get.php rename to local/media/get.php index cd0070f..b53af33 100644 --- a/local/apps/get.php +++ b/local/media/get.php @@ -1,19 +1,18 @@ Watch
"; + header("Location: " . $urls[array_rand($urls)]); } else { foreach (scandir($urls_base) as $list) { if ($list === '.' || $list === '..') continue; - echo "List $list
"; + echo "Try $list
"; } } diff --git a/todo b/todo new file mode 100644 index 0000000..addcea0 --- /dev/null +++ b/todo @@ -0,0 +1,3 @@ +- copy button +- notes manager +- video downloader