예제 #1
0
 * 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');
if ($this->jomsocial) {
    require_once JPATH_SITE . DS . 'components' . DS . 'com_community' . DS . 'libraries' . DS . 'core.php';
}
if ($this->ambra) {
    require_once JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_ambrasubs' . DS . 'helpers' . DS . '_base.php';
    require_once JPATH_ADMINISTRATOR . DS . 'components' . DS . 'com_ambrasubs' . DS . 'helpers' . DS . 'config.php';
    $ambraConfig = AmbrasubsConfig::getInstance();
    $ambraPre = $ambraConfig->get('currency_preval', '$');
    $ambraPost = $ambraConfig->get('currency_postval', '');
}
$isWritable = new checkPermissions();
echo $isWritable->check();
$params =& JComponentHelper::getParams('com_joomailermailchimpintegration');
$paramsPrefix = version_compare(JVERSION, '1.6.0', 'ge') ? 'params.' : '';
$MCapi = $params->get($paramsPrefix . 'MCapi');
$MCauth = new MCauth();
// GA data
$gusername = $params->get($paramsPrefix . 'gusername');
$gpw = $params->get($paramsPrefix . 'gpw');
$gprofileid = $params->get($paramsPrefix . 'gprofileid');
if (!$MCapi) {
    echo $MCauth->apiKeyMissing();
} else {
    if (!$MCauth->MCauth()) {
        echo $MCauth->apiKeyMissing(1);
    } else {
예제 #2
0
파일: default.php 프로젝트: rodhoff/MNW
$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();
}
if ($highrise_url && $highrise_api_token) {
    $CRMauth = new CRMauth();
    echo $CRMauth->checkHighriseLogin();
}
$archiveDir = $this->params->get('params.archiveDir', '/administrator/components/com_joomailermailchimpintegration/archive');
$dc = $this->getModel()->getMailChimpDataCenter();
?>
<table width="100%">