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
25e341eb
Commit
25e341eb
authored
Feb 12, 2016
by
Nico Schallehn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kleine änderungen..
parent
d650cb5f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
5 deletions
+8
-5
org.eclipse.core.resources.prefs
.settings/org.eclipse.core.resources.prefs
+1
-0
CHANGELOG
CHANGELOG
+2
-1
.gitkeep
Grafiken/.gitkeep
+0
-0
api.class.php
api.class.php
+4
-4
index.php
webapp/index.php
+1
-0
No files found.
.settings/org.eclipse.core.resources.prefs
View file @
25e341eb
eclipse.preferences.version=1
encoding//Dokumente/ergaenzung.txt=ISO-8859-1
encoding//webapp/index.php=UTF-8
encoding/CHANGELOG=UTF-8
encoding/api.class.php=UTF-8
encoding/api.php=UTF-8
...
...
CHANGELOG
View file @
25e341eb
2016-02-12 0.05
- Debugarrays werden nur noch ausgegeben wenn für das Rechte level das Recht gesetzt ist
2016-01-20 0.002
- Eingeführt von Set Data
\ No newline at end of file
Grafiken/.gitkeep
deleted
100644 → 0
View file @
d650cb5f
api.class.php
View file @
25e341eb
...
...
@@ -9,7 +9,7 @@
* Konfig:
*/
define
(
API_KEY_LEN
,
10
);
define
(
API_VERSION
,
0.0
4
);
define
(
API_VERSION
,
0.0
5
);
define
(
API_KEY_DB
,
"../Key.sqlite"
);
if
(
!
isset
(
$_GET
[
'Pretty'
]))
{
...
...
@@ -46,6 +46,7 @@ class MediaDBAPI{
private
$FilterAnde
=
array
();
private
$StatiViews
=
array
();
private
$Update
=
FALSE
;
private
$DebugOutput
=
FALSE
;
public
$DB_Objekt
;
...
...
@@ -118,6 +119,7 @@ class MediaDBAPI{
* Platz für irgendwelche sondersachen....*/
if
(
$this
->
API_Rechte
>=
10
){
// Update rechte
$this
->
Update
=
true
;
$this
->
DebugOutput
=
true
;
}
...
...
@@ -140,7 +142,6 @@ class MediaDBAPI{
//$tempEpisoden =
array_push
(
$tempEpisoden
,
$value
);
}
}
$this
->
SpaltenEpi
=
$tempEpisoden
;
//$this->SpaltenFil = array_intersect_key($this->SpaltenFilme,$this->SpaltenFil);
...
...
@@ -613,7 +614,6 @@ class MediaDBAPI{
private
function
query
(
$Query
){
//$this->Statistik["QueryCounter"]++;
$ret
=
$this
->
DB_Objekt
->
query
(
$Query
);
$this
->
Querys
[
$this
->
Statistik
[
"QueryCounter"
]
++
]
=
array
(
"Query"
=>
(
$Query
),
"MySQLnum_rows"
=>
$ret
->
num_rows
,
"MySQLfield_count"
=>
$this
->
DB_Objekt
->
field_count
,
...
...
@@ -624,7 +624,7 @@ class MediaDBAPI{
* Funktion nur ändern, Um Markus zu ärgern ;-)
*/
public
function
APIrespons
(
$Laufzeit
=
0
,
$respons
=
""
){
if
((
strpos
(
$_SERVER
[
"HTTP_USER_AGENT"
],
"Android"
)
==
0
)
AND
(
$this
->
API_Rechte
>=
1
)){
//TODO Debug Statistik wieder raus nehmen!!
if
((
strpos
(
$_SERVER
[
"HTTP_USER_AGENT"
],
"Android"
)
==
0
)
AND
(
$this
->
DebugOutput
)){
//TODO Debug Statistik wieder raus nehmen!!
$this
->
Statistik
[
"Querys"
]
=
$this
->
Querys
;
return
array
(
"API_VERSION"
=>
API_VERSION
,
"API_KEY"
=>
$this
->
API_KEY
,
...
...
webapp/index.php
0 → 100644
View file @
25e341eb
<?php
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