* This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. **/ // no direct access defined('_JEXEC') or die('Restricted Access'); JHTML::_('behavior.modal'); $params = JComponentHelper::getParams('com_joomailermailchimpintegration'); $MCapi = $params->get('params.MCapi'); $JoomlamailerMC = new JoomlamailerMC(); if (!$MCapi) { echo '<table>'; echo $JoomlamailerMC->apiKeyMissing(); return; } else { if (!$JoomlamailerMC->pingMC()) { echo '<table>'; echo $JoomlamailerMC->apiKeyMissing(1); return; } } ?> <form action="index.php?option=com_joomailermailchimpintegration&view=templates" method="post" name="adminForm" id="adminForm"> <?php if (!count($this->templateFolders)) { echo JText::_('JM_NO_TEMPLATES'); } else { ?>
* You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. **/ // no direct access defined('_JEXEC') or die('Restricted Access'); JHTML::_('behavior.modal'); $MCapi = $this->params->get('params.MCapi'); $sugar_name = $this->params->get('params.sugar_name', 0); $sugar_pwd = $this->params->get('params.sugar_pwd', 0); $sugar_url = $this->params->get('params.sugar_url', 0); $highrise_url = $this->params->get('params.highrise_url', 0); $highrise_api_token = $this->params->get('params.highrise_api_token', 0); //$model = $this->getModel(); $JoomlamailerMC = new JoomlamailerMC(); if (!$MCapi) { echo '<table>' . $JoomlamailerMC->apiKeyMissing(); return; } else { if (!$JoomlamailerMC->pingMC()) { echo '<table>' . $JoomlamailerMC->apiKeyMissing(1); return; } } echo checkPermissions::check(); if ($MCapi && $JoomlamailerMC->pingMC()) { echo $this->getModel()->setupInfo(); } if ($sugar_name && $sugar_pwd && $sugar_url) { $CRMauth = new CRMauth(); echo $CRMauth->checkSugarLogin(); }