2012-12-13 04:21:16 +09:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta http-equiv="Content-type" content="text/html;charset=UTF-8">
|
|
|
|
<title>youtube-dl</title>
|
|
|
|
<link rel="stylesheet" href="style.css" type="text/css">
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<h1>youtube-dl downloads</h1>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
$DOWNLOAD_DIR = 'downloads';
|
|
|
|
|
2013-01-01 00:54:34 +09:00
|
|
|
$versions = array_filter(scandir($DOWNLOAD_DIR), function($v) {return $v{0} != '.';});
|
2012-12-13 04:21:16 +09:00
|
|
|
sort($versions);
|
|
|
|
|
|
|
|
$latest = end($versions);
|
|
|
|
|
|
|
|
echo '<div class="latest">';
|
|
|
|
echo '<div>Latest (v' . htmlspecialchars($latest) . ') downloads:</div>';
|
2012-12-13 04:32:00 +09:00
|
|
|
echo '<a href="downloads/' . htmlspecialchars($latest) . '/youtube-dl">youtube-dl</a> ';
|
|
|
|
echo '<a href="downloads/' . htmlspecialchars($latest) . '/youtube-dl.exe">youtube-dl.exe</a> ';
|
2013-01-01 00:54:34 +09:00
|
|
|
echo '<a href="downloads/' . htmlspecialchars($latest) . '/youtube-dl-' . htmlspecialchars($latest) . '.tar.gz">youtube-dl-' . htmlspecialchars($latest) . '.tar.gz</a>';
|
2012-12-13 04:21:16 +09:00
|
|
|
echo '</div>';
|
|
|
|
|
2013-05-07 21:25:15 +09:00
|
|
|
echo '<ul class="all-versions">';
|
2013-01-01 00:54:34 +09:00
|
|
|
foreach ($versions as $version) {
|
|
|
|
echo '<li><a href="downloads/' . htmlspecialchars($version) . '">' . htmlspecialchars($version) . '</a></li>';
|
2012-12-13 04:21:16 +09:00
|
|
|
}
|
|
|
|
echo '</ul>';
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
|
|
|
|
<table border="0" id="rgb" style="float: right;">
|
|
|
|
<tr><td><a class="button" id="main-homepage" href="http://rg3.github.com/youtube-dl/">Homepage</a></td></tr>
|
|
|
|
<tr><td><a class="button" id="g" href="http://rg3.github.com/youtube-dl/download.html">Download instructions</a></td></tr>
|
|
|
|
<tr><td><a class="button" id="r" href="http://rg3.github.com/youtube-dl/documentation.html">Documentation</a></td></tr>
|
|
|
|
<tr><td><a class="button" id="main-support" href="https://github.com/rg3/youtube-dl/issues/new">Support</a></td></tr>
|
|
|
|
<tr><td><a class="button" id="y" href="https://github.com/rg3/youtube-dl/">Develop</a></td></tr>
|
|
|
|
<tr><td><a class="button" id="b" href="http://rg3.github.com/youtube-dl/about.html">About</a></td></tr>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<div class="note">
|
|
|
|
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/">
|
|
|
|
<img alt="Creative Commons License" style="border-width:0"
|
|
|
|
src="http://i.creativecommons.org/l/by-nc-sa/3.0/80x15.png" /></a><br />
|
|
|
|
Copyright © 2006-2012 Ricardo Garcia Gonzalez</div>
|
|
|
|
</body>
|
|
|
|
</html>
|