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

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