Commit 62f63e21 authored by Nico Schallehn's avatar Nico Schallehn

Viele Kleinigkeiten

u.a.
parent 10516467
...@@ -4,16 +4,26 @@ ...@@ -4,16 +4,26 @@
* @author Nico Schallehn, Markus Then * @author Nico Schallehn, Markus Then
* *
*/ */
//header('Content-type: text/html; charset=UTF-8');
header('content-type: application/json; charset=utf-8');
include 'api.class.php'; include 'api.class.php';
/**
* Konfig:
*/
define(API_KEY_LEN, 10);
define(API_VERSION, 0.00001);
$API = new MediaDBViewerAPI();
if($API = new MediaDBViewerAPI($_GET['KEY'])){ if($API->APIinit($_GET['KEY'])){
$respons = $API->error(1001); $respons = $API->error(1001);
} }
else { else {
$respons = $API->error(1002); $respons = $API->error(1002);
} }
echo json_encode($respons); echo json_encode(APIrespons($respons),JSON_PRETTY_PRINT);
?> ?>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment