Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
MediaDBPythonScripte
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
8
Issues
8
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
MediaDBPythonScripte
Commits
780ff8ea
Commit
780ff8ea
authored
Feb 25, 2016
by
Nico Schallehn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lastUpdate hinzugefügt
parent
64ddd722
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
media.class.php
media.class.php
+2
-0
No files found.
media.class.php
View file @
780ff8ea
...
@@ -525,6 +525,7 @@ class Media {
...
@@ -525,6 +525,7 @@ class Media {
$changed
=
""
;
$changed
=
""
;
$first
=
true
;
$first
=
true
;
$update
=
""
;
$update
=
""
;
$DataArr
[
"lastUpdate"
]
=
date
(
"Y-m-d"
);
foreach
(
$DataArr
AS
$key
=>
$value
){
foreach
(
$DataArr
AS
$key
=>
$value
){
if
(
!
in_array
(
$key
,
array
(
"Schauspieler"
,
"Genre"
,
"3d"
))
AND
!
in_array
(
$value
,
array
(
"n/A"
,
""
))){
if
(
!
in_array
(
$key
,
array
(
"Schauspieler"
,
"Genre"
,
"3d"
))
AND
!
in_array
(
$value
,
array
(
"n/A"
,
""
))){
if
(
!
(
md5
(
trim
(
$Film
[
$key
]))
==
md5
(
trim
(
$DataArr
[
$key
]))))
{
if
(
!
(
md5
(
trim
(
$Film
[
$key
]))
==
md5
(
trim
(
$DataArr
[
$key
]))))
{
...
@@ -554,6 +555,7 @@ class Media {
...
@@ -554,6 +555,7 @@ class Media {
echo
$Ausgabe
;
echo
$Ausgabe
;
file_put_contents
(
"./phpTestout/"
.
$DataArr
[
'imdbID'
]
.
".txt"
,
$Ausgabe
.
PHP_EOL
.
$SQL
.
PHP_EOL
,
FILE_APPEND
);
file_put_contents
(
"./phpTestout/"
.
$DataArr
[
'imdbID'
]
.
".txt"
,
$Ausgabe
.
PHP_EOL
.
$SQL
.
PHP_EOL
,
FILE_APPEND
);
file_put_contents
(
"./phpTestout/update_CheckOnly.txt"
,
$Ausgabe
.
PHP_EOL
.
$SQL
.
PHP_EOL
,
FILE_APPEND
);
file_put_contents
(
"./phpTestout/update_CheckOnly.txt"
,
$Ausgabe
.
PHP_EOL
.
$SQL
.
PHP_EOL
,
FILE_APPEND
);
file_put_contents
(
"./phpTestout/update.sql"
,
$SQL
.
PHP_EOL
,
FILE_APPEND
);
}
}
echo
PHP_EOL
;
echo
PHP_EOL
;
return
true
;
return
true
;
...
...
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