コード例 #1
0
ファイル: JoomlamailerMC.php プロジェクト: rodhoff/MNW
 public function pingMC()
 {
     if (!isset($_SESSION['MCping'])) {
         jimport('joomla.html.parameter');
         jimport('joomla.application.component.helper');
         $params = JComponentHelper::getParams('com_joomailermailchimpintegration');
         $MCapi = $params->get('params.MCapi');
         $MC = new joomlamailerMCAPI($MCapi);
         $ping = $MC->ping();
         $_SESSION['MCping'] = $ping;
     } else {
         $ping = $_SESSION['MCping'];
     }
     return $ping;
 }
コード例 #2
0
 function MCauth()
 {
     if (!isset($_SESSION['MCping'])) {
         jimport('joomla.html.parameter');
         jimport('joomla.application.component.helper');
         $params =& JComponentHelper::getParams('com_joomailermailchimpintegration');
         $paramsPrefix = version_compare(JVERSION, '1.6.0', 'ge') ? 'params.' : '';
         $MCapi = $params->get($paramsPrefix . 'MCapi');
         $MC = new joomlamailerMCAPI($MCapi);
         $ping = $MC->ping();
         $_SESSION['MCping'] = $ping;
     } else {
         $ping = $_SESSION['MCping'];
     }
     return $ping;
 }