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
ad658a0c
Commit
ad658a0c
authored
Jan 11, 2016
by
Nico Schallehn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kleine Fehler...
parent
610ec344
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
api.class.php
api.class.php
+1
-1
api.php
api.php
+2
-2
No files found.
api.class.php
View file @
ad658a0c
...
@@ -8,7 +8,7 @@ class MediaDBViewerAPI{
...
@@ -8,7 +8,7 @@ class MediaDBViewerAPI{
private
$API_KEY
;
private
$API_KEY
;
function
__construct
(
$KEY
)
{
function
__construct
(
$KEY
)
{
if
(
isset
(
$KEY
)){
if
(
isset
(
$KEY
)
AND
lenth
(
$KEY
)
==
10
){
$API_KEY
=
$KEY
;
$API_KEY
=
$KEY
;
$ret
=
true
;
$ret
=
true
;
}
}
...
...
api.php
View file @
ad658a0c
...
@@ -9,10 +9,10 @@ include 'api.class.php';
...
@@ -9,10 +9,10 @@ include 'api.class.php';
if
(
$API
=
new
MediaDBViewerAPI
(
$_GET
[
'KEY'
])){
if
(
$API
=
new
MediaDBViewerAPI
(
$_GET
[
'KEY'
])){
$respons
=
$API
->
error
(
100
0
);
$respons
=
$API
->
error
(
100
1
);
}
}
else
{
else
{
$respons
=
$API
->
error
(
100
1
);
$respons
=
$API
->
error
(
100
2
);
}
}
echo
json_encode
(
$respons
);
echo
json_encode
(
$respons
);
...
...
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