mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 02:01:33 +00:00
Use pear/net_nntp from github and adjust our NNTP class
This commit is contained in:
+105
-2
@@ -13,6 +13,28 @@ use App\Extensions\util\PhpYenc;
|
||||
*
|
||||
* Class NNTP
|
||||
*/
|
||||
|
||||
/**
|
||||
* 'Service discontinued' (RFC977)
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
define('NET_NNTP_PROTOCOL_RESPONSECODE_DISCONNECTING_FORCED', 400);
|
||||
|
||||
/**
|
||||
* 'Groups and descriptions unavailable'
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
define('NET_NNTP_PROTOCOL_RESPONSECODE_XGTITLE_GROUPS_UNAVAILABLE', 481);
|
||||
|
||||
/**
|
||||
* 'Can not initiate TLS negotiation' (RFC4642)
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
define('NET_NNTP_PROTOCOL_RESPONSECODE_TLS_FAILED_NEGOTIATION', 580);
|
||||
|
||||
class NNTP extends \Net_NNTP_Client
|
||||
{
|
||||
/**
|
||||
@@ -284,7 +306,8 @@ class NNTP extends \Net_NNTP_Client
|
||||
$this->_compressionSupported = true;
|
||||
$this->_currentGroup = '';
|
||||
$this->_postingAllowed = false;
|
||||
parent::_resetProperties();
|
||||
$this->_selectedGroupSummary = null;
|
||||
$this->_overviewFormatCache = null;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -927,7 +950,7 @@ class NNTP extends \Net_NNTP_Client
|
||||
* @return self|string Our overridden function when compression is enabled.
|
||||
* parent Parent function when no compression.
|
||||
*/
|
||||
protected function _getTextResponse()
|
||||
public function _getTextResponse()
|
||||
{
|
||||
if ($this->_compressionEnabled === true &&
|
||||
isset($this->_currentStatusResponse[1]) &&
|
||||
@@ -1186,4 +1209,84 @@ class NNTP extends \Net_NNTP_Client
|
||||
|
||||
return $retVal;
|
||||
}
|
||||
|
||||
/**
|
||||
* Verify NNTP error code and return PEAR error.
|
||||
*
|
||||
* @param int $response NET_NNTP Response code
|
||||
*
|
||||
* @return object PEAR error
|
||||
* @access protected
|
||||
*/
|
||||
protected function _handleErrorResponse($response)
|
||||
{
|
||||
switch ($response) {
|
||||
// 381, RFC2980: 'More authentication information required'
|
||||
case NET_NNTP_PROTOCOL_RESPONSECODE_AUTHENTICATION_CONTINUE:
|
||||
return $this->throwError('More authentication information required', $response, $this->_currentStatusResponse());
|
||||
// 400, RFC977: 'Service discontinued'
|
||||
case NET_NNTP_PROTOCOL_RESPONSECODE_DISCONNECTING_FORCED:
|
||||
return $this->throwError('Server refused connection', $response, $this->_currentStatusResponse());
|
||||
// 411, RFC977: 'no such news group'
|
||||
case NET_NNTP_PROTOCOL_RESPONSECODE_NO_SUCH_GROUP:
|
||||
return $this->throwError('No such news group on server', $response, $this->_currentStatusResponse());
|
||||
// 412, RFC2980: 'No news group current selected'
|
||||
case NET_NNTP_PROTOCOL_RESPONSECODE_NO_GROUP_SELECTED:
|
||||
return $this->throwError('No news group current selected', $response, $this->_currentStatusResponse());
|
||||
// 420, RFC2980: 'Current article number is invalid'
|
||||
case NET_NNTP_PROTOCOL_RESPONSECODE_NO_ARTICLE_SELECTED:
|
||||
return $this->throwError('Current article number is invalid', $response, $this->_currentStatusResponse());
|
||||
// 421, RFC977: 'no next article in this group'
|
||||
case NET_NNTP_PROTOCOL_RESPONSECODE_NO_NEXT_ARTICLE:
|
||||
return $this->throwError('No next article in this group', $response, $this->_currentStatusResponse());
|
||||
// 422, RFC977: 'no previous article in this group'
|
||||
case NET_NNTP_PROTOCOL_RESPONSECODE_NO_PREVIOUS_ARTICLE:
|
||||
return $this->throwError('No previous article in this group', $response, $this->_currentStatusResponse());
|
||||
// 423, RFC977: 'No such article number in this group'
|
||||
case NET_NNTP_PROTOCOL_RESPONSECODE_NO_SUCH_ARTICLE_NUMBER:
|
||||
return $this->throwError('No such article number in this group', $response, $this->_currentStatusResponse());
|
||||
// 430, RFC977: 'No such article found'
|
||||
case NET_NNTP_PROTOCOL_RESPONSECODE_NO_SUCH_ARTICLE_ID:
|
||||
return $this->throwError('No such article found', $response, $this->_currentStatusResponse());
|
||||
// 435, RFC977: 'Article not wanted'
|
||||
case NET_NNTP_PROTOCOL_RESPONSECODE_TRANSFER_UNWANTED:
|
||||
return $this->throwError('Article not wanted', $response, $this->_currentStatusResponse());
|
||||
// 436, RFC977: 'Transfer failed - try again later'
|
||||
case NET_NNTP_PROTOCOL_RESPONSECODE_TRANSFER_FAILURE:
|
||||
return $this->throwError('Transfer failed - try again later', $response, $this->_currentStatusResponse());
|
||||
// 437, RFC977: 'Article rejected - do not try again'
|
||||
case NET_NNTP_PROTOCOL_RESPONSECODE_TRANSFER_REJECTED:
|
||||
return $this->throwError('Article rejected - do not try again', $response, $this->_currentStatusResponse());
|
||||
// 440, RFC977: 'posting not allowed'
|
||||
case NET_NNTP_PROTOCOL_RESPONSECODE_POSTING_PROHIBITED:
|
||||
return $this->throwError('Posting not allowed', $response, $this->_currentStatusResponse());
|
||||
// 441, RFC977: 'posting failed'
|
||||
case NET_NNTP_PROTOCOL_RESPONSECODE_POSTING_FAILURE:
|
||||
return $this->throwError('Posting failed', $response, $this->_currentStatusResponse());
|
||||
// 481, RFC2980: 'Groups and descriptions unavailable'
|
||||
case NET_NNTP_PROTOCOL_RESPONSECODE_XGTITLE_GROUPS_UNAVAILABLE:
|
||||
return $this->throwError('Groups and descriptions unavailable', $response, $this->_currentStatusResponse());
|
||||
// 482, RFC2980: 'Authentication rejected'
|
||||
case NET_NNTP_PROTOCOL_RESPONSECODE_AUTHENTICATION_REJECTED:
|
||||
return $this->throwError('Authentication rejected', $response, $this->_currentStatusResponse());
|
||||
// 500, RFC977: 'Command not recognized'
|
||||
case NET_NNTP_PROTOCOL_RESPONSECODE_UNKNOWN_COMMAND:
|
||||
return $this->throwError('Command not recognized', $response, $this->_currentStatusResponse());
|
||||
// 501, RFC977: 'Command syntax error'
|
||||
case NET_NNTP_PROTOCOL_RESPONSECODE_SYNTAX_ERROR:
|
||||
return $this->throwError('Command syntax error', $response, $this->_currentStatusResponse());
|
||||
// 502, RFC2980: 'No permission'
|
||||
case NET_NNTP_PROTOCOL_RESPONSECODE_NOT_PERMITTED:
|
||||
return $this->throwError('No permission', $response, $this->_currentStatusResponse());
|
||||
// 503, RFC2980: 'Program fault - command not performed'
|
||||
case NET_NNTP_PROTOCOL_RESPONSECODE_NOT_SUPPORTED:
|
||||
return $this->throwError('Internal server error, function not performed', $response, $this->_currentStatusResponse());
|
||||
// RFC4642: 'Can not initiate TLS negotiation'
|
||||
case NET_NNTP_PROTOCOL_RESPONSECODE_TLS_FAILED_NEGOTIATION:
|
||||
return $this->throwError('Can not initiate TLS negotiation', $response, $this->_currentStatusResponse());
|
||||
default:
|
||||
$text = $this->_currentStatusResponse();
|
||||
return $this->throwError("Unexpected response: '$text'", $response, $text);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
2019-01-23 DariusIII
|
||||
* Chg: Use pear/net_nntp from github and adjust our NNTP class
|
||||
* Chg: Update NameFixer matchPredbFT function
|
||||
* Fix: Fix variable assignment error in QueueController
|
||||
2019-01-22 DariusIII
|
||||
|
||||
+7
-2
@@ -14,8 +14,6 @@
|
||||
"App\\": "app/"
|
||||
},
|
||||
"classmap": [
|
||||
"libs/PEAR/Net_NNTP/NNTP/",
|
||||
"libs/",
|
||||
"database/factories",
|
||||
"database/seeds"
|
||||
]
|
||||
@@ -54,6 +52,12 @@
|
||||
"non-feature-branches": [
|
||||
"latest-.*"
|
||||
],
|
||||
"repositories": [
|
||||
{
|
||||
"type": "vcs",
|
||||
"url": "https://github.com/pear/Net_NNTP"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"php": ">=7.2.0",
|
||||
"ext-bcmath": "*",
|
||||
@@ -119,6 +123,7 @@
|
||||
"monolog/monolog": "^1.22",
|
||||
"nesbot/carbon": "2.10.0 as 1.35.0",
|
||||
"ntimyeboah/laravel-database-trigger": "^1.0",
|
||||
"pear/net_nntp": "^1.5",
|
||||
"php-ffmpeg/php-ffmpeg": "^0.13.0",
|
||||
"php-http/guzzle6-adapter": "^1.1",
|
||||
"php-http/message": "^1.6",
|
||||
|
||||
Generated
+354
-6
@@ -4,7 +4,7 @@
|
||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "6eee2da870446d40fb69d6f5f49cc436",
|
||||
"content-hash": "1f36ace330670dae32bb36330126c385",
|
||||
"packages": [
|
||||
{
|
||||
"name": "aharen/omdbapi",
|
||||
@@ -3734,16 +3734,16 @@
|
||||
},
|
||||
{
|
||||
"name": "nexmo/client",
|
||||
"version": "1.6.0",
|
||||
"version": "1.6.1",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/Nexmo/nexmo-php.git",
|
||||
"reference": "01809cc1e17a5af275913c49bb5d444eb6cc06d4"
|
||||
"reference": "3dc03ca1dab726a23b757110897740e54304fc65"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/Nexmo/nexmo-php/zipball/01809cc1e17a5af275913c49bb5d444eb6cc06d4",
|
||||
"reference": "01809cc1e17a5af275913c49bb5d444eb6cc06d4",
|
||||
"url": "https://api.github.com/repos/Nexmo/nexmo-php/zipball/3dc03ca1dab726a23b757110897740e54304fc65",
|
||||
"reference": "3dc03ca1dab726a23b757110897740e54304fc65",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
@@ -3778,7 +3778,7 @@
|
||||
}
|
||||
],
|
||||
"description": "PHP Client for using Nexmo's API.",
|
||||
"time": "2018-12-17T10:47:50+00:00"
|
||||
"time": "2019-01-02T09:06:47+00:00"
|
||||
},
|
||||
{
|
||||
"name": "nikic/php-parser",
|
||||
@@ -3992,6 +3992,354 @@
|
||||
],
|
||||
"time": "2018-07-02T15:55:56+00:00"
|
||||
},
|
||||
{
|
||||
"name": "pear/archive_tar",
|
||||
"version": "1.4.5",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/pear/Archive_Tar.git",
|
||||
"reference": "ff716ca697c5e9e8593212cb785ffd03ee11b01f"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/pear/Archive_Tar/zipball/ff716ca697c5e9e8593212cb785ffd03ee11b01f",
|
||||
"reference": "ff716ca697c5e9e8593212cb785ffd03ee11b01f",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"pear/pear-core-minimal": "^1.10.0alpha2",
|
||||
"php": ">=5.2.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "*"
|
||||
},
|
||||
"suggest": {
|
||||
"ext-bz2": "Bz2 compression support.",
|
||||
"ext-xz": "Lzma2 compression support.",
|
||||
"ext-zlib": "Gzip compression support."
|
||||
},
|
||||
"type": "library",
|
||||
"extra": {
|
||||
"branch-alias": {
|
||||
"dev-master": "1.4.x-dev"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"psr-0": {
|
||||
"Archive_Tar": ""
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"include-path": [
|
||||
"./"
|
||||
],
|
||||
"license": [
|
||||
"BSD-3-Clause"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Vincent Blavet",
|
||||
"email": "vincent@phpconcept.net"
|
||||
},
|
||||
{
|
||||
"name": "Greg Beaver",
|
||||
"email": "greg@chiaraquartet.net"
|
||||
},
|
||||
{
|
||||
"name": "Michiel Rook",
|
||||
"email": "mrook@php.net"
|
||||
}
|
||||
],
|
||||
"description": "Tar file management class with compression support (gzip, bzip2, lzma2)",
|
||||
"homepage": "https://github.com/pear/Archive_Tar",
|
||||
"keywords": [
|
||||
"archive",
|
||||
"tar"
|
||||
],
|
||||
"time": "2019-01-02T21:45:13+00:00"
|
||||
},
|
||||
{
|
||||
"name": "pear/console_getopt",
|
||||
"version": "v1.4.1",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/pear/Console_Getopt.git",
|
||||
"reference": "82f05cd1aa3edf34e19aa7c8ca312ce13a6a577f"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/pear/Console_Getopt/zipball/82f05cd1aa3edf34e19aa7c8ca312ce13a6a577f",
|
||||
"reference": "82f05cd1aa3edf34e19aa7c8ca312ce13a6a577f",
|
||||
"shasum": ""
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"psr-0": {
|
||||
"Console": "./"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"include-path": [
|
||||
"./"
|
||||
],
|
||||
"license": [
|
||||
"BSD-2-Clause"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Greg Beaver",
|
||||
"email": "cellog@php.net",
|
||||
"role": "Helper"
|
||||
},
|
||||
{
|
||||
"name": "Andrei Zmievski",
|
||||
"email": "andrei@php.net",
|
||||
"role": "Lead"
|
||||
},
|
||||
{
|
||||
"name": "Stig Bakken",
|
||||
"email": "stig@php.net",
|
||||
"role": "Developer"
|
||||
}
|
||||
],
|
||||
"description": "More info available on: http://pear.php.net/package/Console_Getopt",
|
||||
"time": "2015-07-20T20:28:12+00:00"
|
||||
},
|
||||
{
|
||||
"name": "pear/net_nntp",
|
||||
"version": "v1.5.2",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/pear/Net_NNTP.git",
|
||||
"reference": "eecf63a489523033e64d5c3281b72ca0d670c5df"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/pear/Net_NNTP/zipball/eecf63a489523033e64d5c3281b72ca0d670c5df",
|
||||
"reference": "eecf63a489523033e64d5c3281b72ca0d670c5df",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"pear/pear": "^1.4.5",
|
||||
"php": ">=5.0"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "*"
|
||||
},
|
||||
"suggest": {
|
||||
"pear/log": "Support logging"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"classmap": [
|
||||
"./"
|
||||
]
|
||||
},
|
||||
"license": [
|
||||
"W3C"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"email": "heino@gehlsen.dk",
|
||||
"name": "Heino H. Gehlsen",
|
||||
"role": "Lead"
|
||||
}
|
||||
],
|
||||
"description": "PEAR's package for communication with NNTP/Usenet servers.",
|
||||
"homepage": "http://pear.php.net/package/Net_NNTP",
|
||||
"support": {
|
||||
"issues": "http://pear.php.net/bugs/search.php?cmd=display&package_name[]=Net_NNTP",
|
||||
"source": "https://github.com/pear/Net_NNTP"
|
||||
},
|
||||
"time": "2017-08-30T15:54:33+00:00"
|
||||
},
|
||||
{
|
||||
"name": "pear/pear",
|
||||
"version": "v1.10.7",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/pear/pear-core.git",
|
||||
"reference": "334c2323ac35849c44534e2ba5b85c3ca5146ab0"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/pear/pear-core/zipball/334c2323ac35849c44534e2ba5b85c3ca5146ab0",
|
||||
"reference": "334c2323ac35849c44534e2ba5b85c3ca5146ab0",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"ext-pcre": "*",
|
||||
"ext-xml": "*",
|
||||
"pear/archive_tar": "*",
|
||||
"pear/console_getopt": "*",
|
||||
"pear/structures_graph": "*",
|
||||
"pear/xml_util": "*"
|
||||
},
|
||||
"replace": {
|
||||
"pear/pear-core-minimal": "*"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "*"
|
||||
},
|
||||
"suggest": {
|
||||
"pear/pear_frontend_gtk": "For GTK support",
|
||||
"pear/pear_frontend_web": "For Web support"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"classmap": [
|
||||
"./"
|
||||
]
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"include-path": [
|
||||
"./"
|
||||
],
|
||||
"license": [
|
||||
"BSD-2-Clause"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Helgi Thormar",
|
||||
"email": "dufuz@php.net",
|
||||
"role": "Lead"
|
||||
},
|
||||
{
|
||||
"name": "Martin Jansen",
|
||||
"email": "mj@php.net",
|
||||
"role": "Helper"
|
||||
},
|
||||
{
|
||||
"name": "Stig Bakken",
|
||||
"email": "stig@php.net",
|
||||
"role": "Lead"
|
||||
},
|
||||
{
|
||||
"name": "Pierre-Alain Joye",
|
||||
"email": "pierre@php.net",
|
||||
"role": "Lead"
|
||||
},
|
||||
{
|
||||
"name": "Tias Guns",
|
||||
"email": "tias@php.net",
|
||||
"role": "Developer"
|
||||
},
|
||||
{
|
||||
"name": "Tim Jackson",
|
||||
"email": "timj@php.net",
|
||||
"role": "Helper"
|
||||
},
|
||||
{
|
||||
"name": "Bertrand Gugger",
|
||||
"email": "toggg@php.net",
|
||||
"role": "Helper"
|
||||
},
|
||||
{
|
||||
"name": "Greg Beaver",
|
||||
"email": "cellog@php.net",
|
||||
"role": "Lead"
|
||||
},
|
||||
{
|
||||
"name": "Tomas V.V.Cox",
|
||||
"email": "cox@idecnet.com",
|
||||
"role": "Lead"
|
||||
}
|
||||
],
|
||||
"description": "This is the definitive source of PEAR's core files.",
|
||||
"time": "2018-12-05T19:51:15+00:00"
|
||||
},
|
||||
{
|
||||
"name": "pear/structures_graph",
|
||||
"version": "v1.1.1",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/pear/Structures_Graph.git",
|
||||
"reference": "608fdc835a62fb238e61bd1cf0aaf6c7a4420b5c"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/pear/Structures_Graph/zipball/608fdc835a62fb238e61bd1cf0aaf6c7a4420b5c",
|
||||
"reference": "608fdc835a62fb238e61bd1cf0aaf6c7a4420b5c",
|
||||
"shasum": ""
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"psr-0": {
|
||||
"Structures": "./"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"include-path": [
|
||||
"./"
|
||||
],
|
||||
"license": [
|
||||
"PHP License"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Sérgio Carvalho",
|
||||
"email": "sergiosgc@gmail.com",
|
||||
"role": "Lead"
|
||||
}
|
||||
],
|
||||
"description": "More info available on: http://pear.php.net/package/Structures_Graph",
|
||||
"time": "2015-07-20T20:05:12+00:00"
|
||||
},
|
||||
{
|
||||
"name": "pear/xml_util",
|
||||
"version": "v1.4.3",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/pear/XML_Util.git",
|
||||
"reference": "c74278d925be9c2f7d39955cdce45d8275571a1d"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/pear/XML_Util/zipball/c74278d925be9c2f7d39955cdce45d8275571a1d",
|
||||
"reference": "c74278d925be9c2f7d39955cdce45d8275571a1d",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"pear/pear-core-minimal": "^1.10.1",
|
||||
"php": ">=5.4"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "@stable"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"psr-0": {
|
||||
"XML_Util": "./"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"include-path": [
|
||||
"./"
|
||||
],
|
||||
"license": [
|
||||
"BSD-3-Clause"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Stephan Schmidt",
|
||||
"email": "schst@php-tools.net",
|
||||
"role": "Lead"
|
||||
},
|
||||
{
|
||||
"name": "Chuck Burgess",
|
||||
"email": "ashnazg@php.net",
|
||||
"role": "Lead"
|
||||
},
|
||||
{
|
||||
"name": "Davey Shafik",
|
||||
"email": "davey@php.net",
|
||||
"role": "Helper"
|
||||
}
|
||||
],
|
||||
"description": "Methods to work with XML documents",
|
||||
"homepage": "http://pear.php.net/package/XML_Util",
|
||||
"time": "2017-06-28T19:21:19+00:00"
|
||||
},
|
||||
{
|
||||
"name": "php-ffmpeg/php-ffmpeg",
|
||||
"version": "v0.13",
|
||||
|
||||
@@ -1,48 +0,0 @@
|
||||
+-----------------------------------------------------------------------+
|
||||
| |
|
||||
| W3C® SOFTWARE NOTICE AND LICENSE |
|
||||
| http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231 |
|
||||
| |
|
||||
| This work (and included software, documentation such as READMEs, |
|
||||
| or other related items) is being provided by the copyright holders |
|
||||
| under the following license. By obtaining, using and/or copying |
|
||||
| this work, you (the licensee) agree that you have read, understood, |
|
||||
| and will comply with the following terms and conditions. |
|
||||
| |
|
||||
| Permission to copy, modify, and distribute this software and its |
|
||||
| documentation, with or without modification, for any purpose and |
|
||||
| without fee or royalty is hereby granted, provided that you include |
|
||||
| the following on ALL copies of the software and documentation or |
|
||||
| portions thereof, including modifications: |
|
||||
| |
|
||||
| 1. The full text of this NOTICE in a location viewable to users |
|
||||
| of the redistributed or derivative work. |
|
||||
| |
|
||||
| 2. Any pre-existing intellectual property disclaimers, notices, |
|
||||
| or terms and conditions. If none exist, the W3C Software Short |
|
||||
| Notice should be included (hypertext is preferred, text is |
|
||||
| permitted) within the body of any redistributed or derivative |
|
||||
| code. |
|
||||
| |
|
||||
| 3. Notice of any changes or modifications to the files, including |
|
||||
| the date changes were made. (We recommend you provide URIs to |
|
||||
| the location from which the code is derived.) |
|
||||
| |
|
||||
| THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT |
|
||||
| HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, |
|
||||
| INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR |
|
||||
| FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE |
|
||||
| OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, |
|
||||
| COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS. |
|
||||
| |
|
||||
| COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, |
|
||||
| SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE |
|
||||
| SOFTWARE OR DOCUMENTATION. |
|
||||
| |
|
||||
| The name and trademarks of copyright holders may NOT be used in |
|
||||
| advertising or publicity pertaining to the software without |
|
||||
| specific, written prior permission. Title to copyright in this |
|
||||
| software and any associated documentation will at all times |
|
||||
| remain with copyright holders. |
|
||||
| |
|
||||
+-----------------------------------------------------------------------+
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1,528 +0,0 @@
|
||||
<?php
|
||||
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4 foldmethod=marker: */
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* PHP versions 4 and 5
|
||||
*
|
||||
* <pre>
|
||||
* +-----------------------------------------------------------------------+
|
||||
* | |
|
||||
* | W3C® SOFTWARE NOTICE AND LICENSE |
|
||||
* | http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231 |
|
||||
* | |
|
||||
* | This work (and included software, documentation such as READMEs, |
|
||||
* | or other related items) is being provided by the copyright holders |
|
||||
* | under the following license. By obtaining, using and/or copying |
|
||||
* | this work, you (the licensee) agree that you have read, understood, |
|
||||
* | and will comply with the following terms and conditions. |
|
||||
* | |
|
||||
* | Permission to copy, modify, and distribute this software and its |
|
||||
* | documentation, with or without modification, for any purpose and |
|
||||
* | without fee or royalty is hereby granted, provided that you include |
|
||||
* | the following on ALL copies of the software and documentation or |
|
||||
* | portions thereof, including modifications: |
|
||||
* | |
|
||||
* | 1. The full text of this NOTICE in a location viewable to users |
|
||||
* | of the redistributed or derivative work. |
|
||||
* | |
|
||||
* | 2. Any pre-existing intellectual property disclaimers, notices, |
|
||||
* | or terms and conditions. If none exist, the W3C Software Short |
|
||||
* | Notice should be included (hypertext is preferred, text is |
|
||||
* | permitted) within the body of any redistributed or derivative |
|
||||
* | code. |
|
||||
* | |
|
||||
* | 3. Notice of any changes or modifications to the files, including |
|
||||
* | the date changes were made. (We recommend you provide URIs to |
|
||||
* | the location from which the code is derived.) |
|
||||
* | |
|
||||
* | THIS SOFTWARE AND DOCUMENTATION IS PROVIDED "AS IS," AND COPYRIGHT |
|
||||
* | HOLDERS MAKE NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED, |
|
||||
* | INCLUDING BUT NOT LIMITED TO, WARRANTIES OF MERCHANTABILITY OR |
|
||||
* | FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE |
|
||||
* | OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, |
|
||||
* | COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS. |
|
||||
* | |
|
||||
* | COPYRIGHT HOLDERS WILL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, |
|
||||
* | SPECIAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF ANY USE OF THE |
|
||||
* | SOFTWARE OR DOCUMENTATION. |
|
||||
* | |
|
||||
* | The name and trademarks of copyright holders may NOT be used in |
|
||||
* | advertising or publicity pertaining to the software without |
|
||||
* | specific, written prior permission. Title to copyright in this |
|
||||
* | software and any associated documentation will at all times |
|
||||
* | remain with copyright holders. |
|
||||
* | |
|
||||
* +-----------------------------------------------------------------------+
|
||||
* </pre>
|
||||
*
|
||||
* @category Net
|
||||
* @package Net_NNTP
|
||||
* @author Heino H. Gehlsen <heino@gehlsen.dk>
|
||||
* @copyright 2002-2011 Heino H. Gehlsen <heino@gehlsen.dk>. All Rights Reserved.
|
||||
* @license http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231 W3C® SOFTWARE NOTICE AND LICENSE
|
||||
* @version SVN: $Id: Responsecode.php 306619 2010-12-24 12:16:07Z heino $
|
||||
* @link http://pear.php.net/package/Net_NNTP
|
||||
* @see
|
||||
* @since File available since release 1.3.0
|
||||
*/
|
||||
|
||||
|
||||
|
||||
// {{{ Constants: Connection
|
||||
|
||||
/**
|
||||
* 'Server ready - posting allowed' (RFC977)
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
define('NET_NNTP_PROTOCOL_RESPONSECODE_READY_POSTING_ALLOWED', 200);
|
||||
|
||||
/**
|
||||
* 'Server ready - no posting allowed' (RFC977)
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
define('NET_NNTP_PROTOCOL_RESPONSECODE_READY_POSTING_PROHIBITED', 201);
|
||||
|
||||
|
||||
/**
|
||||
* 'Closing connection - goodbye!' (RFC977)
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
define('NET_NNTP_PROTOCOL_RESPONSECODE_DISCONNECTING_REQUESTED', 205);
|
||||
|
||||
/**
|
||||
* 'Service discontinued' (RFC977)
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
define('NET_NNTP_PROTOCOL_RESPONSECODE_DISCONNECTING_FORCED', 400);
|
||||
|
||||
|
||||
/**
|
||||
* 'Slave status noted' (RFC977)
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
define('NET_NNTP_PROTOCOL_RESPONSECODE_SLAVE_RECOGNIZED', 202);
|
||||
|
||||
|
||||
|
||||
|
||||
// }}}
|
||||
// {{{ Constants: Common errors
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 'Command not recognized' (RFC977)
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
define('NET_NNTP_PROTOCOL_RESPONSECODE_UNKNOWN_COMMAND', 500);
|
||||
|
||||
/**
|
||||
* 'Command syntax error' (RFC977)
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
define('NET_NNTP_PROTOCOL_RESPONSECODE_SYNTAX_ERROR', 501);
|
||||
|
||||
/**
|
||||
* 'Access restriction or permission denied' (RFC977)
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
define('NET_NNTP_PROTOCOL_RESPONSECODE_NOT_PERMITTED', 502);
|
||||
|
||||
/**
|
||||
* 'Program fault - command not performed' (RFC977)
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
define('NET_NNTP_PROTOCOL_RESPONSECODE_NOT_SUPPORTED', 503);
|
||||
|
||||
|
||||
|
||||
// }}}
|
||||
// {{{ Constants: Group selection
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 'Group selected' (RFC977)
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
define('NET_NNTP_PROTOCOL_RESPONSECODE_GROUP_SELECTED', 211);
|
||||
|
||||
/**
|
||||
* 'No such news group' (RFC977)
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
define('NET_NNTP_PROTOCOL_RESPONSECODE_NO_SUCH_GROUP', 411);
|
||||
|
||||
/**
|
||||
* 'Groups and descriptions unavailable'
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
define('NET_NNTP_PROTOCOL_RESPONSECODE_XGTITLE_GROUPS_UNAVAILABLE', 481);
|
||||
|
||||
// }}}
|
||||
// {{{ Constants: Article retrieval
|
||||
|
||||
|
||||
/**
|
||||
* 'Article retrieved - head and body follow' (RFC977)
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
define('NET_NNTP_PROTOCOL_RESPONSECODE_ARTICLE_FOLLOWS', 220);
|
||||
|
||||
/**
|
||||
* 'Article retrieved - head follows' (RFC977)
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
define('NET_NNTP_PROTOCOL_RESPONSECODE_HEAD_FOLLOWS', 221);
|
||||
|
||||
/**
|
||||
* 'Article retrieved - body follows' (RFC977)
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
define('NET_NNTP_PROTOCOL_RESPONSECODE_BODY_FOLLOWS', 222);
|
||||
|
||||
/**
|
||||
* 'Article retrieved - request text separately' (RFC977)
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
define('NET_NNTP_PROTOCOL_RESPONSECODE_ARTICLE_SELECTED', 223);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 'No newsgroup has been selected' (RFC977)
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
define('NET_NNTP_PROTOCOL_RESPONSECODE_NO_GROUP_SELECTED', 412);
|
||||
|
||||
|
||||
/**
|
||||
* 'No current article has been selected' (RFC977)
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
define('NET_NNTP_PROTOCOL_RESPONSECODE_NO_ARTICLE_SELECTED', 420);
|
||||
|
||||
/**
|
||||
* 'No next article in this group' (RFC977)
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
define('NET_NNTP_PROTOCOL_RESPONSECODE_NO_NEXT_ARTICLE', 421);
|
||||
|
||||
/**
|
||||
* 'No previous article in this group' (RFC977)
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
define('NET_NNTP_PROTOCOL_RESPONSECODE_NO_PREVIOUS_ARTICLE', 422);
|
||||
|
||||
|
||||
/**
|
||||
* 'No such article number in this group' (RFC977)
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
define('NET_NNTP_PROTOCOL_RESPONSECODE_NO_SUCH_ARTICLE_NUMBER', 423);
|
||||
|
||||
/**
|
||||
* 'No such article found' (RFC977)
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
define('NET_NNTP_PROTOCOL_RESPONSECODE_NO_SUCH_ARTICLE_ID', 430);
|
||||
|
||||
/**
|
||||
* 'List of groups and descriptions follows' (RFC2980)
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
define('NET_NNTP_PROTOCOL_RESPONSECODE_XGTITLE_GROUPS_FOLLOW', 482);
|
||||
|
||||
|
||||
// }}}
|
||||
// {{{ Constants: Transferring
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 'Send article to be transferred' (RFC977)
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
define('NET_NNTP_PROTOCOL_RESPONSECODE_TRANSFER_SEND', 335);
|
||||
|
||||
/**
|
||||
* 'Article transferred ok' (RFC977)
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
define('NET_NNTP_PROTOCOL_RESPONSECODE_TRANSFER_SUCCESS', 235);
|
||||
|
||||
/**
|
||||
* 'Article not wanted - do not send it' (RFC977)
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
define('NET_NNTP_PROTOCOL_RESPONSECODE_TRANSFER_UNWANTED', 435);
|
||||
|
||||
/**
|
||||
* 'Transfer failed - try again later' (RFC977)
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
define('NET_NNTP_PROTOCOL_RESPONSECODE_TRANSFER_FAILURE', 436);
|
||||
|
||||
/**
|
||||
* 'Article rejected - do not try again' (RFC977)
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
define('NET_NNTP_PROTOCOL_RESPONSECODE_TRANSFER_REJECTED', 437);
|
||||
|
||||
|
||||
|
||||
// }}}
|
||||
// {{{ Constants: Posting
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 'Send article to be posted' (RFC977)
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
define('NET_NNTP_PROTOCOL_RESPONSECODE_POSTING_SEND', 340);
|
||||
|
||||
/**
|
||||
* 'Article posted ok' (RFC977)
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
define('NET_NNTP_PROTOCOL_RESPONSECODE_POSTING_SUCCESS', 240);
|
||||
|
||||
/**
|
||||
* 'Posting not allowed' (RFC977)
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
define('NET_NNTP_PROTOCOL_RESPONSECODE_POSTING_PROHIBITED', 440);
|
||||
|
||||
/**
|
||||
* 'Posting failed' (RFC977)
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
define('NET_NNTP_PROTOCOL_RESPONSECODE_POSTING_FAILURE', 441);
|
||||
|
||||
|
||||
|
||||
|
||||
// }}}
|
||||
// {{{ Constants: Authorization
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 'Authorization required for this command' (RFC2980)
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
define('NET_NNTP_PROTOCOL_RESPONSECODE_AUTHORIZATION_REQUIRED', 450);
|
||||
|
||||
/**
|
||||
* 'Continue with authorization sequence' (RFC2980)
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
define('NET_NNTP_PROTOCOL_RESPONSECODE_AUTHORIZATION_CONTINUE', 350);
|
||||
|
||||
/**
|
||||
* 'Authorization accepted' (RFC2980)
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
define('NET_NNTP_PROTOCOL_RESPONSECODE_AUTHORIZATION_ACCEPTED', 250);
|
||||
|
||||
/**
|
||||
* 'Authorization rejected' (RFC2980)
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
define('NET_NNTP_PROTOCOL_RESPONSECODE_AUTHORIZATION_REJECTED', 452);
|
||||
|
||||
|
||||
|
||||
|
||||
// }}}
|
||||
// {{{ Constants: Authentication
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 'Authentication required' (RFC2980)
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
define('NET_NNTP_PROTOCOL_RESPONSECODE_AUTHENTICATION_REQUIRED', 480);
|
||||
|
||||
/**
|
||||
* 'More authentication information required' (RFC2980)
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
define('NET_NNTP_PROTOCOL_RESPONSECODE_AUTHENTICATION_CONTINUE', 381);
|
||||
|
||||
/**
|
||||
* 'Continue with TLS negotiation' (RFC4642)
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
define('NET_NNTP_PROTOCOL_RESPONSECODE_TLS_AUTHENTICATION_CONTINUE', 382);
|
||||
|
||||
/**
|
||||
* 'Authentication accepted' (RFC2980)
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
define('NET_NNTP_PROTOCOL_RESPONSECODE_AUTHENTICATION_ACCEPTED', 281);
|
||||
|
||||
/**
|
||||
* 'Authentication rejected' (RFC2980)
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
define('NET_NNTP_PROTOCOL_RESPONSECODE_AUTHENTICATION_REJECTED', 482);
|
||||
|
||||
|
||||
// }}}
|
||||
// {{{ Constants: Misc
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 'Help text follows' (Draft)
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
define('NET_NNTP_PROTOCOL_RESPONSECODE_HELP_FOLLOWS', 100);
|
||||
|
||||
/**
|
||||
* 'Capabilities list follows' (Draft)
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
define('NET_NNTP_PROTOCOL_RESPONSECODE_CAPABILITIES_FOLLOW', 101);
|
||||
|
||||
/**
|
||||
* 'Server date and time' (Draft)
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
define('NET_NNTP_PROTOCOL_RESPONSECODE_SERVER_DATE', 111);
|
||||
|
||||
/**
|
||||
* 'Information follows' (Draft)
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
define('NET_NNTP_PROTOCOL_RESPONSECODE_GROUPS_FOLLOW', 215);
|
||||
|
||||
/**
|
||||
* 'Overview information follows' (Draft)
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
define('NET_NNTP_PROTOCOL_RESPONSECODE_OVERVIEW_FOLLOWS', 224);
|
||||
|
||||
/**
|
||||
* 'Headers follow' (Draft)
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
define('NET_NNTP_PROTOCOL_RESPONSECODE_HEADERS_FOLLOW', 225);
|
||||
|
||||
/**
|
||||
* 'List of new articles follows' (Draft)
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
define('NET_NNTP_PROTOCOL_RESPONSECODE_NEW_ARTICLES_FOLLOW', 230);
|
||||
|
||||
/**
|
||||
* 'List of new newsgroups follows' (Draft)
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
define('NET_NNTP_PROTOCOL_RESPONSECODE_NEW_GROUPS_FOLLOW', 231);
|
||||
|
||||
/**
|
||||
* 'The server is in the wrong mode; the indicated capability should be used to change the mode' (Draft)
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
define('NET_NNTP_PROTOCOL_RESPONSECODE_WRONG_MODE', 401);
|
||||
|
||||
/**
|
||||
* 'Internal fault or problem preventing action being taken' (Draft)
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
define('NET_NNTP_PROTOCOL_RESPONSECODE_INTERNAL_FAULT', 403);
|
||||
|
||||
/**
|
||||
* 'Command unavailable until suitable privacy has been arranged' (Draft)
|
||||
*
|
||||
* (the client must negotiate appropriate privacy protection on the connection.
|
||||
* This will involve the use of a privacy extension such as [NNTP-TLS].)
|
||||
*
|
||||
* @access public
|
||||
* @since ?
|
||||
*/
|
||||
//define('NET_NNTP_PROTOCOL_RESPONSECODE_ENCRYPTION_REQUIRED', 483);
|
||||
|
||||
/**
|
||||
* 'Error in base64-encoding [RFC3548] of an argument' (Draft)
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
define('NET_NNTP_PROTOCOL_RESPONSECODE_BASE64_ENCODING_ERROR', 504);
|
||||
|
||||
/**
|
||||
* 'Can not initiate TLS negotiation' (RFC4642)
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
define('NET_NNTP_PROTOCOL_RESPONSECODE_TLS_FAILED_NEGOTIATION', 580);
|
||||
|
||||
|
||||
// }}}
|
||||
|
||||
/*
|
||||
* Local variables:
|
||||
* tab-width: 4
|
||||
* c-basic-offset: 4
|
||||
* c-hanging-comment-ender-p: nil
|
||||
* End:
|
||||
*/
|
||||
Reference in New Issue
Block a user