source: trunk/www/localized/it/downloads/index.php @ 108736

Last change on this file since 108736 was 100018, checked in by ryandesign@…, 8 years ago

remove use of deprecated POSIX regex (ereg*) functions in favor of PCRE regex (preg*) functions (#22281)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 675 bytes
Line 
1  <?php
2    $DOCUMENT_ROOT = $_SERVER['DOCUMENT_ROOT'];
3    include_once("$DOCUMENT_ROOT/it/includes/common.inc");
4    include_once("$DOCUMENT_ROOT/it/includes/functions.inc");
5    print_header('Distribuzioni di DarwinPorts', 'utf-8');
6  ?>
7
8    <div id="content">
9       
10                <h2 class="hdr">Downloads disponibili</h2>
11                <p>
12<?php
13$chemin="$DOCUMENT_ROOT/downloads";
14$rep=opendir($chemin);
15chdir($chemin);
16while($file = readdir($rep)) {
17        if($file != '..' && $file !='.' && (!preg_match('/\.php$/i', $file))) {
18                if(!is_dir($file)) {
19                        echo "<a href=\"/downloads/$file\">$file</a>";
20                        echo "<br>";
21                }
22        }
23}
24closedir($rep);
25?>
26                </p>
27    </div>
28  </div>
29
30<?php
31  print_footer();
32?>
Note: See TracBrowser for help on using the repository browser.