[29010] trunk/www/downloads.php

source_changes at macosforge.org source_changes at macosforge.org
Wed Sep 12 21:53:20 PDT 2007


Revision: 29010
          http://trac.macosforge.org/projects/macports/changeset/29010
Author:   jmpp at macports.org
Date:     2007-09-12 21:53:20 -0700 (Wed, 12 Sep 2007)

Log Message:
-----------
This page is no longer needed since refactoring the downloads in getmp.php

Removed Paths:
-------------
    trunk/www/downloads.php

Deleted: trunk/www/downloads.php
===================================================================
--- trunk/www/downloads.php	2007-09-13 01:51:18 UTC (rev 29009)
+++ trunk/www/downloads.php	2007-09-13 04:53:20 UTC (rev 29010)
@@ -1,42 +0,0 @@
-<?php
-    /* $Id$ */
-    $MPWEB = $_SERVER['DOCUMENT_ROOT'] . dirname($_SERVER['SCRIPT_NAME']);
-    include_once("$MPWEB/includes/common.inc");
-    print_header('MacPorts -- Downloads', 'utf-8');
-?>
-
-<div id="content">
-    <h2 class="hdr">Available Downloads</h2>
-<?php
-    $dir=".";
-    // Read files from the dirctory
-    $files = array();
-    $rep=opendir($dir);
-    while ($file = readdir($rep)) {
-        if (preg_match('/^(\..*)|(.*\.(php|css|html|js))$/', $file) || is_dir($file)) {
-            continue;
-        }
-        // Add file to array, as key, with modtime as value
-        $files[$file] = filemtime($file);
-    }
-    closedir($rep);
-
-    // Print the table only if the $files array is non-emtpy
-    if (count($files)) {
-        // Sort the array in reverse order by value (modtime)
-        arsort($files);
-        // Emit the files, with dates
-        echo "<table>";
-        foreach ($files as $f => $t) {
-            echo "<tr>";
-            echo "<td>".date("d-M-Y G:i", $t)."</td><td><a href=\"downloads/$f\">$f</a></td>\n";
-            echo "</tr>";
-        }
-        echo "</table>";
-    }
-?>
-</div>
-
-<?php
-    print_footer();
-?>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070912/a8a82cea/attachment.html


More information about the macports-changes mailing list