summaryrefslogtreecommitdiffstats
path: root/system/libraries
AgeCommit message (Collapse)AuthorFilesLines
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
2012-11-24keep_flashdata accepts arrayJohnathan Croom1-8/+18
2012-11-23Minor changes to Xmlrpcs.phpvkeranov1-30/+27
2012-11-23Minor changes to Xmlrpc.phpvkeranov1-13/+12
2012-11-23[ci skip] Remove a lone semicolon (rel 2d48b4f1a174473fa0539769a433ba78305c0faa)Andrey Andreev1-1/+1
2012-11-23Fix #113Andrey Andreev1-1/+2
2012-11-233.0.0-dev: Fixing the issue #2023.Ivan Tcholakov1-1/+1
CI_Cart initialization: Session data presense should be tested against NULL, not FALSE.
2012-11-22Fix issue #118 (manually implementing PR #1832)Andrey Andreev1-2/+2
2012-11-22Manually apply a fix submitted via PR #2012, #2016Andrey Andreev1-6/+8
2012-11-21Change fs permissions and add some missing index.html files (#2017)Andrey Andreev9-0/+50
2012-11-20Fix #18Andrey Andreev1-6/+9
2012-11-15Revert a change from 7a7ad782b2f125622509a77c5a6f94ad4ae0f93cAndrey Andreev1-1/+5
sscanf() is lightning fast, but doesn't have such thing as greediness and this breaks rule parameters containing a closing square bracket.
2012-11-13Merge pull request #1258 from cryode/feature/robot_mobileAndrey Andreev1-0/+1
Add mobile detection to robot user agents.
2012-11-13Clean-up following PR #1949Andrey Andreev1-29/+31
2012-11-13Merge pull request #1949 from compwright/developAndrey Andreev1-99/+132
Added support for timestamp-based migrations
2012-11-13Improved code readabilityJonathon Hill1-1/+3
2012-11-12Code style fixesJonathon Hill1-5/+6
Signed-off-by: Jonathon Hill <jhill@brandmovers.com>
2012-11-12Fix issue #1992Andrey Andreev1-1/+14
2012-11-12Some micro-optimizationsAndrey Andreev4-24/+14
2012-11-12Changed the `migration_style` config setting to `migration_type`Jonathon Hill1-7/+7
Signed-off-by: Jonathon Hill <jhill@brandmovers.com>
2012-11-12Merge remote-tracking branch 'upstream/develop' into developJonathon Hill34-495/+1535
Conflicts: user_guide_src/source/changelog.rst Signed-off-by: Jonathon Hill <jhill@brandmovers.com>
2012-11-12Fixed a mismatched constraint value when creating the migration tableJonathon Hill1-1/+1
Signed-off-by: Jonathon Hill <jhill@brandmovers.com>
2012-11-09Move the Log class to system/core/Andrey Andreev1-181/+0
It is a core class after all, I guess somebody forgot it when the rest of them were moved.