@@ 89-91 (lines=3) @@ | ||
86 | if (strncmp('<!--', $css, 4) === 0) { |
|
87 | $css = substr($css, 4); |
|
88 | } |
|
89 | if (strlen($css) > 3 && substr($css, -3) == '-->') { |
|
90 | $css = substr($css, 0, -3); |
|
91 | } |
|
92 | $css = trim($css); |
|
93 | set_error_handler('htmlpurifier_filter_extractstyleblocks_muteerrorhandler'); |
|
94 | $this->_tidy->parse($css); |
@@ 1726-1726 (lines=1) @@ | ||
1723 | $fileParts = split("\.", $filename); |
|
1724 | $ext = $fileParts[1]; |
|
1725 | $mimeType = $this->_mime_types($ext); |
|
1726 | if ( strlen($basedir) > 1 && substr($basedir,-1) != '/') { $basedir .= '/'; } |
|
1727 | if ( strlen($directory) > 1 && substr($directory,-1) != '/') { $directory .= '/'; } |
|
1728 | if ( $this->AddEmbeddedImage($basedir.$directory.$filename, md5($filename), $filename, 'base64',$mimeType) ) { |
|
1729 | $message = preg_replace("/".$images[1][$i]."=\"".preg_quote($url, '/')."\"/Ui", $images[1][$i]."=\"".$cid."\"", $message); |
|
@@ 1727-1727 (lines=1) @@ | ||
1724 | $ext = $fileParts[1]; |
|
1725 | $mimeType = $this->_mime_types($ext); |
|
1726 | if ( strlen($basedir) > 1 && substr($basedir,-1) != '/') { $basedir .= '/'; } |
|
1727 | if ( strlen($directory) > 1 && substr($directory,-1) != '/') { $directory .= '/'; } |
|
1728 | if ( $this->AddEmbeddedImage($basedir.$directory.$filename, md5($filename), $filename, 'base64',$mimeType) ) { |
|
1729 | $message = preg_replace("/".$images[1][$i]."=\"".preg_quote($url, '/')."\"/Ui", $images[1][$i]."=\"".$cid."\"", $message); |
|
1730 | } |
@@ 2015-2015 (lines=1) @@ | ||
2012 | $cid = 'cid:' . md5($filename); |
|
2013 | $ext = pathinfo($filename, PATHINFO_EXTENSION); |
|
2014 | $mimeType = self::_mime_types($ext); |
|
2015 | if ( strlen($basedir) > 1 && substr($basedir,-1) != '/') { $basedir .= '/'; } |
|
2016 | if ( strlen($directory) > 1 && substr($directory,-1) != '/') { $directory .= '/'; } |
|
2017 | if ( $this->AddEmbeddedImage($basedir.$directory.$filename, md5($filename), $filename, 'base64',$mimeType) ) { |
|
2018 | $message = preg_replace("/".$images[1][$i]."=\"".preg_quote($url, '/')."\"/Ui", $images[1][$i]."=\"".$cid."\"", $message); |
|
@@ 2016-2016 (lines=1) @@ | ||
2013 | $ext = pathinfo($filename, PATHINFO_EXTENSION); |
|
2014 | $mimeType = self::_mime_types($ext); |
|
2015 | if ( strlen($basedir) > 1 && substr($basedir,-1) != '/') { $basedir .= '/'; } |
|
2016 | if ( strlen($directory) > 1 && substr($directory,-1) != '/') { $directory .= '/'; } |
|
2017 | if ( $this->AddEmbeddedImage($basedir.$directory.$filename, md5($filename), $filename, 'base64',$mimeType) ) { |
|
2018 | $message = preg_replace("/".$images[1][$i]."=\"".preg_quote($url, '/')."\"/Ui", $images[1][$i]."=\"".$cid."\"", $message); |
|
2019 | } |
@@ 347-350 (lines=4) @@ | ||
344 | return; |
|
345 | } |
|
346 | ||
347 | if(substr($path, -1) == '/') |
|
348 | { |
|
349 | $path = substr($path, 0, strlen($path) - 1); |
|
350 | } |
|
351 | ||
352 | if(!$GLOBLAS['XE_AUTOINSTALL_PACKAGE_SRL_BY_PATH'][$path]) |
|
353 | { |
@@ 103-103 (lines=1) @@ | ||
100 | $hostname = $request_url_parse['host']; |
|
101 | $path = $request_url_parse['path']; |
|
102 | $port = $request_url_parse['port']; |
|
103 | if(strlen($path) >= 1 && substr_compare($path, '/', -1) === 0) $path = substr($path, 0, -1); |
|
104 | ||
105 | $domain = sprintf('%s%s%s', $hostname, $port && ($port != 80 )? ':'.$port : '', $path); |
|
106 | } |