Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- openads-xmlrpc.inc_nocke.php 2011-03-10 12:41:10.000000000 -0500
- +++ /www/adweb.news.cmg.net/openx-2.6.3/lib/xmlrpc/php/openads-xmlrpc.inc.php 2011-03-10 12:26:55.189576117 -0500
- @@ -22,19 +22,12 @@
- | along with this program; if not, write to the Free Software |
- | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
- +---------------------------------------------------------------------------+
- -$Id: openads-xmlrpc.inc.php 24736 2008-08-27 11:30:00Z andrew.hill $
- +$Id: openads-xmlrpc.inc.php 28426 2008-11-04 13:08:26Z andrew.hill $
- */
- -//if (!@include('XML/RPC.php')) {
- -
- -if ($wamp) {
- - if (!@include('C:/wamp/bin/php/php5.2.4/PEAR/XML/RPC.php')) {
- - die("Error: cannot load the PEAR XML_RPC class in WAMP");
- - }
- -} else {
- if (!@include('XML/RPC.php')) {
- - die("Error: cannot load the PEAR XML_RPC class");
- -}
- + echo ini_get('include_path');
- + die("2 Error: cannot load the PEAR XML_RPC class");
- }
- /**
- @@ -67,7 +60,7 @@
- * @param bool $ssl True to connect using an SSL connection
- * @param int $timeout The timeout period to wait for the response
- */
- - function __construct($host, $path, $port = 0, $ssl = false, $timeout = 1)
- + function __construct($host, $path, $port = 0, $ssl = false, $timeout = 15)
- {
- $this->host = $host;
- $this->path = $path;
- @@ -81,7 +74,7 @@
- *
- * @see OA_XmlRpc::__construct
- */
- - function OA_XmlRpc($host, $path, $port = 0, $ssl = false, $timeout = 1)
- + function OA_XmlRpc($host, $path, $port = 0, $ssl = false, $timeout = 15)
- {
- $this->__construct($host, $path, $port, $ssl, $timeout);
- }
- @@ -166,9 +159,9 @@
- if ($response && $response->faultCode() == 0) {
- $response = XML_RPC_decode($response->value());
- - if (isset($response['cookies']) && is_array($response['cookies'])) {
- - foreach ($response['cookies'] as $cookieName => $cookieValue) {
- - // setcookie($cookieName, $cookieValue[0], (int)$cookieValue[1]);
- + if (isset($response['cookies']) && is_array($response['cookies'])) {
- + foreach ($response['cookies'] as $cookieName => $cookieValue) {
- + setcookie($cookieName, $cookieValue[0], (int)$cookieValue[1]);
- }
- }
Add Comment
Please, Sign In to add comment