hasPageExpired($cachingkey)){ $willhavetocache=true; } else { if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE'])){ if (strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']) <= date(DATE_RFC822, $myhtmlcache->getCachedPageDate($cachingkey))){ header(null); header('HTTP/1.0 304 Not Modified'); die(); } } header('Last-Modified: '.date(DATE_RFC822, $myhtmlcache->getCachedPageDate($cachingkey))); echo $myhtmlcache->getCachedPage($cachingkey); die(); } } $cache = array(); if (file_exists('./vidcache.dat')){ $cache=unserialize(file_get_contents('./vidcache.dat')); } ?> All videos from <?php echo htmlspecialchars($sitename);?> Home > All vids
All videos in random mode
['.htmlspecialchars($art).''; foreach ($hlartists as $tis){ if (isset($tis['name'])&&$tis['name']==$art){ echo ' ('.htmlspecialchars($tis['styles']).')'; } } echo '] '; } echo '
'; if ($selart!=''){ $querystring = 'listalbums='.urlencode($selart); $album_file=null; $remoteapicache=array(); if (file_exists('./vidremoteapicache-v2.dat')){ $remoteapicache=unserialize(file_get_contents('./vidremoteapicache-v2.dat')); if (isset($remoteapicache[$querystring])){ $album_file=$remoteapicache[$querystring]; } } if ($album_file==null) { $query=file_get_contents($clewnapiurl.'?'.$querystring); if (file_exists('./vidremoteapicache-v2.dat')){ $remoteapicache=unserialize(file_get_contents('./vidremoteapicache-v2.dat')); } $remoteapicache[$querystring]=$query; file_put_contents('./vidremoteapicache-v2.dat', serialize($remoteapicache)); } else { $query=$album_file; } //$query=file_get_contents($clewnapiurl.'?'.$querystring); $query2=file_get_contents($serverapi.'?listalbums='.urlencode($selart)); if ($query!==false&&$query2!==false){$query=trim($query).trim($query2);} $selalb=''; if ($query!==false){ $arts= explode("\n", trim($query)); if (isset($_GET['b'])){$selalb=$_GET['b'];} $run=false; foreach ($arts as $art){ $rerun=false; if ((in_array(html_entity_decode($art, ENT_COMPAT | ENT_HTML401 ), $cache))) {$rerun=true;} else if (intval(trim(file_get_contents($videoapiurl.'?hasalbum='.urlencode(html_entity_decode($art)))))>0){ $cached=array(); if (file_exists('./vidcache.dat')){ $cached=unserialize(file_get_contents('./vidcache.dat')); } array_push($cached, html_entity_decode($art)); file_put_contents('./vidcache.dat', serialize($cached)); $rerun=true; } if ($rerun){ $run=true; $col=''; if (html_entity_decode($art)==$selalb){$col='background-color:white;';} echo '['.$art.'] '; } } if (!$run){ echo 'This artist/project has no video available for now… Listen to the music maybe?'; } } else {echo 'no album found. Maybe a temporary overload? Try again later maybe';} echo '
'; if ($selalb!=''){ $query=file_get_contents($videoapiurl.'?baselistformats=1'); if ($query!==false){ $formats = explode("\n", trim($query)); $query=file_get_contents($videoapiurl.'?listalbvids='.urlencode($selalb)); if ($query!==false){ $array=explode("\n",trim($query)); for ($i=0;$i'; echo '
'.htmlspecialchars($array[$i+1]).' - Download '; foreach ($formats as $format){ echo ''.htmlspecialchars($format).''; } echo '
'; echo 'Share?
'; $i++; } } else {echo 'Video tier API did not reply. Maybe a temporary overload? You may listen to the music maybe?';} } else {echo 'Video tier API did not reply. Maybe a temporary overload? You may listen to the music maybe?';} } } ?> cachePage($cachingkey, $htmlcode); } } } ?>