$name) { $file = [ 'name' => $name, 'tmp_name' => $_FILES['images']['tmp_name'][$i], 'error' => $_FILES['images']['error'][$i], ]; $stored = media_store_upload($file); if ($stored !== null) { $reel[] = $stored; $count++; } } flash_set($count > 0 ? "$count image(s) added to the showreel." : 'No valid images uploaded.', $count > 0 ? 'ok' : 'error'); } if ($action === 'delete') { $name = (string)($_POST['file'] ?? ''); $reel = array_values(array_filter($reel, fn($f) => $f !== $name)); media_delete($name); flash_set('Image removed.'); } if ($action === 'move') { $i = (int)($_POST['index'] ?? -1); $dir = $_POST['dir'] === 'up' ? -1 : 1; $j = $i + $dir; if (isset($reel[$i], $reel[$j])) { [$reel[$i], $reel[$j]] = [$reel[$j], $reel[$i]]; } } $site['showreel'] = array_values($reel); site_save($site); redirect('showreel.php'); } admin_header('Showreel', 'showreel'); flash_render(); ?>

Showreel

Full resolution, unmodified. These upload through the webhost, so add a few at a time if your hosting has upload size limits.

Current order ()

The showreel is empty.

$file): ?>
ImageFileActions