Skip to content
Permalink
Browse files

Sync with main locale.

git-svn-id: https://svn.macports.org/repository/macports/trunk/www@15387 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Riccardo Andreoli
Riccardo Andreoli committed Dec 9, 2005
1 parent 12669c2 commit 2effd66ff7a224d3a05a1753aed1d7fe0982d121
Showing with 10 additions and 10 deletions.
  1. +10 −10 it/downloads/index.php
@@ -10,18 +10,18 @@
<h2 class="hdr">Downloads disponibili</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="/downloads/'.$fichier.'">'.$fichier.'</a><br />';
}
$chemin=".";
$rep=opendir($chemin);
chdir($chemin);
while($file = readdir($rep)) {
if($file != '..' && $file !='.' && (!eregi('php$', $file))) {
if(!is_dir($file)) {
echo "<a href=\"/downloads/$file\">$file</a>";
echo "<br>";
}
}
}
closedir ($dossier);
closedir($rep);
?>
</p>
</div>

0 comments on commit 2effd66

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