Moved api backend to main website

This commit is contained in:
Timon Ostertun
2020-09-27 00:05:57 +02:00
parent a437d05647
commit 967ad50755
9 changed files with 6 additions and 1234 deletions

View File

@@ -4,18 +4,15 @@
error_reporting(0); // disable error reporting in browser
define('SEND_ERRORS', true); // send errors via log
define('BOATCLASS', 'pirat');
date_default_timezone_set('Europe/Berlin');
define('SERVER_PATH', '/subfolder'); // path to root directory
define('SERVER_ADDR', 'https://' . $_SERVER['SERVER_NAME'] . SERVER_PATH); // path to root directory
define('QUERY_URL', 'http://' . $_SERVER['SERVER_NAME'] . '/api/' . BOATCLASS . '/'); // url to api backend
define('LOGGING_APIKEY', 'xxx'); // Apikey for Logging API -> get from ostertun.net/logging
// PUSH SERVER
define('PUSH_AUTH', 'xxxxxxx'); // auth string for push.ostertun.net
define('PUSH_SERVERKEY', 'xxxxxxx'); // server key from push.ostertun.net
define('BOATCLASS', 'pirat');
// BOAT CLASSES
// BOAT CLASS
$_CLASS = array(
'name' => 'Pirat',
'desc' => 'eine vom DSV geförderte Jugendmeisterschaftsklasse',