📄 news
字号:
Version 2.6.3 (June 16, 2004)----------------------------- - added escapement of '</' to '<\/' in escape:javascript modifier (c960657, Monte) - added obfuscation of protocol-string in {mailto} when using hex- encoding (bharat, messju) - enhanced auto-generated filenames for templates_c and cache (messju) - add 'nonstd' to escape modifier for escaping non-std chars, such as ms doc quote (Monte) - adjusted textformat to not output wrap chars after last para (Monte) - use tempnam() instead of unqid() to create better temporary files in smarty_core_write_file() (xces, messju) - add 'mail' to escape modifier for safe display of e-mail addresses (Monte) - add cycle function attribute "reset" to english docs (Monte) - enhanced support of numeric constants as variable-expressions (messju) - add case decentity to smarty_modifier_escape() (Konstantin A. Pelepelin, messju) - make smarty_core_write_compiled_include() php5-aware (messju) - removed unused functionality to load a subset of lines from a file (messju) - fix is_secure() should only check if a file is_readable, not if the directory where it is in is readable (sagi, messju) - fix problem displaying debug console when $default_resource_type is not "file:" (c960657, Monte) - fix permission handling with security and config_load (messju) - removed '.' from the list of default template locations in _parse_resource_name() (messju) - fix avoid warning with template_exists() on an absolute paths (messju) - fix parameters passed to resource's secure()-function (messju) - fix handling of integer values like width and delay im smarty_function_popup() (messju)Version 2.6.2 (Feb 17, 2004)---------------------------- - fix allow empty years, months and days in html_select_date's time-attribute (messju) - fix YES and NO should not be booleanized inside triple-quotes in a config-file (messju) - fix accidently slurped line following a triple-quoted value in a config-file (messju) - change default for use_sub_dirs to false (messju) - fix quoting of values in smarty_function_popup() (messju) - fix handling of hidden sections in Config_File (messju) - add handling of resources for {config_load} (messju) - fix bug when using arrays with tr_attr and td_attr in {html_table} (messju) - add unit testing to cvs core (Monte)Version 2.6.1 (Jan 16, 2004)---------------------------- - rename $smarty->tpl_error_reporting to $smarty->error_reporting (messju) - fix interpretation of $smarty->security in {html_image} (messju) - add caching of requested paths to _assemble_plugin_filepath() (messju) - fix handling of comments inside {php}- and {literal}-blocks (messju) - fix bug handling triple-quotes in config-files (BRDude, messju) - change default of request_use_auto_globals to true - $_SERVER is now preferred over $HTTP_SERVER_VARS (messju) - re-add support for $SCRIPT_NAME (messju) - reactivate $smarty->default_modifiers (messju) - add cookie persistance to debug console (Monte) - allow single-digit days and months without smarty_make_timestamp() in html_select_date (messju) - fix headers sent erroneously with cache_modified_check and fetch() (wphilips, messju) - fix config_file path bug (Marc Cabadas, Monte) - fix 'is even by' and 'is odd by' logic (Monte) - add day_empty, month_empty, year_empty and all_empty attributes to html_select_date (messju) - add table of explanation for {if} qualifiers in docs (boots) - fix bug when comparing array-keys to "selected" in html_options and html_checkboxes (messju) - add better checks for correctly nested tags when compiling (messju) - remove {$SCRIPT_NAME}. use {$smarty.server.SCRIPT_NAME} instead (messju) - remove $global_assign. assign global variables explicitly instead (messju) - fix example for count_characters in docs (boots) - add section new basic syntax section "Escaping Smarty Parsing" in docs (boots) - fix error handler call in config_load (boots) - remove warning in debug_print_var on php-resources (messju) - move function.assign.php to compiler.assign.php (messju) - add property $tpl_error_reporting (messju) - remove property $undefined. "null" is used literally instead (messju)Version 2.6.0 (Nov 19, 2003)---------------------------- - move Smarty::quote_replace() to Smarty_Compiler::_quote_replace() (messju) - remove import of of attributes of {include_php} to php's namespace. use $params[name] instead (messju)Version 2.6.0-RC3 (Nov 13, 2003)-------------------------------- - fix handling of $var.key inside [] (messju) - fix handling of assign inside {insert}-tags (messju) - fix handling if [...] inside triple-quotes in config-files (messju) - fix handling of simple-math-operators inside modifiers (Dominik, messju) - fix handling of trailing-slashes in open_basedir in smarty_core_create_dir_structure() (packman, messju)Version 2.6.0-RC2 (Oct 8, 2003)------------------------------- - apply modifiers only once to section-loop and foreach-from attrs (messju) - remove use of _smarty_cached_paths-files (messju) - remove Smarty::_plugin_implementation_exists() - use is_callable() (messju) - ignore {strip}/{/strip) inside {strip}-blocks (messju) - fixed removal of leading/trailing newlines in {strip}-blocks (messju) - fixed proper escaping of " and ' with escape:javascript (messju) - fixed bug in traversal of $smarty->plugins_dir-array. now the first matching plugin is taken (messju) - moved {strip} back into the compiler (messju) - fixed config_load: handling of section-attribute and use of multiple config-files in one template (atu, messju)Version 2.6.0-RC1 (August 11, 2003)----------------------------------- - fixed status-header for cache_modified_check under cgi-sapi (messju) - added optional parameter $cache_attrs to register_function() and register_block(). $cache_attrs is an array containing attribute- names that should be cached on calls to functions that have $cacheable set to false. (messju) - enabled registration of class-methods as callbacks for the register_*- functions (use: array('classname', 'method_name')) as callback) (messju) - added filepath caching (Monte) - added optional assign-attribute to {capture}-tag (messju) - added $cacheable-parameter to register_compiler_function() (messju) - added $cacheable-parameter with default=true to register_function() and register_block() (messju) - add math speedup to core (Dominik, Monte) - fix newlines for tags without template output (Monte) - added config-option "request_use_auto_globals" to make auto-globals be used as request vars instead of HTTP_*_VARS (messju) - speed up config_load, simplify compiling (Monte) - added block-methods for registered objects (Bharat Mediratta, messju) - ignore one char resource names like c:foo.tpl (Monte) - added default_resource_type feature (Monte) - fix bug where config file starts with hidden section (boots, Monte) - add discrete error checking pertaining to $cache_dir and $compile_dir, their existance and writability (Monte) - fixed behaviour of start=... for {counter} (messju) - fixed assign for {counter} (messju) - added params vdir, hdir and inner to html_table to allow looping over the data in various directions (messju) - allow spaces in literal tags (Paul Lockaby, Monte) - speed up compiled templates, hardcode plugin filepaths instead of dynamically calculate at runtime. (Monte) - abstract many core components from Smarty.class.php, speeding up core class instantiation (Monte) - fixed bug in _create_dir_structure() when used with open_basedir- restriction and relative paths (messju) - use DIRECTORY_SEPARATOR exclusively, keep DIR_SEP for BC (Monte) - changed "link" to "href" in html_image. "link" is still working but deprecated (messju) - html_image always renders an alt-tag now (default alt="") (messju) - fixed assign attribute for multiple counters (messju) - added simple math operators to variables (Monte) - enabled array(&$obj. 'source', 'timestamp', 'secure', 'trusted') as callback for register_resource() (messju); - enabled array(&$obj, 'method') as callback for $default_template_handler_func (messju) - remove unnecessary close/open tags from compiled templates (Monte) - fixed errornous creation of '//' in image_path in html_image (messju) - fix escapement of special chars for key vals in debug console (Monte) - fixed debug timing logic for config_load (Tom Sommer, Monte) - all in-code doc comments converted to phpDocumentor format (Greg) - moved strip from smarty core to plugin (Monte) - moved config_load from smarty core to plugin (Monte) - added &$repeat-parameter to block-functions (messju) - enabled hex-constants in function.math.php (messju) - enabled hex-constants (0x...) as function-attributes, inside if-statements and as modifier-parameters (messju) - fixed bug with passing $smarty as reference in Smarty.compiler.class (messju) - corrected output with {strip} and PHP tag newlines (Monte) - added possibility to register function-callbacks as "array(&$obj, 'method)" this affects register_function(), -block, -compiler_function, -modifier, -prefilter, -postfilter, -outputfilter-functions() and $cache_handler_func (messju) - added <labels> to html_checkboxes and html_radios (Philippe, messju) - added "labels"-options to turn off labels in html_checkboxes and _radios (messju)Version 2.5.0 (April 11, 2003)------------------------------ - fixed bug with default modifier when passing integer 0 (Monte) - change backtic syntax from $`foo` to `$foo` (Monte) - recognize $foo[][] syntax inside embedded quotes without backtics (Monte) - name=123 is passed as an integer (not a string) to plugins now (messju) - $length is now propagated to sub-values in debug_print_var (messju)Version 2.5.0-RC2 (March 26, 2003)---------------------------------- - made clear_cache() ignore compile_id, when clearing cache-groups (this is when no $tpl_file is supplied) (messju) - made onmouseout XHTML-compliant in function.popup.php (messju) - applied local-var-naming-scheme to fetch() (messju) - renamed $localvars to $_localvars in cache-file-handling-functions, added _get_auto_id()-function (messju) - swapped compile_id and cache_id in read_cache_file and write_cache_file (messju) - reverted patch for cache-file-handling (messju) - made html_radios and html_checkboxes accept "selected" instead of "checked" optionally. (messju) - made compile_id ignored in clear_cache, made order of auto_file_name $cache_id.$compile_id again, applied the the new variable-naming-scheme for cache_file_handing functions (messju) - removed notice of undefined var in _rm_auto() (messju) - added warning message when an array is passed as the "checked" value of html_radios (Monte) - fixed errormessage in _compile_smarty_ref() (messju) - updated docs for html_image "name" -> "file" (messju) - fixed bug with html_options-optgroups (Nichlas L鰂dahl, messju) - cleaned up calls to readdir() (messju) - fixed bug with passing multiple modifiers to a parameter (Monte) - updated docs for html_checkboxes, html_options and html_radios (messju) - fixed wrong default "name" attribute for html_options (messju) - html_checkboxes now expect the options as attribute "options" instead of "checkboxes. html_radios expect "options" instead of "radios". cleaned up indentiation (messju) - fixed too greedy str_replace in trimwhitespace outputfilter (messju) - html_checkboxes and html_radios passthru all unknown paramters now additionally their output is now XHTML compliant (messju) - html_options passthru all unknown paramters now (messju) - fix link functionality of html_image, also make output XHTML compatible (Hinrich Donner, Monte) - append "@" to default modifier vars/args supress possible warnings (Monte) - fix problem with escaped double quotes (Monte) - fix html_radios to not return an array (Monte) - fixed length in modifier.truncate.php (messju) - fixed handling of '$'-signs in trimwhitespace outputfilter (messju) - fix bug that makes config files recompile every time (Nagger, Monte) - add dpi functionality to html_image, change "name" parameter to "file" (Thomas Shulz, Monte) - fix height/width parameter index in html_image (Gerard, Monte) - get rid of unsetting name and script attributes to insert tag (Thomas Schulz, Monte) - changed argument order of string_format modifier back, was right in the first place (Monte)Version 2.5.0-RC1 (March 5, 2003)--------------------------------- - fixed notice in popup function (Nagger, Monte) - fix "once" var compiling for include_php (Monte) - added nl2br modifier to distribution (Monte) - added html_image to distribution (Monte) - added cat modifier to distribution (Monte) - added html_table to distribution (Monte) - added << >> <> support to if statments (SMK, Monte) - fix _assign_smarty_interface to not overwrite keys other than 'request' (Jerome Poudevigne, Monte) - added html_checkboxes to distribution (Christopher Kvarme, Monte) - added html_radios to distribution (Christopher Kvarme, Monte) - fixed string_format modifier args (wrong order) (Paul Lockaby, Monte) - use tmp file for file writes, avoid file lock race (Monte) - support syntax "$`smarty.config.foo`.tpl" for embedded vars in quotes, and allow full dollar var syntax (Monte) - add $smarty.config.varname variable for accessing config vars (Paul Lockaby, Monte) - silence PHP warnings in function.fetch.php (Eduardo, Monte) - added get_config_vars(), same basic functionality as get_template_vars() (Monte) - update get_template_vars() to be able to get individual vars (Monte) - fix minor logic in _fetch_template_info (Dennis Gearon, Monte) - fix cache groups with compile_id set (Monte) - add support for merging appended vars (messju, Monte) - allow null as function attribute value (Andr
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -