cvs: pear /Services_Trackback/Services Trackback.php

From: Date: Thu, 16 Feb 2006 05:34:09 +0000
Subject: cvs: pear /Services_Trackback/Services Trackback.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-38278@lists.php.net to get a copy of this message
toby Thu Feb 16 05:34:09 2006 UTC Modified files: /pear/Services_Trackback/Services Trackback.php Log: * Added capturing of $_SERVER during Services_Trackback::receive(). http://cvs.php.net/viewcvs.cgi/pear/Services_Trackback/Services/Trackback.php?r1=1.16&r2=1.17&diff_format=u Index: pear/Services_Trackback/Services/Trackback.php diff -u pear/Services_Trackback/Services/Trackback.php:1.16 pear/Services_Trackback/Services/Trackback.php:1.17 --- pear/Services_Trackback/Services/Trackback.php:1.16 Thu Feb 9 19:15:24 2006 +++ pear/Services_Trackback/Services/Trackback.php Thu Feb 16 05:34:09 2006 @@ -21,7 +21,7 @@ * @author Tobias Schlitt <toby@php.net> * @copyright 2005-2006 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: Trackback.php,v 1.16 2006/02/09 19:15:24 toby Exp $ + * @version CVS: $Id: Trackback.php,v 1.17 2006/02/16 05:34:09 toby Exp $ * @link http://pear.php.net/package/Services_Trackback * @since File available since Release 0.1.0 */ @@ -98,6 +98,7 @@ 'url' => '', 'trackback_url' => '', 'host' => '', + 'extra' => array(), ); // }}} @@ -117,6 +118,7 @@ 'strictness' => SERVICES_TRACKBACK_STRICTNESS_LOW, 'timeout' => 30, // seconds 'fetchlines' => 30, + 'fetchextra' => true, // Options for HTTP_Request class 'httpRequest' => array( 'allowRedirects' => true, @@ -131,6 +133,7 @@ var $_spamChecks = array(); // }}} + // {{{ Services_Trackback() /** @@ -167,6 +170,7 @@ * 'blog_name' string Name of the trackback sending/receiving weblog. * 'url' string URL of the trackback sending/receiving blog entry. * 'trackback_url' string URL to send trackbacks to. + * 'extra' array Content of $_SERVER, captured while doing Services_Trackback::receive(). * @param array $options Options to set for this trackback. Valid options: * 'strictness': int The default strictness to use in @see Services_Trackback::autodiscover(). * 'timeout': int The default timeout for network operations in seconds. @@ -473,6 +477,9 @@ } $this->_data = array_merge($this->_data, $this->_getDecodedData($necessaryPostData, $data)); + if ($this->_options['fetchextra'] === true) { + $this->_data['extra'] = $_SERVER; + } return true; } @@ -655,6 +662,7 @@ } // }}} + // {{{ get() /** @@ -693,6 +701,7 @@ } // }}} + // {{{ _fromArray() /**

« previous php.pear.cvs (#38278) next »