From: Brion Vibber Date: Thu, 17 Mar 2011 21:48:14 +0000 (-0700) Subject: Merge branch 'faves' into 1.0.x X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c70fdef368b2c6d77769d359f487953e303221f9;hp=ed6d5c6e7a86d4e548a46f456f0314f1fbbe1c61;p=quix0rs-gnu-social.git Merge branch 'faves' into 1.0.x --- diff --git a/lib/action.php b/lib/action.php index 20de71aec1..654ec7aa43 100644 --- a/lib/action.php +++ b/lib/action.php @@ -100,10 +100,12 @@ class Action extends HTMLOutputter // lawsuit { if (Event::handle('StartShowHTML', array($this))) { $this->startHTML(); + $this->flush(); Event::handle('EndShowHTML', array($this)); } if (Event::handle('StartShowHead', array($this))) { $this->showHead(); + $this->flush(); Event::handle('EndShowHead', array($this)); } if (Event::handle('StartShowBody', array($this))) { @@ -471,11 +473,14 @@ class Action extends HTMLOutputter // lawsuit $this->elementStart('div', array('id' => 'wrap')); if (Event::handle('StartShowHeader', array($this))) { $this->showHeader(); + $this->flush(); Event::handle('EndShowHeader', array($this)); } $this->showCore(); + $this->flush(); if (Event::handle('StartShowFooter', array($this))) { $this->showFooter(); + $this->flush(); Event::handle('EndShowFooter', array($this)); } $this->elementEnd('div'); @@ -695,14 +700,17 @@ class Action extends HTMLOutputter // lawsuit $this->elementStart('div', array('id' => 'site_nav_local_views_wrapper')); if (Event::handle('StartShowLocalNavBlock', array($this))) { $this->showLocalNavBlock(); + $this->flush(); Event::handle('EndShowLocalNavBlock', array($this)); } if (Event::handle('StartShowContentBlock', array($this))) { $this->showContentBlock(); + $this->flush(); Event::handle('EndShowContentBlock', array($this)); } if (Event::handle('StartShowAside', array($this))) { $this->showAside(); + $this->flush(); Event::handle('EndShowAside', array($this)); } $this->elementEnd('div'); diff --git a/lib/xmloutputter.php b/lib/xmloutputter.php index 15b18e7d90..528f633050 100644 --- a/lib/xmloutputter.php +++ b/lib/xmloutputter.php @@ -242,4 +242,15 @@ class XMLOutputter { $this->xw->writeComment($txt); } + + /** + * Flush output buffers + * + * @return void + */ + + function flush() + { + $this->xw->flush(); + } } diff --git a/plugins/Msn/extlib/phpmsnclass/msn.class.php b/plugins/Msn/extlib/phpmsnclass/msn.class.php index 996c5571c2..3d10c25b2c 100644 --- a/plugins/Msn/extlib/phpmsnclass/msn.class.php +++ b/plugins/Msn/extlib/phpmsnclass/msn.class.php @@ -2995,8 +2995,37 @@ X-OIM-Sequence-Num: 1 // no ticket found! if (count($matches) == 0) { - $this->debug_message('*** Could not get passport ticket!'); - return false; + // Since 2011/2/15, the return value will be Compact2, not PPToken2 + + // we need ticket and secret code + // RST1: messengerclear.live.com + // t=tick&p= + // binary secret + // RST2: messenger.msn.com + // t=tick + // RST3: contacts.msn.com + // t=tick&p= + // RST4: messengersecure.live.com + // t=tick&p= + // RST5: spaces.live.com + // t=tick&p= + // RST6: storage.msn.com + // t=tick&p= + preg_match("#". + "(.*)(.*)". + "(.*)(.*)". + "(.*)(.*)". + "(.*)(.*)". + "(.*)(.*)". + "(.*)(.*)". + "(.*)(.*)". + "#", + $data, $matches); + // no ticket found! + if (count($matches) == 0) { + $this->debug_message("*** Can't get passport ticket!"); + return false; + } } //$this->debug_message(var_export($matches, true));