Файловый менеджер - Редактировать - /home/wuectly/www/03cbe/online.zip
Назад
PK �}!]E��� � online.phpnu &1i� <?php /** * @package AcyMailing for Joomla! * @version 5.9.6 * @author acyba.com * @copyright (C) 2009-2018 ACYBA S.A.R.L. All rights reserved. * @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html */ defined('_JEXEC') or die('Restricted access'); ?><?php class plgAcymailingOnline extends JPlugin{ function __construct(&$subject, $config){ parent::__construct($subject, $config); if(!isset($this->params)){ $plugin = JPluginHelper::getPlugin('acymailing', 'online'); $this->params = new acyParameter($plugin->params); } } function acymailing_getPluginType(){ if($this->params->get('frontendaccess') == 'none' && !acymailing_isAdmin()) return; $onePlugin = new stdClass(); $onePlugin->name = acymailing_translation('WEBSITE_LINKS'); $onePlugin->function = 'acymailingtagonline_show'; $onePlugin->help = 'plugin-online'; return $onePlugin; } function acymailingtagonline_show(){ $others = array(); $config = acymailing_config(); $others['readonline'] = array('default' => acymailing_translation('VIEW_ONLINE', true), 'desc' => acymailing_translation('VIEW_ONLINE_LINK')); if($config->get('forward', true)){ $others['forward'] = array('default' => acymailing_translation('FORWARD_FRIEND', true), 'desc' => acymailing_translation('FORWARD_FRIEND_LINK')); } ?> <script language="javascript" type="text/javascript"> <!-- var selectedTag = ''; function changeTag(tagName){ selectedTag = tagName; defaultText = new Array(); <?php $k = 0; foreach($others as $tagname => $tag){ echo "document.getElementById('tr_$tagname').className = 'row$k';"; echo "defaultText['$tagname'] = '".$tag['default']."';"; } $k = 1-$k; ?> document.getElementById('tr_' + tagName).className = 'selectedrow'; document.adminForm.tagtext.value = defaultText[tagName]; setOnlineTag(); } function setOnlineTag(){ if(!selectedTag) changeTag('readonline'); otherinfo = ''; for(var i = 0; i < document.adminForm.template.length; i++){ if(document.adminForm.template[i].checked){ otherinfo += '|template:' + document.adminForm.template[i].value; } } setTag('<a href=' + '"{' + selectedTag + otherinfo + '}{/' + selectedTag + '}" target="_blank" style="text-decoration:none;"><span class="acymailing_online">' + document.adminForm.tagtext.value + '</span></a>'); } //--> </script> <?php echo acymailing_translation('FIELD_TEXT').' : <input type="text" name="tagtext" size="100px" onchange="setOnlineTag();" /><br /><br />'; $radios = array(); $radios[] = acymailing_selectOption("standard", acymailing_translation('IN_TEMPLATE')); $radios[] = acymailing_selectOption("notemplate", acymailing_translation('WITHOUT_TEMPLATE')); echo acymailing_radio($radios, 'template', 'size="1" onclick="setOnlineTag();"', 'value', 'text', 'notemplate'); echo '<div class="onelineblockoptions"> <table class="acymailing_table" cellpadding="1">'; $k = 0; foreach($others as $tagname => $tag){ echo '<tr style="cursor:pointer" class="row'.$k.'" onclick="changeTag(\''.$tagname.'\');" id="tr_'.$tagname.'" ><td class="acytdcheckbox" ></td><td>'.$tag['desc'].'</td></tr>'; $k = 1 - $k; } echo '</table></div>'; } function acymailing_replacetags(&$email, $send = true){ if(acymailing_getVar('none', 'task', '') == 'replacetags') return; $match = '#(?:{|%7B)(readonline|forward)([^}]*)(?:}|%7D)(.*)(?:{|%7B)/(readonline|forward)(?:}|%7D)#Uis'; $variables = array('body', 'altbody'); $found = false; $results = array(); foreach($variables as $var){ if(empty($email->$var)) continue; $found = preg_match_all($match, $email->$var, $results[$var]) || $found; if(empty($results[$var][0])) unset($results[$var]); } if(!$found) return; $config = acymailing_config(); $tags = array(); foreach($results as $var => $allresults){ foreach($allresults[0] as $i => $oneTag){ if(isset($tags[$oneTag])) continue; $arguments = explode('|', strip_tags(str_replace('%7C', '|', $allresults[2][$i]))); $tag = new stdClass(); $tag->type = $allresults[1][$i]; $tag->template = ($tag->type == 'readonline') ? $this->params->get('viewtemplate', 'notemplate') : $this->params->get('forwardtemplate', 'notemplate'); $tag->itemid = $config->get('itemid', 0); for($j = 0, $a = count($arguments); $j < $a; $j++){ $args = explode(':', $arguments[$j]); $arg0 = trim($args[0]); if(empty($arg0)) continue; if(isset($args[1])){ $tag->$arg0 = $args[1]; }else{ $tag->$arg0 = true; } } $addkey = (!empty($email->key) && $this->params->get('addkey', 'yes') == 'yes') ? '&key='.$email->key : ''; $adduserkey = $this->params->get('adduserkey', 'yes') == 'yes' ? '&subid={subtag:subid}-{subtag:key}' : ''; $tmpl = ($tag->template == 'notemplate') ? '&tmpl=component' : ''; $item = empty($tag->itemid) ? '' : '&Itemid='.$tag->itemid; $lang = empty($email->language) ? '' : '&lang='.$email->language; if($tag->type == 'readonline'){ $link = acymailing_frontendLink('index.php?option=com_acymailing&ctrl=archive&task=view&mailid='.$email->mailid.$addkey.$adduserkey.$tmpl.$item.$lang); }elseif($tag->type == 'forward'){ $link = acymailing_frontendLink('index.php?option=com_acymailing&ctrl=archive&task=forward&mailid='.$email->mailid.$addkey.$adduserkey.$tmpl.$item.$lang); } if(empty($allresults[3][$i])){ $tags[$oneTag] = $link; }else $tags[$oneTag] = '<a style="text-decoration:none;" href="'.$link.'"><span class="acymailing_online">'.$allresults[3][$i].'</span></a>'; } } $email->body = str_replace(array_keys($tags), $tags, $email->body); if(!empty($email->altbody)) $email->altbody = str_replace(array_keys($tags), $tags, $email->altbody); } }//endclass PK �}!]6���� � online.xmlnu &1i� <?xml version="1.0" encoding="utf-8"?> <extension type="plugin" version="2.5" method="upgrade" group="acymailing"> <name>AcyMailing Tag : Website links</name> <creationDate>September 2009</creationDate> <version>3.7.0</version> <author>Acyba</author> <authorEmail>dev@acyba.com</authorEmail> <authorUrl>http://www.acyba.com</authorUrl> <copyright>Copyright (C) 2009-2018 ACYBA SAS - All rights reserved..</copyright> <license>GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html</license> <description>This plugin enables you to add links in your Newsletter such as "read in your browser" or "forward to a friend"</description> <files> <filename plugin="online">online.php</filename> </files> <params addpath="/components/com_acymailing/params"> <param name="help" type="help" label="Help" description="Click on the help button to get some help" default="plugin-online"/> <param name="addkey" type="radio" default="yes" label="Add Newsletter key" description="Add the Newsletter key in the link so the online version will be always accessible from the link inserted in the Newsletter"> <option value="yes">Yes</option> <option value="no">No</option> </param> <param name="adduserkey" type="radio" default="yes" label="Add User key" description="Add the user key in the link so the online version will contain the personal information as well"> <option value="yes">Yes</option> <option value="no">No</option> </param> <param name="viewtemplate" type="radio" default="notemplate" label="Display the online version - DEPRECATED" description="This option is not useful any more, please use the option when inserting the tag instead"> <option value="standard">Standard template</option> <option value="notemplate">No template</option> </param> <param name="forwardtemplate" type="radio" default="notemplate" label="Display the forward version - DEPRECATED" description="This option is not useful any more, please use the option when inserting the tag instead"> <option value="standard">Standard template</option> <option value="notemplate">No template</option> </param> <param name="frontendaccess" type="list" default="all" label="Front-end Access" description="You can restrict the access to this tag system with this option"> <option value="all">Always display this tag system</option> <option value="none">Don't display this tag system on the front-end</option> </param> </params> <config> <fields name="params" addfieldpath="/components/com_acymailing/params"> <fieldset name="basic"> <field name="help" type="help" label="Help" description="Click on the help button to get some help" default="plugin-online"/> <field name="addkey" type="radio" default="yes" label="Add Newsletter key" description="Add the Newsletter key in the link so the online version will be always accessible from the link inserted in the Newsletter"> <option value="yes">Yes</option> <option value="no">No</option> </field> <field name="adduserkey" type="radio" default="yes" label="Add User key" description="Add the user key in the link so the online version will contain the personal information as well"> <option value="yes">Yes</option> <option value="no">No</option> </field> <field name="viewtemplate" type="radio" default="notemplate" label="Display the online version - DEPRECATED" description="This option is not useful any more, please use the option when inserting the tag instead"> <option value="standard">Standard template</option> <option value="notemplate">No template</option> </field> <field name="forwardtemplate" type="radio" default="notemplate" label="Display the forward version - DEPRECATED" description="This option is not useful any more, please use the option when inserting the tag instead"> <option value="standard">Standard template</option> <option value="notemplate">No template</option> </field> <field name="frontendaccess" type="list" default="all" label="Front-end Access" description="You can restrict the access to this tag system with this option"> <option value="all">Always display this tag system</option> <option value="none">Don't display this tag system on the front-end</option> </field> </fieldset> </fields> </config> </extension> PK �}!]�#o, , index.htmlnu &1i� <html><body bgcolor="#FFFFFF"></body></html>PK �}!]E��� � online.phpnu &1i� PK �}!]6���� � 0 online.xmlnu &1i� PK �}!]�#o, , P( index.htmlnu &1i� PK � �(
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка