register starts is now possible in the new materialize version
This commit is contained in:
24
homepage/participo/wk.api.php
Normal file
24
homepage/participo/wk.api.php
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
setlocale(LC_ALL, 'de_DE@euro', 'de_DE', 'de', 'ge');
|
||||
set_include_path(get_include_path() . PATH_SEPARATOR . './lib/');
|
||||
|
||||
require_once 'config/participo.php';
|
||||
require_once 'local/cwsvJudo.php';
|
||||
|
||||
require_once 'participoLib/participo.php';
|
||||
|
||||
$db = dbConnector::connect(
|
||||
$cwsvJudoConfig['db']['host'],
|
||||
$cwsvJudoConfig['db']['name'],
|
||||
$cwsvJudoConfig['db']['user'],
|
||||
$cwsvJudoConfig['db']['password']
|
||||
);
|
||||
echo($db);
|
||||
|
||||
$wkSqlQuery = 'SELECT * FROM `wettkampfkalender` WHERE `Datum` >= CURDATE();';
|
||||
$wkSqlResponse = dbConnector::query($wkSqlQuery);
|
||||
|
||||
header('Access-Control-Allow-Headers: *');
|
||||
header('Access-Control-Allow-Origin: *');
|
||||
|
||||
echo(json_encode($wkSqlResponse));
|
||||
Reference in New Issue
Block a user