* @date 20-11-2012 */ $sPluginTemplatePath = _TMPL_ROOT_APP . 'plugins' . DIRECTORY_SEPARATOR . $plg['Plugin_Path']; $sPluginTemplatePathCustom = $this -> template['rpath'] . 'plugins-custom' . DIRECTORY_SEPARATOR . $plg['Plugin_Path']; trigger_error('START: ' . $plg['Plugin_Filename'] . ''); // Plugin & module settings ophalen. $aPlgSettings = array(); $aFSettings = $this->get_frontendsettings(96, $plg['Plugin_Filename'], 0, $plg['Plugin_Params_Json']); if (count($aFSettings['total'])) { $aPlgSettings = $aFSettings['total']; } // Package check - only for defaults if( isset($GLOBALS['aPackageList']) ){ if( isset($GLOBALS['aPackageList']['require']['bootstrap']) ){ if( $GLOBALS['aPackageList']['require']['bootstrap']['major'] > 3 ){ $sPluginTemplatePath = _TMPL_ROOT_APP . 'plugins' . DIRECTORY_SEPARATOR . $plg['Plugin_Path'] . 'bootstrap-' . $GLOBALS['aPackageList']['require']['bootstrap']['major'] . DIRECTORY_SEPARATOR; } } } if($aPlgSettings['templatepath']){ // Template file from root $sMailTemplateFileFolder = $aPlgSettings['templatepath']; } // file get contents form server $sRequestUrl = _SITE_URL.'services/mailmanager/get.mailer?nMailId='.$this -> aRouteVars[1].'&sMailTemplateFileFolder='.$sMailTemplateFileFolder; trigger_error($sRequestUrl); $sContent = file_get_contents($sRequestUrl, true); $smarty -> assign('sContent', $sContent); $sSql = 'SELECT `id`,`created`,`subject` FROM `tblmail` WHERE `deleted` = 0 AND `sends` > 0 ORDER BY `created` DESC'; $oResult = $this -> db -> execQuery($sSql,'local'); if($oResult->getNumRows()) { $aMailIds[] = $oResult->fetchAll(); } if($this -> aRouteVars[1] > 0) { if (is_file($sPluginTemplatePathCustom . 'mailer.webview.detail.html' )) { $smarty -> assign($outputName, $smarty -> fetch($sPluginTemplatePathCustom . 'mailer.webview.detail.html')); } else { $smarty -> assign($outputName, $smarty -> fetch($sPluginTemplatePath . 'mailer.webview.detail.html')); } }else{ $smarty->assign('aMailIds', $aMailIds[0]); if (is_file($sPluginTemplatePathCustom . 'mailer.webview.overview.html' )) { $smarty -> assign($outputName, $smarty -> fetch($sPluginTemplatePathCustom . 'mailer.webview.overview.html')); } else { $smarty -> assign($outputName, $smarty -> fetch($sPluginTemplatePath . 'mailer.webview.overview.html')); } } trigger_error('END: ' . $plg['Plugin_Filename'] . ''); Nieuwsbrief
menu
 
MEGAMAN®

        Bekijk onze nieuwsbrieven