20 lines
675 B
PHP
20 lines
675 B
PHP
<?php
|
|
/** @var array $CONFIG basic configurations (defined via bootstraping) */
|
|
/** @var array $SECRETS passwords and other stuff worth of protection (defined via bootstraping) */
|
|
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
|