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
9113609d
Commit
9113609d
authored
Feb 09, 2016
by
Nico Schallehn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
5dc73f40
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
api.class.php
api.class.php
+4
-4
No files found.
api.class.php
View file @
9113609d
...
@@ -115,7 +115,7 @@ class MediaDBAPI{
...
@@ -115,7 +115,7 @@ class MediaDBAPI{
//array_push($this->SpaltenEpi, "checked", "views", "comment", "added", "lastView");
//array_push($this->SpaltenEpi, "checked", "views", "comment", "added", "lastView");
/*$this->FilterEinf = array_merge($this->FilterEinf, array( "acodecger" => "acodecger", "acodeceng" => "acodeceng", "vcodec" => "vcodec",
/*$this->FilterEinf = array_merge($this->FilterEinf, array( "acodecger" => "acodecger", "acodeceng" => "acodeceng", "vcodec" => "vcodec",
"channelsger" => "channelsger", "channelseng" => "channelseng"));*/
"channelsger" => "channelsger", "channelseng" => "channelseng"));*/
//
$this->FilterKomp = array_merge($this->FilterKomp, array("Hinzugefuegt" => "added", "Gesehen" => "lastView", "Gesehenzaehler" => "views"));
$this
->
FilterKomp
=
array_merge
(
$this
->
FilterKomp
,
array
(
"Hinzugefuegt"
=>
"added"
,
"Gesehen"
=>
"lastView"
,
"Gesehenzaehler"
=>
"views"
));
array_push
(
$this
->
StatiViews
,
"watchStatistic"
,
"belegterSpeicher"
,
"freierSpeicher"
);
array_push
(
$this
->
StatiViews
,
"watchStatistic"
,
"belegterSpeicher"
,
"freierSpeicher"
);
$this
->
Update
=
true
;
$this
->
Update
=
true
;
}
}
...
@@ -299,16 +299,16 @@ class MediaDBAPI{
...
@@ -299,16 +299,16 @@ class MediaDBAPI{
$Spalten
=
""
;
$Spalten
=
""
;
foreach
(
$SpaltenArr
as
$value
)
{
foreach
(
$SpaltenArr
as
$value
)
{
if
(
!
(
in_array
(
$value
,
$this
->
SpaltenFil
)
OR
in_array
(
$value
,
array
(
"Genre"
,
"Schauspieler"
,
"Statistik"
,
"*"
)))){
if
(
!
(
in_array
(
$value
,
$this
->
SpaltenFil
)
OR
in_array
(
$value
,
array
(
"Genre"
,
"Schauspieler"
,
"Statistik"
,
"*"
)))){
echo
"Lösche: "
.
$value
.
PHP_EOL
;
//
echo "Lösche: ".$value.PHP_EOL;
unset
(
$SpaltenArr
[
$value
]);
unset
(
$SpaltenArr
[
$value
]);
}
else
{
}
else
{
echo
"behalte: "
.
$value
.
PHP_EOL
;
//
echo "behalte: ".$value.PHP_EOL;
$Spalten
.=
(
$first
?
""
:
","
)
.
$value
;
$Spalten
.=
(
$first
?
""
:
","
)
.
$value
;
$first
=
false
;
$first
=
false
;
}
}
}
}
echo
$Spalten
.
PHP_EOL
;
//
echo $Spalten.PHP_EOL;
/*
/*
// Lösche Schauspieler und Genre aus der Select Anweisung
// Lösche Schauspieler und Genre aus der Select Anweisung
$GET_arr['Spalten'] = str_replace("Genre,", "", $GET_arr['Spalten']);
$GET_arr['Spalten'] = str_replace("Genre,", "", $GET_arr['Spalten']);
...
...
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