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

Source for file index.php

Documentation is available at index.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: Martin Jansen <mj@php.net>                                  |
  17.    +----------------------------------------------------------------------+
  18.    $Id: index.php,v 1.144 2008/01/05 22:16:41 dufuz Exp $
  19. */
  20.  
  21. include_once 'pear-database-release.php';
  22. $recent = release::getRecent(5);
  23. if (@sizeof($recent> 0{
  24.     $RSIDEBAR_DATA "<strong>Recent&nbsp;Releases:</strong>\n";
  25.     $RSIDEBAR_DATA .= '<table class="sidebar-releases">' "\n";
  26.     $today date("D, jS M y");
  27.     foreach ($recent as $release{
  28.         $releasedate = make_utc_date(strtotime($release['releasedate'])"D, jS M y");
  29.         if ($releasedate == $today{
  30.             $releasedate "today";
  31.         }
  32.         $RSIDEBAR_DATA .= "<tr><td>";
  33.         $RSIDEBAR_DATA .= "<a href=\"/package/" $release['name'"/\">";
  34.         $RSIDEBAR_DATA .= wordwrap($release['name'],25,"\n",1' ' .
  35.                           $release['version''</a><br /> <small>(' .
  36.                           $releasedate ')</small></td></tr>';
  37.     }
  38.     $feed_link '<a href="/feeds/" title="Information about XML feeds for the PEAR website"><img src="/gifs/feed.png" width="16" height="16" alt="" border="0" /></a>';
  39.     $RSIDEBAR_DATA .= "<tr><td>&nbsp;</td></tr>\n";
  40.     $RSIDEBAR_DATA .= '<tr><td align="right">' $feed_link "</td></tr>\n";
  41.     $RSIDEBAR_DATA .= "</table>\n";
  42. }
  43.  
  44. $popular = release::getPopular(5);
  45. if (@sizeof($popular> 0{
  46.     $RSIDEBAR_DATA .= "<strong>Popular&nbsp;Packages*:</strong>\n";
  47.     $RSIDEBAR_DATA .= '<table class="sidebar-releases">' "\n";
  48.     foreach ($popular as $package{
  49.         $RSIDEBAR_DATA .= "<tr><td>";
  50.         $RSIDEBAR_DATA .= "<a href=\"/package/" $package['name'"/\">";
  51.         $RSIDEBAR_DATA .= wordwrap($package['name'],25,"\n",1' ' $package['version''</a><br /> <small>(' .
  52.                           number_format($package['d'],2')</small></td></tr>';
  53.     }
  54.     $feed_link '<a href="/feeds/" title="Information about XML feeds for the PEAR website"><img src="/gifs/feed.png" width="16" height="16" alt="" border="0" /></a>';
  55.     $RSIDEBAR_DATA .= "<tr><td><small>* downloads per day</small></td></tr>\n";
  56.     $RSIDEBAR_DATA .= '<tr><td align="right">' $feed_link "</td></tr>\n";
  57.     $RSIDEBAR_DATA .= "</table>\n";
  58. }
  59.  
  60. $self strip_tags(htmlspecialchars($_SERVER['PHP_SELF']ENT_QUOTES'iso-8859-1'));
  61. response_header();
  62. ?>
  63.  
  64. <h1>PEAR - PHP Extension and Application Repository</h1>
  65.  
  66. <h2>&raquo; Users</h2>
  67.  
  68. <p><acronym title="PHP Extension and Application Repository">PEAR</acronym>
  69. is a framework and distribution system for reusable PHP
  70. components. You can find help using PEAR packages in the
  71. <a href="/manual/en/">online manual</a> and the
  72. <a href="/manual/en/faq.php">FAQ</a>.</p>
  73.  
  74. <?php
  75. if (!$auth_user{
  76. ?>
  77. <p>If you have been told by other PEAR developers to sign up for a
  78. PEAR website account, you can use <a href="/account-request.php">
  79. this interface</a>.</p>
  80. <?php
  81. }
  82. ?>
  83.  
  84. <h2>&raquo; Hot off the Press</h2>
  85. <div id="news">
  86.  <p>
  87.   <strong>[January 3, 2008]</strong><br />
  88.   As promised, XML-RPC has been disabled at pear.php.net.  Information is now
  89.   served via REST files at pear.php.net/rest.  If you are using
  90.   a PEAR version earlier than 1.4.0, you will need to manually upgrade PEAR using
  91.   direct URLs.  To upgrade to the latest PEAR, you can either use go-pear
  92.   (<a href="http://pear.php.net/go-pear">http://pear.php.net/go-pear</a>) or
  93.   upgrade using direct URLs:
  94.   <pre>
  95.    pear upgrade --force http://pear.php.net/get/Archive_Tar http://pear.php.net/get/XML_Parser http://pear.php.net/get/Console_Getopt
  96.    pear upgrade --force http://pear.php.net/get/PEAR-1.4.3.tar
  97.    pear upgrade PEAR
  98.   </pre>
  99.  </p>
  100.  
  101.  <p>
  102.   <strong>[October 19, 2007]</strong><br />
  103.   Following the tradition of internet culture, PEAR now channels blogs
  104.   about PEAR. See it at
  105.   <a href="http://planet.pear.php.net/">Planet PEAR</a>.
  106.  </p>
  107.  
  108.  <p>
  109.   <strong>[June 20, 2007]</strong><br />
  110.   PEAR is greatly saddened by the loss of
  111.   developer Bertrand Gugger to a heart attack on June 16.  More information is
  112.   available on the official PEAR blog at
  113.   <a href="http://blog.pear.php.net/2007/06/17/the-pear-project-mourns-the-loss-of-bertrand-gugger/">This entry</a>.
  114.  </p>
  115.  
  116.  <p>
  117.   <strong>[June 1, 2007]</strong><br />
  118.   Welcome to the 7th and final member of the PEAR
  119.   Group, <strong><a href="/user/pmjones">Paul M. Jones</a></strong>!  The newly elected
  120.   <a href="/news/newgroup-2007.php">PEAR Group</a> and
  121.   <a href="/news/newpresident-2007.php">PEAR president</a> have already begun work.
  122.   The PEAR President is <a href="/user/cellog">Gregory Beaver</a>, and the
  123.   PEAR Group
  124.   is <a href="/user/mj">Martin Jansen</a>, <a href="/user/davidc">David Coallier</a>,
  125.   <a href="/user/arnaud">Arnaud Limbourg</a>, <a href="/user/jeichorn">Joshua Eichorn</a>,
  126.   <a href="/user/cweiske">Christian Weiske</a>, <a href="/user/dufuz">Helgi &THORN;ormar</a>,
  127.   and <a href="/user/pmjones">Paul M. Jones</a>.  Official results of the run-off election are
  128.   <a href="/election/info.php?election=9&amp;results=1">here</a>.
  129.   <a href="/manual/en/constitution.php">The Constitution</a> documents the governing
  130.   structure of PEAR.
  131.  </p>
  132.  
  133.  <p>
  134.   <strong>[May 8, 2007]</strong><br />
  135.   A serious security vulnerability has been discovered in
  136.   the <a href="http://pear.php.net/PEAR">PEAR Installer</a> that affects all released versions.
  137.   PEAR version 1.5.4 has been released to address this security issue.  Further details are
  138.   available <a href="/news/vulnerability2.php">here</a>.
  139.  </p>
  140.  
  141.  <p>
  142.   <strong>[February 1, 2007]</strong><br />
  143.   As of January 1, 2008, PEAR will be dropping
  144.   support for PEAR versions 1.3.6 and earlier.  If you are using PEAR 1.3.6 or earlier,
  145.   we <em>strongly</em> encourage you to upgrade using these simple steps:
  146.   <code>
  147.    <pre>
  148.     pear upgrade --force PEAR-1.3.6 Archive_Tar-1.3.1 Console_Getopt-1.2
  149.     pear upgrade --force PEAR-1.4.11
  150.     pear upgrade PEAR
  151.    </pre>
  152.   </code>
  153.   The full story on what has changed, and what will change is <a href="/news/package.xml.1.0.php">here</a>.
  154.  </p>
  155. </div>
  156. <?php
  157. response_footer();

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