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
97b6298c
Commit
97b6298c
authored
Feb 09, 2016
by
Nico Schallehn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
14ee8223
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
3 deletions
+20
-3
api.class.php
api.class.php
+20
-3
No files found.
api.class.php
View file @
97b6298c
...
...
@@ -307,10 +307,10 @@ class MediaDBAPI{
$Spalten
=
""
;
if
(
$GET_arr
[
"Tabelle"
]
==
"Episoden"
OR
$GET_arr
[
"Tabelle"
]
==
"Filme"
){
if
(
$GET_arr
[
"Tabelle"
]
==
"Episoden"
){
foreach
(
$SpaltenArr
as
$value
)
{
var_dump
(
$this
->
SpaltenEpisoden
);
if
(
(
!
(
in_array
(
$value
,
$this
->
SpaltenFil
)
==
1
))
OR
(
!
(
in_array
(
$value
,
$this
->
SpaltenEpisoden
)
==
1
)
)){
if
(
!
(
in_array
(
$value
,
$this
->
SpaltenEpisoden
)
==
1
)){
echo
"Lösche: "
.
$value
.
PHP_EOL
;
unset
(
$SpaltenArr
[
$value
]);
...
...
@@ -322,7 +322,24 @@ class MediaDBAPI{
$first
=
false
;
}
}
}
else
{
}
else
if
(
$GET_arr
[
"Tabelle"
]
==
"Filme"
){
foreach
(
$SpaltenArr
as
$value
)
{
var_dump
(
$this
->
SpaltenEpisoden
);
if
(
!
(
in_array
(
$value
,
$this
->
SpaltenFil
)
==
1
)){
echo
"Lösche: "
.
$value
.
PHP_EOL
;
unset
(
$SpaltenArr
[
$value
]);
}
else
{
echo
"behalte: "
.
$value
.
PHP_EOL
;
$Spalten
.=
(
$first
?
""
:
","
)
.
$value
;
$first
=
false
;
}
}
}
else
{
$Spalten
=
$GET_arr
[
'Spalten'
];
}
//echo $Spalten.PHP_EOL;
...
...
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