|
System | : | Linux MiraNet 3.0.0-14-generic-pae #23-Ubuntu SMP Mon Nov 21 22:07:10 UTC 2011 i686 |
Software | : | Apache. PHP/5.3.6-13ubuntu3.10 |
ID | : | uid=65534(nobody) gid=65534(nogroup) groups=65534(nogroup)
|
|
Safe Mode | : | OFF |
Open_Basedir | : | OFF |
Freespace | : | 24.15 GB of 70.42 GB (34.3%) |
|
MySQL: ON MSSQL: OFF Oracle: OFF PostgreSQL: OFF Curl: OFF Sockets: ON Fetch: OFF Wget: ON Perl: ON |
Disabled Functions: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
|
[ System Info ]
[ Processes ]
[ SQL Manager ]
[ Eval ]
[ Encoder ]
[ Mailer ]
[ Back Connection ]
[ Backdoor Server ]
[ Kernel Exploit Search ]
[ MD5 Decrypter ]
[ Reverse IP ]
[ Kill Shell ]
[ FTP Brute-Force ]
|
|
/
http/
guitar.1/
libraries/
joomla/
html/
html/
- drwxr-xr-x
|
Viewing file: email.php (3.72 KB) -rw-r--r--Select action/file-type:  ( +) |  ( +) |  ( +) | Code ( +) | Session ( +) |  ( +) | SDB ( +) |  ( +) |  ( +) |  ( +) |  ( +) |  ( +) |
<?php /** * @package Joomla.Platform * @subpackage HTML * * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE */
defined('JPATH_PLATFORM') or die;
/** * Utility class for cloaking email addresses * * @package Joomla.Platform * @subpackage HTML * @since 11.1 */ abstract class JHtmlEmail { /** * Simple Javascript email Cloaker * * By default replaces an email with a mailto link with email cloaked * * @param string $mail The -mail address to cloak. * @param boolean $mailto True if text and mailing address differ * @param string $text Text for the link * @param boolean $email True if text is an e-mail address * * @return string The cloaked email. * * @since 11.1 */ public static function cloak($mail, $mailto = 1, $text = '', $email = 1) { // Convert text $mail = JHtmlEmail::_convertEncoding($mail); // Split email by @ symbol $mail = explode('@', $mail); $mail_parts = explode('.', $mail[1]); // Random number $rand = rand(1, 100000);
$replacement = "\n <script type='text/javascript'>"; $replacement .= "\n <!--"; $replacement .= "\n var prefix = 'ma' + 'il' + 'to';"; $replacement .= "\n var path = 'hr' + 'ef' + '=';"; $replacement .= "\n var addy" . $rand . " = '" . @$mail[0] . "' + '@';"; $replacement .= "\n addy" . $rand . " = addy" . $rand . " + '" . implode("' + '.' + '", $mail_parts) . "';";
if ($mailto) { // Special handling when mail text is different from mail address if ($text) { if ($email) { // Convert text $text = JHtmlEmail::_convertEncoding($text); // Split email by @ symbol $text = explode('@', $text); $text_parts = explode('.', $text[1]); $replacement .= "\n var addy_text" . $rand . " = '" . @$text[0] . "' + '@' + '" . implode("' + '.' + '", @$text_parts) . "';"; } else { $replacement .= "\n var addy_text" . $rand . " = '" . $text . "';"; } $replacement .= "\n document.write('<a ' + path + '\'' + prefix + ':' + addy" . $rand . " + '\'>');"; $replacement .= "\n document.write(addy_text" . $rand . ");"; $replacement .= "\n document.write('<\/a>');"; } else { $replacement .= "\n document.write('<a ' + path + '\'' + prefix + ':' + addy" . $rand . " + '\'>');"; $replacement .= "\n document.write(addy" . $rand . ");"; $replacement .= "\n document.write('<\/a>');"; } } else { $replacement .= "\n document.write(addy" . $rand . ");"; } $replacement .= "\n //-->"; $replacement .= '\n </script>';
// XHTML compliance no Javascript text handling $replacement .= "<script type='text/javascript'>"; $replacement .= "\n <!--"; $replacement .= "\n document.write('<span style=\'display: none;\'>');"; $replacement .= "\n //-->"; $replacement .= "\n </script>"; $replacement .= JText::_('JLIB_HTML_CLOAKING'); $replacement .= "\n <script type='text/javascript'>"; $replacement .= "\n <!--"; $replacement .= "\n document.write('</');"; $replacement .= "\n document.write('span>');"; $replacement .= "\n //-->"; $replacement .= "\n </script>";
return $replacement; }
/** * Convert encoded text * * @param string $text Text to convert * * @return string The converted text. * * @since 11.1 */ protected static function _convertEncoding($text) { // Replace vowels with character encoding $text = str_replace('a', 'a', $text); $text = str_replace('e', 'e', $text); $text = str_replace('i', 'i', $text); $text = str_replace('o', 'o', $text); $text = str_replace('u', 'u', $text);
return $text; } }
|