createProject( $_POST['name'], $_POST['description'], $_POST['industry'], $_POST['version'] ?: '1.0.0' ); } elseif ($action === 'update') { $pef->updateProject((int)$_POST['id'], [ 'name' => $_POST['name'], 'description' => $_POST['description'], 'industry' => $_POST['industry'], 'status' => $_POST['status'] ]); } elseif ($action === 'delete') { $id = (int)($_POST['id'] ?? $_GET['id'] ?? 0); $pef->deleteProject($id); } header('Location: index.php'); exit;