cvs: pearweb /public_html package-new.php package-search.php packages.php
| From: | Martin Jansen | Date: | Wed, 15 Oct 2003 16:53:11 +0000 |
| Subject: | cvs: pearweb /public_html package-new.php package-search.php packages.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-13636@lists.php.net to get a copy of this message | ||
mj Wed Oct 15 12:53:11 2003 EDT
Modified files:
/pearweb/public_html packages.php package-search.php
package-new.php
Log:
* More PECL fixes
Index: pearweb/public_html/packages.php
diff -u pearweb/public_html/packages.php:1.38 pearweb/public_html/packages.php:1.39
--- pearweb/public_html/packages.php:1.38 Fri Oct 3 06:03:15 2003
+++ pearweb/public_html/packages.php Wed Oct 15 12:53:10 2003
@@ -15,7 +15,7 @@
+----------------------------------------------------------------------+
| Authors: Richard Heyes |
+----------------------------------------------------------------------+
- $Id: packages.php,v 1.38 2003/10/03 10:03:15 mj Exp $
+ $Id: packages.php,v 1.39 2003/10/15 16:53:10 mj Exp $
*/
/**
@@ -198,7 +198,7 @@
}
// Package list
- $packages = $dbh->getAll("SELECT id, name, summary, license FROM packages WHERE
approved = 1 AND category=$catpid ORDER BY name");
+ $packages = $dbh->getAll("SELECT id, name, summary, license FROM packages WHERE
package_type = 'pear' AND approved = 1 AND category=$catpid ORDER BY name");
// Paging
$total = count($packages);
Index: pearweb/public_html/package-search.php
diff -u pearweb/public_html/package-search.php:1.26 pearweb/public_html/package-search.php:1.27
--- pearweb/public_html/package-search.php:1.26 Fri Oct 3 06:03:15 2003
+++ pearweb/public_html/package-search.php Wed Oct 15 12:53:10 2003
@@ -16,7 +16,7 @@
| Authors: Richard Heyes <richard@php.net> |
| Martin Jansen <mj@php.net> |
+----------------------------------------------------------------------+
- $Id: package-search.php,v 1.26 2003/10/03 10:03:15 mj Exp $
+ $Id: package-search.php,v 1.27 2003/10/15 16:53:10 mj Exp $
*/
/**
@@ -159,7 +159,7 @@
FROM packages p,
maintains m
$release_join
- WHERE p.approved = 1 AND p.id = m.package " . $where . "
+ WHERE p.package_type = 'pear' AND p.approved = 1 AND p.id = m.package
" . $where . "
GROUP BY p.id
ORDER BY p.name";
Index: pearweb/public_html/package-new.php
diff -u pearweb/public_html/package-new.php:1.21 pearweb/public_html/package-new.php:1.22
--- pearweb/public_html/package-new.php:1.21 Fri Oct 3 06:03:15 2003
+++ pearweb/public_html/package-new.php Wed Oct 15 12:53:10 2003
@@ -15,7 +15,7 @@
+----------------------------------------------------------------------+
| Authors: |
+----------------------------------------------------------------------+
- $Id: package-new.php,v 1.21 2003/10/03 10:03:15 mj Exp $
+ $Id: package-new.php,v 1.22 2003/10/15 16:53:10 mj Exp $
*/
require_once "HTML/Form.php";
@@ -57,7 +57,7 @@
$dbh->expectError(DB_ERROR_ALREADY_EXISTS);
$pkg = package::add(array(
'name' => $_POST['name'],
- 'type' => $_POST['type'],
+ 'type' => 'pear',
'category' => $_POST['category'],
'license' => $_POST['license'],
'summary' => $_POST['summary'],
@@ -125,9 +125,6 @@
$cats = $form->returnSelect("category", $categories, get("category"), 1,
"--Select Category--");
$bb->horizHeadRow("Category", $cats);
- $types = $form->returnSelect("type", array("pear" =>
"PEAR", "pecl" => "PECL"), get("type"), 1,
- "--Select Type--");
- $bb->horizHeadRow("Type", $types . "<small>(Unless you really know what
you are doing, you should select PEAR here)</small>");
$bb->horizHeadRow("Summary", $form->returnText("summary",
get("summary"), $width));
$bb->horizHeadRow("Full description", $form->returnTextarea("desc",
get("desc"), $width, 3));
$bb->horizHeadRow("Additional project homepage",
$form->returnText("homepage", get("homepage"), 40));