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
5888f6cb
Commit
5888f6cb
authored
Feb 07, 2016
by
Nico Schallehn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
c80ae82b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
api.class.php
api.class.php
+5
-5
No files found.
api.class.php
View file @
5888f6cb
...
@@ -293,7 +293,7 @@ class MediaDBAPI{
...
@@ -293,7 +293,7 @@ class MediaDBAPI{
$Genre
=
$this
->
query
(
$Query
);
$Genre
=
$this
->
query
(
$Query
);
if
(
$this
->
DB_Objekt
->
error
!=
""
){
return
$this
->
error
(
1005
,
$this
->
DB_Objekt
->
error
);}
if
(
$this
->
DB_Objekt
->
error
!=
""
){
return
$this
->
error
(
1005
,
$this
->
DB_Objekt
->
error
);}
$GenreArr
=
$Genre
->
fetch_array
();
$GenreArr
=
$Genre
->
fetch_array
();
$tempArray
[
"Genre"
]
=
explode
(
","
,
utf8_encode
(
$GenreArr
[
"Genre"
]));
$tempArray
[
"Genre"
]
=
explode
(
","
,
(
$GenreArr
[
"Genre"
]));
}
}
if
(
$ListSchauspieler
){
if
(
$ListSchauspieler
){
$Query
=
'SELECT group_concat(s.name ORDER BY s.name) AS Schauspieler '
.
$Query
=
'SELECT group_concat(s.name ORDER BY s.name) AS Schauspieler '
.
...
@@ -301,7 +301,7 @@ class MediaDBAPI{
...
@@ -301,7 +301,7 @@ class MediaDBAPI{
$Schauspieler
=
$this
->
query
(
$Query
);
$Schauspieler
=
$this
->
query
(
$Query
);
if
(
$this
->
DB_Objekt
->
error
!=
""
){
return
$this
->
error
(
1005
,
$this
->
DB_Objekt
->
error
);}
if
(
$this
->
DB_Objekt
->
error
!=
""
){
return
$this
->
error
(
1005
,
$this
->
DB_Objekt
->
error
);}
$SchauspielerArr
=
$Schauspieler
->
fetch_array
();
$SchauspielerArr
=
$Schauspieler
->
fetch_array
();
$tempArray
[
"Schauspieler"
]
=
explode
(
","
,
utf8_encode
(
$SchauspielerArr
[
"Schauspieler"
]));
$tempArray
[
"Schauspieler"
]
=
explode
(
","
,
(
$SchauspielerArr
[
"Schauspieler"
]));
}
}
if
(
$Statistik
==
true
)
{
if
(
$Statistik
==
true
)
{
if
((
$GET_arr
[
'Tabelle'
]
==
"Staffeln"
))
{
if
((
$GET_arr
[
'Tabelle'
]
==
"Staffeln"
))
{
...
@@ -371,7 +371,7 @@ class MediaDBAPI{
...
@@ -371,7 +371,7 @@ class MediaDBAPI{
$result
=
$this
->
query
(
$Query
);
$result
=
$this
->
query
(
$Query
);
if
(
$this
->
DB_Objekt
->
error
!=
""
){
return
$this
->
error
(
1005
,
$this
->
DB_Objekt
->
error
);}
if
(
$this
->
DB_Objekt
->
error
!=
""
){
return
$this
->
error
(
1005
,
$this
->
DB_Objekt
->
error
);}
return
$this
->
error
(
1008
,
utf8_encode
(
$Query
));
return
$this
->
error
(
1008
,
(
$Query
));
//utf8_encode
}
}
}
/*
}
/*
else if(isset($POST_arr["season_nr"]) AND ($GET_arr["Tabelle"] == "Staffeln") ){
else if(isset($POST_arr["season_nr"]) AND ($GET_arr["Tabelle"] == "Staffeln") ){
...
@@ -430,7 +430,7 @@ class MediaDBAPI{
...
@@ -430,7 +430,7 @@ class MediaDBAPI{
$tempArray
=
array
();
$tempArray
=
array
();
foreach
(
$finfo
as
$val
)
{
foreach
(
$finfo
as
$val
)
{
if
(
!
((
$val
->
name
==
"imdbID"
)
AND
$NoimdbID
)){
if
(
!
((
$val
->
name
==
"imdbID"
)
AND
$NoimdbID
)){
$tempArray
[
$val
->
name
]
=
utf8_encode
(
$entry
[
$val
->
name
]);
$tempArray
[
$val
->
name
]
=
(
$entry
[
$val
->
name
]);
//utf8_encode
}
}
}
}
array_push
(
$entryArray
,
$tempArray
);
array_push
(
$entryArray
,
$tempArray
);
...
@@ -469,7 +469,7 @@ class MediaDBAPI{
...
@@ -469,7 +469,7 @@ class MediaDBAPI{
//$this->Statistik["QueryCounter"]++;
//$this->Statistik["QueryCounter"]++;
$ret
=
$this
->
DB_Objekt
->
query
(
$Query
);
$ret
=
$this
->
DB_Objekt
->
query
(
$Query
);
$this
->
Querys
[
$this
->
Statistik
[
"QueryCounter"
]
++
]
=
array
(
"Query"
=>
utf8_encode
(
$Query
),
$this
->
Querys
[
$this
->
Statistik
[
"QueryCounter"
]
++
]
=
array
(
"Query"
=>
(
$Query
),
"MySQLnum_rows"
=>
$ret
->
num_rows
,
"MySQLnum_rows"
=>
$ret
->
num_rows
,
"MySQLfield_count"
=>
$this
->
DB_Objekt
->
field_count
,
"MySQLfield_count"
=>
$this
->
DB_Objekt
->
field_count
,
"MySQLerror"
=>
$this
->
DB_Objekt
->
error
);
"MySQLerror"
=>
$this
->
DB_Objekt
->
error
);
...
...
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