Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
MediaDBViewerAPI
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
BA_SI-Projekt
MediaDBViewerAPI
Commits
7449c7ed
Commit
7449c7ed
authored
Mar 01, 2016
by
Nico Schallehn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup des Quellcodes
parent
1fbef097
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
107 deletions
+47
-107
CHANGELOG
CHANGELOG
+1
-1
api.class.php
api.class.php
+44
-101
api.php
api.php
+2
-5
No files found.
CHANGELOG
View file @
7449c7ed
...
...
@@ -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
...
...
api.class.php
View file @
7449c7ed
This diff is collapsed.
Click to expand it.
api.php
View file @
7449c7ed
<?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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment