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
e0d74eb9
Commit
e0d74eb9
authored
Jan 13, 2016
by
Nico Schallehn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Filterung nach 3D hinzugefügt
parent
154aa01f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
1 deletion
+15
-1
api.class.php
api.class.php
+15
-1
No files found.
api.class.php
View file @
e0d74eb9
...
...
@@ -54,7 +54,21 @@ class MediaDBViewerAPI{
else
{
// Wenn irgenein filter gesetzt ist...
if
(
isset
(
$GET_arr
[
'imdbID'
])){
$Where
=
"WHERE "
.
((
isset
(
$GET_arr
[
'imdbID'
])
AND
(
is_numeric
(
$GET_arr
[
'imdbID'
])))
?
'imdbID = "'
.
$GET_arr
[
'imdbID'
]
.
'"'
:
""
);
$first
=
true
;
$Where
=
"WHERE "
;
if
(
isset
(
$GET_arr
[
'imdbID'
])
AND
is_numeric
(
$GET_arr
[
'imdbID'
])){
$Where
.=
(
$first
?
""
:
" AND "
)
.
'imdbID = "'
.
$GET_arr
[
'imdbID'
]
.
'"'
;
$first
=
false
;
}
if
(
isset
(
$GET_arr
[
'3D'
])
AND
is_bool
(
$GET_arr
[
'3D'
])){
$Where
.=
(
$first
?
""
:
" AND "
)
.
'3D = "'
.
$GET_arr
[
'3D'
]
.
'"'
;
$first
=
false
;
}
}
$Query
=
"SELECT "
.
$this
->
iset
(
$GET_arr
[
'Spalten'
],
"*"
)
.
" FROM "
.
$GET_arr
[
'Table'
]
.
" "
...
...
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