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
7bc8b8eb
Commit
7bc8b8eb
authored
Jan 11, 2016
by
Nico Schallehn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strlen
parent
ad658a0c
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
2 deletions
+32
-2
.buildpath
.buildpath
+5
-0
.project
.project
+22
-0
org.eclipse.core.resources.prefs
.settings/org.eclipse.core.resources.prefs
+3
-0
api.class.php
api.class.php
+2
-2
No files found.
.buildpath
0 → 100644
View file @
7bc8b8eb
<?xml version="1.0" encoding="UTF-8"?>
<buildpath>
<buildpathentry
kind=
"src"
path=
""
/>
<buildpathentry
kind=
"con"
path=
"org.eclipse.php.core.LANGUAGE"
/>
</buildpath>
.project
0 → 100644
View file @
7bc8b8eb
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>
MediaDBViewerAPI
</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>
org.eclipse.wst.validation.validationbuilder
</name>
<arguments>
</arguments>
</buildCommand>
<buildCommand>
<name>
org.eclipse.dltk.core.scriptbuilder
</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>
org.eclipse.php.core.PHPNature
</nature>
</natures>
</projectDescription>
.settings/org.eclipse.core.resources.prefs
0 → 100644
View file @
7bc8b8eb
eclipse.preferences.version=1
encoding/api.class.php=UTF-8
encoding/api.php=UTF-8
api.class.php
View file @
7bc8b8eb
...
@@ -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
)
AND
lenth
(
$KEY
)
==
10
){
if
(
isset
(
$KEY
)
AND
strlen
(
$KEY
)
==
10
){
$API_KEY
=
$KEY
;
$API_KEY
=
$KEY
;
$ret
=
true
;
$ret
=
true
;
}
}
...
@@ -25,7 +25,7 @@ class MediaDBViewerAPI{
...
@@ -25,7 +25,7 @@ class MediaDBViewerAPI{
break
;
break
;
case
1002
:
case
1002
:
return
array
(
"FehlerID"
=>
$ErrID
,
return
array
(
"FehlerID"
=>
$ErrID
,
"FehlerText"
=>
"Es wurde kein bzw. kein g
ltiger API_KEY
bergeben!"
);
"FehlerText"
=>
"Es wurde kein bzw. kein g
�ltiger API_KEY �
bergeben!"
);
break
;
break
;
default
:
default
:
...
...
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