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
a90e549a
Commit
a90e549a
authored
Jan 11, 2016
by
Nico Schallehn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
serverinfo
parent
bf73f011
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
api.class.php
api.class.php
+7
-1
api.php
api.php
+2
-1
No files found.
api.class.php
View file @
a90e549a
...
...
@@ -17,7 +17,13 @@ class MediaDBViewerAPI{
}
return
$ret
;
}
function
API_serverinfo
(){
return
array
(
"time"
=>
time
(),
"HTTP_USER_AGENT"
=>
$_SERVER
[
'HTTP_USER_AGENT'
],
"REMOTE_ADDR"
=>
$_SERVER
[
'REMOTE_ADDR'
]
);
}
function
APIrespons
(
$Laufzeit
=
0
,
$respons
=
""
){
return
array
(
"API_VERSION"
=>
API_VERSION
,
"API_KEY"
=>
$this
->
API_KEY
,
...
...
api.php
View file @
a90e549a
...
...
@@ -19,7 +19,8 @@ $API = new MediaDBViewerAPI();
if
(
$API
->
APIinit
(
$_GET
[
'KEY'
])){
if
(
method_exists
(
'MediaDBViewerAPI'
,
'API_'
.
$_GET
[
'action'
])){
$respons
=
$API
->
error
(
1001
);
$funktionsname
=
'API_'
.
$_GET
[
'action'
];
$respons
=
$API
->
$funktionsname
();
}
else
{
$respons
=
$API
->
error
(
1003
);
...
...
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