Commit f303fbdb authored by Nico Schallehn's avatar Nico Schallehn

test

parent 02a50281
......@@ -98,21 +98,21 @@ if($_GET["action"] == "filme"){
}else if($_GET["action"] == "vergleich"){
$titel = "Vergleich von 2 DB";
$MovieArray = jsonCacheDecoder("http://mediadb.ddns.net/api.php?key=ee3aTi5soo&action=GetDataList&Tabelle=Filme&Spalten=imdbID,3d,name,md5,added&3d=0&Sortierung=added DESC");
$MovieArray = jsonCacheDecoder("http://mediadb.ddns.net/api.php?key=ee3aTi5soo&action=GetDataList&Tabelle=Filme&Spalten=imdbID,3d,name,md5,added,size&3d=0&Sortierung=added DESC");
$movies="";
//var_dump($MovieArray["Antwort"]);
foreach ($MovieArray["Antwort"]["Data"] as $key => $value) {
$MovieArray = $API->API_GetDataList(array("Tabelle"=>"Filme", "Spalten"=>"imdbID,name,md5","imdbID"=>$value["imdbID"]));
$MovieArray = $API->API_GetDataList(array("Tabelle"=>"Filme", "Spalten"=>"imdbID,name,md5,size","imdbID"=>$value["imdbID"]));
//var_dump($MovieArray["Data"][0]["imdbID"]);
if(!isset($MovieArray["Data"][0]["imdbID"])){
$movies .= "<tr><td>".$value["imdbID"].", ".$value["name"]." ".$value["3d"]."</td><td>film nicht vorhanden</td><td>".$value["added"]."</td></tr>";
$movies .= "<tr><td>".$value["imdbID"].", ".subst($value["name"],0,30)." ".$value["3d"]."</td><td>film nicht vorhanden</td><td>".$value["added"]."</td></tr>";
}else if(!($MovieArray["Data"][0]["md5"] == $value["md5"])){
$movies .= "<tr><td>".$value["imdbID"].", ".$value["name"]." ".$value["3d"]."</td><td>MD5 unterschiedlich!!</td><td>".$value["added"]."</td></tr>";
$movies .= "<tr><td>".$value["imdbID"].", ".subst($value["name"],0,30)." ".$value["3d"]."</td><td>MD5 unterschiedlich!!</td><td>".$MovieArray["Data"][0]["md5"]."<>".$value["md5"]."<br>".$MovieArray["Data"][0]["size"]."<>".$value["size"]."</td></tr>";
}
}
$content = '<div class="content"><table><tr><th>Filmname</th><th>Status</th><th>...</th></tr>'.$movies.'</table></div>';
$content = '<div class="content"><table><tr><th>Filmname</th><th>Status</th><th>Daten</th></tr>'.$movies.'</table></div>';
}else if (isset($_GET["action"])){
$titel = "404 - Nicht gefunden";
$content = '<div class="content"><div class="error-404 text-center">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment