- Timestamp:
- 2013/07/23 10:39:42 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_13-dev/data/module/Smarty/libs/plugins/function.math.php
r20119 r23000 38 38 39 39 // match all vars in equation, make sure all are passed 40 preg_match_all("!(?:0x[a-fA-F0-9]+)|([a-zA-Z][a-zA-Z0-9_] +)!",$equation, $match);40 preg_match_all("!(?:0x[a-fA-F0-9]+)|([a-zA-Z][a-zA-Z0-9_]*)!",$equation, $match); 41 41 $allowed_funcs = array('int','abs','ceil','cos','exp','floor','log','log10', 42 42 'max','min','pi','pow','rand','round','sin','sqrt','srand','tan');
Note: See TracChangeset
for help on using the changeset viewer.