Use in-dir and out-dir directories
This commit is contained in:
parent
0e5efcd87e
commit
6ff3e3c369
3 changed files with 7 additions and 7 deletions
4
new.php
4
new.php
|
|
@ -36,7 +36,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
|||
$v = trim($_POST[$k] ?? ''); if ($v !== '') $lines[] = "$label: $v";
|
||||
}
|
||||
file_put_contents($dir . '/data.txt', implode("\n", $lines) . "\n");
|
||||
$msg = "Created movmaker input directory: uploads/$slug";
|
||||
$msg = "Created movmaker input directory: in-dir/$slug";
|
||||
} catch (Throwable $e) { $err = $e->getMessage(); }
|
||||
}
|
||||
?>
|
||||
|
|
@ -44,4 +44,4 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
|||
<header><h1>MVLog Admin</h1><nav><a href="index.php">Videos</a></nav></header><main>
|
||||
<?php if($msg): ?><div class="ok"><?=h($msg)?></div><?php endif; ?><?php if($err): ?><div class="err"><?=h($err)?></div><?php endif; ?>
|
||||
<section><h2>Add new movie input</h2><form method="post" enctype="multipart/form-data"><label>Title*<input name="title" required></label><label>Date<input name="date" placeholder="2026-05-25"></label><label>Place<input name="place"></label><label>Description<textarea name="description"></textarea></label><label>Images / videos*<input type="file" name="media[]" multiple required accept="image/*,video/*"></label><label>Audio (optional)<input type="file" name="audio[]" multiple accept="audio/*"></label><button type="submit">Create input-dir</button></form></section>
|
||||
</main><footer>Input dirs are saved under <code>uploads/</code>.</footer></body></html>
|
||||
</main><footer>Input dirs are saved under <code>in-dir/</code>.</footer></body></html>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue