Commit abea2dbf authored by Nico Schallehn's avatar Nico Schallehn

test

parent 5916001a
......@@ -3,6 +3,9 @@ include('../api.class.php');
define("Fanart_Key","9902c9197f457401ff7a7eba839213ba");
function jsonCacheDecoder($url){
$CacheFolderName = "jsoncache/";
if(!is_dir($CacheFolderName)){
exec("mkdir ".$CacheFolderName);
}
$filename= date("y-m-d_",time()).md5($url).".json";
if(!file_exists($CacheFolderName.$filename)){
file_put_contents($CacheFolderName.$filename, file_get_contents($url));
......@@ -45,7 +48,7 @@ $StatistikArray = $API->API_GetStatistic(array("Statistik"=>"DBstatistik"));
if($_GET["action"] == "filme"){
$titel = "Filme";
$content = '<h1 class="recent">Zuletzt hinzugefügt:</h3>
$content = '<div class="content"><h1 class="recent">Zuletzt hinzugefügt:</h3>
<ul id="flexiselDemo3">
<li><img src="images/1.jpg" class="img-responsive"/><div class="grid-flex"><a href="#">Syenergy 2mm</a><p>22.10.2014 | 14:40</p></div></li>
<li><img src="images/2.jpg" class="img-responsive"/><div class="grid-flex"><a href="#">Surf Yoke</a><p>22.01.2015 | 14:40</p></div></li>
......@@ -80,7 +83,7 @@ if($_GET["action"] == "filme"){
});
</script>
<script type="text/javascript" src="js/jquery.flexisel.js"></script>';
<script type="text/javascript" src="js/jquery.flexisel.js"></script></div>';
}else if (isset($_GET["action"])){
$titel = "404 - Nicht gefunden";
......
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