Fix input dir permissions and adjust header logo

This commit is contained in:
hbrain 2026-05-26 06:44:25 +02:00
parent b18df3672c
commit fd042e244f
3 changed files with 2 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 MiB

After

Width:  |  Height:  |  Size: 1.7 MiB

Before After
Before After

View file

@ -101,6 +101,7 @@ try {
$slug = date('Ymd') . '_' . slugify($title); $slug = date('Ymd') . '_' . slugify($title);
$dir = $config['uploads_dir'] . '/' . $slug; $dir = $config['uploads_dir'] . '/' . $slug;
if (!mkdir($dir, 0775, true)) throw new RuntimeException('Cannot create input directory.'); if (!mkdir($dir, 0775, true)) throw new RuntimeException('Cannot create input directory.');
chmod($dir, 02775);
$media = save_uploads('media', $dir, $allowedMedia); $media = save_uploads('media', $dir, $allowedMedia);
if (!$media) { rrmdir($dir); throw new RuntimeException('Upload at least one image or video.'); } if (!$media) { rrmdir($dir); throw new RuntimeException('Upload at least one image or video.'); }
save_uploads('audio', $dir, $allowedAudio); save_uploads('audio', $dir, $allowedAudio);

File diff suppressed because one or more lines are too long