Browse Source

Correct download links

download-server-ytdl-org
Philipp Hagemeister 12 years ago
parent
commit
1f69efb978
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      index.php

+ 4
- 4
index.php View File

@ -12,16 +12,16 @@
<?php <?php
$DOWNLOAD_DIR = 'downloads'; $DOWNLOAD_DIR = 'downloads';
$versions = array_filter(function($v) {return $v{0} != '.'}, scandir($DOWNLOAD_DIR));
$versions = array_filter(function($v) {return $v{0} != '.';}, scandir($DOWNLOAD_DIR));
sort($versions); sort($versions);
$latest = end($versions); $latest = end($versions);
echo '<div class="latest">'; echo '<div class="latest">';
echo '<div>Latest (v' . htmlspecialchars($latest) . ') downloads:</div>'; echo '<div>Latest (v' . htmlspecialchars($latest) . ') downloads:</div>';
echo '<a href="' . htmlspecialchars($latest) . '/youtube-dl">youtube-dl</a> ';
echo '<a href="' . htmlspecialchars($latest) . '/youtube-dl.exe">youtube-dl.exe</a> ';
echo '<a href="' . htmlspecialchars($latest) . '/youtube-dl-src-' . htmlspecialchars($latest) . '.tar.gz">youtube-dl-src-' . htmlspecialchars($latest) . '.tar.gz</a>';
echo '<a href="downloads/' . htmlspecialchars($latest) . '/youtube-dl">youtube-dl</a> ';
echo '<a href="downloads/' . htmlspecialchars($latest) . '/youtube-dl.exe">youtube-dl.exe</a> ';
echo '<a href="downloads/' . htmlspecialchars($latest) . '/youtube-dl-src-' . htmlspecialchars($latest) . '.tar.gz">youtube-dl-src-' . htmlspecialchars($latest) . '.tar.gz</a>';
echo '</div>'; echo '</div>';
echo '<ul>'; echo '<ul>';


Loading…
Cancel
Save