Skip to content
Permalink
Browse files

Initial check in

git-svn-id: https://svn.macports.org/repository/macports/trunk/www@14589 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Matt Anton
Matt Anton committed Oct 13, 2005
1 parent 4ffabf0 commit 28d0fb001688516e8bcd557c10f497ec0bf1378d
Showing with 32 additions and 0 deletions.
  1. +32 −0 fr/downloads/index.php
@@ -0,0 +1,32 @@
<?php
$DOCUMENT_ROOT = $_SERVER['DOCUMENT_ROOT'];
include_once("$DOCUMENT_ROOT/fr/includes/common.inc");
include_once("$DOCUMENT_ROOT/fr/includes/functions.inc");
print_header('Distributions de DarwinPorts', 'utf-8');
?>

<div id="content">

<h2 class="hdr">Téléchargements disponibles</h2>
<p>
<?php
$dossier = opendir ("$DOCUMENT_ROOT/downloads");

while ($fichier = readdir ($dossier)) {
if ($fichier != "." && $fichier != "..") {
$tableau = explode (".", $fichier);
$nb_element_1 = count ($tableau) -1;
if ($tableau[$nb_element_1] != "php") {
echo '<a href="'.$DOCUMENT_ROOT.'/download.php?file='.$fichier.'">'.$fichier.'</a><br />';
}
}
}
closedir ($dossier);
?>
</p>
</div>
</div>

<?php
print_footer();
?>

0 comments on commit 28d0fb0

Please sign in to comment.
You can’t perform that action at this time.