Files
cwsvJudo/homepage/participo/api.starter.remove.php
marko f28fa7b51b WIP: bring participo back - consistent use of bootstrap - formatting -
phpstan level 0 error free - fixes for kyu subpage - move mams into
participo framework - remove legacy `lib/db.php` usage - add attributer
admin function - add newsposter - fixing apiKey creation
2025-11-19 12:24:38 +01:00

20 lines
557 B
PHP

<?php
// (local specific) settings
require_once "config.php";
require_once "bootstrap.php";
require_once "participoLib/dbConnector.php";
require_once "participoLib/participo.php";
require_once "participoLib/planer.php";
participo::init(config: $CONFIG["cwsvJudo"], secrets: $SECRETS["cwsvJudo"]);
$starterId = $_POST["starterId"] ?? null;
$returnToUrl = $_POST["returnToUrl"] ?? "participo/";
$starter = Starter::loadFromDb($starterId);
$starter->removeFromDb();
header("Location: " . urldecode($returnToUrl), true, 301);
exit(-1); // shouldn't matter