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
3a7a982b
Commit
3a7a982b
authored
Jan 19, 2016
by
Nico Schallehn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
63845d89
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
api.class.php
api.class.php
+8
-8
No files found.
api.class.php
View file @
3a7a982b
...
@@ -43,22 +43,22 @@ class MediaDBViewerAPI{
...
@@ -43,22 +43,22 @@ class MediaDBViewerAPI{
else
{
else
{
// Array für istgleich vergleiche
// Array für istgleich vergleiche
$IstgleichArr
=
array
(
"imdbID"
=>
"imdbID"
,
"3d"
=>
"3d"
);
$IstgleichArr
=
array
(
"imdbID"
=>
"imdbID"
,
"3d"
=>
"3d"
,
"acodecger"
=>
"acodecger"
,
"acodeceng"
=>
"acodeceng"
,
"vcodec"
=>
"vcodec"
,
"resolution"
=>
"resolution"
,
"channelsger"
=>
"channelsger"
,
"channelseng"
=>
"channelseng"
,
"hdd"
=>
"hdd"
,
"checked"
=>
"checked"
);
// Array für größer Kleiner Vergleich
// Array für größer Kleiner Vergleich
$GrossKleinerArr
=
array
(
"Jahr"
=>
"year"
,
"Groesse"
=>
"size"
);
$GrossKleinerArr
=
array
(
"Jahr"
=>
"year"
,
"Groesse"
=>
"size"
);
$Array
=
array_merge
(
array_intersect_key
(
$GET_arr
,
$GrossKleinerArr
),
array_intersect_key
(
$GET_arr
,
$IstgleichArr
));
$Array
=
array_merge
(
array_intersect_key
(
$GET_arr
,
$GrossKleinerArr
),
array_intersect_key
(
$GET_arr
,
$IstgleichArr
));
var_dump
(
$Array
)
;
//count($Array)>0
;
// Wenn irgenein filter gesetzt ist Filterung nur für Tablle Filme!!
// Wenn irgenein filter gesetzt ist Filterung nur für Tablle Filme!!
if
(
(
isset
(
$GET_arr
[
'imdbID'
])
OR
isset
(
$GET_arr
[
'3d'
])
OR
isset
(
$GET_arr
[
'GenreID'
])
OR
isset
(
$GET_arr
[
'Genre'
])
OR
if
(
(
isset
(
$GET_arr
[
'GenreID'
])
OR
isset
(
$GET_arr
[
'Genre'
])
OR
isset
(
$GET_arr
[
'SchauspielerID'
])
OR
isset
(
$GET_arr
[
'Schauspieler'
])
OR
isset
(
$GET_arr
[
'SchauspielerID'
])
OR
isset
(
$GET_arr
[
'Schauspieler'
])
OR
isset
(
$GET_arr
[
'Suche'
])
OR
isset
(
$GET_arr
[
'SchauspielerSuche'
])
OR
isset
(
$GET_arr
[
'Suche'
])
OR
isset
(
$GET_arr
[
'SchauspielerSuche'
])
OR
isset
(
$GET_arr
[
'Englisch'
])
OR
isset
(
$GET_arr
[
'Deutsch'
])
OR
isset
(
$GET_arr
[
'Englisch'
])
OR
isset
(
$GET_arr
[
'Deutsch'
])
OR
isset
(
$GET_arr
[
'acodecger'
])
OR
isset
(
$GET_arr
[
'acodeceng'
])
OR
isset
(
$GET_arr
[
'Jahr'
])
OR
(
count
(
$Array
)
>
0
)
isset
(
$GET_arr
[
'vcodec'
])
OR
isset
(
$GET_arr
[
'resolution'
])
OR
isset
(
$GET_arr
[
'channelsger'
])
OR
isset
(
$GET_arr
[
'channelseng'
])
OR
)
AND
$GET_arr
[
'Tabelle'
]
==
"Filme"
){
// Filterung nur für Tablle Filme!!
isset
(
$GET_arr
[
'hdd'
])
OR
isset
(
$GET_arr
[
'checked'
])
OR
isset
(
$GET_arr
[
'Jahr'
]))
AND
$GET_arr
[
'Tabelle'
]
==
"Filme"
){
// Filterung nur für Tablle Filme!!
$first
=
true
;
$first
=
true
;
$imdbArrToCompar
=
0
;
$imdbArrToCompar
=
0
;
$Where
=
"WHERE "
;
$Where
=
"WHERE "
;
...
...
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