File Manager Lite
Dir:
/home/atomylvb/jarangomd.com/wp-content/plugins/external-image-replace/smarty/plugins
Upload
[..]
block.textformat.php (3.18 KB)
Edit
Rename
Del
function.counter.php (1.8 KB)
Edit
Rename
Del
function.cycle.php (3.3 KB)
Edit
Rename
Del
function.fetch.php (7.92 KB)
Edit
Rename
Del
function.html_checkboxes.php (8.33 KB)
Edit
Rename
Del
function.html_image.php (5.25 KB)
Edit
Rename
Del
function.html_options.php (7.22 KB)
Edit
Rename
Del
function.html_radios.php (7.35 KB)
Edit
Rename
Del
function.html_select_date.php (14.41 KB)
Edit
Rename
Del
function.html_select_time.php (13.8 KB)
Edit
Rename
Del
function.html_table.php (5.25 KB)
Edit
Rename
Del
function.mailto.php (5.29 KB)
Edit
Rename
Del
function.math.php (3.28 KB)
Edit
Rename
Del
modifier.capitalize.php (3.7 KB)
Edit
Rename
Del
modifier.date_format.php (2.23 KB)
Edit
Rename
Del
modifier.debug_print_var.php (3.87 KB)
Edit
Rename
Del
modifier.escape.php (7.28 KB)
Edit
Rename
Del
modifier.regex_replace.php (1.63 KB)
Edit
Rename
Del
modifier.replace.php (833 B)
Edit
Rename
Del
modifier.spacify.php (766 B)
Edit
Rename
Del
modifier.truncate.php (2.16 KB)
Edit
Rename
Del
modifiercompiler.cat.php (637 B)
Edit
Rename
Del
modifiercompiler.count_characters.php (916 B)
Edit
Rename
Del
modifiercompiler.count_paragraphs.php (670 B)
Edit
Rename
Del
modifiercompiler.count_sentences.php (752 B)
Edit
Rename
Del
modifiercompiler.count_words.php (988 B)
Edit
Rename
Del
modifiercompiler.default.php (781 B)
Edit
Rename
Del
modifiercompiler.from_charset.php (763 B)
Edit
Rename
Del
modifiercompiler.indent.php (723 B)
Edit
Rename
Del
modifiercompiler.lower.php (734 B)
Edit
Rename
Del
modifiercompiler.noprint.php (351 B)
Edit
Rename
Del
modifiercompiler.string_format.php (583 B)
Edit
Rename
Del
modifiercompiler.strip.php (817 B)
Edit
Rename
Del
modifiercompiler.strip_tags.php (728 B)
Edit
Rename
Del
modifiercompiler.to_charset.php (757 B)
Edit
Rename
Del
modifiercompiler.unescape.php (1.18 KB)
Edit
Rename
Del
modifiercompiler.upper.php (687 B)
Edit
Rename
Del
modifiercompiler.wordwrap.php (1.75 KB)
Edit
Rename
Del
outputfilter.trimwhitespace.php (3.48 KB)
Edit
Rename
Del
shared.escape_special_chars.php (986 B)
Edit
Rename
Del
shared.literal_compiler_param.php (1.03 KB)
Edit
Rename
Del
shared.make_timestamp.php (1.4 KB)
Edit
Rename
Del
shared.mb_str_replace.php (1.72 KB)
Edit
Rename
Del
shared.mb_unicode.php (1.5 KB)
Edit
Rename
Del
shared.mb_wordwrap.php (2.47 KB)
Edit
Rename
Del
variablefilter.htmlspecialchars.php (351 B)
Edit
Rename
Del
Edit: modifiercompiler.count_words.php
<?php /** * Smarty plugin * * @package Smarty * @subpackage PluginsModifierCompiler */ /** * Smarty count_words modifier plugin * Type: modifier<br> * Name: count_words<br> * Purpose: count the number of words in a text * * @link http://www.smarty.net/manual/en/language.modifier.count.words.php count_words (Smarty online manual) * @author Uwe Tews * * @param array $params parameters * * @return string with compiled code */ function smarty_modifiercompiler_count_words($params) { if (Smarty::$_MBSTRING) { // return 'preg_match_all(\'#[\w\pL]+#' . Smarty::$_UTF8_MODIFIER . '\', ' . $params[0] . ', $tmp)'; // expression taken from http://de.php.net/manual/en/function.str-word-count.php#85592 return 'preg_match_all(\'/\p{L}[\p{L}\p{Mn}\p{Pd}\\\'\x{2019}]*/' . Smarty::$_UTF8_MODIFIER . '\', ' . $params[ 0 ] . ', $tmp)'; } // no MBString fallback return 'str_word_count(' . $params[ 0 ] . ')'; }
Simpan