Req #53792 [NEW]: windows.php.net download page, archive link (svn diff and file appended)

From: Date: Wed, 19 Jan 2011 16:22:00 +0000
Subject: Req #53792 [NEW]: windows.php.net download page, archive link (svn diff and file appended)
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-10443@lists.php.net to get a copy of this message
From: Operating system: PHP version: Irrelevant Package: Website problem Bug Type: Feature/Change Request Bug description:windows.php.net download page, archive link (svn diff and file appended) Description: ------------ As requested on the internals mailing list, here's the modified download page for windows.php.net. A new box with a link to the currently selected version's release archive page (releases/qa/snapshots) will be appended to the bottom of the list. I also started to add some notes to the code (i.e. closing bracket comments), but the page should definitely be cleaned up a lot more to make future changes easier. Regards, Sascha Meyer --- SVN diff ---- # This patch file was generated by NetBeans IDE # It uses platform neutral UTF-8 encoding and \n newlines. --- Ausgangspunkt (BASE) +++ Lokal geändert (ausgehend von LOCAL) @@ -21,6 +21,7 @@ $baseurl = '/' . $dir_to_parse . '/'; $versions = generate_listing($dir_to_parse, $snaps); + $major_order = array('5.3', '5.2', '6.0'); $minor_order = array( '5.2' => array( @@ -69,7 +70,7 @@ <div class="adv-block"><!-- .adv-block --> <span class="corners-top"><span></span></span> - <div class="info entry"><!-- .info --> + <div class="info entry"><!-- .info (release dropdown box) --> <h2 name="top" id="top"><?php echo $title_page; ?></h2> <select onchange="window.location.hash=this.options[this.selectedIndex].value"> @@ -103,7 +104,7 @@ </div><span class="corners-bottom"><span></span></span></div> <?php continue; - } + } // END if (!isset($versions[$major])) ... ?> <p><a href="<?php echo $baseurl . $versions[$major]['source']['path']; ?>">Download source code</a> [<?php echo $versions[$major]['source']['size']; ?>]</p> @@ -117,10 +118,8 @@ <?php foreach ($minor_order[$major] as $minor) { + if (isset($versions[$major][$minor])) { ?> - -<?php if (isset($versions[$major][$minor])) { -?> <div class="innerbox"> <span class="corners-top"><span></span></span> @@ -166,18 +165,31 @@ </div><!-- innerbox --> <?php - } + } // END if (isset($versions[$major][$minor])) + } // END foreach ($minor_order[$major] ... ?> - <?php - } - ?> </div> <span class="corners-bottom"><span></span></span> </div> <!-- block --> <?php - } + } // END foreach ($major_order ... ?> + <div class="block"> + <span class="corners-top"></span> + + <div class="info entry"> + <h3 id="php-archive" name="php-archive" class="summary entry-title">Browse archive</h3> + <div class="innerbox"> + <span class="corners-top"><span></span></span> + <a href="<?php print $baseurl = '/' . $dir_to_parse . '/'; ?>"><?php print $title_page;?></a> + <span class="corners-bottom"></span> + </div> + <span class="corners-bottom"></span> + </div> + </div> + + <p class="t-center"> </p> </div> <!-- .content --> -- Edit bug report at http://bugs.php.net/bug.php?id=53792&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=53792&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=53792&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=53792&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=53792&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=53792&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=53792&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=53792&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=53792&r=needscript Try newer version: http://bugs.php.net/fix.php?id=53792&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=53792&r=support Expected behavior: http://bugs.php.net/fix.php?id=53792&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=53792&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=53792&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=53792&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=53792&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=53792&r=dst IIS Stability: http://bugs.php.net/fix.php?id=53792&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=53792&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=53792&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=53792&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=53792&r=mysqlcfg

« previous php.webmaster (#10443) next »