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
9cbbe764
Commit
9cbbe764
authored
Jan 18, 2016
by
Nico Schallehn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
= Parameter hinzugefügt und 2 Parameter umbenannt
parent
bae5b800
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
5 deletions
+34
-5
api.class.php
api.class.php
+34
-5
No files found.
api.class.php
View file @
9cbbe764
...
@@ -49,8 +49,8 @@ class MediaDBViewerAPI{
...
@@ -49,8 +49,8 @@ class MediaDBViewerAPI{
$first
=
true
;
$first
=
true
;
$imdbArrToCompar
=
0
;
$imdbArrToCompar
=
0
;
$Where
=
"WHERE "
;
$Where
=
"WHERE "
;
// = Filter:
if
(
isset
(
$GET_arr
[
'imdbID'
])
AND
is_numeric
(
$GET_arr
[
'imdbID'
])){
if
(
isset
(
$GET_arr
[
'imdbID'
])
AND
is_numeric
(
$GET_arr
[
'imdbID'
])){
$Where
.=
(
$first
?
""
:
" AND "
)
.
'imdbID = "'
.
$GET_arr
[
'imdbID'
]
.
'"'
;
$Where
.=
(
$first
?
""
:
" AND "
)
.
'imdbID = "'
.
$GET_arr
[
'imdbID'
]
.
'"'
;
$first
=
false
;
$first
=
false
;
}
}
...
@@ -66,12 +66,36 @@ class MediaDBViewerAPI{
...
@@ -66,12 +66,36 @@ class MediaDBViewerAPI{
$Where
.=
(
$first
?
""
:
" AND "
)
.
'acodecger'
.
(
$GET_arr
[
'Deutsch'
]
?
" IS NOT "
:
" IS "
)
.
'null'
;
$Where
.=
(
$first
?
""
:
" AND "
)
.
'acodecger'
.
(
$GET_arr
[
'Deutsch'
]
?
" IS NOT "
:
" IS "
)
.
'null'
;
$first
=
false
;
$first
=
false
;
}
}
if
(
isset
(
$GET_arr
[
'DeutschCodec'
])
){
if
(
isset
(
$GET_arr
[
'acodecger'
])
){
$Where
.=
(
$first
?
""
:
" AND "
)
.
'acodecger = "'
.
$GET_arr
[
'DeutschCodec'
]
.
'"'
;
$Where
.=
(
$first
?
""
:
" AND "
)
.
'acodecger = "'
.
$GET_arr
[
'acodecger'
]
.
'"'
;
$first
=
false
;
}
if
(
isset
(
$GET_arr
[
'acodeceng'
])
){
$Where
.=
(
$first
?
""
:
" AND "
)
.
'acodeceng = "'
.
$GET_arr
[
'acodeceng'
]
.
'"'
;
$first
=
false
;
}
if
(
isset
(
$GET_arr
[
'vcodec'
])
){
$Where
.=
(
$first
?
""
:
" AND "
)
.
'vcodec = "'
.
$GET_arr
[
'vcodec'
]
.
'"'
;
$first
=
false
;
}
if
(
isset
(
$GET_arr
[
'resolution'
])
){
$Where
.=
(
$first
?
""
:
" AND "
)
.
'resolution = "'
.
$GET_arr
[
'resolution'
]
.
'"'
;
$first
=
false
;
}
if
(
isset
(
$GET_arr
[
'channelsger'
])
){
$Where
.=
(
$first
?
""
:
" AND "
)
.
'channelsger = "'
.
$GET_arr
[
'channelsger'
]
.
'"'
;
$first
=
false
;
}
if
(
isset
(
$GET_arr
[
'channelseng'
])
){
$Where
.=
(
$first
?
""
:
" AND "
)
.
'channelsger = "'
.
$GET_arr
[
'channelseng'
]
.
'"'
;
$first
=
false
;
}
if
(
isset
(
$GET_arr
[
'hdd'
])
){
$Where
.=
(
$first
?
""
:
" AND "
)
.
'hdd = "'
.
$GET_arr
[
'hdd'
]
.
'"'
;
$first
=
false
;
$first
=
false
;
}
}
if
(
isset
(
$GET_arr
[
'
EnglischCodec
'
])
){
if
(
isset
(
$GET_arr
[
'
checked
'
])
){
$Where
.=
(
$first
?
""
:
" AND "
)
.
'
acodeceng = "'
.
$GET_arr
[
'EnglischCodec
'
]
.
'"'
;
$Where
.=
(
$first
?
""
:
" AND "
)
.
'
checked = "'
.
$GET_arr
[
'checked
'
]
.
'"'
;
$first
=
false
;
$first
=
false
;
}
}
if
(
isset
(
$GET_arr
[
'Suche'
])){
if
(
isset
(
$GET_arr
[
'Suche'
])){
...
@@ -80,6 +104,11 @@ class MediaDBViewerAPI{
...
@@ -80,6 +104,11 @@ class MediaDBViewerAPI{
$Where
.=
((
$first
?
""
:
" AND "
)
.
$Suche
);
$Where
.=
((
$first
?
""
:
" AND "
)
.
$Suche
);
$first
=
false
;
$first
=
false
;
}
}
// größergleich oder kleinergleich Filter:
// In Filter:
// Attribute von Filmen die nur über eine M:N Verbindung vorhanden sind:
// Attribute von Filmen die nur über eine M:N Verbindung vorhanden sind:
if
(
isset
(
$GET_arr
[
'GenreID'
])
OR
isset
(
$GET_arr
[
'Genre'
])
OR
isset
(
$GET_arr
[
'SchauspielerID'
])
OR
isset
(
$GET_arr
[
'Schauspieler'
])
OR
isset
(
$GET_arr
[
'SchauspielerSuche'
])){
if
(
isset
(
$GET_arr
[
'GenreID'
])
OR
isset
(
$GET_arr
[
'Genre'
])
OR
isset
(
$GET_arr
[
'SchauspielerID'
])
OR
isset
(
$GET_arr
[
'Schauspieler'
])
OR
isset
(
$GET_arr
[
'SchauspielerSuche'
])){
if
(
isset
(
$GET_arr
[
'GenreID'
])){
if
(
isset
(
$GET_arr
[
'GenreID'
])){
...
...
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