/home/techb158/exp.abdallabala.com/vendor/smarty/smarty/libs/plugins
NameSizeModeActions
block.textformat.php36640644editdlrm
function.counter.php18230644editdlrm
function.cycle.php33080644editdlrm
function.fetch.php80680644editdlrm
function.html_checkboxes.php95920644editdlrm
function.html_image.php56680644editdlrm
function.html_options.php82460644editdlrm
function.html_radios.php84340644editdlrm
function.html_select_date.php151830644editdlrm
function.html_select_time.php143750644editdlrm
function.html_table.php53750644editdlrm
function.mailto.php53860644editdlrm
function.math.php37850644editdlrm
modifier.capitalize.php42110644editdlrm
modifier.date_format.php26910644editdlrm
modifier.debug_print_var.php39290644editdlrm
modifier.escape.php96690644editdlrm
modifier.mb_wordwrap.php23460644editdlrm
modifier.regex_replace.php16570644editdlrm
modifier.replace.php9990644editdlrm
modifier.spacify.php7560644editdlrm
modifier.truncate.php22310644editdlrm
modifiercompiler.cat.php6120644editdlrm
modifiercompiler.count_characters.php9180644editdlrm
modifiercompiler.count_paragraphs.php6590644editdlrm
modifiercompiler.count_sentences.php7450644editdlrm
modifiercompiler.count_words.php9790644editdlrm
modifiercompiler.default.php7700644editdlrm
modifiercompiler.escape.php51250644editdlrm
modifiercompiler.from_charset.php7520644editdlrm
modifiercompiler.indent.php7120644editdlrm
modifiercompiler.lower.php7240644editdlrm
modifiercompiler.noprint.php3400644editdlrm
modifiercompiler.string_format.php5740644editdlrm
modifiercompiler.strip.php7980644editdlrm
modifiercompiler.strip_tags.php7200644editdlrm
modifiercompiler.to_charset.php7460644editdlrm
modifiercompiler.unescape.php11900644editdlrm
modifiercompiler.upper.php6780644editdlrm
modifiercompiler.wordwrap.php11120644editdlrm
outputfilter.trimwhitespace.php37770644editdlrm
shared.escape_special_chars.php9770644editdlrm
shared.literal_compiler_param.php10470644editdlrm
shared.make_timestamp.php14830644editdlrm
shared.mb_str_replace.php17900644editdlrm
shared.mb_unicode.php15300644editdlrm
variablefilter.htmlspecialchars.php4510644editdlrm
Edit: /home/techb158/exp.abdallabala.com/vendor/smarty/smarty/libs/plugins/function.mailto.php (5386B)
* @author credits to Jason Sweat (added cc, bcc and subject functionality) * * @param array $params parameters * * @return string */ function smarty_function_mailto($params) { static $_allowed_encoding = array('javascript' => true, 'javascript_charcode' => true, 'hex' => true, 'none' => true); $extra = ''; if (empty($params[ 'address' ])) { trigger_error("mailto: missing 'address' parameter", E_USER_WARNING); return; } else { $address = $params[ 'address' ]; } $text = $address; // netscape and mozilla do not decode %40 (@) in BCC field (bug?) // so, don't encode it. $search = array('%40', '%2C'); $replace = array('@', ','); $mail_parms = array(); foreach ($params as $var => $value) { switch ($var) { case 'cc': case 'bcc': case 'followupto': if (!empty($value)) { $mail_parms[] = $var . '=' . str_replace($search, $replace, rawurlencode($value)); } break; case 'subject': case 'newsgroups': $mail_parms[] = $var . '=' . rawurlencode($value); break; case 'extra': case 'text': $$var = $value; // no break default: } } if ($mail_parms) { $address .= '?' . join('&', $mail_parms); } $encode = (empty($params[ 'encode' ])) ? 'none' : $params[ 'encode' ]; if (!isset($_allowed_encoding[ $encode ])) { trigger_error( "mailto: 'encode' parameter must be none, javascript, javascript_charcode or hex", E_USER_WARNING ); return; } // FIXME: (rodneyrehm) document.write() excues me what? 1998 has passed! if ($encode === 'javascript') { $string = 'document.write(\'' . $text . '\');'; $js_encode = ''; for ($x = 0, $_length = strlen($string); $x < $_length; $x++) { $js_encode .= '%' . bin2hex($string[ $x ]); } return ''; } elseif ($encode === 'javascript_charcode') { $string = '' . $text . ''; for ($x = 0, $y = strlen($string); $x < $y; $x++) { $ord[] = ord($string[ $x ]); } $_ret = "\n"; return $_ret; } elseif ($encode === 'hex') { preg_match('!^(.*)(\?.*)$!', $address, $match); if (!empty($match[ 2 ])) { trigger_error("mailto: hex encoding does not work with extra attributes. Try javascript.", E_USER_WARNING); return; } $address_encode = ''; for ($x = 0, $_length = strlen($address); $x < $_length; $x++) { if (preg_match('!\w!' . Smarty::$_UTF8_MODIFIER, $address[ $x ])) { $address_encode .= '%' . bin2hex($address[ $x ]); } else { $address_encode .= $address[ $x ]; } } $text_encode = ''; for ($x = 0, $_length = strlen($text); $x < $_length; $x++) { $text_encode .= '&#x' . bin2hex($text[ $x ]) . ';'; } $mailto = "mailto:"; return '' . $text_encode . ''; } else { // no encoding return '' . $text . ''; } }