本文整理汇总了PHP中acymailing_level函数的典型用法代码示例。如果您正苦于以下问题:PHP acymailing_level函数的具体用法?PHP acymailing_level怎么用?PHP acymailing_level使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了acymailing_level函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: onAcyDisplayFilters
function onAcyDisplayFilters(&$type, $context = "massactions")
{
if ($context != "massactions" and !$this->params->get('displayfilter_' . $context, false)) {
return;
}
$type['deliverstat'] = JText::_('STATISTICS');
$db = JFactory::getDBO();
$db->setQuery("SELECT `mailid`,CONCAT(`subject`,' ['," . $db->Quote(JText::_('ACY_ID') . ' ') . ",`mailid`,']') as 'value' FROM `#__acymailing_mail` WHERE `type` IN('news','welcome','unsub','followup') ORDER BY `subject` ASC ");
$allemails = $db->loadObjectList();
$element = new stdClass();
$element->mailid = 0;
$element->value = JText::_('EMAIL_NAME');
array_unshift($allemails, $element);
$actions = array();
$actions[] = JHTML::_('select.option', 'open', JText::_('OPEN'));
$actions[] = JHTML::_('select.option', 'notopen', JText::_('NOT_OPEN'));
$actions[] = JHTML::_('select.option', 'failed', JText::_('FAILED'));
if (acymailing_level(3)) {
$actions[] = JHTML::_('select.option', 'bounce', JText::_('BOUNCES'));
}
$actions[] = JHTML::_('select.option', 'htmlsent', JText::_('SENT_HTML'));
$actions[] = JHTML::_('select.option', 'textsent', JText::_('SENT_TEXT'));
$actions[] = JHTML::_('select.option', 'notsent', JText::_('NOT_SENT'));
$return = '<div id="filter__num__deliverstat">' . JHTML::_('select.genericlist', $actions, "filter[__num__][deliverstat][action]", 'class="inputbox" onchange="countresults(__num__)" size="1"', 'value', 'text');
$return .= ' ' . JHTML::_('select.genericlist', $allemails, "filter[__num__][deliverstat][mailid]", 'onchange="countresults(__num__)" class="inputbox" size="1" style="max-width:200px"', 'mailid', 'value') . '</div>';
return $return;
}
示例2: onAcyDisplayActions
function onAcyDisplayActions(&$type)
{
$type['list'] = JText::_('ACYMAILING_LIST');
$status = array();
$status[] = JHTML::_('select.option', 1, JText::_('SUBSCRIBE_TO'));
$status[] = JHTML::_('select.option', 0, JText::_('REMOVE_FROM'));
$lists = $this->_getLists();
$otherlists = array();
$onChange = '';
if (acymailing_level(3)) {
$db = JFactory::getDBO();
$db->setQuery('SELECT b.listid, b.name FROM #__acymailing_listcampaign as a JOIN #__acymailing_list as b on a.listid = b.listid GROUP BY b.listid ORDER BY b.ordering ASC');
$otherlists = $db->loadObjectList('listid');
$onChange = 'onchange="if(document.getElementById(\'subliststatus__num__\').value == 1 && document.getElementById(\'sublistvalue__num__\').value.indexOf(\'_campaign\') > 0){document.getElementById(\'campaigndelay__num__\').style.display = \'inline\'; }else{document.getElementById(\'campaigndelay__num__\').style.display = \'none\';}"';
}
$listsdrop = array();
foreach ($lists as $oneList) {
$listsdrop[] = JHTML::_('select.option', $oneList->listid, $oneList->name);
if (!empty($otherlists[$oneList->listid])) {
$listsdrop[] = JHTML::_('select.option', $oneList->listid . '_campaign', $otherlists[$oneList->listid]->name . ' + ' . JText::_('CAMPAIGN'));
}
}
$return = '<div id="action__num__list">' . JHTML::_('select.genericlist', $status, "action[__num__][list][status]", 'class="inputbox" size="1" ' . $onChange, 'value', 'text', '', 'subliststatus__num__') . ' ' . JHTML::_('select.genericlist', $listsdrop, "action[__num__][list][selectedlist]", 'class="inputbox" size="1" ' . $onChange, 'value', 'text', '', 'sublistvalue__num__');
if (acymailing_level(3)) {
$delay = array();
$delay[] = JHTML::_('select.option', 'day', JText::_('DAYS'));
$delay[] = JHTML::_('select.option', 'week', JText::_('WEEKS'));
$delay[] = JHTML::_('select.option', 'month', JText::_('MONTHS'));
$return .= '<br/><span id="campaigndelay__num__">' . JText::sprintf('TRIGGER_CAMPAIGN', '<input type="text" name="action[__num__][list][delaynum]" value="0" style="width:50px" />', JHTML::_('select.genericlist', $delay, "action[__num__][list][delaytype]", 'class="inputbox" size="1"', 'value', 'text')) . '</span>';
}
$return .= '</div>';
return $return;
}
示例3: trigger
function trigger($triggerName)
{
if (!acymailing_level(3)) {
return;
}
$config = acymailing_config();
if (!$config->get('triggerfilter_' . $triggerName)) {
return;
}
$this->database->setQuery("SELECT * FROM `#__acymailing_filter` WHERE `trigger` LIKE '%" . acymailing_getEscaped($triggerName, true) . "%' ORDER BY filid ASC");
$filters = $this->database->loadObjectList();
if (empty($filters)) {
$newconfig = new stdClass();
$name = 'triggerfilter_' . $triggerName;
$newconfig->{$name} = 0;
$config->save($newconfig);
return;
}
foreach ($filters as $oneFilter) {
if (empty($oneFilter->published)) {
continue;
}
if (!empty($oneFilter->filter)) {
$oneFilter->filter = unserialize($oneFilter->filter);
}
if (!empty($oneFilter->action)) {
$oneFilter->action = unserialize($oneFilter->action);
}
$this->execute($oneFilter->filter, $oneFilter->action);
}
}
示例4: listing
function listing()
{
$app = JFactory::getApplication();
global $Itemid;
$config = acymailing_config();
$jsite = JFactory::getApplication('site');
$menus = $jsite->getMenu();
$menu = $menus->getActive();
if (empty($menu) and !empty($Itemid)) {
$menus->setActive($Itemid);
$menu = $menus->getItem($Itemid);
}
if (empty($menu)) {
acymailing_enqueueMessage(JText::_('ACY_NOTALLOWED'));
$app->redirect('index.php');
}
$selectedLists = 'all';
if (is_object($menu)) {
jimport('joomla.html.parameter');
$menuparams = new acyParameter($menu->params);
$this->assign('listsintrotext', $menuparams->get('listsintrotext'));
$this->assign('listsfinaltext', $menuparams->get('listsfinaltext'));
$selectedLists = $menuparams->get('lists', 'all');
$document = JFactory::getDocument();
if ($menuparams->get('menu-meta_description')) {
$document->setDescription($menuparams->get('menu-meta_description'));
}
if ($menuparams->get('menu-meta_keywords')) {
$document->setMetadata('keywords', $menuparams->get('menu-meta_keywords'));
}
if ($menuparams->get('robots')) {
$document->setMetadata('robots', $menuparams->get('robots'));
}
if ($menuparams->get('page_title')) {
acymailing_setPageTitle($menuparams->get('page_title'));
}
}
if (empty($menuparams)) {
$pathway = $app->getPathway();
$pathway->addItem(JText::_('MAILING_LISTS'));
}
$document = JFactory::getDocument();
$link = '&format=feed&limitstart=';
if ($config->get('acyrss_format') == 'rss' || $config->get('acyrss_format') == 'both') {
$attribs = array('type' => 'application/rss+xml', 'title' => 'RSS 2.0');
$document->addHeadLink(JRoute::_($link . '&type=rss'), 'alternate', 'rel', $attribs);
}
if ($config->get('acyrss_format') == 'atom' || $config->get('acyrss_format') == 'both') {
$attribs = array('type' => 'application/atom+xml', 'title' => 'Atom 1.0');
$document->addHeadLink(JRoute::_($link . '&type=atom'), 'alternate', 'rel', $attribs);
}
$listsClass = acymailing_get('class.list');
$allLists = $listsClass->getLists('', $selectedLists);
if (acymailing_level(1)) {
$allLists = $listsClass->onlyCurrentLanguage($allLists);
}
$myItem = empty($Itemid) ? '' : '&Itemid=' . $Itemid;
$this->assignRef('rows', $allLists);
$this->assignRef('item', $myItem);
}
示例5: continuesend
function continuesend()
{
$config = acymailing_config();
if (acymailing_level(1) && $config->get('queue_type') == 'onlyauto') {
JRequest::setVar('tmpl', 'component');
acymailing_display(JText::_('ACY_ONLYAUTOPROCESS'), 'warning');
return;
}
$newcrontime = time() + 120;
if ($config->get('cron_next') < $newcrontime) {
$newValue = new stdClass();
$newValue->cron_next = $newcrontime;
$config->save($newValue);
}
$mailid = acymailing_getCID('mailid');
$totalSend = JRequest::getVar('totalsend', 0, '', 'int');
$alreadySent = JRequest::getVar('alreadysent', 0, '', 'int');
$helperQueue = acymailing_get('helper.queue');
$helperQueue->mailid = $mailid;
$helperQueue->report = true;
$helperQueue->total = $totalSend;
$helperQueue->start = $alreadySent;
$helperQueue->pause = $config->get('queue_pause');
$helperQueue->process();
JRequest::setVar('tmpl', 'component');
}
示例6: unsubscribe
function unsubscribe($subid,$listids){
$app = JFactory::getApplication();
if(acymailing_level(3)){
$campaignClass = acymailing_get('helper.campaign');
$campaignClass->stop($subid,$listids);
}
$config = acymailing_config();
static $alreadySent = false;
if($this->sendNotif AND !$alreadySent AND $config->get('notification_unsub') AND !$app->isAdmin()){
$alreadySent = true;
$mailer = acymailing_get('helper.mailer');
$mailer->report = false;
$mailer->autoAddUser = true;
$mailer->checkConfirmField = false;
$userClass = acymailing_get('class.subscriber');
$subscriber = $userClass->get($subid);
$ipClass = acymailing_get('helper.user');
$mailer->addParam('survey',$this->survey);
$listSubClass= acymailing_get('class.listsub');
$mailer->addParam('user:subscription',$listSubClass->getSubscriptionString($subscriber->subid));
$mailer->addParamInfo();
$subscriber->ip = $ipClass->getIP();
foreach($subscriber as $fieldname => $value) $mailer->addParam('user:'.$fieldname,$value);
$allUsers = explode(',',$config->get('notification_unsub'));
foreach($allUsers as $oneUser){
$mailer->sendOne('notification_unsub',$oneUser);
}
}
$db = JFactory::getDBO();
if($this->forceConf || ($this->sendConf AND !$app->isAdmin())){
$db->setQuery('SELECT DISTINCT `unsubmailid` FROM '.acymailing_table('list').' WHERE `listid` IN ('.implode(',',$listids).') AND `published` = 1 AND `unsubmailid` > 0');
$messages = acymailing_loadResultArray($db);
if(!empty($messages)){
$config = acymailing_config();
$mailHelper = acymailing_get('helper.mailer');
$mailHelper->report = $config->get('unsub_message',true);
$mailHelper->checkAccept = false;
foreach($messages as $mailid){
$mailHelper->trackEmail = true;
$mailHelper->sendOne($mailid,$subid);
}
}
}//end only frontend
$db->setQuery('DELETE FROM '.acymailing_table('queue').' WHERE `subid` = '.(int) $subid.' AND `mailid` IN (SELECT `mailid` FROM '.acymailing_table('listmail').' WHERE `listid` IN ('.implode(',',$listids).'))');
$db->query();
JPluginHelper::importPlugin('acymailing');
$dispatcher = JDispatcher::getInstance();
$resultsTrigger = $dispatcher->trigger('onAcyUnsubscribe',array($subid,$listids));
}
示例7: listing
function listing()
{
if (!acymailing_level(3)) {
$acyToolbar = acymailing::get('helper.toolbar');
$acyToolbar->setTitle(JText::_('EXTRA_FIELDS'), 'fields');
$acyToolbar->display();
acymailing_display(JText::_('ACY_CUSTOMFIELDS_UPGRADE') . '<br /><br /><a target="_blank" href="' . ACYMAILING_REDIRECT . 'acymailing-features">' . JText::_('ACY_FEATURES') . '</a>', 'info');
return;
}
return parent::listing();
}
示例8: deliverstatusType
function deliverstatusType()
{
$this->values = array();
$this->values[] = JHTML::_('select.option', '0', JText::_('ALL_STATUS'));
$this->values[] = JHTML::_('select.option', 'open', JText::_('OPEN'));
$this->values[] = JHTML::_('select.option', 'notopen', JText::_('NOT_OPEN'));
$this->values[] = JHTML::_('select.option', 'failed', JText::_('FAILED'));
if (acymailing_level(3)) {
$this->values[] = JHTML::_('select.option', 'bounce', JText::_('BOUNCES'));
}
}
示例9: onAcyDisplayActions
function onAcyDisplayActions(&$type)
{
$type['list'] = JText::_('ACYMAILING_LIST');
$status = array();
$status[] = JHTML::_('select.option', 1, JText::_('SUBSCRIBE_TO'));
$status[] = JHTML::_('select.option', 0, JText::_('REMOVE_FROM'));
$status[] = JHTML::_('select.option', -1, JText::_('ACY_UNSUB_FROM'));
$lists = $this->_getLists();
$otherlists = array();
$onChange = '';
if (acymailing_level(3)) {
$db = JFactory::getDBO();
$db->setQuery('SELECT b.listid, b.name FROM #__acymailing_listcampaign as a JOIN #__acymailing_list as b on a.listid = b.listid GROUP BY b.listid ORDER BY b.ordering ASC');
$otherlists = $db->loadObjectList('listid');
$onChange = 'onchange="onAcyDisplayAction_list(__num__);"';
$js = "function onAcyDisplayAction_list(num){\r\n\t\t\t\tif(!document.getElementById('campaigndelay'+num)) return;\r\n\t\t\t\tif(document.getElementById('subliststatus'+num).value == 1 && document.getElementById('sublistvalue'+num).value.indexOf('_campaign') > 0){\r\n\t\t\t\t\tdocument.getElementById('campaigndelay'+num).style.display = 'inline';\r\n\t\t\t\t}else{\r\n\t\t\t\t\tdocument.getElementById('campaigndelay'+num).style.display = 'none';\r\n\t\t\t\t}\r\n\t\t\t}";
$doc = JFactory::getDocument();
$doc->addScriptDeclaration($js);
}
$listsdrop = array();
foreach ($lists as $oneList) {
if (!empty($otherlists[$oneList->listid])) {
$listsdrop[] = JHTML::_('select.option', $oneList->listid . '_campaign', $otherlists[$oneList->listid]->name . ' + ' . JText::_('CAMPAIGN'));
}
$listsdrop[] = JHTML::_('select.option', $oneList->listid, $oneList->name);
}
$return = '<div id="action__num__list">' . JHTML::_('select.genericlist', $status, "action[__num__][list][status]", 'class="inputbox" size="1" ' . $onChange, 'value', 'text', '', 'subliststatus__num__') . ' ' . JHTML::_('select.genericlist', $listsdrop, "action[__num__][list][selectedlist]", 'class="inputbox" size="1" ' . $onChange, 'value', 'text', '', 'sublistvalue__num__');
if (!empty($otherlists)) {
$delay = array();
$delay[] = JHTML::_('select.option', 'day', JText::_('DAYS'));
$delay[] = JHTML::_('select.option', 'week', JText::_('WEEKS'));
$delay[] = JHTML::_('select.option', 'month', JText::_('MONTHS'));
$listHours = array();
$listHours[] = JHTML::_('select.option', '', '- -');
for ($i = 0; $i < 24; $i++) {
$listHours[] = JHTML::_('select.option', $i < 10 ? '0' . $i : $i, $i < 10 ? '0' . $i : $i);
}
$hours = JHTML::_('select.genericlist', $listHours, 'action[__num__][list][sendhours]', 'class="inputbox" size="1" style="width:60px;"', 'value', 'text', '');
$listMinutess = array();
$listMinutess[] = JHTML::_('select.option', '', '- -');
for ($i = 0; $i < 60; $i += 5) {
$listMinutess[] = JHTML::_('select.option', $i < 10 ? '0' . $i : $i, $i < 10 ? '0' . $i : $i);
}
$minutes = JHTML::_('select.genericlist', $listMinutess, 'action[__num__][list][sendminutes]', 'class="inputbox" size="1" style="width:60px;"', 'value', 'text', '');
$return .= '<br /><span id="campaigndelay__num__">' . JText::sprintf('TRIGGER_CAMPAIGN', '<input type="text" name="action[__num__][list][delaynum]" value="0" style="width:50px" />', JHTML::_('select.genericlist', $delay, "action[__num__][list][delaytype]", 'class="inputbox" size="1" style="width:120px;"', 'value', 'text')) . ' @ ' . $hours . ' : ' . $minutes;
$return .= '<br />' . JText::sprintf('ACY_CAMPAIGN_NB_FOLLOW_SKIPED', '<input type="text" name="action[__num__][list][skipedfollowups]" value="0" style="width:25px;" />') . '</span>';
}
$return .= '</div>';
return $return;
}
示例10: addSubscription
function addSubscription($subid, $lists)
{
$app =& JFactory::getApplication();
$my = JFactory::getUser();
$result = true;
$time = time();
$subid = intval($subid);
$listHelper = acymailing_get('helper.list');
foreach ($lists as $status => $listids) {
$status = intval($status);
JArrayHelper::toInteger($listids);
$this->database->setQuery('SELECT `listid`,`access_sub` FROM ' . acymailing_table('list') . ' WHERE `listid` IN (' . implode(',', $listids) . ') AND `type` = \'list\'');
$allResults = $this->database->loadObjectList('listid');
$listids = array_keys($allResults);
//-1 is unsubscribe
if ($status == '-1') {
$column = 'unsubdate';
} else {
$column = 'subdate';
}
$values = array();
foreach ($listids as $listid) {
if (empty($listid)) {
continue;
}
if ($status > 0 && acymailing_level(3)) {
if (!$app->isAdmin() && $this->checkAccess && $allResults[$listid]->access_sub != 'all') {
if (!acymailing_isAllowed($allResults[$listid]->access_sub, $this->gid)) {
continue;
}
}
}
$values[] = intval($listid) . ',' . $subid . ',' . $status . ',' . $time;
}
if (empty($values)) {
continue;
}
$query = 'INSERT INTO ' . acymailing_table('listsub') . ' (listid,subid,`status`,' . $column . ') VALUES (' . implode('),(', $values) . ')';
$this->database->setQuery($query);
$result = $this->database->query() && $result;
if ($status == 1) {
$listHelper->subscribe($subid, $listids);
}
}
return $result;
}
示例11: onAcyDisplayActions
function onAcyDisplayActions(&$type)
{
$type['list'] = JText::_('ACYMAILING_LIST');
$status = array();
$status[] = JHTML::_('select.option', 1, JText::_('SUBSCRIBE_TO'));
$status[] = JHTML::_('select.option', 0, JText::_('REMOVE_FROM'));
$lists = $this->_getLists();
$otherlists = array();
if (acymailing_level(3)) {
$db = JFactory::getDBO();
$db->setQuery('SELECT b.listid, b.name FROM #__acymailing_listcampaign as a LEFT JOIN #__acymailing_list as b on a.listid = b.listid GROUP BY b.listid ORDER BY b.ordering ASC');
$otherlists = $db->loadObjectList('listid');
}
$listsdrop = array();
foreach ($lists as $oneList) {
$listsdrop[] = JHTML::_('select.option', $oneList->listid, $oneList->name);
if (!empty($otherlists[$oneList->listid])) {
$listsdrop[] = JHTML::_('select.option', $oneList->listid . '_campaign', $otherlists[$oneList->listid]->name . ' + ' . JText::_('CAMPAIGN'));
}
}
return '<div id="action__num__list">' . JHTML::_('select.genericlist', $status, "action[__num__][list][status]", 'class="inputbox" size="1"', 'value', 'text') . ' ' . JHTML::_('select.genericlist', $listsdrop, "action[__num__][list][selectedlist]", 'class="inputbox" size="1"', 'value', 'text') . '</div>';
}
示例12: getDefault
function getDefault()
{
$queryDefaultTemp = 'SELECT * FROM ' . acymailing_table('template') . ' WHERE premium = 1 AND published = 1 ORDER BY ordering ASC LIMIT 1';
if (acymailing_level(3)) {
$my = JFactory::getUser();
if (!ACYMAILING_J16) {
$groups = $my->gid;
$condGroup = ' OR access LIKE (\'%,' . $groups . ',%\')';
} else {
jimport('joomla.access.access');
$groups = JAccess::getGroupsByUser($my->id, false);
$condGroup = '';
foreach ($groups as $group) {
$condGroup .= ' OR access LIKE (\'%,' . $group . ',%\')';
}
}
$queryDefaultTemp = 'SELECT * FROM ' . acymailing_table('template') . ' WHERE premium = 1 AND published = 1 AND (access = \'all\' ' . $condGroup . ') ORDER BY ordering ASC LIMIT 1';
}
$this->database->setQuery($queryDefaultTemp);
$template = $this->database->loadObject();
return $this->_prepareTemplate($template);
}
示例13: form
function form()
{
$listid = acymailing_getCID('listid');
$listClass = acymailing_get('class.list');
if (!empty($listid)) {
$list = $listClass->get($listid);
if (empty($list->listid)) {
acymailing_display('List ' . $listid . ' not found', 'error');
$listid = 0;
}
}
if (empty($listid)) {
$list = new stdClass();
$list->visible = 1;
$list->description = '';
$list->category = '';
$list->published = 1;
$user = JFactory::getUser();
$list->creatorname = $user->name;
$list->access_manage = 'none';
$list->access_sub = 'all';
$list->languages = 'all';
$colors = array('#3366ff', '#7240A4', '#7A157D', '#157D69', '#ECE649');
$list->color = $colors[rand(0, count($colors) - 1)];
}
$editor = acymailing_get('helper.editor');
$editor->name = 'editor_description';
$editor->content = $list->description;
$editor->setDescription();
if (!ACYMAILING_J16) {
$script = 'function submitbutton(pressbutton){
if (pressbutton == \'cancel\') {
submitform( pressbutton );
return;
}';
} else {
$script = 'Joomla.submitbutton = function(pressbutton) {
if (pressbutton == \'cancel\') {
Joomla.submitform(pressbutton,document.adminForm);
return;
}';
}
$script .= 'if(window.document.getElementById("name").value.length < 2){alert(\'' . JText::_('ENTER_TITLE', true) . '\'); return false;}';
$script .= $editor->jsCode();
if (!ACYMAILING_J16) {
$script .= 'submitform( pressbutton );}';
} else {
$script .= 'Joomla.submitform(pressbutton,document.adminForm);}; ';
}
$script .= 'function affectUser(idcreator,name,email){
window.document.getElementById("creatorname").innerHTML = name;
window.document.getElementById("listcreator").value = idcreator;
}';
$doc = JFactory::getDocument();
$doc->addScriptDeclaration($script);
$colorBox = acymailing_get('type.color');
acymailing_setTitle(JText::_('LIST'), 'acylist', 'list&task=edit&listid=' . $listid);
$bar = JToolBar::getInstance('toolbar');
JToolBarHelper::save();
JToolBarHelper::apply();
JToolBarHelper::cancel();
JToolBarHelper::divider();
$bar->appendButton('Pophelp', 'list-form');
$this->assignRef('colorBox', $colorBox);
if (acymailing_level(1)) {
$this->assign('welcomeMsg', acymailing_get('type.welcome'));
$this->assign('languages', acymailing_get('type.listslanguages'));
}
$unsubMsg = acymailing_get('type.unsub');
$this->assignRef('unsubMsg', $unsubMsg);
$this->assignRef('list', $list);
$this->assignRef('editor', $editor);
}
示例14: rand
"/>
<?php
} else {
echo $fieldsClass->display($extraFields[$oneField], @$identifiedUser->{$oneField}, 'user[' . $oneField . ']', !$displayOutside);
}
?>
</td><?php
}
} else {
continue;
}
if (!$displayInline) {
echo '</tr><tr>';
}
}
if (empty($identifiedUser->userid) and $config->get('captcha_enabled') and acymailing_level(1)) {
?>
<td class="captchakeymodule">
<?php
if (ACYMAILING_J16) {
$image = '<img id="captcha_picture_' . $formName . '" title="' . JText::_('ERROR_CAPTCHA') . '" width="' . $config->get('captcha_width_module') . '" height="' . $config->get('captcha_height_module') . '" class="captchaimagemodule" src="' . JRoute::_('index.php?option=com_acymailing&ctrl=captcha&acyformname=' . $formName . '&val=' . rand(0, 10000)) . '" alt="captcha" />';
} else {
$image = '<img id="captcha_picture_' . $formName . '" title="' . JText::_('ERROR_CAPTCHA') . '" width="' . $config->get('captcha_width_module') . '" height="' . $config->get('captcha_height_module') . '" class="captchaimagemodule" src="' . rtrim(JURI::root(), '/') . '/index.php?option=com_acymailing&ctrl=captcha&acyformname=' . $formName . '&val=' . rand(0, 10000) . '" alt="captcha" />';
}
$refreshImg = '<span class="refreshCaptchaModule" onclick="refreshCaptchaModule(\'' . $formName . '\')"> </span>';
if ($displayOutside) {
echo $image . $refreshImg . '</td><td class="captchafieldmodule">';
} else {
echo $image . $refreshImg;
}
?>
示例15: spamtest
function spamtest()
{
if (!acymailing_level(1)) {
echo JText::_('ACY_STARTER_SPAMTEST') . ' <a target="_blank" href="https://www.acyba.com/index.php?option=com_updateme&ctrl=redirect&page=acymailing-features">' . JText::_('ACY_FEATURES') . '</a>';
return;
}
}