pearweb_index
[ class tree: pearweb_index ] [ index: pearweb_index ] [ all elements ]

Source for file mirrors.php

Documentation is available at mirrors.php

  1. <?php
  2. /*
  3.    +----------------------------------------------------------------------+
  4.    | PEAR Web site version 1.0                                            |
  5.    +----------------------------------------------------------------------+
  6.    | Copyright (c) 2001-2005 The PHP Group                                |
  7.    +----------------------------------------------------------------------+
  8.    | This source file is subject to version 2.02 of the PHP license,      |
  9.    | that is bundled with this package in the file LICENSE, and is        |
  10.    | available at through the world-wide-web at                           |
  11.    | http://www.php.net/license/2_02.txt.                                 |
  12.    | If you did not receive a copy of the PHP license and are unable to   |
  13.    | obtain it through the world-wide-web, please send a note to          |
  14.    | license@php.net so we can mail you a copy immediately.               |
  15.    +----------------------------------------------------------------------+
  16.    | Authors:                                                             |
  17.    +----------------------------------------------------------------------+
  18.    $Id$
  19. */
  20.  
  21. if (isset($country)) {
  22.     header("Location: http://$country.pear.php.net/");
  23. }
  24. response_header("Mirrors Page");
  25. require_once 'site.php';
  26. ?>
  27.  
  28. <h1>Mirror Sites</h1>
  29.  
  30. <p>
  31. Here you can find more information about the mirrors
  32. of pear.php.net. Pick a mirror site close to you, or visit
  33. the provider's homepage:
  34. </p>
  35.  
  36. <table border="0" cellpadding="2" cellspacing="1" width="100%" class="mirrors">
  37.  <tr bgcolor="#cccccc">
  38.   <th>Mirror Address</th>
  39.   <th>Provider</th>
  40.   <th>Country</th>
  41.   <th>Type</th>
  42.  </tr>
  43. <?php
  44.     $mprevious 'aa';
  45.     foreach ($MIRRORS as $murl => $mdata{
  46.         echo '<tr bgcolor="#e0e0e0"><td>'make_link($murl$murl),
  47.              '</td><td>'make_link($mdata[3]$mdata[1])'</td>';
  48.         echo '<td>';
  49.         if ($mprevious != $mdata[0]{
  50.             echo $COUNTRIES[$mdata[0]];
  51.         else {
  52.             echo "&nbsp;";
  53.         }
  54.         switch ($mdata[4]{
  55.             case 1 :
  56.                 echo '</td><td>Full';
  57.                 break;
  58.             case 0 :
  59.                 echo '</td><td>REST/download';
  60.                 break;
  61.             case 2 :
  62.                 echo '</td><td>Pending';
  63.                 break;
  64.         }
  65.         echo '</td></tr>';
  66.         $mprevious $mdata[0];
  67.     }
  68. ?>
  69. </table>
  70.  
  71. <?php
  72. response_footer();
  73. ?>

Documentation generated on Mon, 11 Mar 2019 16:01:20 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.