Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php /** * Matomo - free/libre analytics platform * * @link https://matomo.org * @lic..

Decoded Output download

<?php /**
 * Matomo - free/libre analytics platform
 *
 * @link https://matomo.org
 * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
 *
 */ namespace Piwik\Plugins\PrivacyManager\Model;use Piwik\Columns\Dimension;use Piwik\Columns\Join\ActionNameJoin;use Piwik\Common;use Piwik\Container\StaticContainer;use Piwik\Date;use Piwik\Db;use Piwik\DbHelper;use Piwik\Metrics\Formatter;use Piwik\Piwik;use Piwik\Plugin\LogTablesProvider;use Piwik\Site;use Piwik\Tracker\LogTable;use Piwik\Tracker\PageUrl;use Piwik\Log\LoggerInterface;class fhfm13{/**
     * @var LogTablesProvider
     */ private $mlcd14;public function gjmp0(LogTablesProvider $mlcd14){$this->$ppnn15=$mlcd14;}private function pols1($cptl16,$kbrc17){$cptl16=Common::csfh18($cptl16);$ulxz19=Db::xuyz1a(base64_decode('U0VMRUNUIERJU1RJTkNUIGlkc2l0ZSBGUk9NIA==').$cptl16);$ulxz19=array_column($ulxz19,base64_decode('aWRzaXRl'));$ulxz19=array_map(base64_decode('aW50dmFs'),$ulxz19);$ulxz19=array_filter($ulxz19,function($sqgp1b)use($kbrc17){return!empty($sqgp1b)&&$sqgp1b<=$kbrc17;});return $ulxz19;}public function hplj2($ywox1c){if(empty($ywox1c)){return[];}$ywox1c=array_map(base64_decode('aW50dmFs'),$ywox1c);$kbrc17=max($ywox1c);$oitq1d=[];$tang1e=$this->pols1(base64_decode('bG9nX3Zpc2l0'),$kbrc17);$zhfh1f=$this->pols1(base64_decode('bG9nX2xpbmtfdmlzaXRfYWN0aW9u'),$kbrc17);$vfig20=$this->pols1(base64_decode('bG9nX2NvbnZlcnNpb24='),$kbrc17);$xwyi21=array_unique(array_merge($tang1e,$zhfh1f,$vfig20));$mimn22=array_diff($xwyi21,$ywox1c);if(empty($mimn22)){return[];}$kkgl23=$this->xhem7();foreach($mimn22 as $egoy24){$fsph25=$this->kxmu9($kkgl23,function($wqfj26)use($egoy24){return[$wqfj26.base64_decode('Lmlkc2l0ZSA9IA==').$egoy24,[]];});foreach($fsph25 as $fojy27=>$mtim28){if(!ospy3($fojy27,$oitq1d)){$oitq1d[$fojy27]=0;}$oitq1d[$fojy27]+=$mtim28;}}krsort($oitq1d);return $oitq1d;}public function napb4($gdst29){if(empty($gdst29)){return[];}$oitq1d=[];/**
         * Lets you delete data subjects to make your plugin GDPR compliant.
         * This can be useful if you have developed a plugin which stores any data for visits but doesn't
         * use any core logic to store this data. If core API's are used, for example log tables, then the data may
         * be deleted automatically.
         *
         * **Example**
         *
         *     public function deleteDataSubjects(&$result, $visitsToDelete)
         *     {
         *         $numDeletes = $this->deleteVisits($visitsToDelete)
         *         $result['myplugin'] = $numDeletes;
         *     }
         *
         * @param array &$results An array storing the result of how much data was deleted for .
         * @param array &$visits An array with multiple visit entries containing an idvisit and idsite each. The data
         *                       for these visits is requested to be deleted.
         */ Piwik::pnak2a(base64_decode('UHJpdmFjeU1hbmFnZXIuZGVsZXRlRGF0YVN1YmplY3Rz'),[&$oitq1d,$gdst29]);$ddby2b=$this->ukcy6($gdst29);$hwhx2c=$this->vvzd12($gdst29);$this->igxq5($ddby2b);$oitq1d=array_merge($oitq1d,$hwhx2c);krsort($oitq1d);return $oitq1d;}private function igxq5($ddby2b){$bkpk2d=StaticContainer::hjir2e(base64_decode('UGl3aWtcQXJjaGl2ZVxBcmNoaXZlSW52YWxpZGF0b3I='));foreach($ddby2b as $sqgp1b=>$bdzu2f){$jury30=[$sqgp1b];Piwik::pnak2a(base64_decode('QXJjaGl2aW5nLmdldElkU2l0ZXNUb01hcmtBcmNoaXZlc0FzSW52YWxpZGF0ZWQ='),array(&$jury30,$bdzu2f,null,null,null,$fxxa31=true));foreach($bdzu2f as $fqvz32){$fsqd33=Date::glgk34($fqvz32);foreach($jury30 as $tzyz35){$bkpk2d->eikw36($tzyz35,$fsqd33);}}}}private function ukcy6($gdst29){$mbok37=[];foreach($gdst29 as $acdm38){$sqgp1b=(int)$acdm38[base64_decode('aWRzaXRl')];if(!isset($mbok37[$sqgp1b])){$mbok37[$sqgp1b]=[];}$mbok37[$sqgp1b][]=(int)$acdm38[base64_decode('aWR2aXNpdA==')];}$vuec39=[];foreach($mbok37 as $sqgp1b=>$ahoa3a){$tbnd3b=Site::galf3c($sqgp1b);$telu3d=base64_decode('U0VMRUNUIHZpc2l0X2xhc3RfYWN0aW9uX3RpbWUgRlJPTSA=').Common::csfh18(base64_decode('bG9nX3Zpc2l0')).base64_decode('IFdIRVJFIGlkc2l0ZSA9IA==').$sqgp1b.base64_decode('IEFORCBpZHZpc2l0IElOICg=').implode(base64_decode('LA=='),$ahoa3a).base64_decode('KQ==');$bpiq3e=Db::xuyz1a($telu3d);$vqmg3f=[];foreach($bpiq3e as $pqaq40){$nqhw41=Date::glgk34($pqaq40[base64_decode('dmlzaXRfbGFzdF9hY3Rpb25fdGltZQ==')],$tbnd3b);$vqmg3f[$nqhw41->gyru42(base64_decode('WS1tLWQ='))]=1;}$vuec39[$sqgp1b]=array_keys($vqmg3f);}return $vuec39;}private function xhem7(){$kkgl23=$this->$ppnn15->ilih43();$kkgl23=array_filter($kkgl23,function(LogTable $eqkj44){return $eqkj44->sdehb()!=base64_decode('bG9nX2FjdGlvbg==');});$kkgl23=$this->ioioa($kkgl23);return $kkgl23;}/**
     * @param LogTable[] $logTables
     * @param callable $generateWhere
     * @throws \Zend_Db_Statement_Exception
     */ private function kxmu9($kkgl23,callable $jvxe45){$oitq1d=[];foreach($kkgl23 as $fmls46){$tpah47=$fmls46->sdehb();$lqob48=[$tpah47];$hspx49=$this->ldwee($fmls46,$lqob48);if(!$hspx49){throw new \qfca4a(base64_decode('Q2Fubm90IGpvaW4gdGFibGUg').$fmls46->sdehb());}[$aeds4b,$lzeh4c]=$jvxe45($hspx49);if(count($lqob48)===1){$tvla4d=Common::csfh18($tpah47);$aeds4b=str_replace($tpah47.base64_decode('Lg=='),$tvla4d.base64_decode('Lg=='),$aeds4b);$gmnf4e=Db::ueuc4f($tvla4d,base64_decode('IFdIRVJFIA==').$aeds4b,'',25000,$lzeh4c);}else{$tvla4d=$this->qewqf($lqob48);$telu3d="DELETE $tpah47 FROM $tvla4d WHERE $aeds4b";$gmnf4e=Db::pmlu50($telu3d,$lzeh4c)->fpjx51();}$oitq1d[$tpah47]=$gmnf4e;}return $oitq1d;}/**
     * @param LogTable[] $logTables
     * @return LogTable[]
     */ private function ioioa($kkgl23){usort($kkgl23,function($sqnn52,$fvuv53){/** @var LogTable $a */ /** @var LogTable $b */ $vqno54=$sqnn52->sdehb();$dfyo55=$fvuv53->sdehb();if($dfyo55===base64_decode('bG9nX3Zpc2l0')){return-1;}elseif($vqno54===base64_decode('bG9nX3Zpc2l0')){return 1;}elseif($dfyo55===base64_decode('bG9nX2xpbmtfdmlzaXRfYWN0aW9u')){return-1;}elseif($vqno54===base64_decode('bG9nX2xpbmtfdmlzaXRfYWN0aW9u')){return 1;}$qqrb56=$sqnn52->fijd57();foreach($qqrb56 as $eqkj44=>$owkq58){if($eqkj44===$dfyo55){return-1;}}$jkit59=$fvuv53->fijd57();foreach($jkit59 as $eqkj44=>$owkq58){if($eqkj44===$vqno54){return 1;}}if($jkit59&&!$qqrb56){return 1;}if(!$jkit59&&$qqrb56){return-1;}return 0;});return $kkgl23;}public function obkzc($gdst29){if(empty($gdst29)){return[];}$kkgl23=$this->$ppnn15->ilih43();$kkgl23=$this->ioioa($kkgl23);$kkgl23=array_reverse($kkgl23);/** @var LogTable[] $logTables */ $dgbo5a=Dimension::dhjs5b();$oitq1d=[];foreach($kkgl23 as $fmls46){$tpah47=$fmls46->sdehb();if(base64_decode('bG9nX2FjdGlvbg==')===$tpah47){continue;}$lqob48=[$tpah47];$hspx49=$this->ldwee($fmls46,$lqob48);if(!$hspx49){continue;}[$aeds4b,$lzeh4c]=$this->ukuv10($hspx49,$gdst29);$fjvj5c=[];$ncjt5d=DbHelper::erho5e(Common::csfh18($tpah47));ksort($ncjt5d);$yhlk5f=[];$manv60=[];foreach($ncjt5d as $gwjl61=>$cvnw62){foreach($dgbo5a as $kaqj63){if($kaqj63->tytu64()===$tpah47&&$kaqj63->ukbt65()===$gwjl61&&$kaqj63->apmm66()===$tpah47.base64_decode('Lg==').$gwjl61){if($kaqj63->ltqe67()===Dimension::TYPE_BINARY){$yhlk5f[]=$gwjl61;}$manv60[$gwjl61]=$kaqj63;break;}}if(!empty($cvnw62[base64_decode('VHlwZQ==')])&&strpos(strtolower($cvnw62[base64_decode('VHlwZQ==')]),base64_decode('YmluYXJ5'))!==false){$yhlk5f[]=$gwjl61;}$fjvj5c[]=sprintf(base64_decode('YCVzYC5gJXNg'),$tpah47,$gwjl61);}if(!isset($ncjt5d[base64_decode('aWRzaXRl')])){$fjvj5c[]=sprintf(base64_decode('YCVzYC5gaWRzaXRlYA=='),$hspx49);}$yhlk5f=array_unique($yhlk5f);$fjvj5c=implode(base64_decode('LA=='),$fjvj5c);$telu3d="SELECT $fjvj5c FROM ".$this->qewqf($lqob48).base64_decode('IFdIRVJFIA==').$aeds4b;$ahob68=$fmls46->jnou69();if(!empty($ahob68)){if(!is_array($ahob68)){$ahob68=[$ahob68];}$telu3d.=base64_decode('IE9SREVSIEJZIA==');foreach($ahob68 as $naez6a){$telu3d.=" `$tpah47`.`$naez6a`,";}$telu3d=rtrim($telu3d,base64_decode('LA=='));}$gmnf4e=Db::xuyz1a($telu3d,$lzeh4c);$lzdp6b=count($gmnf4e);for($rbau6c=0;$rbau6c<$lzdp6b;$rbau6c++){foreach($yhlk5f as $pmam6d){if(isset($gmnf4e[$rbau6c][$pmam6d])){$gmnf4e[$rbau6c][$pmam6d]=bin2hex($gmnf4e[$rbau6c][$pmam6d]);}}foreach($gmnf4e[$rbau6c]as $upev6e=>$vchj6f){if(isset($manv60[$upev6e])){try{$gmnf4e[$rbau6c][$upev6e]=$manv60[$upev6e]->ptsn70($vchj6f,$gmnf4e[$rbau6c][base64_decode('aWRzaXRl')],new gaeb71());}catch(\Exception $ihgm72){StaticContainer::hjir2e(LoggerInterface::class)->gnay73(base64_decode('RmFpbGVkIHRvIGZvcm1hdCBjb2x1bW4ge2NvbHVtbn0gd2l0aCBkaW1lbnNpb24ge2RpbWVuc2lvbn06IHtleGNlcHRpb259'),[base64_decode('Y29sdW1u')=>$upev6e,base64_decode('ZGltZW5zaW9u')=>get_class($manv60[$upev6e]),base64_decode('ZXhjZXB0aW9u')=>$ihgm72,base64_decode('aWdub3JlSW5TY3JlZW5Xcml0ZXI=')=>true,]);$gmnf4e[$rbau6c][$upev6e]=$vchj6f;}}elseif(!empty($vchj6f)){$beri74=@gzuncompress($vchj6f);if($beri74!==false){$gmnf4e[$rbau6c][$upev6e]=$beri74;}}if($gmnf4e[$rbau6c][$upev6e]===null){unset($gmnf4e[$rbau6c][$upev6e]);}}}$oitq1d[$tpah47]=$gmnf4e;}foreach($dgbo5a as $kaqj63){$tdxd75=$kaqj63->yebg76();$lxuu77=$kaqj63->ukbt65();$slmk78=$kaqj63->tytu64();$gxpb79=$this->$ppnn15->moeb7a($slmk78);if($tdxd75&&$tdxd75 instanceof ActionNameJoin&&$lxuu77&&$slmk78&&$gxpb79&&$gxpb79->qyzw7b()){$lqob48=[base64_decode('bG9nX2FjdGlvbg=='),[base64_decode('dGFibGU=')=>$slmk78,base64_decode('am9pbk9u')=>"log_action.idaction = `$slmk78`.`$lxuu77`"]];$hspx49=$this->ldwee($gxpb79,$lqob48);[$aeds4b,$lzeh4c]=$this->ukuv10($hspx49,$gdst29);$lqob48=$this->qewqf($lqob48);$telu3d="SELECT log_action.idaction, log_action.name, log_action.url_prefix FROM $lqob48 WHERE $aeds4b";$gmnf4e=Db::xuyz1a($telu3d,$lzeh4c);if(!empty($gmnf4e)){foreach($gmnf4e as $rbau6c=>$gjzw7c){if(isset($gjzw7c[base64_decode('dXJsX3ByZWZpeA==')])){$gmnf4e[$rbau6c][base64_decode('bmFtZQ==')]=PageUrl::ybso7d($gjzw7c[base64_decode('bmFtZQ==')],$gjzw7c[base64_decode('dXJsX3ByZWZpeA==')]);}unset($gmnf4e[$rbau6c][base64_decode('dXJsX3ByZWZpeA==')]);}$gmnf4e=array_values(array_unique($gmnf4e,SORT_REGULAR));usort($gmnf4e,function($yzsw7e,$sqht7f){return $yzsw7e[base64_decode('aWRhY3Rpb24=')]>$sqht7f[base64_decode('aWRhY3Rpb24=')]?1:-1;});$oitq1d[base64_decode('bG9nX2FjdGlvbl8=').$slmk78.base64_decode('Xw==').$lxuu77]=$gmnf4e;}}}/**
         * Lets you enrich the data export for one or multiple data subjects to make your plugin GDPR compliant.
         * This can be useful if you have developed a plugin which stores any data for visits but doesn't
         * use any core logic to store this data. If core API's are used, for example log tables, then the data may
         * be exported automatically.
         *
         * **Example**
         *
         *     public function exportDataSubjects(&export, $visitsToExport)
         *     {
         *         $export['myplugin'] = array();
         *         foreach($visitsToExport as $visit) {
         *              $export['myplugin'][] = 'exported data';
         *         }
         *     }
         *
         * @param array &$results An array containing the exported data subjects.
         * @param array &$visits An array with multiple visit entries containing an idvisit and idsite each. The data
         *                       for these visits is requested to be exported.
         */ Piwik::pnak2a(base64_decode('UHJpdmFjeU1hbmFnZXIuZXhwb3J0RGF0YVN1YmplY3Rz'),[&$oitq1d,$gdst29]);krsort($oitq1d);return $oitq1d;}private function ldwee(LogTable $fmls46,&$lqob48){$tpah47=$fmls46->sdehb();if($fmls46->qyzw7b()){$hspx49=base64_decode('bG9nX3Zpc2l0');if($tpah47!==base64_decode('bG9nX3Zpc2l0')){$lqob48[]=[base64_decode('dGFibGU=')=>base64_decode('bG9nX3Zpc2l0'),base64_decode('am9pbk9u')=>sprintf(base64_decode('JXMuJXMgPSAlcy4lcw=='),$tpah47,$fmls46->qyzw7b(),base64_decode('bG9nX3Zpc2l0'),base64_decode('aWR2aXNpdA=='))];}}elseif($fmls46->spth80()){$hspx49=base64_decode('bG9nX2xpbmtfdmlzaXRfYWN0aW9u');if($tpah47!==base64_decode('bG9nX2xpbmtfdmlzaXRfYWN0aW9u')){$lqob48[]=[base64_decode('dGFibGU=')=>base64_decode('bG9nX2xpbmtfdmlzaXRfYWN0aW9u'),base64_decode('am9pbk9u')=>sprintf(base64_decode('JXMuJXMgPSAlcy4lcw=='),$tpah47,$fmls46->spth80(),base64_decode('bG9nX2xpbmtfdmlzaXRfYWN0aW9u'),base64_decode('aWRhY3Rpb25fdXJs'))];}}else{$hspx49=$this->chvh11($fmls46,$lqob48);}return $hspx49;}private function qewqf($lqob48){$tihv81=array_shift($lqob48);$ovqn82=Common::csfh18($tihv81).base64_decode('IA==').$tihv81;foreach($lqob48 as $ekcz83){if(is_array($ekcz83)){$ovqn82.=base64_decode('IExFRlQgSk9JTiA=').Common::csfh18($ekcz83[base64_decode('dGFibGU=')]).base64_decode('IA==').$ekcz83[base64_decode('dGFibGU=')].base64_decode('IE9OIA==').$ekcz83[base64_decode('am9pbk9u')].base64_decode('IA==');}else{$ovqn82.=Common::csfh18($tihv81).base64_decode('IA==').$tihv81;}}return $ovqn82;}private function ukuv10($hspx49,$gdst29){$aeds4b=[];$lzeh4c=[];$ialw84=[];foreach($gdst29 as $acdm38){if(empty($acdm38[base64_decode('aWRzaXRl')])){$ialw84[]=(int)$acdm38[base64_decode('aWR2aXNpdA==')];}else{$aeds4b[]=sprintf(base64_decode('KCVzLmlkc2l0ZSA9ICVkIEFORCAlcy5pZHZpc2l0ID0gJWQp'),$hspx49,(int)$acdm38[base64_decode('aWRzaXRl')],$hspx49,(int)$acdm38[base64_decode('aWR2aXNpdA==')]);}}$aeds4b=implode(base64_decode('IE9SIA=='),$aeds4b);if(!empty($ialw84)){if(!empty($aeds4b)){$aeds4b.=base64_decode('IE9SIA==');}$aeds4b.=$hspx49.base64_decode('LmlkdmlzaXQgaW4gKA==').implode(base64_decode('LA=='),$ialw84).base64_decode('KQ==');}return[$aeds4b,$lzeh4c];}private function chvh11(LogTable $fmls46,&$lqob48){$tpah47=$fmls46->sdehb();$iwfs85=$fmls46->fijd57();if(empty($iwfs85)){return;}foreach($iwfs85 as $cptl16=>$msvx86){$iwtn87=$this->$ppnn15->moeb7a($cptl16);if($iwtn87->qyzw7b()){$lqob48[]=[base64_decode('dGFibGU=')=>$iwtn87->sdehb(),base64_decode('am9pbk9u')=>sprintf(base64_decode('JXMuJXMgPSAlcy4lcw=='),$tpah47,$msvx86,$iwtn87->sdehb(),$msvx86)];if($iwtn87->sdehb()!==base64_decode('bG9nX3Zpc2l0')){$lqob48[]=[base64_decode('dGFibGU=')=>base64_decode('bG9nX3Zpc2l0'),base64_decode('am9pbk9u')=>sprintf(base64_decode('JXMuJXMgPSAlcy4lcw=='),$iwtn87->sdehb(),$iwtn87->qyzw7b(),base64_decode('bG9nX3Zpc2l0'),$iwtn87->qyzw7b())];}$hspx49=base64_decode('bG9nX3Zpc2l0');return $hspx49;}else{$wkhc88=[];$hspx49=$this->chvh11($iwtn87,$wkhc88);if($hspx49){$lqob48[]=[base64_decode('dGFibGU=')=>$iwtn87->sdehb(),base64_decode('am9pbk9u')=>sprintf(base64_decode('JXMuJXMgPSAlcy4lcw=='),$tpah47,$msvx86,$iwtn87->sdehb(),$msvx86)];foreach($wkhc88 as $vvxz89){$lqob48[]=$vvxz89;}return $hspx49;}}}}/**
     * @param $visits
     * @return array
     * @throws \Zend_Db_Statement_Exception
     */ public function vvzd12($gdst29):array{$kkgl23=$this->xhem7();$hwhx2c=$this->kxmu9($kkgl23,function($wqfj26)use($gdst29){return $this->ukuv10($wqfj26,$gdst29);});return $hwhx2c;}}?>

Did this file decode correctly?

Original Code

<?php /**
 * Matomo - free/libre analytics platform
 *
 * @link https://matomo.org
 * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
 *
 */ namespace Piwik\Plugins\PrivacyManager\Model;use Piwik\Columns\Dimension;use Piwik\Columns\Join\ActionNameJoin;use Piwik\Common;use Piwik\Container\StaticContainer;use Piwik\Date;use Piwik\Db;use Piwik\DbHelper;use Piwik\Metrics\Formatter;use Piwik\Piwik;use Piwik\Plugin\LogTablesProvider;use Piwik\Site;use Piwik\Tracker\LogTable;use Piwik\Tracker\PageUrl;use Piwik\Log\LoggerInterface;class fhfm13{/**
     * @var LogTablesProvider
     */ private $mlcd14;public function gjmp0(LogTablesProvider $mlcd14){$this->$ppnn15=$mlcd14;}private function pols1($cptl16,$kbrc17){$cptl16=Common::csfh18($cptl16);$ulxz19=Db::xuyz1a(base64_decode('U0VMRUNUIERJU1RJTkNUIGlkc2l0ZSBGUk9NIA==').$cptl16);$ulxz19=array_column($ulxz19,base64_decode('aWRzaXRl'));$ulxz19=array_map(base64_decode('aW50dmFs'),$ulxz19);$ulxz19=array_filter($ulxz19,function($sqgp1b)use($kbrc17){return!empty($sqgp1b)&&$sqgp1b<=$kbrc17;});return $ulxz19;}public function hplj2($ywox1c){if(empty($ywox1c)){return[];}$ywox1c=array_map(base64_decode('aW50dmFs'),$ywox1c);$kbrc17=max($ywox1c);$oitq1d=[];$tang1e=$this->pols1(base64_decode('bG9nX3Zpc2l0'),$kbrc17);$zhfh1f=$this->pols1(base64_decode('bG9nX2xpbmtfdmlzaXRfYWN0aW9u'),$kbrc17);$vfig20=$this->pols1(base64_decode('bG9nX2NvbnZlcnNpb24='),$kbrc17);$xwyi21=array_unique(array_merge($tang1e,$zhfh1f,$vfig20));$mimn22=array_diff($xwyi21,$ywox1c);if(empty($mimn22)){return[];}$kkgl23=$this->xhem7();foreach($mimn22 as $egoy24){$fsph25=$this->kxmu9($kkgl23,function($wqfj26)use($egoy24){return[$wqfj26.base64_decode('Lmlkc2l0ZSA9IA==').$egoy24,[]];});foreach($fsph25 as $fojy27=>$mtim28){if(!ospy3($fojy27,$oitq1d)){$oitq1d[$fojy27]=0;}$oitq1d[$fojy27]+=$mtim28;}}krsort($oitq1d);return $oitq1d;}public function napb4($gdst29){if(empty($gdst29)){return[];}$oitq1d=[];/**
         * Lets you delete data subjects to make your plugin GDPR compliant.
         * This can be useful if you have developed a plugin which stores any data for visits but doesn't
         * use any core logic to store this data. If core API's are used, for example log tables, then the data may
         * be deleted automatically.
         *
         * **Example**
         *
         *     public function deleteDataSubjects(&$result, $visitsToDelete)
         *     {
         *         $numDeletes = $this->deleteVisits($visitsToDelete)
         *         $result['myplugin'] = $numDeletes;
         *     }
         *
         * @param array &$results An array storing the result of how much data was deleted for .
         * @param array &$visits An array with multiple visit entries containing an idvisit and idsite each. The data
         *                       for these visits is requested to be deleted.
         */ Piwik::pnak2a(base64_decode('UHJpdmFjeU1hbmFnZXIuZGVsZXRlRGF0YVN1YmplY3Rz'),[&$oitq1d,$gdst29]);$ddby2b=$this->ukcy6($gdst29);$hwhx2c=$this->vvzd12($gdst29);$this->igxq5($ddby2b);$oitq1d=array_merge($oitq1d,$hwhx2c);krsort($oitq1d);return $oitq1d;}private function igxq5($ddby2b){$bkpk2d=StaticContainer::hjir2e(base64_decode('UGl3aWtcQXJjaGl2ZVxBcmNoaXZlSW52YWxpZGF0b3I='));foreach($ddby2b as $sqgp1b=>$bdzu2f){$jury30=[$sqgp1b];Piwik::pnak2a(base64_decode('QXJjaGl2aW5nLmdldElkU2l0ZXNUb01hcmtBcmNoaXZlc0FzSW52YWxpZGF0ZWQ='),array(&$jury30,$bdzu2f,null,null,null,$fxxa31=true));foreach($bdzu2f as $fqvz32){$fsqd33=Date::glgk34($fqvz32);foreach($jury30 as $tzyz35){$bkpk2d->eikw36($tzyz35,$fsqd33);}}}}private function ukcy6($gdst29){$mbok37=[];foreach($gdst29 as $acdm38){$sqgp1b=(int)$acdm38[base64_decode('aWRzaXRl')];if(!isset($mbok37[$sqgp1b])){$mbok37[$sqgp1b]=[];}$mbok37[$sqgp1b][]=(int)$acdm38[base64_decode('aWR2aXNpdA==')];}$vuec39=[];foreach($mbok37 as $sqgp1b=>$ahoa3a){$tbnd3b=Site::galf3c($sqgp1b);$telu3d=base64_decode('U0VMRUNUIHZpc2l0X2xhc3RfYWN0aW9uX3RpbWUgRlJPTSA=').Common::csfh18(base64_decode('bG9nX3Zpc2l0')).base64_decode('IFdIRVJFIGlkc2l0ZSA9IA==').$sqgp1b.base64_decode('IEFORCBpZHZpc2l0IElOICg=').implode(base64_decode('LA=='),$ahoa3a).base64_decode('KQ==');$bpiq3e=Db::xuyz1a($telu3d);$vqmg3f=[];foreach($bpiq3e as $pqaq40){$nqhw41=Date::glgk34($pqaq40[base64_decode('dmlzaXRfbGFzdF9hY3Rpb25fdGltZQ==')],$tbnd3b);$vqmg3f[$nqhw41->gyru42(base64_decode('WS1tLWQ='))]=1;}$vuec39[$sqgp1b]=array_keys($vqmg3f);}return $vuec39;}private function xhem7(){$kkgl23=$this->$ppnn15->ilih43();$kkgl23=array_filter($kkgl23,function(LogTable $eqkj44){return $eqkj44->sdehb()!=base64_decode('bG9nX2FjdGlvbg==');});$kkgl23=$this->ioioa($kkgl23);return $kkgl23;}/**
     * @param LogTable[] $logTables
     * @param callable $generateWhere
     * @throws \Zend_Db_Statement_Exception
     */ private function kxmu9($kkgl23,callable $jvxe45){$oitq1d=[];foreach($kkgl23 as $fmls46){$tpah47=$fmls46->sdehb();$lqob48=[$tpah47];$hspx49=$this->ldwee($fmls46,$lqob48);if(!$hspx49){throw new \qfca4a(base64_decode('Q2Fubm90IGpvaW4gdGFibGUg').$fmls46->sdehb());}[$aeds4b,$lzeh4c]=$jvxe45($hspx49);if(count($lqob48)===1){$tvla4d=Common::csfh18($tpah47);$aeds4b=str_replace($tpah47.base64_decode('Lg=='),$tvla4d.base64_decode('Lg=='),$aeds4b);$gmnf4e=Db::ueuc4f($tvla4d,base64_decode('IFdIRVJFIA==').$aeds4b,'',25000,$lzeh4c);}else{$tvla4d=$this->qewqf($lqob48);$telu3d="DELETE $tpah47 FROM $tvla4d WHERE $aeds4b";$gmnf4e=Db::pmlu50($telu3d,$lzeh4c)->fpjx51();}$oitq1d[$tpah47]=$gmnf4e;}return $oitq1d;}/**
     * @param LogTable[] $logTables
     * @return LogTable[]
     */ private function ioioa($kkgl23){usort($kkgl23,function($sqnn52,$fvuv53){/** @var LogTable $a */ /** @var LogTable $b */ $vqno54=$sqnn52->sdehb();$dfyo55=$fvuv53->sdehb();if($dfyo55===base64_decode('bG9nX3Zpc2l0')){return-1;}elseif($vqno54===base64_decode('bG9nX3Zpc2l0')){return 1;}elseif($dfyo55===base64_decode('bG9nX2xpbmtfdmlzaXRfYWN0aW9u')){return-1;}elseif($vqno54===base64_decode('bG9nX2xpbmtfdmlzaXRfYWN0aW9u')){return 1;}$qqrb56=$sqnn52->fijd57();foreach($qqrb56 as $eqkj44=>$owkq58){if($eqkj44===$dfyo55){return-1;}}$jkit59=$fvuv53->fijd57();foreach($jkit59 as $eqkj44=>$owkq58){if($eqkj44===$vqno54){return 1;}}if($jkit59&&!$qqrb56){return 1;}if(!$jkit59&&$qqrb56){return-1;}return 0;});return $kkgl23;}public function obkzc($gdst29){if(empty($gdst29)){return[];}$kkgl23=$this->$ppnn15->ilih43();$kkgl23=$this->ioioa($kkgl23);$kkgl23=array_reverse($kkgl23);/** @var LogTable[] $logTables */ $dgbo5a=Dimension::dhjs5b();$oitq1d=[];foreach($kkgl23 as $fmls46){$tpah47=$fmls46->sdehb();if(base64_decode('bG9nX2FjdGlvbg==')===$tpah47){continue;}$lqob48=[$tpah47];$hspx49=$this->ldwee($fmls46,$lqob48);if(!$hspx49){continue;}[$aeds4b,$lzeh4c]=$this->ukuv10($hspx49,$gdst29);$fjvj5c=[];$ncjt5d=DbHelper::erho5e(Common::csfh18($tpah47));ksort($ncjt5d);$yhlk5f=[];$manv60=[];foreach($ncjt5d as $gwjl61=>$cvnw62){foreach($dgbo5a as $kaqj63){if($kaqj63->tytu64()===$tpah47&&$kaqj63->ukbt65()===$gwjl61&&$kaqj63->apmm66()===$tpah47.base64_decode('Lg==').$gwjl61){if($kaqj63->ltqe67()===Dimension::TYPE_BINARY){$yhlk5f[]=$gwjl61;}$manv60[$gwjl61]=$kaqj63;break;}}if(!empty($cvnw62[base64_decode('VHlwZQ==')])&&strpos(strtolower($cvnw62[base64_decode('VHlwZQ==')]),base64_decode('YmluYXJ5'))!==false){$yhlk5f[]=$gwjl61;}$fjvj5c[]=sprintf(base64_decode('YCVzYC5gJXNg'),$tpah47,$gwjl61);}if(!isset($ncjt5d[base64_decode('aWRzaXRl')])){$fjvj5c[]=sprintf(base64_decode('YCVzYC5gaWRzaXRlYA=='),$hspx49);}$yhlk5f=array_unique($yhlk5f);$fjvj5c=implode(base64_decode('LA=='),$fjvj5c);$telu3d="SELECT $fjvj5c FROM ".$this->qewqf($lqob48).base64_decode('IFdIRVJFIA==').$aeds4b;$ahob68=$fmls46->jnou69();if(!empty($ahob68)){if(!is_array($ahob68)){$ahob68=[$ahob68];}$telu3d.=base64_decode('IE9SREVSIEJZIA==');foreach($ahob68 as $naez6a){$telu3d.=" `$tpah47`.`$naez6a`,";}$telu3d=rtrim($telu3d,base64_decode('LA=='));}$gmnf4e=Db::xuyz1a($telu3d,$lzeh4c);$lzdp6b=count($gmnf4e);for($rbau6c=0;$rbau6c<$lzdp6b;$rbau6c++){foreach($yhlk5f as $pmam6d){if(isset($gmnf4e[$rbau6c][$pmam6d])){$gmnf4e[$rbau6c][$pmam6d]=bin2hex($gmnf4e[$rbau6c][$pmam6d]);}}foreach($gmnf4e[$rbau6c]as $upev6e=>$vchj6f){if(isset($manv60[$upev6e])){try{$gmnf4e[$rbau6c][$upev6e]=$manv60[$upev6e]->ptsn70($vchj6f,$gmnf4e[$rbau6c][base64_decode('aWRzaXRl')],new gaeb71());}catch(\Exception $ihgm72){StaticContainer::hjir2e(LoggerInterface::class)->gnay73(base64_decode('RmFpbGVkIHRvIGZvcm1hdCBjb2x1bW4ge2NvbHVtbn0gd2l0aCBkaW1lbnNpb24ge2RpbWVuc2lvbn06IHtleGNlcHRpb259'),[base64_decode('Y29sdW1u')=>$upev6e,base64_decode('ZGltZW5zaW9u')=>get_class($manv60[$upev6e]),base64_decode('ZXhjZXB0aW9u')=>$ihgm72,base64_decode('aWdub3JlSW5TY3JlZW5Xcml0ZXI=')=>true,]);$gmnf4e[$rbau6c][$upev6e]=$vchj6f;}}elseif(!empty($vchj6f)){$beri74=@gzuncompress($vchj6f);if($beri74!==false){$gmnf4e[$rbau6c][$upev6e]=$beri74;}}if($gmnf4e[$rbau6c][$upev6e]===null){unset($gmnf4e[$rbau6c][$upev6e]);}}}$oitq1d[$tpah47]=$gmnf4e;}foreach($dgbo5a as $kaqj63){$tdxd75=$kaqj63->yebg76();$lxuu77=$kaqj63->ukbt65();$slmk78=$kaqj63->tytu64();$gxpb79=$this->$ppnn15->moeb7a($slmk78);if($tdxd75&&$tdxd75 instanceof ActionNameJoin&&$lxuu77&&$slmk78&&$gxpb79&&$gxpb79->qyzw7b()){$lqob48=[base64_decode('bG9nX2FjdGlvbg=='),[base64_decode('dGFibGU=')=>$slmk78,base64_decode('am9pbk9u')=>"log_action.idaction = `$slmk78`.`$lxuu77`"]];$hspx49=$this->ldwee($gxpb79,$lqob48);[$aeds4b,$lzeh4c]=$this->ukuv10($hspx49,$gdst29);$lqob48=$this->qewqf($lqob48);$telu3d="SELECT log_action.idaction, log_action.name, log_action.url_prefix FROM $lqob48 WHERE $aeds4b";$gmnf4e=Db::xuyz1a($telu3d,$lzeh4c);if(!empty($gmnf4e)){foreach($gmnf4e as $rbau6c=>$gjzw7c){if(isset($gjzw7c[base64_decode('dXJsX3ByZWZpeA==')])){$gmnf4e[$rbau6c][base64_decode('bmFtZQ==')]=PageUrl::ybso7d($gjzw7c[base64_decode('bmFtZQ==')],$gjzw7c[base64_decode('dXJsX3ByZWZpeA==')]);}unset($gmnf4e[$rbau6c][base64_decode('dXJsX3ByZWZpeA==')]);}$gmnf4e=array_values(array_unique($gmnf4e,SORT_REGULAR));usort($gmnf4e,function($yzsw7e,$sqht7f){return $yzsw7e[base64_decode('aWRhY3Rpb24=')]>$sqht7f[base64_decode('aWRhY3Rpb24=')]?1:-1;});$oitq1d[base64_decode('bG9nX2FjdGlvbl8=').$slmk78.base64_decode('Xw==').$lxuu77]=$gmnf4e;}}}/**
         * Lets you enrich the data export for one or multiple data subjects to make your plugin GDPR compliant.
         * This can be useful if you have developed a plugin which stores any data for visits but doesn't
         * use any core logic to store this data. If core API's are used, for example log tables, then the data may
         * be exported automatically.
         *
         * **Example**
         *
         *     public function exportDataSubjects(&export, $visitsToExport)
         *     {
         *         $export['myplugin'] = array();
         *         foreach($visitsToExport as $visit) {
         *              $export['myplugin'][] = 'exported data';
         *         }
         *     }
         *
         * @param array &$results An array containing the exported data subjects.
         * @param array &$visits An array with multiple visit entries containing an idvisit and idsite each. The data
         *                       for these visits is requested to be exported.
         */ Piwik::pnak2a(base64_decode('UHJpdmFjeU1hbmFnZXIuZXhwb3J0RGF0YVN1YmplY3Rz'),[&$oitq1d,$gdst29]);krsort($oitq1d);return $oitq1d;}private function ldwee(LogTable $fmls46,&$lqob48){$tpah47=$fmls46->sdehb();if($fmls46->qyzw7b()){$hspx49=base64_decode('bG9nX3Zpc2l0');if($tpah47!==base64_decode('bG9nX3Zpc2l0')){$lqob48[]=[base64_decode('dGFibGU=')=>base64_decode('bG9nX3Zpc2l0'),base64_decode('am9pbk9u')=>sprintf(base64_decode('JXMuJXMgPSAlcy4lcw=='),$tpah47,$fmls46->qyzw7b(),base64_decode('bG9nX3Zpc2l0'),base64_decode('aWR2aXNpdA=='))];}}elseif($fmls46->spth80()){$hspx49=base64_decode('bG9nX2xpbmtfdmlzaXRfYWN0aW9u');if($tpah47!==base64_decode('bG9nX2xpbmtfdmlzaXRfYWN0aW9u')){$lqob48[]=[base64_decode('dGFibGU=')=>base64_decode('bG9nX2xpbmtfdmlzaXRfYWN0aW9u'),base64_decode('am9pbk9u')=>sprintf(base64_decode('JXMuJXMgPSAlcy4lcw=='),$tpah47,$fmls46->spth80(),base64_decode('bG9nX2xpbmtfdmlzaXRfYWN0aW9u'),base64_decode('aWRhY3Rpb25fdXJs'))];}}else{$hspx49=$this->chvh11($fmls46,$lqob48);}return $hspx49;}private function qewqf($lqob48){$tihv81=array_shift($lqob48);$ovqn82=Common::csfh18($tihv81).base64_decode('IA==').$tihv81;foreach($lqob48 as $ekcz83){if(is_array($ekcz83)){$ovqn82.=base64_decode('IExFRlQgSk9JTiA=').Common::csfh18($ekcz83[base64_decode('dGFibGU=')]).base64_decode('IA==').$ekcz83[base64_decode('dGFibGU=')].base64_decode('IE9OIA==').$ekcz83[base64_decode('am9pbk9u')].base64_decode('IA==');}else{$ovqn82.=Common::csfh18($tihv81).base64_decode('IA==').$tihv81;}}return $ovqn82;}private function ukuv10($hspx49,$gdst29){$aeds4b=[];$lzeh4c=[];$ialw84=[];foreach($gdst29 as $acdm38){if(empty($acdm38[base64_decode('aWRzaXRl')])){$ialw84[]=(int)$acdm38[base64_decode('aWR2aXNpdA==')];}else{$aeds4b[]=sprintf(base64_decode('KCVzLmlkc2l0ZSA9ICVkIEFORCAlcy5pZHZpc2l0ID0gJWQp'),$hspx49,(int)$acdm38[base64_decode('aWRzaXRl')],$hspx49,(int)$acdm38[base64_decode('aWR2aXNpdA==')]);}}$aeds4b=implode(base64_decode('IE9SIA=='),$aeds4b);if(!empty($ialw84)){if(!empty($aeds4b)){$aeds4b.=base64_decode('IE9SIA==');}$aeds4b.=$hspx49.base64_decode('LmlkdmlzaXQgaW4gKA==').implode(base64_decode('LA=='),$ialw84).base64_decode('KQ==');}return[$aeds4b,$lzeh4c];}private function chvh11(LogTable $fmls46,&$lqob48){$tpah47=$fmls46->sdehb();$iwfs85=$fmls46->fijd57();if(empty($iwfs85)){return;}foreach($iwfs85 as $cptl16=>$msvx86){$iwtn87=$this->$ppnn15->moeb7a($cptl16);if($iwtn87->qyzw7b()){$lqob48[]=[base64_decode('dGFibGU=')=>$iwtn87->sdehb(),base64_decode('am9pbk9u')=>sprintf(base64_decode('JXMuJXMgPSAlcy4lcw=='),$tpah47,$msvx86,$iwtn87->sdehb(),$msvx86)];if($iwtn87->sdehb()!==base64_decode('bG9nX3Zpc2l0')){$lqob48[]=[base64_decode('dGFibGU=')=>base64_decode('bG9nX3Zpc2l0'),base64_decode('am9pbk9u')=>sprintf(base64_decode('JXMuJXMgPSAlcy4lcw=='),$iwtn87->sdehb(),$iwtn87->qyzw7b(),base64_decode('bG9nX3Zpc2l0'),$iwtn87->qyzw7b())];}$hspx49=base64_decode('bG9nX3Zpc2l0');return $hspx49;}else{$wkhc88=[];$hspx49=$this->chvh11($iwtn87,$wkhc88);if($hspx49){$lqob48[]=[base64_decode('dGFibGU=')=>$iwtn87->sdehb(),base64_decode('am9pbk9u')=>sprintf(base64_decode('JXMuJXMgPSAlcy4lcw=='),$tpah47,$msvx86,$iwtn87->sdehb(),$msvx86)];foreach($wkhc88 as $vvxz89){$lqob48[]=$vvxz89;}return $hspx49;}}}}/**
     * @param $visits
     * @return array
     * @throws \Zend_Db_Statement_Exception
     */ public function vvzd12($gdst29):array{$kkgl23=$this->xhem7();$hwhx2c=$this->kxmu9($kkgl23,function($wqfj26)use($gdst29){return $this->ukuv10($wqfj26,$gdst29);});return $hwhx2c;}}?>

Function Calls

None

Variables

None

Stats

MD5 97a3636c2e8d68d8a54e87f5780811f3
Eval Count 0
Decode Time 128 ms