Commit 7449c7ed authored by Nico Schallehn's avatar Nico Schallehn

Cleanup des Quellcodes

parent 1fbef097
......@@ -2,7 +2,7 @@
- Web: Feature: Rechteverwaltung Implementiert
- API: Feature: Rechte aus JSON Datei laden und diese verwenden.
- API: CodeClean: Nicht benutztes Rechtesystem für Filterlisten entfernt
- API: CodeClean: Reduziere Code von 712 Zeilen auf
- API: CodeClean: Reduziere Code von 712 Zeilen auf
2016-02-12 0.05
- Debugarrays werden nur noch ausgegeben wenn für das Rechte level das Recht gesetzt ist
......
This diff is collapsed.
<?php
/**
*
* @author Nico Schallehn, Markus Then
*
* @license MIT
*/
$beginn = microtime(true);
header('content-type: application/json; charset=utf-8');
include 'api.class.php';
$API = new MediaDBAPI();
if($API->APIinit($_GET['key'])){
......@@ -19,12 +17,11 @@ if($API->APIinit($_GET['key'])){
else{
$respons = $API->error(1003);
}
}
else {
$respons = $API->error(1002);
}
$Laufzeit = microtime(true) - $beginn;
echo json_encode( $API->APIrespons(sprintf('%.5f', $Laufzeit), $respons),(isset($_GET['Pretty'])?JSON_PRETTY_PRINT:0));//,JSON_PRETTY_PRINT
echo json_encode( $API->APIrespons(sprintf('%.5f', $Laufzeit), $respons),(isset($_GET['Pretty'])?JSON_PRETTY_PRINT:0));
?>
\ 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