<?php
require_once __DIR__ . '/../../config/config.php';
require_once __DIR__ . '/../../includes/functions.php';
startSession(); requireLogin();
// edit.php simply loads create.php with ?id= already set
$id = cleanInt($_GET['id'] ?? 0);
if (!$id) { header('Location: list.php'); exit; }
header('Location: create.php?id='.$id);
exit;
