mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Find links in html messages
This commit is contained in:
parent
d50c068a3d
commit
041bd1ae1b
6 changed files with 388 additions and 335 deletions
|
|
@ -8,6 +8,8 @@ namespace MailSo\Base;
|
|||
*/
|
||||
class HtmlUtils
|
||||
{
|
||||
static $KOS = '@@_KOS_@@';
|
||||
|
||||
/**
|
||||
* @access private
|
||||
*/
|
||||
|
|
@ -261,14 +263,106 @@ class HtmlUtils
|
|||
return \implode(';', $aOutStyles);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param \DOMDocument $oDom
|
||||
*/
|
||||
public static function FindLinksInDOM(&$oDom)
|
||||
{
|
||||
$aNodes = $oDom->getElementsByTagName('*');
|
||||
foreach ($aNodes as /* @var $oElement \DOMElement */ $oElement)
|
||||
{
|
||||
$sTagNameLower = \strtolower($oElement->tagName);
|
||||
$sParentTagNameLower = isset($oElement->parentNode) && isset($oElement->parentNode->tagName) ?
|
||||
\strtolower($oElement->parentNode->tagName) : '';
|
||||
|
||||
if (!\in_array($sTagNameLower, array('html', 'meta', 'head', 'style', 'script', 'img', 'button', 'input', 'textarea', 'a')) &&
|
||||
'a' !== $sParentTagNameLower && $oElement->childNodes && 0 < $oElement->childNodes->length)
|
||||
{
|
||||
$oSubItem = null;
|
||||
$aTextNodes = array();
|
||||
$iIndex = $oElement->childNodes->length - 1;
|
||||
while ($iIndex > -1)
|
||||
{
|
||||
$oSubItem = $oElement->childNodes->item($iIndex);
|
||||
if ($oSubItem && XML_TEXT_NODE === $oSubItem->nodeType)
|
||||
{
|
||||
$aTextNodes[] = $oSubItem;
|
||||
}
|
||||
|
||||
$iIndex--;
|
||||
}
|
||||
|
||||
unset($oSubItem);
|
||||
|
||||
foreach ($aTextNodes as $oTextNode)
|
||||
{
|
||||
if ($oTextNode && 0 < \strlen($oTextNode->wholeText)/* && \preg_match('/http[s]?:\/\//i', $oTextNode->wholeText)*/)
|
||||
{
|
||||
$sText = \MailSo\Base\LinkFinder::NewInstance()
|
||||
->Text($oTextNode->wholeText)
|
||||
->UseDefaultWrappers(true)
|
||||
->CompileText()
|
||||
;
|
||||
|
||||
$oSubDom = \MailSo\Base\HtmlUtils::GetDomFromText('<html><body>'.$sText.'</body></html>');
|
||||
if ($oSubDom)
|
||||
{
|
||||
$oBodyNodes = $oSubDom->getElementsByTagName('body');
|
||||
if ($oBodyNodes && 0 < $oBodyNodes->length)
|
||||
{
|
||||
$oBodyChildNodes = $oBodyNodes->item(0)->childNodes;
|
||||
if ($oBodyChildNodes && $oBodyChildNodes->length)
|
||||
{
|
||||
for ($iIndex = 0, $iLen = $oBodyChildNodes->length; $iIndex < $iLen; $iIndex++)
|
||||
{
|
||||
$oSubItem = $oBodyChildNodes->item($iIndex);
|
||||
if ($oSubItem)
|
||||
{
|
||||
if (XML_ELEMENT_NODE === $oSubItem->nodeType &&
|
||||
'a' === \strtolower($oSubItem->tagName))
|
||||
{
|
||||
$oLink = $oDom->createElement('a',
|
||||
\str_replace(':', \MailSo\Base\HtmlUtils::$KOS, \htmlspecialchars($oSubItem->nodeValue)));
|
||||
|
||||
$sHref = $oSubItem->getAttribute('href');
|
||||
if ($sHref)
|
||||
{
|
||||
$oLink->setAttribute('href', $sHref);
|
||||
}
|
||||
|
||||
$oElement->insertBefore($oLink, $oTextNode);
|
||||
}
|
||||
else
|
||||
{
|
||||
$oElement->insertBefore($oDom->importNode($oSubItem), $oTextNode);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$oElement->removeChild($oTextNode);
|
||||
}
|
||||
}
|
||||
|
||||
unset($oBodyNodes);
|
||||
}
|
||||
|
||||
unset($oSubDom, $sText);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
unset($aNodes);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $sHtml
|
||||
* @param bool $bDoNotReplaceExternalUrl = false
|
||||
* @param bool $bFindLinksInHtml = false
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public static function ClearHtmlSimple($sHtml, $bDoNotReplaceExternalUrl = false)
|
||||
public static function ClearHtmlSimple($sHtml, $bDoNotReplaceExternalUrl = false, $bFindLinksInHtml = false)
|
||||
{
|
||||
$bHasExternals = false;
|
||||
$aFoundCIDs = array();
|
||||
|
|
@ -276,7 +370,7 @@ class HtmlUtils
|
|||
$aFoundedContentLocationUrls = array();
|
||||
|
||||
return \MailSo\Base\HtmlUtils::ClearHtml($sHtml, $bHasExternals, $aFoundCIDs,
|
||||
$aContentLocationUrls, $aFoundedContentLocationUrls, $bDoNotReplaceExternalUrl);
|
||||
$aContentLocationUrls, $aFoundedContentLocationUrls, $bDoNotReplaceExternalUrl, $bFindLinksInHtml);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -286,11 +380,13 @@ class HtmlUtils
|
|||
* @param array $aContentLocationUrls = array()
|
||||
* @param array $aFoundedContentLocationUrls = array()
|
||||
* @param bool $bDoNotReplaceExternalUrl = false
|
||||
* @param bool $bFindLinksInHtml = false
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public static function ClearHtml($sHtml, &$bHasExternals = false, &$aFoundCIDs = array(),
|
||||
$aContentLocationUrls = array(), &$aFoundedContentLocationUrls = array(), $bDoNotReplaceExternalUrl = false)
|
||||
$aContentLocationUrls = array(), &$aFoundedContentLocationUrls = array(),
|
||||
$bDoNotReplaceExternalUrl = false, $bFindLinksInHtml = false)
|
||||
{
|
||||
$sHtml = null === $sHtml ? '' : (string) $sHtml;
|
||||
$sHtml = \trim($sHtml);
|
||||
|
|
@ -313,6 +409,11 @@ class HtmlUtils
|
|||
|
||||
if ($oDom)
|
||||
{
|
||||
if ($bFindLinksInHtml)
|
||||
{
|
||||
\MailSo\Base\HtmlUtils::FindLinksInDOM($oDom);
|
||||
}
|
||||
|
||||
$aNodes = $oDom->getElementsByTagName('*');
|
||||
foreach ($aNodes as /* @var $oElement \DOMElement */ $oElement)
|
||||
{
|
||||
|
|
@ -493,6 +594,8 @@ class HtmlUtils
|
|||
$sResult = '<div data-x-div-type="body" '.$sBodyAttrs.'>'.$sResult.'</div>';
|
||||
$sResult = '<div data-x-div-type="html" '.$sHtmlAttrs.'>'.$sResult.'</div>';
|
||||
|
||||
$sResult = \str_replace(\MailSo\Base\HtmlUtils::$KOS, ':', $sResult);
|
||||
|
||||
return \trim($sResult);
|
||||
}
|
||||
|
||||
|
|
@ -658,8 +761,7 @@ class HtmlUtils
|
|||
$sText = \MailSo\Base\LinkFinder::NewInstance()
|
||||
->Text($sText)
|
||||
->UseDefaultWrappers($bLinksWithTargetBlank)
|
||||
// ->CompileText(true, false);
|
||||
->CompileText(true, true);
|
||||
->CompileText();
|
||||
|
||||
$sText = \str_replace("\r", '', $sText);
|
||||
|
||||
|
|
|
|||
|
|
@ -126,12 +126,7 @@ class LinkFinder
|
|||
*/
|
||||
public function UseDefaultWrappers($bAddTargetBlank = false)
|
||||
{
|
||||
$this->fLinkWrapper = function ($sLink, $bShortLink = false) use ($bAddTargetBlank) {
|
||||
|
||||
if ($bShortLink && \in_array(\strtolower($sLink), array('asp.net', 'vb.net', 'mailbee.net')))
|
||||
{
|
||||
return $sLink;
|
||||
}
|
||||
$this->fLinkWrapper = function ($sLink) use ($bAddTargetBlank) {
|
||||
|
||||
$sNameLink = $sLink;
|
||||
if (!\preg_match('/^[a-z]{3,5}\:\/\//i', \ltrim($sLink)))
|
||||
|
|
@ -151,11 +146,10 @@ class LinkFinder
|
|||
|
||||
/**
|
||||
* @param bool $bUseHtmlSpecialChars = true
|
||||
* @param bool $bFindShortLinks = true
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function CompileText($bUseHtmlSpecialChars = true, $bFindShortLinks = true)
|
||||
public function CompileText($bUseHtmlSpecialChars = true)
|
||||
{
|
||||
$sText = \substr($this->sText, 0, $this->iOptimizationLimit);
|
||||
$sSubText = \substr($this->sText, $this->iOptimizationLimit);
|
||||
|
|
@ -171,11 +165,6 @@ class LinkFinder
|
|||
$sText = $this->findMails($sText, $this->fMailWrapper);
|
||||
}
|
||||
|
||||
if ($bFindShortLinks && null !== $this->fLinkWrapper && \is_callable($this->fLinkWrapper))
|
||||
{
|
||||
$sText = $this->findShortLinks($sText, $this->fLinkWrapper);
|
||||
}
|
||||
|
||||
$sResult = '';
|
||||
if ($bUseHtmlSpecialChars)
|
||||
{
|
||||
|
|
@ -259,46 +248,6 @@ class LinkFinder
|
|||
return $sText;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $sText
|
||||
* @param mixed $fWrapper
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
private function findShortLinks($sText, $fWrapper)
|
||||
{
|
||||
$sPattern = '/([a-z0-9-\.]+\.(?:com|org|net|ru))([^a-z0-9-\.])/i';
|
||||
|
||||
$aPrepearPlainStringUrls = $this->aPrepearPlainStringUrls;
|
||||
$sText = \preg_replace_callback($sPattern, function ($aMatch) use ($fWrapper, &$aPrepearPlainStringUrls) {
|
||||
|
||||
if (\is_array($aMatch) && 2 < \count($aMatch) && isset($aMatch[1]) && 0 < \strlen($aMatch[1]))
|
||||
{
|
||||
$sLinkWithWrap = \call_user_func_array($fWrapper, array($aMatch[1], true));
|
||||
if (\is_string($sLinkWithWrap))
|
||||
{
|
||||
$aPrepearPlainStringUrls[] = \stripslashes($sLinkWithWrap);
|
||||
return \MailSo\Base\LinkFinder::OPEN_LINK.
|
||||
(\count($aPrepearPlainStringUrls) - 1).
|
||||
\MailSo\Base\LinkFinder::CLOSE_LINK.
|
||||
$aMatch[2];
|
||||
}
|
||||
|
||||
return $aMatch[0];
|
||||
}
|
||||
|
||||
return '';
|
||||
|
||||
}, $sText);
|
||||
|
||||
if (0 < \count($aPrepearPlainStringUrls))
|
||||
{
|
||||
$this->aPrepearPlainStringUrls = $aPrepearPlainStringUrls;
|
||||
}
|
||||
|
||||
return $sText;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $sText
|
||||
* @param mixed $fWrapper
|
||||
|
|
|
|||
|
|
@ -740,7 +740,7 @@ class Utils
|
|||
{
|
||||
$sResult = '';
|
||||
$sContentType = \strtolower($sContentType);
|
||||
if (0 === strpos($sContentType, 'image/'))
|
||||
if (0 === \strpos($sContentType, 'image/'))
|
||||
{
|
||||
$sResult = 'image';
|
||||
}
|
||||
|
|
@ -847,7 +847,7 @@ class Utils
|
|||
*/
|
||||
public static function Php2js($mInput)
|
||||
{
|
||||
return \json_encode($mInput, defined('JSON_UNESCAPED_UNICODE') ? JSON_UNESCAPED_UNICODE : 0);
|
||||
return \json_encode($mInput, \defined('JSON_UNESCAPED_UNICODE') ? JSON_UNESCAPED_UNICODE : 0);
|
||||
|
||||
// if (\is_null($mInput))
|
||||
// {
|
||||
|
|
@ -918,25 +918,25 @@ class Utils
|
|||
*/
|
||||
public static function RecRmDir($sDir)
|
||||
{
|
||||
if (@is_dir($sDir))
|
||||
if (@\is_dir($sDir))
|
||||
{
|
||||
$aObjects = scandir($sDir);
|
||||
$aObjects = \scandir($sDir);
|
||||
foreach ($aObjects as $sObject)
|
||||
{
|
||||
if ('.' !== $sObject && '..' !== $sObject)
|
||||
{
|
||||
if ('dir' === filetype($sDir.'/'.$sObject))
|
||||
if ('dir' === \filetype($sDir.'/'.$sObject))
|
||||
{
|
||||
self::RecRmDir($sDir.'/'.$sObject);
|
||||
}
|
||||
else
|
||||
{
|
||||
@unlink($sDir.'/'.$sObject);
|
||||
@\unlink($sDir.'/'.$sObject);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return @rmdir($sDir);
|
||||
return @\rmdir($sDir);
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ final class Version
|
|||
/**
|
||||
* @var string
|
||||
*/
|
||||
const APP_VERSION = '1.2.2';
|
||||
const APP_VERSION = '1.3.0';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
|
|
|
|||
|
|
@ -6264,7 +6264,7 @@ class Actions
|
|||
protected function responseObject($mResponse, $sParent = '', $aParameters = array())
|
||||
{
|
||||
$mResult = $mResponse;
|
||||
if (is_object($mResponse))
|
||||
if (\is_object($mResponse))
|
||||
{
|
||||
$bHook = true;
|
||||
$sClassName = \get_class($mResponse);
|
||||
|
|
@ -6327,7 +6327,7 @@ class Actions
|
|||
$sSubject = $mResult['Subject'];
|
||||
$mResult['RequestHash'] = \RainLoop\Utils::EncodeKeyValues(array(
|
||||
'V' => APP_VERSION,
|
||||
'Account' => $oAccount ? md5($oAccount->Hash()) : '',
|
||||
'Account' => $oAccount ? \md5($oAccount->Hash()) : '',
|
||||
'Folder' => $mResult['Folder'],
|
||||
'Uid' => $mResult['Uid'],
|
||||
'MimeType' => 'message/rfc822',
|
||||
|
|
@ -6372,12 +6372,12 @@ class Actions
|
|||
}
|
||||
|
||||
$sPlain = '';
|
||||
$sHtml = $mResponse->Html();
|
||||
$sHtml = \trim($mResponse->Html());
|
||||
$bRtl = false;
|
||||
|
||||
if (0 === \strlen($sHtml))
|
||||
{
|
||||
$sPlain = $mResponse->Plain();
|
||||
$sPlain = \trim($mResponse->Plain());
|
||||
$bRtl = \MailSo\Base\Utils::IsRTL($sPlain);
|
||||
}
|
||||
else
|
||||
|
|
@ -6389,7 +6389,8 @@ class Actions
|
|||
$mResult['InReplyTo'] = $mResponse->InReplyTo();
|
||||
$mResult['References'] = $mResponse->References();
|
||||
$mResult['Html'] = 0 === \strlen($sHtml) ? '' : \MailSo\Base\HtmlUtils::ClearHtml(
|
||||
$sHtml, $bHasExternals, $mFoundedCIDs, $aContentLocationUrls, $mFoundedContentLocationUrls);
|
||||
$sHtml, $bHasExternals, $mFoundedCIDs, $aContentLocationUrls, $mFoundedContentLocationUrls, false,
|
||||
!!$this->Config()->Get('labs', 'allow_smart_html_links', true));
|
||||
|
||||
$mResult['PlainRaw'] = $sPlain;
|
||||
$mResult['Plain'] = 0 === \strlen($sPlain) ? '' : \MailSo\Base\HtmlUtils::ConvertPlainToHtml($sPlain);
|
||||
|
|
@ -6418,7 +6419,7 @@ class Actions
|
|||
try
|
||||
{
|
||||
$oReadReceipt = \MailSo\Mime\Email::Parse($mResult['ReadReceipt']);
|
||||
if ($oReadReceipt && \strtolower($oAccount->Email()) === \strtolower($oReadReceipt->GetEmail()))
|
||||
if (!$oReadReceipt || ($oReadReceipt && \strtolower($oAccount->Email()) === \strtolower($oReadReceipt->GetEmail())))
|
||||
{
|
||||
$mResult['ReadReceipt'] = '';
|
||||
}
|
||||
|
|
@ -6495,13 +6496,13 @@ class Actions
|
|||
'CID' => $mResponse->Cid(),
|
||||
'ContentLocation' => $mResponse->ContentLocation(),
|
||||
'IsInline' => $mResponse->IsInline(),
|
||||
'IsLinked' => ($mFoundedCIDs && \in_array(trim(trim($mResponse->Cid()), '<>'), $mFoundedCIDs)) ||
|
||||
'IsLinked' => ($mFoundedCIDs && \in_array(\trim(\trim($mResponse->Cid()), '<>'), $mFoundedCIDs)) ||
|
||||
($mFoundedContentLocationUrls && \in_array(\trim($mResponse->ContentLocation()), $mFoundedContentLocationUrls))
|
||||
));
|
||||
|
||||
$mResult['Download'] = \RainLoop\Utils::EncodeKeyValues(array(
|
||||
'V' => APP_VERSION,
|
||||
'Account' => $oAccount ? md5($oAccount->Hash()) : '',
|
||||
'Account' => $oAccount ? \md5($oAccount->Hash()) : '',
|
||||
'Folder' => $mResult['Folder'],
|
||||
'Uid' => $mResult['Uid'],
|
||||
'MimeIndex' => $mResult['MimeIndex'],
|
||||
|
|
@ -6513,7 +6514,7 @@ class Actions
|
|||
{
|
||||
$aExtended = null;
|
||||
$mStatus = $mResponse->Status();
|
||||
if (is_array($mStatus) && isset($mStatus['MESSAGES'], $mStatus['UNSEEN'], $mStatus['UIDNEXT']))
|
||||
if (\is_array($mStatus) && isset($mStatus['MESSAGES'], $mStatus['UNSEEN'], $mStatus['UIDNEXT']))
|
||||
{
|
||||
$aExtended = array(
|
||||
'MessageCount' => (int) $mStatus['MESSAGES'],
|
||||
|
|
@ -6524,7 +6525,7 @@ class Actions
|
|||
);
|
||||
}
|
||||
|
||||
$mResult = array_merge($this->objectData($mResponse, $sParent, $aParameters), array(
|
||||
$mResult = \array_merge($this->objectData($mResponse, $sParent, $aParameters), array(
|
||||
'Name' => $mResponse->Name(),
|
||||
'FullName' => $mResponse->FullName(),
|
||||
'FullNameRaw' => $mResponse->FullNameRaw(),
|
||||
|
|
@ -6541,7 +6542,7 @@ class Actions
|
|||
}
|
||||
else if ('MailSo\Mail\MessageCollection' === $sClassName)
|
||||
{
|
||||
$mResult = array_merge($this->objectData($mResponse, $sParent, $aParameters), array(
|
||||
$mResult = \array_merge($this->objectData($mResponse, $sParent, $aParameters), array(
|
||||
'MessageCount' => $mResponse->MessageCount,
|
||||
'MessageUnseenCount' => $mResponse->MessageUnseenCount,
|
||||
'MessageResultCount' => $mResponse->MessageResultCount,
|
||||
|
|
@ -6557,13 +6558,13 @@ class Actions
|
|||
}
|
||||
else if ('MailSo\Mail\AttachmentCollection' === $sClassName)
|
||||
{
|
||||
$mResult = array_merge($this->objectData($mResponse, $sParent, $aParameters), array(
|
||||
$mResult = \array_merge($this->objectData($mResponse, $sParent, $aParameters), array(
|
||||
'InlineCount' => $mResponse->InlineCount()
|
||||
));
|
||||
}
|
||||
else if ('MailSo\Mail\FolderCollection' === $sClassName)
|
||||
{
|
||||
$mResult = array_merge($this->objectData($mResponse, $sParent, $aParameters), array(
|
||||
$mResult = \array_merge($this->objectData($mResponse, $sParent, $aParameters), array(
|
||||
'Namespace' => $mResponse->GetNamespace(),
|
||||
'FoldersHash' => isset($mResponse->FoldersHash) ? $mResponse->FoldersHash : '',
|
||||
'IsThreadsSupported' => $mResponse->IsThreadsSupported,
|
||||
|
|
@ -6579,7 +6580,7 @@ class Actions
|
|||
}
|
||||
else
|
||||
{
|
||||
$mResult = '['.get_class($mResponse).']';
|
||||
$mResult = '['.\get_class($mResponse).']';
|
||||
$bHook = false;
|
||||
}
|
||||
|
||||
|
|
@ -6588,7 +6589,7 @@ class Actions
|
|||
$this->Plugins()->RunHook('filter.response-object', array($sClassName, $mResult), false);
|
||||
}
|
||||
}
|
||||
else if (is_array($mResponse))
|
||||
else if (\is_array($mResponse))
|
||||
{
|
||||
foreach ($mResponse as $iKey => $oItem)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -207,18 +207,20 @@ Enables caching in the system'),
|
|||
'ignore_folders_subscription' => array(false,
|
||||
'Experimental settings. Handle with care.
|
||||
'),
|
||||
'allow_prefetch' => array(true),
|
||||
'allow_smart_html_links' => array(true),
|
||||
'cache_system_data' => array(true),
|
||||
'date_from_headers' => array(false),
|
||||
'autocreate_system_folders' => array(true),
|
||||
'allow_message_append' => array(false),
|
||||
'determine_user_language' => array(true),
|
||||
'login_fault_delay' => array(1),
|
||||
'log_ajax_response_write_limit' => array(300),
|
||||
'sync_dav_digest_auth' => array(true),
|
||||
'sync_dav_domain' => array(''),
|
||||
'sync_use_dav_browser' => array(true),
|
||||
'allow_message_append' => array(false),
|
||||
'date_from_headers' => array(false),
|
||||
'cache_system_data' => array(true),
|
||||
'use_app_debug_js' => array(false),
|
||||
'use_app_debug_css' => array(false),
|
||||
'use_dav_digest_auth' => array(false),
|
||||
'login_fault_delay' => array(1),
|
||||
'log_ajax_response_write_limit' => array(300),
|
||||
'determine_user_language' => array(true),
|
||||
'use_imap_sort' => array(false),
|
||||
'use_imap_force_selection' => array(false),
|
||||
'use_imap_list_subscribe' => array(true),
|
||||
|
|
@ -228,8 +230,6 @@ Enables caching in the system'),
|
|||
'imap_forwarded_flag' => array('$Forwarded'),
|
||||
'imap_read_receipt_flag' => array('$ReadReceipt'),
|
||||
'smtp_show_server_errors' => array(false),
|
||||
'allow_prefetch' => array(true),
|
||||
'autocreate_system_folders' => array(true),
|
||||
'repo_type' => array('stable'),
|
||||
'custom_repo' => array(''),
|
||||
'additional_repo' => array(''),
|
||||
|
|
@ -240,6 +240,7 @@ Enables caching in the system'),
|
|||
'custom_login_link' => array(''),
|
||||
'custom_logout_link' => array(''),
|
||||
'allow_external_login' => array(false),
|
||||
'in_iframe' => array(false),
|
||||
'fast_cache_memcache_host' => array('127.0.0.1'),
|
||||
'fast_cache_memcache_port' => array(11211),
|
||||
'fast_cache_memcache_expire' => array(43200),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue