Changeset 15387 for trunk/www


Ignore:
Timestamp:
Dec 9, 2005, 3:18:22 PM (18 years ago)
Author:
riccardo
Message:

Sync with main locale.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/it/downloads/index.php

    r14757 r15387  
    1111                <p>
    1212<?php
    13 $dossier = opendir ("$DOCUMENT_ROOT/downloads");
    14 
    15 while ($fichier = readdir ($dossier)) {
    16         if ($fichier != "." && $fichier != "..") {
    17                         $tableau = explode (".", $fichier);
    18                         $nb_element_1 = count ($tableau) -1;
    19                         if ($tableau[$nb_element_1] != "php") {
    20                                 echo '<a href="/downloads/'.$fichier.'">'.$fichier.'</a><br />';
    21                         }
     13$chemin=".";
     14$rep=opendir($chemin);
     15chdir($chemin);
     16while($file = readdir($rep)) {
     17        if($file != '..' && $file !='.' && (!eregi('php$', $file))) {
     18                if(!is_dir($file)) {
     19                        echo "<a href=\"/downloads/$file\">$file</a>";
     20                        echo "<br>";
    2221                }
     22        }
    2323}
    24 closedir ($dossier);
     24closedir($rep);
    2525?>
    2626                </p>
Note: See TracChangeset for help on using the changeset viewer.