cvs: peclweb /include pear-database.php pear-format-html.php /public_html account-request.php index.php packages.php style.css support.php

From: Date: Sat, 20 Sep 2003 22:09:27 +0000
Subject: cvs: peclweb /include pear-database.php pear-format-html.php /public_html account-request.php index.php packages.php style.css support.php
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-452@lists.php.net to get a copy of this message
wez Sat Sep 20 18:09:27 2003 EDT Modified files: /peclweb/include pear-database.php pear-format-html.php /peclweb/public_html account-request.php index.php packages.php style.css support.php Log: Change green for a blue-ish colour. Colour is not final; suggestions are welcome - this was to make it easier to distinguish pear site from pecl when they are side-by-side. Change some wording to be more PECL-orientated. Make the package stuff filter by pecl packages only.

Index: peclweb/include/pear-database.php diff -u peclweb/include/pear-database.php:1.139 peclweb/include/pear-database.php:1.140 --- peclweb/include/pear-database.php:1.139 Sun Sep 14 04:01:58 2003 +++ peclweb/include/pear-database.php Sat Sep 20 18:09:24 2003 @@ -17,7 +17,7 @@ | Tomas V.V.Cox <cox@php.net> | | Martin Jansen <mj@php.net> | +----------------------------------------------------------------------+ - $Id: pear-database.php,v 1.139 2003/09/14 08:01:58 mj Exp $ + $Id: pear-database.php,v 1.140 2003/09/20 22:09:24 wez Exp $ */ require_once 'DB/storage.php'; @@ -274,6 +274,7 @@ "r.state AS state " . "FROM packages p, releases r, categories c " . "WHERE p.id = r.package " . + "AND p.package_type = 'pecl' " . "AND p.category = c.id AND c.name = '" . $category . "'" . "ORDER BY r.releasedate DESC"; @@ -750,6 +751,7 @@ "r.state AS state " . "FROM packages p, releases r " . "WHERE p.id = r.package " . + "AND p.package_type = 'pecl' " . "AND p.name = '" . $package . "'" . "ORDER BY r.releasedate DESC"; @@ -1011,6 +1013,7 @@ "releases.state AS state ". "FROM packages, releases ". "WHERE packages.id = releases.package ". + "AND packages.package_type = 'pecl' " . "ORDER BY releases.releasedate DESC", 0, $n); $recent = array(); // XXX Fixme when DB gets limited getAll() Index: peclweb/include/pear-format-html.php diff -u peclweb/include/pear-format-html.php:1.68 peclweb/include/pear-format-html.php:1.69 --- peclweb/include/pear-format-html.php:1.68 Thu Sep 18 16:48:03 2003 +++ peclweb/include/pear-format-html.php Sat Sep 20 18:09:24 2003 @@ -15,7 +15,7 @@ +----------------------------------------------------------------------+ | Authors: | +----------------------------------------------------------------------+ - $Id: pear-format-html.php,v 1.68 2003/09/18 20:48:03 wez Exp $ + $Id: pear-format-html.php,v 1.69 2003/09/20 22:09:24 wez Exp $ */ /* Send charset */ @@ -107,7 +107,7 @@ vlink="#003300" ><a name="TOP" /> <table border="0" cellspacing="0" cellpadding="0" width="100%"> - <tr bgcolor="#339900"> + <tr bgcolor="#330099"> <td align="left" rowspan="2" width="120" colspan="2" height="1"> <?php print_link('/', make_image('peclsmall.gif', 'PEAR', false, 'vspace="5" hspace="5"') ); ?><br /> </td> @@ -119,34 +119,34 @@ </td> </tr> - <tr bgcolor="#339900"> + <tr bgcolor="#330099"> <td align="right" valign="bottom" colspan="3" height="1"> <?php if (empty($_COOKIE['PEAR_USER'])) { - print_link('/login.php', 'Login', false, 'class="menuBlack"'); + print_link('/login.php', 'Login', false, 'class="menuLink"'); } else { print '<span class="menuWhite"><small>logged in as '; print strtoupper($_COOKIE['PEAR_USER']); print '&nbsp;</small></span><br />'; - print_link('/?logout=1', 'Logout', false, 'class="menuBlack"'); + print_link('/?logout=1', 'Logout', false, 'class="menuLink"'); } echo delim(); - print_link('/manual/', 'Docs', false, 'class="menuBlack"'); + print_link('/manual/', 'Docs', false, 'class="menuLink"'); echo delim(); - print_link('/packages.php', 'Packages', false, 'class="menuBlack"'); + print_link('/packages.php', 'Packages', false, 'class="menuLink"'); echo delim(); - print_link('/support.php','Support',false,'class="menuBlack"'); + print_link('/support.php','Support',false,'class="menuLink"'); echo delim(); - print_link('/bugs/','Bugs',false,'class="menuBlack"'); + print_link('/bugs/','Bugs',false,'class="menuLink"'); ?>&nbsp;<br /> <?php spacer(2,2); ?><br /> </td> </tr> - <tr bgcolor="#003300"><td colspan="5" height="1"><?php spacer(1,1);?><br /></td></tr> + <tr bgcolor="#000033"><td colspan="5" height="1"><?php spacer(1,1);?><br /></td></tr> - <tr bgcolor="#006600"> + <tr bgcolor="#000066"> <td align="right" valign="top" colspan="5" height="1" class="menuWhite"> <form method="post" action="/search.php"> <small>Search for</small> @@ -160,7 +160,7 @@ </select> <input type="image" src="/gifs/small_submit_white.gif" alt="search" align="bottom" />&nbsp;<br /></form></td></tr> - <tr bgcolor="#003300"><td colspan="5" height="1"><?php spacer(1,1);?><br /></td></tr> + <tr bgcolor="#000033"><td colspan="5" height="1"><?php spacer(1,1);?><br /></td></tr> <!-- Middle section --> @@ -235,18 +235,18 @@ <!-- Lower bar --> - <tr bgcolor="#003300"><td colspan="5" height="1"><?php spacer(1,1);?><br /></td></tr> - <tr bgcolor="#339900"> + <tr bgcolor="#000033"><td colspan="5" height="1"><?php spacer(1,1);?><br /></td></tr> + <tr bgcolor="#330099"> <td align="right" valign="bottom" colspan="5" height="1"> <?php -print_link('/about/privacy.php', 'PRIVACY POLICY', false, 'class="menuBlack"'); +print_link('/about/privacy.php', 'PRIVACY POLICY', false, 'class="menuLink"'); echo delim(); -print_link('/credits.php', 'CREDITS', false, 'class="menuBlack"'); +print_link('/credits.php', 'CREDITS', false, 'class="menuLink"'); ?> <br /> </td> </tr> - <tr bgcolor="#003300"><td colspan="5" height="1"><?php spacer(1,1); ?><br /></td></tr> + <tr bgcolor="#000033"><td colspan="5" height="1"><?php spacer(1,1); ?><br /></td></tr> <tr valign="top" bgcolor="#cccccc"> <td colspan="5" height="1"> Index: peclweb/public_html/account-request.php diff -u peclweb/public_html/account-request.php:1.22 peclweb/public_html/account-request.php:1.23 --- peclweb/public_html/account-request.php:1.22 Sat Aug 16 15:54:29 2003 +++ peclweb/public_html/account-request.php Sat Sep 20 18:09:26 2003 @@ -15,7 +15,7 @@ +----------------------------------------------------------------------+ | Authors: | +----------------------------------------------------------------------+ - $Id: account-request.php,v 1.22 2003/08/16 19:54:29 mj Exp $ + $Id: account-request.php,v 1.23 2003/09/20 22:09:26 wez Exp $ */ require_once "HTML/Form.php"; @@ -38,7 +38,7 @@ "firstname" => "your first name", "lastname" => "your last name", "email" => "your email address", - "purpose" => "the purpose of your PEAR account"); + "purpose" => "the purpose of your PECL account"); $name = $_POST['firstname'] . " " . $_POST['lastname']; @@ -127,7 +127,7 @@ } $xhdr = "From: $name <$email>"; - $subject = "PEAR Account Request: {$handle}"; + $subject = "PECL Account Request: {$handle}"; $ok = mail("pear-group@php.net", $subject, $msg, $xhdr, "-f pear-sys@php.net"); response_header("Account Request Submitted"); @@ -144,11 +144,11 @@ print "Your account request has been submitted, but there ". "were problems mailing one or more administrators. ". "If you don't hear anything about your account in a few ". - "days, please drop a mail about it to the <i>pear-dev</i> ". + "days, please drop a mail about it to the <i>pecl-dev</i> ". "mailing list."; } - print "<br />Click the top-left PEAR logo to go back to the front page.\n"; + print "<br />Click the top-left PECL logo to go back to the front page.\n"; } } while (0); @@ -159,20 +159,20 @@ print "<h1>Request Account</h1> <p>You do <b>not</b> need an account if you want to download, install and/or -use PEAR packages. You only need to request an account if you want to -contribute a new package to PEAR CVS, help in the maintainance of an existing -package, or list and release your package using the PEAR packager/installer -(without hosting the code in PEAR CVS).</p> +use PECL packages. You only need to request an account if you want to +contribute a new package to PECL CVS, help in the maintainance of an existing +package, or list and release your package using the PECL packager/installer +(without hosting the code in PECL CVS).</p> -<p>If you are contributing a package to PEAR, make sure that you have gone through +<p>If you are contributing a package to PECL, make sure that you have gone through the peer review process. Make also sure that if you are going to include code -in PEAR CVS, that this complies with the PEAR code standards before it is +in PECL CVS, that this complies with the PECL code standards before it is released.</p> <p>Bogus, incomplete or incorrect requests will be summarily denied.</p> <p> - <strong>Confirm your reason for a PEAR account:</strong> + <strong>Confirm your reason for a PECL account:</strong> </p> <script language=\"JavaScript\" type=\"text/javascript\" defer=\"defer\"> @@ -214,8 +214,8 @@ <td valign=\"top\"><input type=\"radio\" name=\"reason\" value=\"pkg\" id=\"reason_pkg\" onclick=\"reasonClick('pkg')\" /></td> <td> <label for=\"reason_pkg\"> - You have announced a new PEAR package to the Pear-Dev mailing list, it's name has been OKed, and you - wish to register/upload a release to the pear website. + You have announced a new PECL package to the PECL-Dev mailing list, it's name has been OKed, and you + wish to register/upload a release to the pecl website. </label> </td> </tr> @@ -247,7 +247,7 @@ $bb->horizHeadRow("Email address:", HTML_Form::returnText("email", @$_POST['email'])); $bb->horizHeadRow("Show email address?", HTML_Form::returnCheckbox("showemail", @$_POST['showemail'])); $bb->horizHeadRow("Homepage", HTML_Form::returnText("homepage", @$_POST['homepage'])); - $bb->horizHeadRow("Purpose of your PEAR account<br />(No account is needed for using PEAR or PEAR packages):", HTML_Form::returnTextarea("purpose", stripslashes(@$_POST['purpose']))); + $bb->horizHeadRow("Purpose of your PECL account<br />(No account is needed for using PECL or PECL packages):", HTML_Form::returnTextarea("purpose", stripslashes(@$_POST['purpose']))); $bb->horizHeadRow("More relevant information<br />about you (optional):", HTML_Form::returnTextarea("moreinfo", stripslashes(@$_POST['moreinfo']))); $bb->horizHeadRow("Requested from IP address:", $_SERVER['REMOTE_ADDR']); $bb->horizHeadRow("<input type=\"submit\" name=\"submit\" />&nbsp;<input type=\"reset\" />"); Index: peclweb/public_html/index.php diff -u peclweb/public_html/index.php:1.74 peclweb/public_html/index.php:1.75 --- peclweb/public_html/index.php:1.74 Sun Sep 14 04:19:27 2003 +++ peclweb/public_html/index.php Sat Sep 20 18:09:26 2003 @@ -15,24 +15,24 @@ +----------------------------------------------------------------------+ | Authors: Martin Jansen <mj@php.net> | +----------------------------------------------------------------------+ - $Id: index.php,v 1.74 2003/09/14 08:19:27 mj Exp $ + $Id: index.php,v 1.75 2003/09/20 22:09:26 wez Exp $ */ $SIDEBAR_DATA=' -<h3>What is PEAR?</h3> +<h3>What is PECL?</h3> <p> -&quot;The fleshy pome, or fruit, of a rosaceous tree (Pyrus -communis), cultivated in many varieties in temperate -climates.&quot; +<acronym title="PHP Extension Community Library">PECL</acronym> +is a repository for PHP Extensions, providing a directory of all known +extensions and hosting facilities for downloading and development of PHP +extensions. </p> <p> +The packaging and distribution system used by PECL is shared with its +sister, <acronym title="PHP Extension and Application Repository" +>PEAR</acronym>. +</p> -<acronym title="PHP Extension and Application Repository">PEAR</acronym> -is a framework and distribution system for reusable PHP -components. <acronym title="PHP Extension Code Library">PECL</acronym>, -being a subset of PEAR, is the complement for C extensions for PHP. -<br /> - +<p> See the <a href="/manual/en/faq.php">FAQ</a> and <a href="/manual/">manual</a> for more information. @@ -44,9 +44,9 @@ echo '<h2>'; echo make_link('/news/', 'News'); echo '</h2>'; echo '<h2>Documentation</h2>'; echo '<div class="indent">'; -echo menu_link("About PEAR", "/manual/en/about-pear.php"); -echo menu_link("Manual", "/manual/"); -echo menu_link("Frequently Asked Questions", "/manual/en/faq.php"); +//echo menu_link("About PEAR", "/manual/en/about-pear.php"); +//echo menu_link("Manual", "/manual/"); +//echo menu_link("Frequently Asked Questions", "/manual/en/faq.php"); echo menu_link("Mailing Lists & Support Resources", "/support.php"); echo '</div>'; echo '<h2>Downloads</h2>'; @@ -71,7 +71,7 @@ } } // XXX Hide for the moment? -menu_link("Request PEAR Account", "account-request.php"); +menu_link("Request PECL Account", "account-request.php"); $recent = release::getRecent(); if (@sizeof($recent) > 0) { Index: peclweb/public_html/packages.php diff -u peclweb/public_html/packages.php:1.37 peclweb/public_html/packages.php:1.38 --- peclweb/public_html/packages.php:1.37 Wed Aug 20 06:21:27 2003 +++ peclweb/public_html/packages.php Sat Sep 20 18:09:26 2003 @@ -15,7 +15,7 @@ +----------------------------------------------------------------------+ | Authors: Richard Heyes | +----------------------------------------------------------------------+ - $Id: packages.php,v 1.37 2003/08/20 10:21:27 mj Exp $ + $Id: packages.php,v 1.38 2003/09/20 22:09:26 wez Exp $ */ /** @@ -107,7 +107,7 @@ // Get names of sub-packages $subpkgs = $dbh->getAssoc("SELECT p.category, p.id AS id, p.name AS name, p.summary AS summary". " FROM packages p, categories c". - " WHERE c.parent $category_where AND p.category = c.id ORDER BY p.name", + " WHERE c.parent $category_where AND p.category = c.id AND p.package_type = 'pecl' ORDER BY p.name", false, null, DB_FETCHMODE_ASSOC, true); $max_sub_links = 4; @@ -198,7 +198,7 @@ } // Package list - $packages = $dbh->getAll("SELECT id, name, summary, license FROM packages WHERE category=$catpid ORDER BY name"); + $packages = $dbh->getAll("SELECT id, name, summary, license FROM packages WHERE category=$catpid AND package_type = 'pecl' ORDER BY name"); // Paging $total = count($packages); Index: peclweb/public_html/style.css diff -u peclweb/public_html/style.css:1.20 peclweb/public_html/style.css:1.21 --- peclweb/public_html/style.css:1.20 Tue Sep 16 15:43:28 2003 +++ peclweb/public_html/style.css Sat Sep 20 18:09:27 2003 @@ -71,6 +71,15 @@ font-size: 75%; color: #000000; } +.menuLink { + font-family: verdana,arial,helvetica,sans-serif; + text-decoration: none; + font-weight: bold; + font-size: 75%; + color: #ffffff; +} + + code, pre, tt { font-family: Courier, "Courier New", monospace; Index: peclweb/public_html/support.php diff -u peclweb/public_html/support.php:1.53 peclweb/public_html/support.php:1.54 --- peclweb/public_html/support.php:1.53 Sun Aug 31 05:01:26 2003 +++ peclweb/public_html/support.php Sat Sep 20 18:09:27 2003 @@ -15,13 +15,13 @@ +----------------------------------------------------------------------+ | Authors: | +----------------------------------------------------------------------+ - $Id: support.php,v 1.53 2003/08/31 09:01:26 mj Exp $ + $Id: support.php,v 1.54 2003/09/20 22:09:27 wez Exp $ */ $SIDEBAR_DATA=' <h3>Documentation</h3> <p> -The manual section for PEAR can be found +The manual section for PECL can be found <a href="/manual/">here</a>.</p> '; @@ -55,7 +55,7 @@ switch ($maillist) { default: mail("$maillist-$request-$sub@lists.php.net", "Website Subscription", - "This was a request generated from the form at http://pear.php.net/support.php.", "From: $email\r\n"); + "This was a request generated from the form at http://pecl.php.net/support.php.", "From: $email\r\n"); break; } ?> @@ -71,24 +71,12 @@ // array of lists (list, name, short desc., moderated, archive, digest, newsgroup) $mailing_lists = array( - 'PEAR mailinglists', + 'PECL mailinglists', array ( - 'pear-general', 'PEAR general list', - 'A list for users of PEAR', - false, true, true, "php.pear.general" - ), - - array ( - 'pear-dev', 'PEAR developers list', - 'A list for developers of PEAR', - false, true, true, "php.pear.dev" - ), - - array ( - 'pear-cvs', 'PEAR CVS list', - 'All the commits of the cvs PEAR code repository are posted to this list automatically', - false, true, true, "php.pear.cvs" + 'pecl-dev', 'PECL developers list', + 'A list for developers of PECL', + false, true, true, "php.pecl.dev" ), array ( @@ -97,22 +85,10 @@ false, true, false, "php.pecl.cvs" ), - array ( - 'pear-doc', 'PEAR documentation list', - 'A list for discussing topics related to the PEAR documentation.', - false, true, true, "php.pear.doc" - ), - - array ( - 'pear-qa', 'PEAR QA list', - 'A list for managing the PEAR Quality Assurance', - false, false, true, "php.pear.qa" - ) - ); ?> <p> -There are <?php echo count($mailing_lists)-1; ?> PEAR-related mailing +There are <?php echo count($mailing_lists)-1; ?> PECL-related mailing lists available. Most of them have archives available, and they are also available as newsgroups on our <a href="news://news.php.net">news server</a>. The archives are @@ -120,7 +96,7 @@ <a href="/manual/en/support.php">manual</a>. </p> -<form method="POST" action="http://pear.php.net/support.php"> +<form method="POST" action="http://pecl.php.net/support.php"> <p> <table cellpadding="5" cellspacing="1"> <?php @@ -172,21 +148,23 @@ <p> There are a variety of commands you can use to modify your subscription. -Either send a message to pear-<tt>whatever</tt>@lists.php.net (as in, -pear-general@lists.php.net) or you can view the commands for +Either send a message to pecl-<tt>whatever</tt>@lists.php.net (as in, +pecl-dev@lists.php.net) or you can view the commands for ezmlm <a href="http://www.ezmlm.org/ezman-0.32/ezman1.html">here</a>. </p> <p> If you have questions concering this website, you can contact -<a href="mailto:pear-webmaster@php.net">pear-webmaster@php.net</a>. +<a href="mailto:peclweb@php.net">peclweb@php.net</a>. </p> <p> -Of course don't forget to visit the <i>#pear</i> IRC channel at the <a href="http://www.efnet.org"> +Of course don't forget to visit the <i>#php.pecl</i> IRC channel at the <a href="http://www.efnet.org"> Eris Free Net</a>. </p> +<!-- + <div class="listing"> <a name="tutorials" /><h3>PEAR Tutorials</h3> @@ -285,7 +263,9 @@ </div> -<a name="icons" /><h3>Powered By PEAR/PECL</h3> +--> + +<a name="icons" /><h3>Powered By PECL</h3> <p> What programming tool would be complete without a set of @@ -296,10 +276,6 @@ <?php $icons = Array( - 'pear-power.gif' => 'Powered by PEAR, GIF format', - 'pear-power.png' => 'Powered by PEAR, PNG format', - 'pear-icon.gif' => '32x32 PEAR icon, GIF format', - 'pear-icon.png' => '32x32 PEAR icon, PNG format', 'pecl-power.gif' => 'Powered by PECL, GIF format', 'pecl-power.png' => 'Powered by PECL, PNG format', 'pecl-icon.gif' => '32x32 PECL icon, GIF format',
« previous php.pecl.cvs (#452) next »