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
ac63a4ee
Commit
ac63a4ee
authored
Jan 15, 2016
by
Nico Schallehn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Englische Filter eingebaut
parent
2d7ca63a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
api.class.php
api.class.php
+6
-1
No files found.
api.class.php
View file @
ac63a4ee
...
@@ -53,7 +53,8 @@ class MediaDBViewerAPI{
...
@@ -53,7 +53,8 @@ class MediaDBViewerAPI{
else
{
else
{
// Wenn irgenein filter gesetzt ist...
// Wenn irgenein filter gesetzt ist...
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
[
'imdbID'
])
OR
isset
(
$GET_arr
[
'3d'
])
OR
isset
(
$GET_arr
[
'GenreID'
])
OR
isset
(
$GET_arr
[
'Genre'
])
OR
isset
(
$GET_arr
[
'SchauspielerID'
])
OR
isset
(
$GET_arr
[
'Schauspieler'
])
OR
isset
(
$GET_arr
[
'Suche'
])
OR
isset
(
$GET_arr
[
'SchauspielerSuche'
])
)
isset
(
$GET_arr
[
'SchauspielerID'
])
OR
isset
(
$GET_arr
[
'Schauspieler'
])
OR
isset
(
$GET_arr
[
'Suche'
])
OR
isset
(
$GET_arr
[
'SchauspielerSuche'
])
OR
isset
(
$GET_arr
[
'englisch'
]))
AND
$GET_arr
[
'Tabelle'
]
==
"Filme"
){
// Filterung nur für Tablle Filme!!
AND
$GET_arr
[
'Tabelle'
]
==
"Filme"
){
// Filterung nur für Tablle Filme!!
$first
=
true
;
$first
=
true
;
$imdbArrToCompar
=
0
;
$imdbArrToCompar
=
0
;
...
@@ -67,6 +68,10 @@ class MediaDBViewerAPI{
...
@@ -67,6 +68,10 @@ class MediaDBViewerAPI{
$Where
.=
(
$first
?
""
:
" AND "
)
.
'3d '
.
(
$GET_arr
[
'3d'
]
?
"!="
:
"="
)
.
'""'
;
$Where
.=
(
$first
?
""
:
" AND "
)
.
'3d '
.
(
$GET_arr
[
'3d'
]
?
"!="
:
"="
)
.
'""'
;
$first
=
false
;
$first
=
false
;
}
}
if
(
isset
(
$GET_arr
[
'englisch'
])
){
$Where
.=
(
$first
?
""
:
" AND "
)
.
'acodeceng '
.
(
$GET_arr
[
'3d'
]
?
"!="
:
"="
)
.
'null'
;
$first
=
false
;
}
if
(
isset
(
$GET_arr
[
'Suche'
])){
if
(
isset
(
$GET_arr
[
'Suche'
])){
$Suche
=
" `name` LIKE '%"
.
$GET_arr
[
'Suche'
]
.
"%' OR `md5` LIKE '%"
.
$GET_arr
[
'Suche'
]
.
"%' OR `comment` LIKE '%"
.
$GET_arr
[
'Suche'
]
.
"%'"
;
$Suche
=
" `name` LIKE '%"
.
$GET_arr
[
'Suche'
]
.
"%' OR `md5` LIKE '%"
.
$GET_arr
[
'Suche'
]
.
"%' OR `comment` LIKE '%"
.
$GET_arr
[
'Suche'
]
.
"%'"
;
//OR `year` = '".$GET_arr['Suche']."' OR `resolution` LIKE '%".$GET_arr['Suche']."%'
//OR `year` = '".$GET_arr['Suche']."' OR `resolution` LIKE '%".$GET_arr['Suche']."%'
...
...
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