/** * Constructeur de la classe inMyPluxml * * @param default_lang langue par défaut utilisée par PluXml * @return null * @author Stephane F **/ public function __construct($default_lang) { # Appel du constructeur de la classe plxPlugin (obligatoire) parent::__construct($default_lang); if (defined('PLX_ADMIN')) { if (!empty($_GET['deletetoken']) && !empty($_GET['pasteid'])) { list($this->CIPHERDATA, $this->ERRORMESSAGE, $this->STATUS) = cmp_processPasteDelete(plxUtils::strCheck(plxUtils::nullbyteRemove($_GET['pasteid'])), plxUtils::strCheck(plxUtils::nullbyteRemove($_GET['deletetoken']))); } elseif (!empty($_SERVER['QUERY_STRING'])) { $zb = preg_replace('!(a=[0-9]+&?)*(zb=)?!', '', plxUtils::getGets($_SERVER['QUERY_STRING'])); if (!empty($zb)) { list($this->CIPHERDATA, $this->ERRORMESSAGE, $this->STATUS) = cmp_processPasteFetch($zb); } } } # Déclarations des hooks $this->addHook('ThemeEndHead', 'ThemeEndHead'); $this->addHook('plxMotorPreChauffageBegin', 'plxMotorPreChauffageBegin'); $this->addHook('plxMotorDemarrageBegin', 'plxMotorDemarrageBegin'); $this->addHook('plxShowConstruct', 'plxShowConstruct'); $this->addHook('AdminPrepend', 'Prepend'); $this->addHook('IndexBegin', 'Prepend'); $this->addHook('AdminTopEndHead', 'AdminTopEndHead'); $this->addHook('AdminArticleTop', 'AdminArticleTop'); // Pour n'enregistrer des données que via ZB, décommenter ces lignes // $this->addHook('AdminArticleContent', 'AdminArticleContent'); // $this->addHook('AdminArticleFoot', 'AdminArticleFoot'); }
<?php if (!defined('PLX_ROOT')) { exit; } $plxMotor = plxMotor::getInstance(); $plxShow = plxShow::getInstance(); $plxPlugin = $plxMotor->plxPlugins->getInstance('cryptMyPluxml'); if (!empty($_GET['deletetoken']) && !empty($_GET['pasteid'])) { list($plxPlugin->CIPHERDATA, $plxPlugin->ERRORMESSAGE, $plxPlugin->STATUS) = cmp_processPasteDelete(plxUtils::strCheck(plxUtils::nullbyteRemove($_GET['pasteid'])), plxUtils::strCheck(plxUtils::nullbyteRemove($_GET['deletetoken']))); } elseif (!empty($_SERVER['QUERY_STRING'])) { $zb = preg_replace('!(a=[0-9]+&)*zb=!', '', plxUtils::getGets($_SERVER['QUERY_STRING'])); $zb = str_replace(array('zb=', 'zb/'), '', $zb); list($plxPlugin->CIPHERDATA, $plxPlugin->ERRORMESSAGE, $plxPlugin->STATUS) = cmp_processPasteFetch($zb); } ?> <div id="infoZB">(?)<br/> <div id="aboutbox"> <?php echo $plxPlugin->getLang('L_ZB_DESC'); ?> </div> </div> <noscript><div class="nonworking"><?php echo $plxPlugin->getLang('L_JS_REQUIRED'); ?> </div></noscript> <div id="oldienotice" class="nonworking"><?php echo $plxPlugin->getLang('L_MODERN_BROWSER');