2J Ќ2J 2J 2J H2J p2J 2J 2J 2J 2J 82J `2J 2J 2J ؎2J 2J (2J P2J x2J 2J ȏ2J 2J (2J P2J x2J 2J Ȑ2J 2J 2J @2J h2J 2J 2J 2J! 2J" 02J# X2J$ 2J% 2J& В2J' 2J( 2J) H2J* p2J+ 2J, 2J- 2J. 2J/ 82J0 `2J1 2J2 2J3 ؔ2J4 2J5 (2J6 P2J7 x2J8 2J9 ȕ2J: 2J; 2J< @2J= h2J> 2J? 2J@ 2JA 2JB 02JC X2JD 2JE 2JF З2JG 2JH 2JI H2JJ p2JK 2JL 2JM 2JN 2JO 82JP `2JQ 2JR 2JS ؙ2JT 2JU (2JV P2JW x2JX 2JY Ț2JZ 2J[ 2J\ @2J] h2J^ 2J_ 2J` 2Ja 2Jb 02Jc X2Jd 2Je 2Jf М2Jg 2Jh 2Ji H2Jj p2Jk 2Jl 2Jm 2Jn 2Jo 82Jp `2Jq 2Jr 2Js ؞2Jt 2Ju (2Jv P2Jw x2Jx 2Jy ȟ2Jz 2J{ (2J| P2J} x2J~ 2J RRAYS ); foreach ($einstellungen_arr as $einstellung_arr) { if ($einstellung_arr['cName'] === 'activeAttachments') { $cEinstellungen_arr[$einstellung_arr['cName']] = explode(",", $einstellung_arr['cWert']); } else { $cEinstellungen_arr[$einstellung_arr['cName']] = $einstellung_arr['cWert']; } } $lfs_it_recht_kanzlei_sprache = $this->getDB()->query("SELECT kSprache, cISO FROM tsprache WHERE cShopStandard = 'Y'", 1); return $smarty->assign('bPDFDirStatus', \is_writable($this->getPlugin()->getPaths()->getBasePath() . 'pdf-dokumente/')) ->assign('bPDFDir_Mail_Status', \is_writable(\PFAD_ROOT . 'admin/includes/emailpdfs')) ->assign('cEinstellungen_arr', $cEinstellungen_arr) ->assign('checkStatus_agb', $itrkConnector->check_spezialseite('agb', $lfs_it_recht_kanzlei_sprache->kSprache)) ->assign('checkStatus_widerruf', $itrkConnector->check_spezialseite('widerruf', Shop::Lang()->currentLanguageID)) ->assign('checkStatus_impressum', $itrkConnector->check_spezialseite('impressum', Shop::Lang()->currentLanguageID)) ->assign('checkStatus_datenschutz', $itrkConnector->check_spezialseite('datenschutz', Shop::Lang()->currentLanguageID)) ->assign('cAPIUrl', Shop::getURL()) ->assign('cPDFDir', $this->getPlugin()->getPaths()->getBasePath() . 'pdf-dokumente/') ->assign('cPDFDir_Mail', \PFAD_ROOT . \PFAD_ADMIN . \PFAD_INCLUDES . \PFAD_EMAILPDFS) ->assign('stepPlugin', $stepPlugin) ->assign('oPlugin', $this->getPlugin()) ->fetch($this->getPlugin()->getPaths()->getAdminPath() . 'template/lfs_it_recht_kanzlei_einstellungen.tpl'); } if ($tabName === 'Kundengruppen-Einstellungen') { $stepPlugin = 'syncsettings'; $itrkConnector = new ItrkConnector($this->getPlugin(), $this->getDB()); $syncSettingsTab = $this->getDB()->selectSingleRow('tpluginadminmenu', 'kPlugin', $this->getPlugin()->getID(), 'cDateiname', 'lfs_it_recht_kanzlei_syncsettings.php'); if (isset($_POST['stepPlugin'], $_POST['syncGroupSettings'])) { $tokenValidation = Form::validateToken(); if ($tokenValidation !== false) { $itrkConnector->setSyncSettings($_POST['activeGroups']); Shop::Container()->getAlertService()->addAlert(Alert::TYPE_SUCCESS, 'Die Kundengruppen-Einstellungen wurden gespeichert!', 'lfsItrkSuccess'); } else { Shop::Container()->getAlertService()->addAlert(Alert::TYPE_ERROR, 'Der Sicherheitstoken konnte nicht validiert werden!', 'lfsItrkError'); } } $lfs_it_recht_kanzlei_sprache = $this->getDB()->selectSingleRow('tsprache', 'cShopStandard', 'Y'); $oKundengruppen_arr = $this->getDB()->executeQuery('SELECT * FROM tkundengruppe', ReturnType::ARRAY_OF_OBJECTS); $oSyncblockKundengruppen_arr = $this->getDB()->executeQuery('SELECT kKundengruppe FROM xplugin_lfs_it_recht_kanzlei_kundengruppensyncblock', ReturnType::ARRAY_OF_OBJECTS); $oBlockedGroup_ids= []; if (is_array($oSyncblockKundengruppen_arr) && count($oSyncblockKundengruppen_arr)>0) { foreach ($oSyncblockKundengruppen_arr as $oGroup) { $oBlockedGroup_ids[] = $oGroup->kKundengruppe; } } return $smarty->assign('cPluginTab', $this->getPlugin()->getAdminMenu()->getItems()->where('name', 'Kundengruppen-Einstellungen')->first()->kPluginAdminMenu) ->assign('stepPlugin', $stepPlugin) ->assign('oSyncblockKundengruppen_arr', $oSyncblockKundengruppen_arr) ->assign('oBlockedGroup_ids', $oBlockedGroup_ids) ->assign('oKundengruppen_arr', $oKundengruppen_arr) ->assign('oPlugin', $this->getPlugin()) ->fetch($this->getPlugin()->getPaths()->getAdminPath() . 'template/lfs_it_recht_kanzlei_syncsettings.tpl'); } return parent::renderAdminMenuTab($tabName, $menuID, $smarty); } /** * @return mixed|void */ public function installed() { $init_APIToken = \md5(\uniqid('', true)); $this->getDB()->executeQueryPrepared('INSERT INTO tplugineinstellungen (kPlugin, cName, cWert) VALUES (:kPlugin, "cAPIToken", :apiToken), (:kPlugin, "cPDFMail", "1"), (:kPlugin, "cPDFDown", "1"), (:kPlugin, "saveDseContentAs", "legaltext"), (:kPlugin, "activeAttachments", "agb,wrb,dse")', [ 'kPlugin' => $this->getPlugin()->getID(), 'apiToken' => $init_APIToken ], ReturnType::DEFAULT ); if (Shop::Container()->getCache()->isActive()) { Shop::Container()->getCache()->flush($this->getPlugin()->getCache()->getGroup()); } parent::installed(); } /** * @inheritdoc */ public function updated($oldVersion, $newVersion) { $tmpSetting = $this->getDB()->executeQueryPrepared("SELECT * FROM tplugineinstellungen WHERE kPlugin = :kPlugin AND cName = :cName", [ 'kPlugin' => $this->getPlugin()->getID(), 'cName' => 'saveDseContentAs' ], ReturnType::SINGLE_OBJECT); if (!is_object($tmpSetting)) { $this->getDB()->executeQueryPrepared('INSERT INTO tplugineinstellungen (kPlugin, cName, cWert) VALUES (:kPlugin, "saveDseContentAs", "content")', [ 'kPlugin' => $this->getPlugin()->getID(), ], ReturnType::DEFAULT ); } DBMigrationHelper::migrateToInnoDButf8('xplugin_lfs_it_recht_kanzlei_tLog'); DBMigrationHelper::migrateToInnoDButf8('xplugin_lfs_it_recht_kanzlei_kundengruppensyncblock'); if ((string)$newVersion === '1.0.5') { if (file_exists($this->getPlugin()->getPaths()->getAdminPath() . 'lfs_it_recht_kanzlei_einstellungen.php')) { @unlink($this->getPlugin()->getPaths()->getAdminPath() . 'lfs_it_recht_kanzlei_einstellungen.php'); } if (file_exists($this->getPlugin()->getPaths()->getAdminPath() . 'lfs_it_recht_kanzlei_syncsettings.php')) { @unlink($this->getPlugin()->getPaths()->getAdminPath() . 'lfs_it_recht_kanzlei_syncsettings.php'); } } if ((string)$newVersion === '1.0.7') { $this->getDB()->executeQueryPrepared('INSERT INTO tplugineinstellungen (kPlugin, cName, cWert) VALUES (:kPlugin, "activeAttachments", "agb,wrb,dse")', [ 'kPlugin' => $this->getPlugin()->getID(), ], ReturnType::DEFAULT ); } parent::updated($oldVersion, $newVersion); } /** * @param $post_arr */ public function hook132($post_arr): void { \header('Content-type: application/xml; charset=utf-8'); $itrkConnector = new ItrkConnector($this->getPlugin(), $this->getDB()); $itrkConnector->checkPost($post_arr); if ($itrkConnector->getNError() === 0) { $itrkConnector->saveLegalContent(); } echo $itrkConnector->returnStatus(); exit(); } } Garantie: 10 Jahre Herstellergarantie Synthetikkautschuk Zylindrig 10

10 Jahre Herstellergarantie

Neuer Wert



Artikel 1 - 2 von 2