Replace PEAR with PECL in comments

This commit is contained in:
Peter Kokot
2018-11-03 14:53:43 +01:00
parent b01875ce14
commit 0063d56de5
12 changed files with 19 additions and 19 deletions

View File

@@ -27,7 +27,7 @@
require_once 'DB.php';
/**
* DSN for pear packages database
* DSN for PECL packages database
*/
$dsn = "mysql://pear:pear@localhost/pear";
$dbh = DB::connect($dsn);

View File

@@ -360,7 +360,7 @@ function report_warning($in)
}
/**
* Generates a complete PEAR web page with an error message in it then
* Generates a complete PECL web page with an error message in it then
* calls exit
*
* For use with PEAR_ERROR_CALLBACK error handling mode to print fatal

View File

@@ -19,7 +19,7 @@
*/
/**
* Details about PEAR accounts
* Details about PECL accounts
*/
$handle = filter_input(INPUT_GET, 'handle', FILTER_SANITIZE_STRING);

View File

@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
response_header("PEAR Administration - Package maintainers");
response_header("PECL Administration - Package maintainers");
if (isset($_GET['pid'])) {
$id = (int)$_GET['pid'];
@@ -42,7 +42,7 @@ if (empty($id)) {
} else if (!empty($_GET['update'])) {
if (!isAllowed($id)) {
PEAR::raiseError("Only the lead maintainer of the package or PEAR
PEAR::raiseError("Only the lead maintainer of the package or PECL
administrators can edit the maintainers.");
response_footer();
exit();
@@ -110,7 +110,7 @@ if (empty($id)) {
echo '<a href="' . $url . '">Back</a>';
} else {
if (!isAllowed($id)) {
PEAR::raiseError("Only the lead maintainer of the package or PEAR
PEAR::raiseError("Only the lead maintainer of the package or PECL
administrators can edit the maintainers.");
response_footer();
exit();

View File

@@ -23,7 +23,7 @@ response_header("Document Type Definitions");
<h2>Document Type Definitions</h2>
<p>The following Document Type Definitions are used in PEAR:</p>
<p>The following Document Type Definitions are used in PECL:</p>
<?php $bb = new BorderBox("Available DTDs"); ?>

View File

@@ -22,7 +22,7 @@
* On 404 error this will search for a package with the same
* name as the requested document. Thus enabling urls such as:
*
* https://pear.php.net/Mail_Mime
* https://pecl.php.net/operator
*/
/**

View File

@@ -19,7 +19,7 @@
*/
/**
* PEAR package downloader
* PECL package downloader
*
* Valid calls recognized:
* /get/DB -> Latest version
@@ -32,7 +32,7 @@
* To all this calls the GET param "?uncompress=yes" would force
* to download the file without gzip compression
*
* other things like: "/PEAR_package/info" could be easily implemented
* other things like: "/PECL_package/info" could be easily implemented
*
* It requires this to be added to httpd.conf/.htaccess:
* <Location "/get">

View File

@@ -21,7 +21,7 @@
/*
* If the PHPSESSID cookie isn't set, the user MAY have cookies turned off.
* To figure out cookies are REALLY off, check to see if the person came
* from within the PEAR website or just submitted the login form.
* from within the PECL website or just submitted the login form.
*/
if (!isset($_COOKIE[session_name()]) &&
((strpos(@$_SERVER['HTTP_REFERER'], @$_GET['redirect']) !== false) ||

View File

@@ -46,13 +46,13 @@ if (!isset($_GET['id'])) {
/**
* The user has to be either a lead developer of the package or
* a PEAR administrator.
* a PECL administrator.
*/
$lead = User::maintains($auth_user->handle, $_GET['id'], "lead");
$admin = $auth_user->isAdmin();
if (!$lead && !$admin) {
PEAR::raiseError("Only the lead maintainer of the package or PEAR
PEAR::raiseError("Only the lead maintainer of the package or PECL
administrators can edit the package.");
response_footer();
exit();

View File

@@ -1,9 +1,9 @@
PEAR BACKEND DATABASE DESIGN
PECL BACKEND DATABASE DESIGN
TERMINOLOGY
Author
An author is a contributor to PEAR. An author is usually
An author is a contributor to PECL. An author is usually
referred with a name usually based on initials. This name is
the identifier used in the database and XML description files.
@@ -18,12 +18,12 @@ Domain
administrator of the root domain.
Package
A PEAR _package_ is a collection of C code (extensions) and
A PECL _package_ is a collection of C code (extensions) and
PHP code within a certain _domain_. Any number of packages
can use the same domain.
Release
A PEAR _package_ is made available through a _release_. Each
A PECL _package_ is made available through a _release_. Each
release has a version number (see version section below).
Distribution

View File

@@ -214,7 +214,7 @@ class Package
}
/**
* Lists the IDs and names of all approved PEAR packages
* Lists the IDs and names of all approved PECL packages
*
* Returns an associative array where the key of each element is
* a package ID, while the value is the name of the corresponding

View File

@@ -93,7 +93,7 @@ class User
$rest->saveMaintainer($user->handle);
$rest->saveAllmaintainers();
$msg = "Your PECL/PEAR account request has been opened.\n".
$msg = "Your PECL account request has been opened.\n".
"To log in, go to https://pecl.php.net/ and click on \"login\" in\n".
"the top-right menu.\n";
$xhdr = "From: " . $auth_user->handle . "@php.net";