summaryrefslogtreecommitdiffstats
path: root/system/helpers
AgeCommit message (Collapse)AuthorFilesLines
2013-10-17Replace the last rand() with mt_rand()vlakoff1-7/+7
Better entropy, faster. Also fixed a few "it's" typos.
2013-10-04parse $extra attributes in form_dropdown.Ahmad Anbar1-5/+2
2013-09-13Another one following #2639Andrey Andreev1-1/+5
2013-09-13An update to the #2639 fixAndrey Andreev1-0/+4
2013-09-13Fix array notation fields for set_select() as wellAndrey Andreev1-27/+8
2013-09-13Fix #2639Andrey Andreev1-60/+19
2013-08-22count number of characters (with mb_strlen) instead of counting number of ↵Mohammad Javad Naderi1-4/+4
bytes with strlen
2013-08-22remove newline from end of fileMohammad Javad Naderi1-1/+1
2013-08-22character_limiter now works correct for UTF-8 stringsMohammad Javad Naderi1-5/+5
strlen() doesn't return the actual length for unicode strings. For example strlen('سلام') returns 8, but length of سلام is 4. strlen(utf8_decode('سلام')) returns correct value 4. Reference: http://www.php.net/manual/de/function.strlen.php#45407
2013-07-28Polishing Form helpervlakoff1-1/+6
2013-07-28Form helper _attributes_to_string() micro-optimizationvlakoff1-5/+5
As $attributes should be most of the times an array, let's save an is_string() call.
2013-07-27More logical ordervlakoff1-11/+11
2013-07-27Form helper: refactor form_open() and _attributes_to_string()vlakoff1-38/+18
2013-07-26Fix #2560Andrey Andreev1-2/+10
2013-07-26Fix #2558Andrey Andreev1-1/+1
2013-07-23Loader changes & optimizations related to issue #2551Andrey Andreev1-1/+1
2013-07-19[ci skip] Simplify get_file_info()Andrey Andreev1-1/+1
2013-07-18Add color customization to the CAPTCHA helperAndrey Andreev1-17/+37
Ref: Issue #867 & PRs #1405, #2485
2013-07-18Micro-optimization on base_url() & site_url()Andrey Andreev1-6/+6
2013-07-18Add that parameter for real :)Andrey Andreev1-1/+1
2013-07-18Add an optional parameter to URL helpers base_url() and site_url() ↵Andrey Andreev1-7/+21
(supersedes #2535)
2013-07-17[ci skip] Remove some empty linesAndrey Andreev2-2/+2
2013-05-18Required arg in between optional onesRasmus Lerdorf1-2/+2
Signed-off-by: Rasmus Lerdorf <rasmus@php.net>
2013-05-18The date_range() function is a bit brokenRasmus Lerdorf1-3/+3
Neither $unix_time nor $start_date were defined here Signed-off-by: Rasmus Lerdorf <rasmus@php.net>
2013-04-14final change (extra space)ash1-1/+1
2013-04-14newline at endash1-1/+1
2013-04-14eolash1-1/+0
2013-04-14eol 2ash1-0/+1
2013-04-14eol test.ash1-1/+1
2013-04-10removed sanity checks (developer-supplied value, not user input), added ↵ash1-15/+3
changelog entry, changed variable names
2013-04-10typo changeash1-3/+3
Uses the same defaults as were hard coded in (8 chars in length, 0-9a-aA-Z). Small change in this file means less code elsewhere when generating random character strings for the captcha word. all existing code will work the same.
2013-04-10Add options in create_captcha() to specify the randomly generated captcha ↵ash1-5/+16
word length and character pool Uses the same defaults as were hard coded in (8 chars in length, 0-9a-aA-Z). Small change in this file means less code elsewhere when generating random character strings for the captcha word.
2013-03-26Merge pull request #2348 from nisheeth-barthwal/feature/nested_keysAndrey Andreev1-7/+6
Added Parsing Capabilities to Input class for nested array keys
2013-03-26Code fixes in line with suggestionsnisheeth-barthwal1-10/+5
2013-03-25Simplified notation parsing and other cosmetic fixesnisheeth-barthwal1-32/+2
2013-03-24Fixed error in form_textarea helper functionZachary Cardoza1-1/+0
Reverted from GitHub edited version to remove document line end character. Good to merge now.
2013-03-24Revert "Fixed error in Form Helper textarea function"Zachary Cardoza1-1/+2
This reverts commit e15d1be514dad1df7a3c38d6265566692ecf1260.
2013-03-23Removed $recurse parameter in lieu of auto parsing. Changed "provision" entry.nisheeth-barthwal1-1/+1
2013-03-22Fixed error in Form Helper textarea functionZach Cardoza1-2/+1
Function had declaration of unused $name variable which caused errors.
2013-03-21Added array notation for keys in Input librarynisheeth-barthwal1-5/+39
2013-02-28Text helper: convert_accented_characters() optimizationvlakoff1-5/+8
Thanks to static variables, array_keys() and array_values() are now executed once only.
2013-02-18Fixed form helper variable errorBo-Yi Wu1-1/+1
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2013-02-15Fix #2247Andrey Andreev1-6/+3
2013-02-08Allow non-string values to be used as captcha words (issue #2215)Andrey Andreev1-1/+5
2013-01-29Replace is_file() with the faster file_exists()Andrey Andreev4-25/+47
(where it makes sense) Also: - Implemented caching of configuration arrays for smileys, foreign characters and doctypes. - Implemented cascading-style loading of configuration files (except for library configs, DB and constants.php).
2013-01-28Fix auto_link() for the Nth timeAndrey Andreev1-9/+10
- anchor() is for local links and breaks ones that don't have a protocol prefix - Allow :// links (no actual protocol specified) - Further simplified the URL regular expression
2013-01-28Remove unnecessary defined('ENVIRONMENT') checksAndrey Andreev3-3/+3
As suggested in issue #2134 & PR #2149
2013-01-21Adjust regex.Eric Roberts1-1/+1
2013-01-19Remove whitespace from empty lines.Eric Roberts1-5/+5
Signed-off-by: Eric Roberts <eric@cryode.com>
2013-01-18Fix and optimize auto_link() URL helper function.Eric Roberts1-31/+22
Signed-off-by: Eric Roberts <eric@cryode.com>