示例#1
0
 function normal($params)
 {
     //$headerAcajoom = '<link rel="stylesheet" href="' . $GLOBALS['mosConfig_live_site']. '/components/com_acajoom/css/acajoom.css" type="text/css" />';
     //$mainframe->addCustomHeadTag($headerAcajoom);
     $this->shownamefield = $params->get('shownamefield', 0);
     $this->receivehtmldefault = $params->get('receivehtmldefault', 1);
     $this->showreceivehtml = $params->get('showreceivehtml', 0);
     $this->listIds = $params->get('listids', 0);
     $this->linear = $params->get('linear', 0);
     $this->fieldsize = $params->get('fieldsize', 10);
     $this->introtext = $params->get('introtext', '');
     $this->redirectURL = str_replace('&', '&amp;', $params->get('red_url', ''));
     $this->showListName = $params->get('showlistname', 1);
     $this->buttonUnregistered = $params->get('button_text', _ACA_MOD_SUBSCRIBE);
     $this->imgUnregistered = $params->get('button_img', null);
     $this->buttonRegistered = $params->get('button_text_change', _ACA_CHANGE_SUBSCRIPTIONS);
     $this->imgRegistered = $params->get('button_img_change', null);
     $this->moduleclass_sfx = $params->get('moduleclass_sfx', '');
     $this->mod_align = $params->get('mod_align', '');
     $this->posttext = $params->get('posttext', '');
     $this->defaultchecked = $params->get('defaultchecked', 1);
     $this->lists = lists::getSpecifiedLists($this->listIds);
     $this->_html = '<!--  Beginning Module : ' . acajoom::version() . '   -->' . "\n\r";
     $this->_html .= $this->create();
     $this->_html .= '<!--  End Module : ' . acajoom::version() . '   -->' . "\n\r";
     $this->_html .= acajoom::noShow();
     return $this->_html;
 }
示例#2
0
 function getDisplayTab($tab, $user, $ui)
 {
     global $Itemid;
     if (ACA_CMSTYPE) {
         // joomla 15
         $my =& JFactory::getUser();
         $document =& JFactory::getDocument();
         $document->addStyleSheet('components/com_acajoom/css/acajoom.css', 'text/css');
     } else {
         //joomla 1x
         global $my;
         global $mainframe;
         $mainframe->addCustomHeadTag('<link rel="stylesheet" href="components/com_acajoom/css/acajoom.css" type="text/css" >');
     }
     //endif
     if (!getAcajoomTab::checkInstalled()) {
         return _UE_NEWSLETTERNOTINSTALLED;
     }
     $tabparams = $this->_memGetTabParameters($user);
     if (!$tabparams['public_view']) {
         if (empty($my->id) or $my->id != $user->user_id) {
             return;
         }
     }
     $html = '';
     require_once ACA_JPATH_ROOT_NO_ADMIN . '/administrator/components/com_acajoom/classes/class.acajoom.php';
     require_once ACA_JPATH_ROOT_NO_ADMIN . '/administrator/components/com_acajoom/subscribers.acajoom.html.php';
     if (!empty($user->id)) {
         $userId = $user->user_id;
         $subscriber = subscribers::getSubscriberInfoFromUserId($userId, false);
         $subscriberId = $subscriber->id;
         $queues = queue::getSubscriberLists($subscriberId);
         $access = acajoom::checkPermissions('admin', $my->id);
     } else {
         $userId = 0;
         $queues = '';
         $access = false;
         $subscriberId = 0;
         $subscriber->id = '';
         $subscriber->user_id = 0;
         $subscriber->name = '';
         $subscriber->email = '';
         $subscriber->receive_html = 1;
         $subscriber->confirmed = 1;
         $subscriber->blacklist = 0;
         $subscriber->timezone = '00:00:00';
         $subscriber->language_iso = 'eng';
         $subscriber->params = '';
         $subscriber->subscribe_date = acajoom::getNow();
     }
     $lists = lists::getLists(0, 0, $subscriberId, '', false, true, false);
     $doShowSubscribers = false;
     $html .= getAcajoomTab::_editSubscriber($user, $subscriber, $lists, $queues, '', $access, false, true);
     $html .= acajoom::noShow();
     return $html;
 }
示例#3
0
 function _footer()
 {
     if ($GLOBALS[ACA . 'show_footer'] == '1') {
         backHTML::_footerSignature();
     } else {
         echo acajoom::noShow();
     }
 }
示例#4
0
 function getDisplayTab($tab, $user, $ui)
 {
     global $my, $mosConfig_absolute_path, $Itemid;
     global $mainframe;
     $mainframe->addCustomHeadTag('<link rel="stylesheet" href="components/com_acajoom/css/acajoom.css" type="text/css" >');
     if (intval($my->id) < 1) {
         mosNotAuth();
         return false;
     }
     if (!getAcajoomTab::checkInstalled()) {
         return _UE_NEWSLETTERNOTINSTALLED;
     }
     $tabparams = $this->_memGetTabParameters($user);
     if (!$tabparams['public_view']) {
         if ($my->id != $user->user_id) {
             return;
         }
     }
     $html = '';
     require_once $mosConfig_absolute_path . '/administrator/components/com_acajoom/classes/class.acajoom.php';
     require_once $mosConfig_absolute_path . '/administrator/components/com_acajoom/subscribers.acajoom.html.php';
     if (!empty($user->id)) {
         $userId = $user->user_id;
         $subscriber = subscribers::getSubscriberInfoFromUserId($userId, false);
         $subscriberId = $subscriber->id;
         $queues = queue::getSubscriberLists($subscriberId);
         $access = acajoom::checkPermissions('admin', $my->id);
     } else {
         $userId = 0;
         $queues = '';
         $access = false;
         $subscriberId = 0;
         $subscriber->id = '';
         $subscriber->user_id = 0;
         $subscriber->name = '';
         $subscriber->email = '';
         $subscriber->receive_html = 1;
         $subscriber->confirmed = 1;
         $subscriber->blacklist = 0;
         $subscriber->timezone = '00:00:00';
         $subscriber->language_iso = 'eng';
         $subscriber->params = '';
         $subscriber->subscribe_date = acajoom::getNow();
     }
     $lists = lists::getLists(0, 0, $subscriberId, '', false, true, false);
     $doShowSubscribers = false;
     $html .= getAcajoomTab::_editSubscriber($user, $subscriber, $lists, $queues, '', $access, false, true);
     $html .= acajoom::noShow();
     return $html;
 }