register starts is now possible in the new materialize version
This commit is contained in:
28
homepage/participo/api.starter.remove.php
Normal file
28
homepage/participo/api.starter.remove.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
require_once 'config/participo.php';
|
||||
|
||||
require_once './local/cwsvJudo.php';
|
||||
|
||||
require_once 'participoLib/dbConnector.php';
|
||||
require_once 'participoLib/participo.php';
|
||||
require_once 'participoLib/planer.php';
|
||||
|
||||
dbConnector::connect(
|
||||
$cwsvJudoConfig['db']['host'],
|
||||
$cwsvJudoConfig['db']['name'],
|
||||
$cwsvJudoConfig['db']['user'],
|
||||
$cwsvJudoConfig['db']['password']
|
||||
);
|
||||
|
||||
participo::authentificate();
|
||||
|
||||
$eventId = $_POST['eventId'] ?? null;
|
||||
$starterId = $_POST['userId'] ?? null;
|
||||
|
||||
$returnToUrl = $_POST['returnToUrl'] ?? 'participo/';
|
||||
|
||||
$starter = new Starter(null, $eventId, null, $starterId);
|
||||
$starter->removeFromDb();
|
||||
|
||||
header('Location: ' . urldecode($returnToUrl), true, 301);
|
||||
exit(-1); // shouldn't matter
|
||||
Reference in New Issue
Block a user