summaryrefslogtreecommitdiffstats
path: root/system/libraries
AgeCommit message (Collapse)AuthorFilesLines
2013-02-13Added small feature to profiler: total execution time countTim1-2/+4
adds additional information to profiler like: DATABASE:  test   QUERIES: 3 (0.0016s)  (Hide)
2013-02-08Fix issue #2230Andrey Andreev1-3/+3
2013-02-08[ci skip] Remove unnecessary string casts in PaginationAndrey Andreev1-3/+2
2013-02-08Merge pull request #2199 from cryode/feature/paginationAndrey Andreev1-83/+116
Multiple pagination bug fixes & optimizations.
2013-02-08[ci skip] Add a missing spaceAndrey Andreev1-1/+1
2013-02-04Cleaned up for pull request.Sajan Parikh1-3/+1
Signed-off-by: Sajan Parikh <sajan@noppix.com>
2013-02-02Added Form Validation rule for alphanum + spaces.Sajan Parikh1-0/+15
Signed-off-by: Sajan Parikh <sajan@noppix.com>
2013-01-30Fix/improve #2211Andrey Andreev1-2/+2
2013-01-29Replace CI_Upload::clean_file_name() usage with CI_Security::sanitize_filename()Andrey Andreev1-48/+2
Also applied @xeptor's fix (a big thanks) to the sanitize_filename() method and added a changelog entry for it - fixes issue #73.
2013-01-29Replace is_file() with the faster file_exists()Andrey Andreev1-5/+8
(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-29Replace is_numeric() with ctype_digit()Eric Roberts1-6/+13
Signed-off-by: Eric Roberts <eric@cryode.com>
2013-01-29Move $get assignment to if/else.Eric Roberts1-2/+4
Signed-off-by: Eric Roberts <eric@cryode.com>
2013-01-29Remove spaces from concats.Eric Roberts1-5/+5
Signed-off-by: Eric Roberts <eric@cryode.com>
2013-01-28Some micro-optimization to the Driver library loaderAndrey Andreev1-10/+9
2013-01-28Merge branch 'develop' of github.com:EllisLab/CodeIgniter into developAndrey Andreev1-1/+8
2013-01-28Libraries' filenames must be named in a ucfirst-like mannerAndrey Andreev3-1/+1
2013-01-28Remove str_replace in returngommarah1-1/+1
2013-01-28Upload library, clean_file_name function: Fix xss bug.gommarah1-0/+7
For example: If you clear this string "%%3f3f" according to the $bad array will fail. The result will be "%3f" Because str_replace() replaces left to right. Signed-off-by: xeptor <servetozkan@live.com>
2013-01-28Multiple pagination bug fixes & optimizations.Eric Roberts1-83/+107
Signed-off-by: Eric Roberts <eric@cryode.com>
2013-01-28Remove unnecessary defined('ENVIRONMENT') checksAndrey Andreev1-1/+1
As suggested in issue #2134 & PR #2149
2013-01-26Fix a code comment in Image_libvlakoff1-1/+1
constant FILE_WRITE_MODE contains octal 0666
2013-01-25Fix issue #2191.Edwin Aw1-1/+1
Signed-off-by: Edwin Aw <tkaw220@gmail.com>
2013-01-25Updated all cases of exit() to return a valid codeDaniel Hunsaker3-4/+5
Specific codes are as follows, but can easily be changed if a different order/breakdown makes more sense: - 0: Success; everything executed as planned - 1: Configuration Error; something is wrong with/in the configuration file(s) - 2: Class Not Found; what it says - 3: Driver Method Unsupported; the method you're trying to use on a Driver doesn't exist - 4: File Not Found; 404 error - 5: Database Error; something is broken in the database somewhere - 6: Invalid Input; the user attempted to submit a request with invlaid characters in 1+ key names 7 through 26 are reserved for future use - 27: Generic Error; generated by show_error() when the status code is >= 100 28 through 127 are errors generated by user applications, normally by using show_error() with a status code below 100 128 through 254 should not be used by applications, as they are reserved by system-level functions - 255: PHP Fatal Error; automatically generated by PHP for fatal errors, and therefore not allowed for our use Status codes below 100 are shifted up by 28 to place them in the user error range. It may make more sense to have these codes left alone and instead shift the CI errors into the 101 through 127 space, but that's not what I opted for here. It would probably also be a good idea to replace the hard-coded numbers with constants or some such, but I was in a bit of a hurry when I made these changes, so I didn't look around for the best place to do this. With proper guidance, I could easily amend this commit with another that uses such constant values. Signed-off-by: Daniel Hunsaker <danhunsaker@gmail.com>
2013-01-15A few adjustments to previous commitvlakoff1-1/+1
2013-01-14Replace is_null() with === / !== NULLvlakoff8-13/+13
Exact same behavior, but faster. I also think it's more readable.
2013-01-10A tiny improvementAndrey Andreev1-3/+2
2013-01-09fix imagejpeg() parameter, should be NULL instead of empty stringTed Wood1-1/+1
2013-01-03Fix #2108Andrey Andreev1-1/+1
2013-01-01[ci skip] Happy new yearAndrey Andreev33-33/+33
2012-12-17Merge pull request #2077 from AndrewPodner/developAndrey Andreev4-25/+25
update for Issue #2064 - take 2
2012-12-17update for Issue #2064 (changed docblocks which return $this or only call a ↵Andrew Podner4-25/+25
method that returns $this to @return CI_DB_class_name)
2012-12-17Fix 2073Andrey Andreev1-1/+1
2012-12-17Fix #2074Andrey Andreev1-1/+1
2012-12-14Fix issue #539Andrey Andreev1-4/+10
Form validation language line keys were not prefixed. They are now prefixed with 'form_validation_' in order to avoid collisions. The old keys will still work if a prefixed match is not found, but are DEPRECATED and will be removed in the next major version. Also added upgrade notes and changelog entries for the new error message format from PR #961.
2012-12-12Format tweaksEric Roberts1-2/+2
Signed-off-by: Eric Roberts <eric@cryode.com>
2012-12-12Merge branch 'refs/heads/develop' into feature/form_error_msgsEric Roberts40-2546/+6124
Conflicts: system/language/english/form_validation_lang.php user_guide_src/source/libraries/form_validation.rst Signed-off-by: Eric Roberts <eric@cryode.com>
2012-12-03Add min_width and min_height options to the Upload classAndrey Andreev1-0/+52
(manually implementing outdated PR #636)
2012-12-03[ci skip] Cleaned some spacesAndrey Andreev10-19/+15
2012-11-28Fix #2037Andrey Andreev1-6/+8
2012-11-28Remove CommentWilliam Knauss1-1/+0
As requested removed useless comment
2012-11-27Children DriversWilliam Knauss1-3/+11
This allows developers to create children drivers that are not prefix with "CI_". This is a nity grity change, however it keeps with the mindset that class names that start with CI_ are typically overrides of core classes.
2012-11-26Add 'valid_url' rule to Form Validation (issue #1966)Andrey Andreev1-0/+42
2012-11-26CI_Email::print_debugger() option to limit the type of data to be printedAndrey Andreev1-2/+23
(an alternative to PR #1759; partially solves issue #1742)
2012-11-26Switch CI_Form_validation:: to publicAndrey Andreev1-1/+1
Makes it easier to access the data after validation (issue #1208)
2012-11-26Manually implement PR #2033Andrey Andreev1-1/+1
Check for an empty encryption_key shouldn't use strict comparison.
2012-11-25Merge pull request #2026 from johnathancroom/keep_flash_data_arrayAndrey Andreev1-1/+12
keep_flashdata accepts array
2012-11-25Improved array keey_flashdata + ChangelogJohnathan Croom1-13/+15
2012-11-25Revert some of the changes from PR #2029Andrey Andreev1-42/+24
We have file naming conventions and any extension filename needs to match MY_<orig_filename>, so we don't need to check for lowercase equivalents.
2012-11-25Added support for extending individual driver classes and driver unit testsdchill423-50/+107
Signed-off-by: dchill42 <dchill42@gmail.com>
2012-11-24Requested changed to keep_flashdataJohnathan Croom1-4/+3