Guest User

Untitled

a guest
Feb 18th, 2018
286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.35 KB | None | 0 0
  1. --- openads-xmlrpc.inc_nocke.php 2011-03-10 12:41:10.000000000 -0500
  2. +++ /www/adweb.news.cmg.net/openx-2.6.3/lib/xmlrpc/php/openads-xmlrpc.inc.php 2011-03-10 12:26:55.189576117 -0500
  3. @@ -22,19 +22,12 @@
  4. | along with this program; if not, write to the Free Software |
  5. | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
  6. +---------------------------------------------------------------------------+
  7. -$Id: openads-xmlrpc.inc.php 24736 2008-08-27 11:30:00Z andrew.hill $
  8. +$Id: openads-xmlrpc.inc.php 28426 2008-11-04 13:08:26Z andrew.hill $
  9. */
  10. -//if (!@include('XML/RPC.php')) {
  11. -
  12. -if ($wamp) {
  13. - if (!@include('C:/wamp/bin/php/php5.2.4/PEAR/XML/RPC.php')) {
  14. - die("Error: cannot load the PEAR XML_RPC class in WAMP");
  15. - }
  16. -} else {
  17.  
  18. if (!@include('XML/RPC.php')) {
  19. - die("Error: cannot load the PEAR XML_RPC class");
  20. -}
  21. + echo ini_get('include_path');
  22. + die("2 Error: cannot load the PEAR XML_RPC class");
  23. }
  24.  
  25. /**
  26. @@ -67,7 +60,7 @@
  27. * @param bool $ssl True to connect using an SSL connection
  28. * @param int $timeout The timeout period to wait for the response
  29. */
  30. - function __construct($host, $path, $port = 0, $ssl = false, $timeout = 1)
  31. + function __construct($host, $path, $port = 0, $ssl = false, $timeout = 15)
  32. {
  33. $this->host = $host;
  34. $this->path = $path;
  35. @@ -81,7 +74,7 @@
  36. *
  37. * @see OA_XmlRpc::__construct
  38. */
  39. - function OA_XmlRpc($host, $path, $port = 0, $ssl = false, $timeout = 1)
  40. + function OA_XmlRpc($host, $path, $port = 0, $ssl = false, $timeout = 15)
  41. {
  42. $this->__construct($host, $path, $port, $ssl, $timeout);
  43. }
  44. @@ -166,9 +159,9 @@
  45. if ($response && $response->faultCode() == 0) {
  46. $response = XML_RPC_decode($response->value());
  47.  
  48. - if (isset($response['cookies']) && is_array($response['cookies'])) {
  49. - foreach ($response['cookies'] as $cookieName => $cookieValue) {
  50. - // setcookie($cookieName, $cookieValue[0], (int)$cookieValue[1]);
  51. + if (isset($response['cookies']) && is_array($response['cookies'])) {
  52. + foreach ($response['cookies'] as $cookieName => $cookieValue) {
  53. + setcookie($cookieName, $cookieValue[0], (int)$cookieValue[1]);
  54. }
  55. }
Add Comment
Please, Sign In to add comment