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: mirrors.php 287606 2009-08-23 15:10:49Z cweiske $
  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%">
  37.  <tr bgcolor="#cccccc">
  38.   <th>Mirror Address</th>
  39.   <th>Provider</th>
  40.   <th>Country</th>
  41.   <th>Type</th>
  42.   <th>Default Language</th>
  43.  </tr>
  44. <?php
  45.     $mprevious 'aa';
  46.     foreach ($MIRRORS as $murl => $mdata{
  47.         echo '<tr bgcolor="#e0e0e0"><td>'make_link($murl$murl),
  48.              '</td><td>'make_link($mdata[3]$mdata[1])'</td>';
  49.         echo '<td>';
  50.         if ($mprevious != $mdata[0]{
  51.             echo $COUNTRIES[$mdata[0]];
  52.         else {
  53.             echo "&nbsp;";
  54.         }
  55.         switch ($mdata[4]{
  56.             case 1 :
  57.                 echo '</td><td>Full';
  58.                 break;
  59.             case 0 :
  60.                 echo '</td><td>REST/download';
  61.                 break;
  62.             case 2 :
  63.                 echo '</td><td>Pending';
  64.                 break;
  65.         }
  66.         echo '</td><td>' $LANGUAGES[$mdata[6]] '</td></tr>';
  67.         $mprevious $mdata[0];
  68.     }
  69. ?>
  70. </table>
  71.  
  72. <!--
  73. <p>
  74. If you are interested in hosting a mirror of this site,
  75. <?php echo make_link("/README.mirror""here's how")?>.
  76. </p>
  77. //-->
  78.  
  79. <?php
  80. response_footer();
  81. ?>

Documentation generated on Mon, 11 Mar 2019 15:34:37 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.