codeigniter_vender 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +1 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +10 -0
- data/README.md +39 -0
- data/Rakefile +4 -2
- data/VERSION +1 -1
- data/bin/ci +5 -0
- data/codeigniter_vender.gemspec +355 -344
- data/lib/codeigniter/commands/app.rb +5 -0
- data/lib/codeigniter/commands/help.rb +7 -0
- data/lib/codeigniter/commands.rb +19 -0
- data/lib/{tasks/app.rake → codeigniter/tasks/ci.rake} +1 -1
- data/lib/codeigniter_vender.rb +26 -1
- data/lib/generators/base.rb +11 -0
- data/{generators → lib/generators/ci}/ci_app/USAGE +0 -0
- data/lib/generators/ci/ci_app/ci_app_generator.rb +10 -0
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/application/.htaccess +1 -0
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/application/cache/.htaccess +1 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/application/config → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/application/cache}/index.html +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/application/config/autoload.php +18 -18
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/application/config/config.php +62 -31
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/application/config/constants.php +7 -7
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/application/config/database.php +20 -13
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/application/config/doctypes.php +1 -1
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/application/config/foreign_chars.php +64 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/application/config/hooks.php +1 -1
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/application/controllers → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/application/config}/index.html +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/application/config/mimes.php +5 -5
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/application/config/profiler.php +17 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/application/config/routes.php +7 -9
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/application/config/smileys.php +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/application/config/user_agents.php +7 -4
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/application/errors → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/application/controllers}/index.html +0 -0
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/application/controllers/welcome.php +17 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/application/helpers → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/application/core}/index.html +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/application/errors/error_404.php +1 -1
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/application/errors/error_db.php +1 -1
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/application/errors/error_general.php +1 -1
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/application/errors/error_php.php +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/application/hooks → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/application/errors}/index.html +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/application → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/application/helpers}/index.html +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/application/language/english → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/application/hooks}/index.html +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/application/libraries → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/application}/index.html +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/application/models → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/application/language/english}/index.html +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/application/views → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/application/libraries}/index.html +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/cache → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/application/logs}/index.html +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/codeigniter → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/application/models}/index.html +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/application/third_party}/index.html +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/mssql → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/application/views}/index.html +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/application/views/welcome_message.php +6 -4
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/index.php +166 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/license.txt +1 -2
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/.htaccess +1 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/core}/Benchmark.php +5 -5
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/core/CodeIgniter.php +340 -0
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/core/Common.php +503 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/core}/Config.php +126 -57
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/core/Controller.php +67 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/core}/Exceptions.php +24 -20
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/core}/Hooks.php +14 -15
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/core/Input.php +652 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Language.php → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/core/Lang.php} +33 -16
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/core}/Loader.php +374 -364
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/core/Model.php +56 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/core}/Output.php +140 -93
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/core}/Router.php +185 -115
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/core}/URI.php +78 -58
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/core/Utf8.php +165 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/mysql → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/core}/index.html +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/DB.php +32 -27
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/DB_active_rec.php +478 -225
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/DB_cache.php +30 -30
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/DB_driver.php +199 -175
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/DB_forge.php +43 -36
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/DB_result.php +115 -52
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/DB_utility.php +69 -44
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/mysqli → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/database/drivers}/index.html +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/oci8 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/database/drivers/mssql}/index.html +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/drivers/mssql/mssql_driver.php +64 -67
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/drivers/mssql/mssql_forge.php +19 -19
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/drivers/mssql/mssql_result.php +14 -14
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/drivers/mssql/mssql_utility.php +3 -38
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/odbc → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/database/drivers/mysql}/index.html +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/drivers/mysql/mysql_driver.php +155 -63
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/drivers/mysql/mysql_forge.php +36 -21
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/drivers/mysql/mysql_result.php +14 -14
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/drivers/mysql/mysql_utility.php +25 -60
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/postgre → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/database/drivers/mysqli}/index.html +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/drivers/mysqli/mysqli_driver.php +131 -62
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/drivers/mysqli/mysqli_forge.php +17 -17
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/drivers/mysqli/mysqli_result.php +14 -14
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/drivers/mysqli/mysqli_utility.php +4 -40
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/sqlite → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/database/drivers/oci8}/index.html +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/drivers/oci8/oci8_driver.php +55 -58
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/drivers/oci8/oci8_forge.php +18 -18
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/drivers/oci8/oci8_result.php +17 -17
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/drivers/oci8/oci8_utility.php +2 -37
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/database → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/database/drivers/odbc}/index.html +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/drivers/odbc/odbc_driver.php +58 -61
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/drivers/odbc/odbc_forge.php +21 -21
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/drivers/odbc/odbc_result.php +11 -11
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/drivers/odbc/odbc_utility.php +5 -50
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/fonts → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/database/drivers/postgre}/index.html +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/drivers/postgre/postgre_driver.php +61 -61
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/drivers/postgre/postgre_forge.php +84 -33
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/drivers/postgre/postgre_result.php +11 -11
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/drivers/postgre/postgre_utility.php +2 -38
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/database/drivers/sqlite}/index.html +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/drivers/sqlite/sqlite_driver.php +65 -65
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/drivers/sqlite/sqlite_forge.php +18 -18
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/drivers/sqlite/sqlite_result.php +12 -12
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/database/drivers/sqlite/sqlite_utility.php +3 -48
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/database}/index.html +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/language/english → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/fonts}/index.html +0 -0
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/fonts/texb.ttf +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/helpers/array_helper.php +46 -6
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/helpers/captcha_helper.php +246 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/helpers/cookie_helper.php +7 -48
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/helpers/date_helper.php +90 -90
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/helpers/directory_helper.php +18 -22
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/helpers/download_helper.php +8 -8
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/helpers/email_helper.php +4 -4
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/helpers/file_helper.php +45 -39
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/helpers/form_helper.php +59 -35
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/helpers/html_helper.php +20 -14
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/language → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/helpers}/index.html +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/helpers/inflector_helper.php +27 -16
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/helpers/language_helper.php +3 -3
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/helpers/number_helper.php +15 -14
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/helpers/path_helper.php +7 -7
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/helpers/security_helper.php +49 -15
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/helpers/smiley_helper.php +29 -23
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/helpers/string_helper.php +45 -28
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/helpers/text_helper.php +195 -124
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/helpers/typography_helper.php +32 -9
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/helpers/url_helper.php +17 -15
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/helpers/xml_helper.php +21 -12
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system}/index.html +0 -0
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/language/english/calendar_lang.php +51 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/language/english/date_lang.php +1 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/language/english/db_lang.php +2 -1
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/language/english/email_lang.php +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/language/english/form_validation_lang.php +5 -4
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/language/english/ftp_lang.php +1 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/language/english/imglib_lang.php +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/logs → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/language/english}/index.html +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/language/english/number_lang.php +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/language/english/profiler_lang.php +4 -1
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/language/english/unit_test_lang.php +1 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/language/english/upload_lang.php +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/plugins → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/language}/index.html +0 -0
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/libraries/Cache/Cache.php +216 -0
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/libraries/Cache/drivers/Cache_apc.php +151 -0
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/libraries/Cache/drivers/Cache_dummy.php +129 -0
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/libraries/Cache/drivers/Cache_file.php +196 -0
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/libraries/Cache/drivers/Cache_memcached.php +209 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/libraries/Calendar.php +81 -83
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/libraries/Cart.php +73 -73
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/libraries/Driver.php +229 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/libraries/Email.php +209 -188
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/libraries/Encrypt.php +78 -15
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/libraries/Form_validation.php +265 -228
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/libraries/Ftp.php +46 -4
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/libraries/Image_lib.php +36 -43
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/libraries/Javascript.php +871 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/libraries/Log.php +29 -32
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/libraries/Pagination.php +64 -29
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/libraries/Parser.php +63 -24
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/libraries/Profiler.php +502 -0
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/libraries/Security.php +737 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/libraries/Session.php +33 -16
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/libraries/Sha1.php +14 -14
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/libraries/Table.php +172 -84
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/libraries/Trackback.php +129 -128
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/libraries/Typography.php +84 -80
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/libraries/Unit_test.php +105 -69
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/libraries/Upload.php +273 -235
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/libraries/User_agent.php +150 -115
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/libraries/Xmlrpc.php +193 -179
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/libraries/Xmlrpcs.php +91 -83
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/system/libraries/Zip.php +110 -46
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/images → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/libraries}/index.html +0 -0
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/system/libraries/javascript/Jquery.php +1071 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/changelog.html +182 -29
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/database/active_record.html +48 -48
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/database/caching.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/database/call_function.html +3 -3
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/database/configuration.html +14 -5
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/database/connecting.html +5 -3
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/database/examples.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/database/fields.html +3 -3
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/database/forge.html +3 -3
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/database/helpers.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/database/index.html +3 -3
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/database/queries.html +4 -4
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/database/results.html +17 -17
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/database/table_data.html +3 -3
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/database/transactions.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/database/utilities.html +21 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/doc_style/index.html +4 -3
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/doc_style/template.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/general/alternative_php.html +4 -4
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/general/ancillary_classes.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/general/autoloader.html +3 -4
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/general/caching.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/general/common_functions.html +9 -3
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/general/controllers.html +32 -29
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/general/core_classes.html +10 -9
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/user_guide/general/creating_drivers.html +100 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/general/creating_libraries.html +8 -13
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/general/credits.html +4 -4
- data/{generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/profiling.html → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/user_guide/general/drivers.html} +21 -21
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/general/errors.html +5 -3
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/general/helpers.html +4 -4
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/general/hooks.html +2 -4
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/general/libraries.html +9 -5
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/general/managing_apps.html +24 -24
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/general/models.html +13 -13
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/user_guide/general/profiling.html +176 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/general/quick_reference.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/general/requirements.html +3 -3
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/general/reserved_names.html +4 -33
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/general/routing.html +7 -17
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/general/security.html +3 -3
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/general/styleguide.html +71 -79
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/general/urls.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/general/views.html +13 -13
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/helpers/array_helper.html +53 -2
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/user_guide/helpers/captcha_helper.html +195 -0
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/user_guide/helpers/cookie_helper.html +107 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/helpers/date_helper.html +6 -6
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/helpers/directory_helper.html +6 -6
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/helpers/download_helper.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/helpers/email_helper.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/helpers/file_helper.html +5 -4
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/helpers/form_helper.html +9 -9
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/helpers/html_helper.html +6 -6
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/helpers/inflector_helper.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/helpers/language_helper.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/helpers/number_helper.html +9 -3
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/helpers/path_helper.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/helpers/security_helper.html +12 -5
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/helpers/smiley_helper.html +12 -12
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/helpers/string_helper.html +11 -9
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/helpers/text_helper.html +21 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/helpers/typography_helper.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/helpers/url_helper.html +7 -8
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/helpers/xml_helper.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/images/appflowchart.gif +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/images/arrow.gif +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/images/ci_logo.jpg +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/images/ci_logo_flame.jpg +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/images/ci_quick_ref.png +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/images/codeigniter_1.7.1_helper_reference.pdf +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/images/codeigniter_1.7.1_helper_reference.png +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/images/codeigniter_1.7.1_library_reference.pdf +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/images/codeigniter_1.7.1_library_reference.png +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/images/file.gif +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/images/folder.gif +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/images/nav_bg_darker.jpg +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/images/nav_separator_darker.jpg +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/images/nav_toggle_darker.jpg +0 -0
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/user_guide/images/reactor-bullet.png +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/images/smile.gif +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/images/transparent.gif +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/index.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/installation/downloads.html +10 -6
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/installation/index.html +10 -5
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/installation/troubleshooting.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/installation/upgrade_120.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/installation/upgrade_130.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/installation/upgrade_131.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/installation/upgrade_132.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/installation/upgrade_133.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/installation/upgrade_140.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/installation/upgrade_141.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/installation/upgrade_150.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/installation/upgrade_152.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/installation/upgrade_153.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/installation/upgrade_154.html +5 -5
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/installation/upgrade_160.html +6 -6
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/installation/upgrade_161.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/installation/upgrade_162.html +5 -5
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/installation/upgrade_163.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/installation/upgrade_170.html +5 -5
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/installation/upgrade_171.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/installation/upgrade_172.html +7 -3
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/user_guide/installation/upgrade_200.html +131 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/installation/upgrade_b11.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/installation/upgrading.html +3 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/libraries/benchmark.html +4 -4
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/user_guide/libraries/caching.html +193 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/libraries/calendar.html +3 -3
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/libraries/cart.html +345 -345
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/libraries/config.html +4 -4
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/libraries/email.html +4 -4
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/libraries/encryption.html +49 -7
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/libraries/file_uploading.html +15 -15
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/libraries/form_validation.html +22 -25
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/libraries/ftp.html +21 -8
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/libraries/image_lib.html +4 -3
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/libraries/input.html +69 -31
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/user_guide/libraries/javascript.html +246 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/libraries/language.html +3 -3
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/libraries/loader.html +56 -15
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/libraries/output.html +19 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/libraries/pagination.html +19 -8
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/libraries/parser.html +6 -2
- data/lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0/user_guide/libraries/security.html +135 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/libraries/sessions.html +18 -7
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/libraries/table.html +33 -10
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/libraries/trackback.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/libraries/typography.html +5 -5
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/libraries/unit_testing.html +27 -6
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/libraries/uri.html +3 -3
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/libraries/user_agent.html +27 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/libraries/xmlrpc.html +25 -23
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/libraries/zip.html +13 -3
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/license.html +3 -3
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/nav/hacks.txt +2 -1
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/nav/moo.fx.js +1 -37
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/nav/nav.js +27 -24
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/nav/prototype.lite.js +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/nav/user_guide_menu.js +0 -0
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/overview/appflow.html +3 -3
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/overview/at_a_glance.html +5 -15
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/overview/cheatsheets.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/overview/features.html +3 -5
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/overview/getting_started.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/overview/goals.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/overview/index.html +3 -3
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/overview/mvc.html +2 -2
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/toc.html +14 -15
- data/{generators/ci_app/templates/CodeIgniter_1.7.2 → lib/generators/ci/ci_app/templates/CodeIgniterLibs/CodeIgniter_2.0.0}/user_guide/userguide.css +9 -0
- data/{generators → lib/generators/ci}/ci_app/templates/README +0 -0
- data/lib/generators/ci/ci_auth/USAGE +8 -0
- data/lib/generators/ci/ci_auth/ci_auth_generator.rb +11 -0
- data/lib/generators/ci/ci_auth/templates/auth.php +133 -0
- data/lib/generators/ci/ci_auth/templates/auth_model.php +52 -0
- data/lib/generators/ci/ci_auth/templates/login_form.php +29 -0
- data/{generators → lib/generators/ci}/ci_controller/USAGE +0 -0
- data/{generators → lib/generators/ci}/ci_controller/ci_controller_generator.rb +0 -0
- data/{generators → lib/generators/ci}/ci_controller/templates/ci_controller.php.erb +0 -0
- data/{generators → lib/generators/ci}/ci_controller/templates/ci_view.php.erb +0 -0
- data/{generators → lib/generators/ci}/ci_layout/USAGE +0 -0
- data/{generators → lib/generators/ci}/ci_layout/ci_layout_generator.rb +0 -0
- data/{generators → lib/generators/ci}/ci_layout/templates/application_layout.php.erb +0 -0
- data/{generators → lib/generators/ci}/ci_model/USAGE +0 -0
- data/{generators → lib/generators/ci}/ci_model/ci_model_generator.rb +0 -0
- data/{generators → lib/generators/ci}/ci_model/templates/ci_model.php.erb +0 -0
- data/{generators → lib/generators/ci}/ci_model/templates/model.rb +0 -0
- data/{generators → lib/generators/ci}/ci_model/templates/model_migration.rb.erb +0 -0
- metadata +358 -347
- data/README +0 -40
- data/generators/ci_app/ci_app_generator.rb +0 -12
- data/generators/ci_app/templates/CodeIgniter_1.7.2/index.php +0 -118
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/controllers/welcome.php +0 -17
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/codeigniter/Base4.php +0 -69
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/codeigniter/Base5.php +0 -56
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/codeigniter/CodeIgniter.php +0 -280
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/codeigniter/Common.php +0 -421
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/codeigniter/Compat.php +0 -93
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/fonts/texb.ttf +0 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/compatibility_helper.php +0 -498
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/language/english/calendar_lang.php +0 -51
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/language/english/scaffolding_lang.php +0 -17
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/language/english/validation_lang.php +0 -24
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Controller.php +0 -127
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Input.php +0 -1067
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Model.php +0 -83
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Profiler.php +0 -392
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Validation.php +0 -875
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/plugins/captcha_pi.php +0 -356
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/plugins/js_calendar_pi.php +0 -629
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/Scaffolding.php +0 -291
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/images/background.jpg +0 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/images/logo.jpg +0 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/index.html +0 -10
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/views/add.php +0 -32
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/views/delete.php +0 -9
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/views/edit.php +0 -33
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/views/footer.php +0 -10
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/views/header.php +0 -29
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/views/index.html +0 -10
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/views/no_data.php +0 -8
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/views/stylesheet.css +0 -143
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/views/view.php +0 -27
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/plugins.html +0 -127
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/scaffolding.html +0 -147
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/compatibility_helper.html +0 -118
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/cookie_helper.html +0 -147
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/validation.html +0 -740
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/nav/moo.fx.pack.js +0 -241
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* CodeIgniter
|
|
4
4
|
*
|
|
5
|
-
* An open source application development framework for PHP
|
|
5
|
+
* An open source application development framework for PHP 5.1.6 or newer
|
|
6
6
|
*
|
|
7
7
|
* @package CodeIgniter
|
|
8
8
|
* @author ExpressionEngine Dev Team
|
|
9
|
-
* @copyright Copyright (c) 2008 -
|
|
9
|
+
* @copyright Copyright (c) 2008 - 2011, EllisLab, Inc.
|
|
10
10
|
* @license http://codeigniter.com/user_guide/license.html
|
|
11
11
|
* @link http://codeigniter.com
|
|
12
12
|
* @since Version 1.0
|
|
@@ -82,7 +82,7 @@ class CI_Email {
|
|
|
82
82
|
*
|
|
83
83
|
* The constructor can be passed an array of config values
|
|
84
84
|
*/
|
|
85
|
-
function
|
|
85
|
+
public function __construct($config = array())
|
|
86
86
|
{
|
|
87
87
|
if (count($config) > 0)
|
|
88
88
|
{
|
|
@@ -106,9 +106,8 @@ class CI_Email {
|
|
|
106
106
|
* @param array
|
|
107
107
|
* @return void
|
|
108
108
|
*/
|
|
109
|
-
function initialize($config = array())
|
|
109
|
+
public function initialize($config = array())
|
|
110
110
|
{
|
|
111
|
-
$this->clear();
|
|
112
111
|
foreach ($config as $key => $val)
|
|
113
112
|
{
|
|
114
113
|
if (isset($this->$key))
|
|
@@ -125,11 +124,14 @@ class CI_Email {
|
|
|
125
124
|
}
|
|
126
125
|
}
|
|
127
126
|
}
|
|
127
|
+
$this->clear();
|
|
128
128
|
|
|
129
129
|
$this->_smtp_auth = ($this->smtp_user == '' AND $this->smtp_pass == '') ? FALSE : TRUE;
|
|
130
130
|
$this->_safe_mode = ((boolean)@ini_get("safe_mode") === FALSE) ? FALSE : TRUE;
|
|
131
|
+
|
|
132
|
+
return $this;
|
|
131
133
|
}
|
|
132
|
-
|
|
134
|
+
|
|
133
135
|
// --------------------------------------------------------------------
|
|
134
136
|
|
|
135
137
|
/**
|
|
@@ -138,7 +140,7 @@ class CI_Email {
|
|
|
138
140
|
* @access public
|
|
139
141
|
* @return void
|
|
140
142
|
*/
|
|
141
|
-
function clear($clear_attachments = FALSE)
|
|
143
|
+
public function clear($clear_attachments = FALSE)
|
|
142
144
|
{
|
|
143
145
|
$this->_subject = "";
|
|
144
146
|
$this->_body = "";
|
|
@@ -146,6 +148,8 @@ class CI_Email {
|
|
|
146
148
|
$this->_header_str = "";
|
|
147
149
|
$this->_replyto_flag = FALSE;
|
|
148
150
|
$this->_recipients = array();
|
|
151
|
+
$this->_cc_array = array();
|
|
152
|
+
$this->_bcc_array = array();
|
|
149
153
|
$this->_headers = array();
|
|
150
154
|
$this->_debug_msg = array();
|
|
151
155
|
|
|
@@ -158,8 +162,10 @@ class CI_Email {
|
|
|
158
162
|
$this->_attach_type = array();
|
|
159
163
|
$this->_attach_disp = array();
|
|
160
164
|
}
|
|
165
|
+
|
|
166
|
+
return $this;
|
|
161
167
|
}
|
|
162
|
-
|
|
168
|
+
|
|
163
169
|
// --------------------------------------------------------------------
|
|
164
170
|
|
|
165
171
|
/**
|
|
@@ -170,7 +176,7 @@ class CI_Email {
|
|
|
170
176
|
* @param string
|
|
171
177
|
* @return void
|
|
172
178
|
*/
|
|
173
|
-
function from($from, $name = '')
|
|
179
|
+
public function from($from, $name = '')
|
|
174
180
|
{
|
|
175
181
|
if (preg_match( '/\<(.*)\>/', $from, $match))
|
|
176
182
|
{
|
|
@@ -199,8 +205,10 @@ class CI_Email {
|
|
|
199
205
|
|
|
200
206
|
$this->_set_header('From', $name.' <'.$from.'>');
|
|
201
207
|
$this->_set_header('Return-Path', '<'.$from.'>');
|
|
208
|
+
|
|
209
|
+
return $this;
|
|
202
210
|
}
|
|
203
|
-
|
|
211
|
+
|
|
204
212
|
// --------------------------------------------------------------------
|
|
205
213
|
|
|
206
214
|
/**
|
|
@@ -211,7 +219,7 @@ class CI_Email {
|
|
|
211
219
|
* @param string
|
|
212
220
|
* @return void
|
|
213
221
|
*/
|
|
214
|
-
function reply_to($replyto, $name = '')
|
|
222
|
+
public function reply_to($replyto, $name = '')
|
|
215
223
|
{
|
|
216
224
|
if (preg_match( '/\<(.*)\>/', $replyto, $match))
|
|
217
225
|
{
|
|
@@ -235,8 +243,10 @@ class CI_Email {
|
|
|
235
243
|
|
|
236
244
|
$this->_set_header('Reply-To', $name.' <'.$replyto.'>');
|
|
237
245
|
$this->_replyto_flag = TRUE;
|
|
246
|
+
|
|
247
|
+
return $this;
|
|
238
248
|
}
|
|
239
|
-
|
|
249
|
+
|
|
240
250
|
// --------------------------------------------------------------------
|
|
241
251
|
|
|
242
252
|
/**
|
|
@@ -246,7 +256,7 @@ class CI_Email {
|
|
|
246
256
|
* @param string
|
|
247
257
|
* @return void
|
|
248
258
|
*/
|
|
249
|
-
function to($to)
|
|
259
|
+
public function to($to)
|
|
250
260
|
{
|
|
251
261
|
$to = $this->_str_to_array($to);
|
|
252
262
|
$to = $this->clean_email($to);
|
|
@@ -263,15 +273,18 @@ class CI_Email {
|
|
|
263
273
|
|
|
264
274
|
switch ($this->_get_protocol())
|
|
265
275
|
{
|
|
266
|
-
case 'smtp' :
|
|
267
|
-
|
|
268
|
-
case 'sendmail' : $this->_recipients = implode(", ", $to);
|
|
276
|
+
case 'smtp' :
|
|
277
|
+
$this->_recipients = $to;
|
|
269
278
|
break;
|
|
270
|
-
case '
|
|
279
|
+
case 'sendmail' :
|
|
280
|
+
case 'mail' :
|
|
281
|
+
$this->_recipients = implode(", ", $to);
|
|
271
282
|
break;
|
|
272
283
|
}
|
|
284
|
+
|
|
285
|
+
return $this;
|
|
273
286
|
}
|
|
274
|
-
|
|
287
|
+
|
|
275
288
|
// --------------------------------------------------------------------
|
|
276
289
|
|
|
277
290
|
/**
|
|
@@ -281,7 +294,7 @@ class CI_Email {
|
|
|
281
294
|
* @param string
|
|
282
295
|
* @return void
|
|
283
296
|
*/
|
|
284
|
-
function cc($cc)
|
|
297
|
+
public function cc($cc)
|
|
285
298
|
{
|
|
286
299
|
$cc = $this->_str_to_array($cc);
|
|
287
300
|
$cc = $this->clean_email($cc);
|
|
@@ -297,8 +310,10 @@ class CI_Email {
|
|
|
297
310
|
{
|
|
298
311
|
$this->_cc_array = $cc;
|
|
299
312
|
}
|
|
313
|
+
|
|
314
|
+
return $this;
|
|
300
315
|
}
|
|
301
|
-
|
|
316
|
+
|
|
302
317
|
// --------------------------------------------------------------------
|
|
303
318
|
|
|
304
319
|
/**
|
|
@@ -309,7 +324,7 @@ class CI_Email {
|
|
|
309
324
|
* @param string
|
|
310
325
|
* @return void
|
|
311
326
|
*/
|
|
312
|
-
function bcc($bcc, $limit = '')
|
|
327
|
+
public function bcc($bcc, $limit = '')
|
|
313
328
|
{
|
|
314
329
|
if ($limit != '' && is_numeric($limit))
|
|
315
330
|
{
|
|
@@ -333,8 +348,10 @@ class CI_Email {
|
|
|
333
348
|
{
|
|
334
349
|
$this->_set_header('Bcc', implode(", ", $bcc));
|
|
335
350
|
}
|
|
351
|
+
|
|
352
|
+
return $this;
|
|
336
353
|
}
|
|
337
|
-
|
|
354
|
+
|
|
338
355
|
// --------------------------------------------------------------------
|
|
339
356
|
|
|
340
357
|
/**
|
|
@@ -344,12 +361,13 @@ class CI_Email {
|
|
|
344
361
|
* @param string
|
|
345
362
|
* @return void
|
|
346
363
|
*/
|
|
347
|
-
function subject($subject)
|
|
364
|
+
public function subject($subject)
|
|
348
365
|
{
|
|
349
366
|
$subject = $this->_prep_q_encoding($subject);
|
|
350
367
|
$this->_set_header('Subject', $subject);
|
|
368
|
+
return $this;
|
|
351
369
|
}
|
|
352
|
-
|
|
370
|
+
|
|
353
371
|
// --------------------------------------------------------------------
|
|
354
372
|
|
|
355
373
|
/**
|
|
@@ -359,11 +377,12 @@ class CI_Email {
|
|
|
359
377
|
* @param string
|
|
360
378
|
* @return void
|
|
361
379
|
*/
|
|
362
|
-
function message($body)
|
|
380
|
+
public function message($body)
|
|
363
381
|
{
|
|
364
382
|
$this->_body = stripslashes(rtrim(str_replace("\r", "", $body)));
|
|
383
|
+
return $this;
|
|
365
384
|
}
|
|
366
|
-
|
|
385
|
+
|
|
367
386
|
// --------------------------------------------------------------------
|
|
368
387
|
|
|
369
388
|
/**
|
|
@@ -373,11 +392,12 @@ class CI_Email {
|
|
|
373
392
|
* @param string
|
|
374
393
|
* @return void
|
|
375
394
|
*/
|
|
376
|
-
function attach($filename, $disposition = 'attachment')
|
|
395
|
+
public function attach($filename, $disposition = 'attachment')
|
|
377
396
|
{
|
|
378
397
|
$this->_attach_name[] = $filename;
|
|
379
398
|
$this->_attach_type[] = $this->_mime_types(next(explode('.', basename($filename))));
|
|
380
399
|
$this->_attach_disp[] = $disposition; // Can also be 'inline' Not sure if it matters
|
|
400
|
+
return $this;
|
|
381
401
|
}
|
|
382
402
|
|
|
383
403
|
// --------------------------------------------------------------------
|
|
@@ -390,11 +410,11 @@ class CI_Email {
|
|
|
390
410
|
* @param string
|
|
391
411
|
* @return void
|
|
392
412
|
*/
|
|
393
|
-
function _set_header($header, $value)
|
|
413
|
+
private function _set_header($header, $value)
|
|
394
414
|
{
|
|
395
415
|
$this->_headers[$header] = $value;
|
|
396
416
|
}
|
|
397
|
-
|
|
417
|
+
|
|
398
418
|
// --------------------------------------------------------------------
|
|
399
419
|
|
|
400
420
|
/**
|
|
@@ -404,7 +424,7 @@ class CI_Email {
|
|
|
404
424
|
* @param string
|
|
405
425
|
* @return array
|
|
406
426
|
*/
|
|
407
|
-
function _str_to_array($email)
|
|
427
|
+
private function _str_to_array($email)
|
|
408
428
|
{
|
|
409
429
|
if ( ! is_array($email))
|
|
410
430
|
{
|
|
@@ -420,7 +440,7 @@ class CI_Email {
|
|
|
420
440
|
}
|
|
421
441
|
return $email;
|
|
422
442
|
}
|
|
423
|
-
|
|
443
|
+
|
|
424
444
|
// --------------------------------------------------------------------
|
|
425
445
|
|
|
426
446
|
/**
|
|
@@ -430,11 +450,12 @@ class CI_Email {
|
|
|
430
450
|
* @param string
|
|
431
451
|
* @return void
|
|
432
452
|
*/
|
|
433
|
-
function set_alt_message($str = '')
|
|
453
|
+
public function set_alt_message($str = '')
|
|
434
454
|
{
|
|
435
455
|
$this->alt_message = ($str == '') ? '' : $str;
|
|
456
|
+
return $this;
|
|
436
457
|
}
|
|
437
|
-
|
|
458
|
+
|
|
438
459
|
// --------------------------------------------------------------------
|
|
439
460
|
|
|
440
461
|
/**
|
|
@@ -444,11 +465,12 @@ class CI_Email {
|
|
|
444
465
|
* @param string
|
|
445
466
|
* @return void
|
|
446
467
|
*/
|
|
447
|
-
function set_mailtype($type = 'text')
|
|
468
|
+
public function set_mailtype($type = 'text')
|
|
448
469
|
{
|
|
449
470
|
$this->mailtype = ($type == 'html') ? 'html' : 'text';
|
|
471
|
+
return $this;
|
|
450
472
|
}
|
|
451
|
-
|
|
473
|
+
|
|
452
474
|
// --------------------------------------------------------------------
|
|
453
475
|
|
|
454
476
|
/**
|
|
@@ -458,11 +480,12 @@ class CI_Email {
|
|
|
458
480
|
* @param string
|
|
459
481
|
* @return void
|
|
460
482
|
*/
|
|
461
|
-
function set_wordwrap($wordwrap = TRUE)
|
|
483
|
+
public function set_wordwrap($wordwrap = TRUE)
|
|
462
484
|
{
|
|
463
485
|
$this->wordwrap = ($wordwrap === FALSE) ? FALSE : TRUE;
|
|
486
|
+
return $this;
|
|
464
487
|
}
|
|
465
|
-
|
|
488
|
+
|
|
466
489
|
// --------------------------------------------------------------------
|
|
467
490
|
|
|
468
491
|
/**
|
|
@@ -472,11 +495,12 @@ class CI_Email {
|
|
|
472
495
|
* @param string
|
|
473
496
|
* @return void
|
|
474
497
|
*/
|
|
475
|
-
function set_protocol($protocol = 'mail')
|
|
498
|
+
public function set_protocol($protocol = 'mail')
|
|
476
499
|
{
|
|
477
500
|
$this->protocol = ( ! in_array($protocol, $this->_protocols, TRUE)) ? 'mail' : strtolower($protocol);
|
|
501
|
+
return $this;
|
|
478
502
|
}
|
|
479
|
-
|
|
503
|
+
|
|
480
504
|
// --------------------------------------------------------------------
|
|
481
505
|
|
|
482
506
|
/**
|
|
@@ -486,7 +510,7 @@ class CI_Email {
|
|
|
486
510
|
* @param integer
|
|
487
511
|
* @return void
|
|
488
512
|
*/
|
|
489
|
-
function set_priority($n = 3)
|
|
513
|
+
public function set_priority($n = 3)
|
|
490
514
|
{
|
|
491
515
|
if ( ! is_numeric($n))
|
|
492
516
|
{
|
|
@@ -501,8 +525,9 @@ class CI_Email {
|
|
|
501
525
|
}
|
|
502
526
|
|
|
503
527
|
$this->priority = $n;
|
|
528
|
+
return $this;
|
|
504
529
|
}
|
|
505
|
-
|
|
530
|
+
|
|
506
531
|
// --------------------------------------------------------------------
|
|
507
532
|
|
|
508
533
|
/**
|
|
@@ -512,7 +537,7 @@ class CI_Email {
|
|
|
512
537
|
* @param string
|
|
513
538
|
* @return void
|
|
514
539
|
*/
|
|
515
|
-
function set_newline($newline = "\n")
|
|
540
|
+
public function set_newline($newline = "\n")
|
|
516
541
|
{
|
|
517
542
|
if ($newline != "\n" AND $newline != "\r\n" AND $newline != "\r")
|
|
518
543
|
{
|
|
@@ -521,8 +546,10 @@ class CI_Email {
|
|
|
521
546
|
}
|
|
522
547
|
|
|
523
548
|
$this->newline = $newline;
|
|
549
|
+
|
|
550
|
+
return $this;
|
|
524
551
|
}
|
|
525
|
-
|
|
552
|
+
|
|
526
553
|
// --------------------------------------------------------------------
|
|
527
554
|
|
|
528
555
|
/**
|
|
@@ -532,7 +559,7 @@ class CI_Email {
|
|
|
532
559
|
* @param string
|
|
533
560
|
* @return void
|
|
534
561
|
*/
|
|
535
|
-
function set_crlf($crlf = "\n")
|
|
562
|
+
public function set_crlf($crlf = "\n")
|
|
536
563
|
{
|
|
537
564
|
if ($crlf != "\n" AND $crlf != "\r\n" AND $crlf != "\r")
|
|
538
565
|
{
|
|
@@ -541,8 +568,10 @@ class CI_Email {
|
|
|
541
568
|
}
|
|
542
569
|
|
|
543
570
|
$this->crlf = $crlf;
|
|
571
|
+
|
|
572
|
+
return $this;
|
|
544
573
|
}
|
|
545
|
-
|
|
574
|
+
|
|
546
575
|
// --------------------------------------------------------------------
|
|
547
576
|
|
|
548
577
|
/**
|
|
@@ -551,12 +580,12 @@ class CI_Email {
|
|
|
551
580
|
* @access private
|
|
552
581
|
* @return void
|
|
553
582
|
*/
|
|
554
|
-
function _set_boundaries()
|
|
583
|
+
private function _set_boundaries()
|
|
555
584
|
{
|
|
556
585
|
$this->_alt_boundary = "B_ALT_".uniqid(''); // multipart/alternative
|
|
557
586
|
$this->_atc_boundary = "B_ATC_".uniqid(''); // attachment boundary
|
|
558
587
|
}
|
|
559
|
-
|
|
588
|
+
|
|
560
589
|
// --------------------------------------------------------------------
|
|
561
590
|
|
|
562
591
|
/**
|
|
@@ -565,7 +594,7 @@ class CI_Email {
|
|
|
565
594
|
* @access private
|
|
566
595
|
* @return string
|
|
567
596
|
*/
|
|
568
|
-
function _get_message_id()
|
|
597
|
+
private function _get_message_id()
|
|
569
598
|
{
|
|
570
599
|
$from = $this->_headers['Return-Path'];
|
|
571
600
|
$from = str_replace(">", "", $from);
|
|
@@ -573,7 +602,7 @@ class CI_Email {
|
|
|
573
602
|
|
|
574
603
|
return "<".uniqid('').strstr($from, '@').">";
|
|
575
604
|
}
|
|
576
|
-
|
|
605
|
+
|
|
577
606
|
// --------------------------------------------------------------------
|
|
578
607
|
|
|
579
608
|
/**
|
|
@@ -583,7 +612,7 @@ class CI_Email {
|
|
|
583
612
|
* @param bool
|
|
584
613
|
* @return string
|
|
585
614
|
*/
|
|
586
|
-
function _get_protocol($return = TRUE)
|
|
615
|
+
private function _get_protocol($return = TRUE)
|
|
587
616
|
{
|
|
588
617
|
$this->protocol = strtolower($this->protocol);
|
|
589
618
|
$this->protocol = ( ! in_array($this->protocol, $this->_protocols, TRUE)) ? 'mail' : $this->protocol;
|
|
@@ -593,7 +622,7 @@ class CI_Email {
|
|
|
593
622
|
return $this->protocol;
|
|
594
623
|
}
|
|
595
624
|
}
|
|
596
|
-
|
|
625
|
+
|
|
597
626
|
// --------------------------------------------------------------------
|
|
598
627
|
|
|
599
628
|
/**
|
|
@@ -603,7 +632,7 @@ class CI_Email {
|
|
|
603
632
|
* @param bool
|
|
604
633
|
* @return string
|
|
605
634
|
*/
|
|
606
|
-
function _get_encoding($return = TRUE)
|
|
635
|
+
private function _get_encoding($return = TRUE)
|
|
607
636
|
{
|
|
608
637
|
$this->_encoding = ( ! in_array($this->_encoding, $this->_bit_depths)) ? '8bit' : $this->_encoding;
|
|
609
638
|
|
|
@@ -629,7 +658,7 @@ class CI_Email {
|
|
|
629
658
|
* @access private
|
|
630
659
|
* @return string
|
|
631
660
|
*/
|
|
632
|
-
function _get_content_type()
|
|
661
|
+
private function _get_content_type()
|
|
633
662
|
{
|
|
634
663
|
if ($this->mailtype == 'html' && count($this->_attach_name) == 0)
|
|
635
664
|
{
|
|
@@ -648,7 +677,7 @@ class CI_Email {
|
|
|
648
677
|
return 'plain';
|
|
649
678
|
}
|
|
650
679
|
}
|
|
651
|
-
|
|
680
|
+
|
|
652
681
|
// --------------------------------------------------------------------
|
|
653
682
|
|
|
654
683
|
/**
|
|
@@ -657,7 +686,7 @@ class CI_Email {
|
|
|
657
686
|
* @access private
|
|
658
687
|
* @return string
|
|
659
688
|
*/
|
|
660
|
-
function _set_date()
|
|
689
|
+
private function _set_date()
|
|
661
690
|
{
|
|
662
691
|
$timezone = date("Z");
|
|
663
692
|
$operator = (strncmp($timezone, '-', 1) == 0) ? '-' : '+';
|
|
@@ -666,7 +695,7 @@ class CI_Email {
|
|
|
666
695
|
|
|
667
696
|
return sprintf("%s %s%04d", date("D, j M Y H:i:s"), $operator, $timezone);
|
|
668
697
|
}
|
|
669
|
-
|
|
698
|
+
|
|
670
699
|
// --------------------------------------------------------------------
|
|
671
700
|
|
|
672
701
|
/**
|
|
@@ -675,11 +704,11 @@ class CI_Email {
|
|
|
675
704
|
* @access private
|
|
676
705
|
* @return string
|
|
677
706
|
*/
|
|
678
|
-
function _get_mime_message()
|
|
707
|
+
private function _get_mime_message()
|
|
679
708
|
{
|
|
680
709
|
return "This is a multi-part message in MIME format.".$this->newline."Your email application may not support this format.";
|
|
681
710
|
}
|
|
682
|
-
|
|
711
|
+
|
|
683
712
|
// --------------------------------------------------------------------
|
|
684
713
|
|
|
685
714
|
/**
|
|
@@ -689,7 +718,7 @@ class CI_Email {
|
|
|
689
718
|
* @param string
|
|
690
719
|
* @return bool
|
|
691
720
|
*/
|
|
692
|
-
function validate_email($email)
|
|
721
|
+
public function validate_email($email)
|
|
693
722
|
{
|
|
694
723
|
if ( ! is_array($email))
|
|
695
724
|
{
|
|
@@ -708,7 +737,7 @@ class CI_Email {
|
|
|
708
737
|
|
|
709
738
|
return TRUE;
|
|
710
739
|
}
|
|
711
|
-
|
|
740
|
+
|
|
712
741
|
// --------------------------------------------------------------------
|
|
713
742
|
|
|
714
743
|
/**
|
|
@@ -718,11 +747,11 @@ class CI_Email {
|
|
|
718
747
|
* @param string
|
|
719
748
|
* @return bool
|
|
720
749
|
*/
|
|
721
|
-
function valid_email($address)
|
|
750
|
+
public function valid_email($address)
|
|
722
751
|
{
|
|
723
752
|
return ( ! preg_match("/^([a-z0-9\+_\-]+)(\.[a-z0-9\+_\-]+)*@([a-z0-9\-]+\.)+[a-z]{2,6}$/ix", $address)) ? FALSE : TRUE;
|
|
724
753
|
}
|
|
725
|
-
|
|
754
|
+
|
|
726
755
|
// --------------------------------------------------------------------
|
|
727
756
|
|
|
728
757
|
/**
|
|
@@ -732,17 +761,17 @@ class CI_Email {
|
|
|
732
761
|
* @param string
|
|
733
762
|
* @return string
|
|
734
763
|
*/
|
|
735
|
-
function clean_email($email)
|
|
764
|
+
public function clean_email($email)
|
|
736
765
|
{
|
|
737
766
|
if ( ! is_array($email))
|
|
738
767
|
{
|
|
739
768
|
if (preg_match('/\<(.*)\>/', $email, $match))
|
|
740
769
|
{
|
|
741
|
-
|
|
770
|
+
return $match['1'];
|
|
742
771
|
}
|
|
743
|
-
|
|
772
|
+
else
|
|
744
773
|
{
|
|
745
|
-
|
|
774
|
+
return $email;
|
|
746
775
|
}
|
|
747
776
|
}
|
|
748
777
|
|
|
@@ -752,23 +781,23 @@ class CI_Email {
|
|
|
752
781
|
{
|
|
753
782
|
if (preg_match( '/\<(.*)\>/', $addy, $match))
|
|
754
783
|
{
|
|
755
|
-
|
|
784
|
+
$clean_email[] = $match['1'];
|
|
756
785
|
}
|
|
757
|
-
|
|
786
|
+
else
|
|
758
787
|
{
|
|
759
|
-
|
|
788
|
+
$clean_email[] = $addy;
|
|
760
789
|
}
|
|
761
790
|
}
|
|
762
791
|
|
|
763
792
|
return $clean_email;
|
|
764
793
|
}
|
|
765
|
-
|
|
794
|
+
|
|
766
795
|
// --------------------------------------------------------------------
|
|
767
796
|
|
|
768
797
|
/**
|
|
769
798
|
* Build alternative plain text message
|
|
770
799
|
*
|
|
771
|
-
* This function provides the raw message for use
|
|
800
|
+
* This public function provides the raw message for use
|
|
772
801
|
* in plain-text headers of HTML-formatted emails.
|
|
773
802
|
* If the user hasn't specified his own alternative message
|
|
774
803
|
* it creates one by stripping the HTML
|
|
@@ -776,7 +805,7 @@ class CI_Email {
|
|
|
776
805
|
* @access private
|
|
777
806
|
* @return string
|
|
778
807
|
*/
|
|
779
|
-
function _get_alt_message()
|
|
808
|
+
private function _get_alt_message()
|
|
780
809
|
{
|
|
781
810
|
if ($this->alt_message != "")
|
|
782
811
|
{
|
|
@@ -802,7 +831,7 @@ class CI_Email {
|
|
|
802
831
|
|
|
803
832
|
for ($x = 1; $x <= $i; $x ++)
|
|
804
833
|
{
|
|
805
|
-
|
|
834
|
+
$n .= "\n";
|
|
806
835
|
}
|
|
807
836
|
|
|
808
837
|
$body = str_replace($n, "\n\n", $body);
|
|
@@ -810,7 +839,7 @@ class CI_Email {
|
|
|
810
839
|
|
|
811
840
|
return $this->word_wrap($body, '76');
|
|
812
841
|
}
|
|
813
|
-
|
|
842
|
+
|
|
814
843
|
// --------------------------------------------------------------------
|
|
815
844
|
|
|
816
845
|
/**
|
|
@@ -821,7 +850,7 @@ class CI_Email {
|
|
|
821
850
|
* @param integer
|
|
822
851
|
* @return string
|
|
823
852
|
*/
|
|
824
|
-
function word_wrap($str, $charlim = '')
|
|
853
|
+
public function word_wrap($str, $charlim = '')
|
|
825
854
|
{
|
|
826
855
|
// Se the character limit
|
|
827
856
|
if ($charlim == '')
|
|
@@ -850,7 +879,7 @@ class CI_Email {
|
|
|
850
879
|
}
|
|
851
880
|
}
|
|
852
881
|
|
|
853
|
-
// Use PHP's native function to do the initial wordwrap.
|
|
882
|
+
// Use PHP's native public function to do the initial wordwrap.
|
|
854
883
|
// We set the cut flag to FALSE so that any individual words that are
|
|
855
884
|
// too long get left alone. In the next step we'll deal with them.
|
|
856
885
|
$str = wordwrap($str, $charlim, "\n", FALSE);
|
|
@@ -906,7 +935,7 @@ class CI_Email {
|
|
|
906
935
|
|
|
907
936
|
return $output;
|
|
908
937
|
}
|
|
909
|
-
|
|
938
|
+
|
|
910
939
|
// --------------------------------------------------------------------
|
|
911
940
|
|
|
912
941
|
/**
|
|
@@ -916,7 +945,7 @@ class CI_Email {
|
|
|
916
945
|
* @param string
|
|
917
946
|
* @return string
|
|
918
947
|
*/
|
|
919
|
-
function _build_headers()
|
|
948
|
+
private function _build_headers()
|
|
920
949
|
{
|
|
921
950
|
$this->_set_header('X-Sender', $this->clean_email($this->_headers['From']));
|
|
922
951
|
$this->_set_header('X-Mailer', $this->useragent);
|
|
@@ -924,7 +953,7 @@ class CI_Email {
|
|
|
924
953
|
$this->_set_header('Message-ID', $this->_get_message_id());
|
|
925
954
|
$this->_set_header('Mime-Version', '1.0');
|
|
926
955
|
}
|
|
927
|
-
|
|
956
|
+
|
|
928
957
|
// --------------------------------------------------------------------
|
|
929
958
|
|
|
930
959
|
/**
|
|
@@ -933,7 +962,7 @@ class CI_Email {
|
|
|
933
962
|
* @access private
|
|
934
963
|
* @return void
|
|
935
964
|
*/
|
|
936
|
-
function _write_headers()
|
|
965
|
+
private function _write_headers()
|
|
937
966
|
{
|
|
938
967
|
if ($this->protocol == 'mail')
|
|
939
968
|
{
|
|
@@ -959,7 +988,7 @@ class CI_Email {
|
|
|
959
988
|
$this->_header_str = rtrim($this->_header_str);
|
|
960
989
|
}
|
|
961
990
|
}
|
|
962
|
-
|
|
991
|
+
|
|
963
992
|
// --------------------------------------------------------------------
|
|
964
993
|
|
|
965
994
|
/**
|
|
@@ -968,7 +997,7 @@ class CI_Email {
|
|
|
968
997
|
* @access private
|
|
969
998
|
* @return void
|
|
970
999
|
*/
|
|
971
|
-
function _build_message()
|
|
1000
|
+
private function _build_message()
|
|
972
1001
|
{
|
|
973
1002
|
if ($this->wordwrap === TRUE AND $this->mailtype != 'html')
|
|
974
1003
|
{
|
|
@@ -979,6 +1008,7 @@ class CI_Email {
|
|
|
979
1008
|
$this->_write_headers();
|
|
980
1009
|
|
|
981
1010
|
$hdr = ($this->_get_protocol() == 'mail') ? $this->newline : '';
|
|
1011
|
+
$body = '';
|
|
982
1012
|
|
|
983
1013
|
switch ($this->_get_content_type())
|
|
984
1014
|
{
|
|
@@ -991,13 +1021,12 @@ class CI_Email {
|
|
|
991
1021
|
{
|
|
992
1022
|
$this->_header_str .= $hdr;
|
|
993
1023
|
$this->_finalbody = $this->_body;
|
|
994
|
-
|
|
995
|
-
|
|
1024
|
+
}
|
|
1025
|
+
else
|
|
1026
|
+
{
|
|
1027
|
+
$this->_finalbody = $hdr . $this->newline . $this->newline . $this->_body;
|
|
996
1028
|
}
|
|
997
1029
|
|
|
998
|
-
$hdr .= $this->newline . $this->newline . $this->_body;
|
|
999
|
-
|
|
1000
|
-
$this->_finalbody = $hdr;
|
|
1001
1030
|
return;
|
|
1002
1031
|
|
|
1003
1032
|
break;
|
|
@@ -1011,93 +1040,81 @@ class CI_Email {
|
|
|
1011
1040
|
else
|
|
1012
1041
|
{
|
|
1013
1042
|
$hdr .= "Content-Type: multipart/alternative; boundary=\"" . $this->_alt_boundary . "\"" . $this->newline . $this->newline;
|
|
1014
|
-
$hdr .= $this->_get_mime_message() . $this->newline . $this->newline;
|
|
1015
|
-
$hdr .= "--" . $this->_alt_boundary . $this->newline;
|
|
1016
1043
|
|
|
1017
|
-
$
|
|
1018
|
-
$
|
|
1019
|
-
$hdr .= $this->_get_alt_message() . $this->newline . $this->newline . "--" . $this->_alt_boundary . $this->newline;
|
|
1044
|
+
$body .= $this->_get_mime_message() . $this->newline . $this->newline;
|
|
1045
|
+
$body .= "--" . $this->_alt_boundary . $this->newline;
|
|
1020
1046
|
|
|
1021
|
-
$
|
|
1022
|
-
$
|
|
1047
|
+
$body .= "Content-Type: text/plain; charset=" . $this->charset . $this->newline;
|
|
1048
|
+
$body .= "Content-Transfer-Encoding: " . $this->_get_encoding() . $this->newline . $this->newline;
|
|
1049
|
+
$body .= $this->_get_alt_message() . $this->newline . $this->newline . "--" . $this->_alt_boundary . $this->newline;
|
|
1050
|
+
|
|
1051
|
+
$body .= "Content-Type: text/html; charset=" . $this->charset . $this->newline;
|
|
1052
|
+
$body .= "Content-Transfer-Encoding: quoted-printable" . $this->newline . $this->newline;
|
|
1023
1053
|
}
|
|
1024
1054
|
|
|
1025
|
-
$this->
|
|
1055
|
+
$this->_finalbody = $body . $this->_prep_quoted_printable($this->_body) . $this->newline . $this->newline;
|
|
1056
|
+
|
|
1026
1057
|
|
|
1027
1058
|
if ($this->_get_protocol() == 'mail')
|
|
1028
1059
|
{
|
|
1029
1060
|
$this->_header_str .= $hdr;
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
$this->_finalbody .= "--" . $this->_alt_boundary . "--";
|
|
1035
|
-
}
|
|
1036
|
-
|
|
1037
|
-
return;
|
|
1061
|
+
}
|
|
1062
|
+
else
|
|
1063
|
+
{
|
|
1064
|
+
$this->_finalbody = $hdr . $this->_finalbody;
|
|
1038
1065
|
}
|
|
1039
1066
|
|
|
1040
|
-
$hdr .= $this->newline . $this->newline;
|
|
1041
|
-
$hdr .= $this->_body . $this->newline . $this->newline;
|
|
1042
1067
|
|
|
1043
1068
|
if ($this->send_multipart !== FALSE)
|
|
1044
1069
|
{
|
|
1045
|
-
$
|
|
1070
|
+
$this->_finalbody .= "--" . $this->_alt_boundary . "--";
|
|
1046
1071
|
}
|
|
1047
1072
|
|
|
1048
|
-
$this->_finalbody = $hdr;
|
|
1049
1073
|
return;
|
|
1050
1074
|
|
|
1051
1075
|
break;
|
|
1052
1076
|
case 'plain-attach' :
|
|
1053
1077
|
|
|
1054
1078
|
$hdr .= "Content-Type: multipart/".$this->multipart."; boundary=\"" . $this->_atc_boundary."\"" . $this->newline . $this->newline;
|
|
1055
|
-
$hdr .= $this->_get_mime_message() . $this->newline . $this->newline;
|
|
1056
|
-
$hdr .= "--" . $this->_atc_boundary . $this->newline;
|
|
1057
|
-
|
|
1058
|
-
$hdr .= "Content-Type: text/plain; charset=" . $this->charset . $this->newline;
|
|
1059
|
-
$hdr .= "Content-Transfer-Encoding: " . $this->_get_encoding();
|
|
1060
1079
|
|
|
1061
1080
|
if ($this->_get_protocol() == 'mail')
|
|
1062
1081
|
{
|
|
1063
1082
|
$this->_header_str .= $hdr;
|
|
1064
|
-
|
|
1065
|
-
$body = $this->_body . $this->newline . $this->newline;
|
|
1066
1083
|
}
|
|
1067
1084
|
|
|
1068
|
-
$
|
|
1069
|
-
$
|
|
1085
|
+
$body .= $this->_get_mime_message() . $this->newline . $this->newline;
|
|
1086
|
+
$body .= "--" . $this->_atc_boundary . $this->newline;
|
|
1087
|
+
|
|
1088
|
+
$body .= "Content-Type: text/plain; charset=" . $this->charset . $this->newline;
|
|
1089
|
+
$body .= "Content-Transfer-Encoding: " . $this->_get_encoding() . $this->newline . $this->newline;
|
|
1090
|
+
|
|
1091
|
+
$body .= $this->_body . $this->newline . $this->newline;
|
|
1070
1092
|
|
|
1071
1093
|
break;
|
|
1072
1094
|
case 'html-attach' :
|
|
1073
1095
|
|
|
1074
1096
|
$hdr .= "Content-Type: multipart/".$this->multipart."; boundary=\"" . $this->_atc_boundary."\"" . $this->newline . $this->newline;
|
|
1075
|
-
$hdr .= $this->_get_mime_message() . $this->newline . $this->newline;
|
|
1076
|
-
$hdr .= "--" . $this->_atc_boundary . $this->newline;
|
|
1077
|
-
|
|
1078
|
-
$hdr .= "Content-Type: multipart/alternative; boundary=\"" . $this->_alt_boundary . "\"" . $this->newline .$this->newline;
|
|
1079
|
-
$hdr .= "--" . $this->_alt_boundary . $this->newline;
|
|
1080
|
-
|
|
1081
|
-
$hdr .= "Content-Type: text/plain; charset=" . $this->charset . $this->newline;
|
|
1082
|
-
$hdr .= "Content-Transfer-Encoding: " . $this->_get_encoding() . $this->newline . $this->newline;
|
|
1083
|
-
$hdr .= $this->_get_alt_message() . $this->newline . $this->newline . "--" . $this->_alt_boundary . $this->newline;
|
|
1084
|
-
|
|
1085
|
-
$hdr .= "Content-Type: text/html; charset=" . $this->charset . $this->newline;
|
|
1086
|
-
$hdr .= "Content-Transfer-Encoding: quoted-printable";
|
|
1087
|
-
|
|
1088
|
-
$this->_body = $this->_prep_quoted_printable($this->_body);
|
|
1089
1097
|
|
|
1090
1098
|
if ($this->_get_protocol() == 'mail')
|
|
1091
1099
|
{
|
|
1092
1100
|
$this->_header_str .= $hdr;
|
|
1093
|
-
|
|
1094
|
-
$body = $this->_body . $this->newline . $this->newline;
|
|
1095
|
-
$body .= "--" . $this->_alt_boundary . "--" . $this->newline . $this->newline;
|
|
1096
1101
|
}
|
|
1097
1102
|
|
|
1098
|
-
$
|
|
1099
|
-
$
|
|
1100
|
-
|
|
1103
|
+
$body .= $this->_get_mime_message() . $this->newline . $this->newline;
|
|
1104
|
+
$body .= "--" . $this->_atc_boundary . $this->newline;
|
|
1105
|
+
|
|
1106
|
+
$body .= "Content-Type: multipart/alternative; boundary=\"" . $this->_alt_boundary . "\"" . $this->newline .$this->newline;
|
|
1107
|
+
$body .= "--" . $this->_alt_boundary . $this->newline;
|
|
1108
|
+
|
|
1109
|
+
$body .= "Content-Type: text/plain; charset=" . $this->charset . $this->newline;
|
|
1110
|
+
$body .= "Content-Transfer-Encoding: " . $this->_get_encoding() . $this->newline . $this->newline;
|
|
1111
|
+
$body .= $this->_get_alt_message() . $this->newline . $this->newline . "--" . $this->_alt_boundary . $this->newline;
|
|
1112
|
+
|
|
1113
|
+
$body .= "Content-Type: text/html; charset=" . $this->charset . $this->newline;
|
|
1114
|
+
$body .= "Content-Transfer-Encoding: quoted-printable" . $this->newline . $this->newline;
|
|
1115
|
+
|
|
1116
|
+
$body .= $this->_prep_quoted_printable($this->_body) . $this->newline . $this->newline;
|
|
1117
|
+
$body .= "--" . $this->_alt_boundary . "--" . $this->newline . $this->newline;
|
|
1101
1118
|
|
|
1102
1119
|
break;
|
|
1103
1120
|
}
|
|
@@ -1137,18 +1154,21 @@ class CI_Email {
|
|
|
1137
1154
|
fclose($fp);
|
|
1138
1155
|
}
|
|
1139
1156
|
|
|
1157
|
+
$body .= implode($this->newline, $attachment).$this->newline."--".$this->_atc_boundary."--";
|
|
1158
|
+
|
|
1159
|
+
|
|
1140
1160
|
if ($this->_get_protocol() == 'mail')
|
|
1141
1161
|
{
|
|
1142
|
-
$this->_finalbody = $body
|
|
1143
|
-
|
|
1144
|
-
|
|
1162
|
+
$this->_finalbody = $body;
|
|
1163
|
+
}
|
|
1164
|
+
else
|
|
1165
|
+
{
|
|
1166
|
+
$this->_finalbody = $hdr . $body;
|
|
1145
1167
|
}
|
|
1146
|
-
|
|
1147
|
-
$this->_finalbody = $hdr.implode($this->newline, $attachment).$this->newline."--".$this->_atc_boundary."--";
|
|
1148
1168
|
|
|
1149
1169
|
return;
|
|
1150
1170
|
}
|
|
1151
|
-
|
|
1171
|
+
|
|
1152
1172
|
// --------------------------------------------------------------------
|
|
1153
1173
|
|
|
1154
1174
|
/**
|
|
@@ -1162,7 +1182,7 @@ class CI_Email {
|
|
|
1162
1182
|
* @param integer
|
|
1163
1183
|
* @return string
|
|
1164
1184
|
*/
|
|
1165
|
-
function _prep_quoted_printable($str, $charlim = '')
|
|
1185
|
+
private function _prep_quoted_printable($str, $charlim = '')
|
|
1166
1186
|
{
|
|
1167
1187
|
// Set the character limit
|
|
1168
1188
|
// Don't allow over 76, as that will make servers and MUAs barf
|
|
@@ -1243,7 +1263,7 @@ class CI_Email {
|
|
|
1243
1263
|
}
|
|
1244
1264
|
|
|
1245
1265
|
// --------------------------------------------------------------------
|
|
1246
|
-
|
|
1266
|
+
|
|
1247
1267
|
/**
|
|
1248
1268
|
* Prep Q Encoding
|
|
1249
1269
|
*
|
|
@@ -1255,7 +1275,7 @@ class CI_Email {
|
|
|
1255
1275
|
* @param bool // set to TRUE for processing From: headers
|
|
1256
1276
|
* @return str
|
|
1257
1277
|
*/
|
|
1258
|
-
function _prep_q_encoding($str, $from = FALSE)
|
|
1278
|
+
private function _prep_q_encoding($str, $from = FALSE)
|
|
1259
1279
|
{
|
|
1260
1280
|
$str = str_replace(array("\r", "\n"), array('', ''), $str);
|
|
1261
1281
|
|
|
@@ -1315,14 +1335,14 @@ class CI_Email {
|
|
|
1315
1335
|
}
|
|
1316
1336
|
|
|
1317
1337
|
// --------------------------------------------------------------------
|
|
1318
|
-
|
|
1338
|
+
|
|
1319
1339
|
/**
|
|
1320
1340
|
* Send Email
|
|
1321
1341
|
*
|
|
1322
1342
|
* @access public
|
|
1323
1343
|
* @return bool
|
|
1324
1344
|
*/
|
|
1325
|
-
function send()
|
|
1345
|
+
public function send()
|
|
1326
1346
|
{
|
|
1327
1347
|
if ($this->_replyto_flag == FALSE)
|
|
1328
1348
|
{
|
|
@@ -1356,7 +1376,7 @@ class CI_Email {
|
|
|
1356
1376
|
return TRUE;
|
|
1357
1377
|
}
|
|
1358
1378
|
}
|
|
1359
|
-
|
|
1379
|
+
|
|
1360
1380
|
// --------------------------------------------------------------------
|
|
1361
1381
|
|
|
1362
1382
|
/**
|
|
@@ -1365,7 +1385,7 @@ class CI_Email {
|
|
|
1365
1385
|
* @access public
|
|
1366
1386
|
* @return bool
|
|
1367
1387
|
*/
|
|
1368
|
-
function batch_bcc_send()
|
|
1388
|
+
public function batch_bcc_send()
|
|
1369
1389
|
{
|
|
1370
1390
|
$float = $this->bcc_batch_size -1;
|
|
1371
1391
|
|
|
@@ -1414,7 +1434,7 @@ class CI_Email {
|
|
|
1414
1434
|
$this->_spool_email();
|
|
1415
1435
|
}
|
|
1416
1436
|
}
|
|
1417
|
-
|
|
1437
|
+
|
|
1418
1438
|
// --------------------------------------------------------------------
|
|
1419
1439
|
|
|
1420
1440
|
/**
|
|
@@ -1423,11 +1443,11 @@ class CI_Email {
|
|
|
1423
1443
|
* @access private
|
|
1424
1444
|
* @return void
|
|
1425
1445
|
*/
|
|
1426
|
-
function _unwrap_specials()
|
|
1446
|
+
private function _unwrap_specials()
|
|
1427
1447
|
{
|
|
1428
1448
|
$this->_finalbody = preg_replace_callback("/\{unwrap\}(.*?)\{\/unwrap\}/si", array($this, '_remove_nl_callback'), $this->_finalbody);
|
|
1429
1449
|
}
|
|
1430
|
-
|
|
1450
|
+
|
|
1431
1451
|
// --------------------------------------------------------------------
|
|
1432
1452
|
|
|
1433
1453
|
/**
|
|
@@ -1436,7 +1456,7 @@ class CI_Email {
|
|
|
1436
1456
|
* @access private
|
|
1437
1457
|
* @return string
|
|
1438
1458
|
*/
|
|
1439
|
-
function _remove_nl_callback($matches)
|
|
1459
|
+
private function _remove_nl_callback($matches)
|
|
1440
1460
|
{
|
|
1441
1461
|
if (strpos($matches[1], "\r") !== FALSE OR strpos($matches[1], "\n") !== FALSE)
|
|
1442
1462
|
{
|
|
@@ -1445,7 +1465,7 @@ class CI_Email {
|
|
|
1445
1465
|
|
|
1446
1466
|
return $matches[1];
|
|
1447
1467
|
}
|
|
1448
|
-
|
|
1468
|
+
|
|
1449
1469
|
// --------------------------------------------------------------------
|
|
1450
1470
|
|
|
1451
1471
|
/**
|
|
@@ -1454,7 +1474,7 @@ class CI_Email {
|
|
|
1454
1474
|
* @access private
|
|
1455
1475
|
* @return bool
|
|
1456
1476
|
*/
|
|
1457
|
-
function _spool_email()
|
|
1477
|
+
private function _spool_email()
|
|
1458
1478
|
{
|
|
1459
1479
|
$this->_unwrap_specials();
|
|
1460
1480
|
|
|
@@ -1490,7 +1510,7 @@ class CI_Email {
|
|
|
1490
1510
|
$this->_set_error_message('email_sent', $this->_get_protocol());
|
|
1491
1511
|
return TRUE;
|
|
1492
1512
|
}
|
|
1493
|
-
|
|
1513
|
+
|
|
1494
1514
|
// --------------------------------------------------------------------
|
|
1495
1515
|
|
|
1496
1516
|
/**
|
|
@@ -1499,7 +1519,7 @@ class CI_Email {
|
|
|
1499
1519
|
* @access private
|
|
1500
1520
|
* @return bool
|
|
1501
1521
|
*/
|
|
1502
|
-
function _send_with_mail()
|
|
1522
|
+
private function _send_with_mail()
|
|
1503
1523
|
{
|
|
1504
1524
|
if ($this->_safe_mode == TRUE)
|
|
1505
1525
|
{
|
|
@@ -1516,6 +1536,7 @@ class CI_Email {
|
|
|
1516
1536
|
{
|
|
1517
1537
|
// most documentation of sendmail using the "-f" flag lacks a space after it, however
|
|
1518
1538
|
// we've encountered servers that seem to require it to be in place.
|
|
1539
|
+
|
|
1519
1540
|
if ( ! mail($this->_recipients, $this->_subject, $this->_finalbody, $this->_header_str, "-f ".$this->clean_email($this->_headers['From'])))
|
|
1520
1541
|
{
|
|
1521
1542
|
return FALSE;
|
|
@@ -1526,7 +1547,7 @@ class CI_Email {
|
|
|
1526
1547
|
}
|
|
1527
1548
|
}
|
|
1528
1549
|
}
|
|
1529
|
-
|
|
1550
|
+
|
|
1530
1551
|
// --------------------------------------------------------------------
|
|
1531
1552
|
|
|
1532
1553
|
/**
|
|
@@ -1535,7 +1556,7 @@ class CI_Email {
|
|
|
1535
1556
|
* @access private
|
|
1536
1557
|
* @return bool
|
|
1537
1558
|
*/
|
|
1538
|
-
function _send_with_sendmail()
|
|
1559
|
+
private function _send_with_sendmail()
|
|
1539
1560
|
{
|
|
1540
1561
|
$fp = @popen($this->mailpath . " -oi -f ".$this->clean_email($this->_headers['From'])." -t", 'w');
|
|
1541
1562
|
|
|
@@ -1544,17 +1565,17 @@ class CI_Email {
|
|
|
1544
1565
|
// server probably has popen disabled, so nothing we can do to get a verbose error.
|
|
1545
1566
|
return FALSE;
|
|
1546
1567
|
}
|
|
1547
|
-
|
|
1568
|
+
|
|
1548
1569
|
fputs($fp, $this->_header_str);
|
|
1549
1570
|
fputs($fp, $this->_finalbody);
|
|
1550
1571
|
|
|
1551
|
-
|
|
1552
|
-
|
|
1572
|
+
$status = pclose($fp);
|
|
1573
|
+
|
|
1553
1574
|
if (version_compare(PHP_VERSION, '4.2.3') == -1)
|
|
1554
1575
|
{
|
|
1555
1576
|
$status = $status >> 8 & 0xFF;
|
|
1556
|
-
|
|
1557
|
-
|
|
1577
|
+
}
|
|
1578
|
+
|
|
1558
1579
|
if ($status != 0)
|
|
1559
1580
|
{
|
|
1560
1581
|
$this->_set_error_message('email_exit_status', $status);
|
|
@@ -1564,7 +1585,7 @@ class CI_Email {
|
|
|
1564
1585
|
|
|
1565
1586
|
return TRUE;
|
|
1566
1587
|
}
|
|
1567
|
-
|
|
1588
|
+
|
|
1568
1589
|
// --------------------------------------------------------------------
|
|
1569
1590
|
|
|
1570
1591
|
/**
|
|
@@ -1573,7 +1594,7 @@ class CI_Email {
|
|
|
1573
1594
|
* @access private
|
|
1574
1595
|
* @return bool
|
|
1575
1596
|
*/
|
|
1576
|
-
function _send_with_smtp()
|
|
1597
|
+
private function _send_with_smtp()
|
|
1577
1598
|
{
|
|
1578
1599
|
if ($this->smtp_host == '')
|
|
1579
1600
|
{
|
|
@@ -1633,7 +1654,7 @@ class CI_Email {
|
|
|
1633
1654
|
$this->_send_command('quit');
|
|
1634
1655
|
return TRUE;
|
|
1635
1656
|
}
|
|
1636
|
-
|
|
1657
|
+
|
|
1637
1658
|
// --------------------------------------------------------------------
|
|
1638
1659
|
|
|
1639
1660
|
/**
|
|
@@ -1643,7 +1664,7 @@ class CI_Email {
|
|
|
1643
1664
|
* @param string
|
|
1644
1665
|
* @return string
|
|
1645
1666
|
*/
|
|
1646
|
-
function _smtp_connect()
|
|
1667
|
+
private function _smtp_connect()
|
|
1647
1668
|
{
|
|
1648
1669
|
$this->_smtp_connect = fsockopen($this->smtp_host,
|
|
1649
1670
|
$this->smtp_port,
|
|
@@ -1660,7 +1681,7 @@ class CI_Email {
|
|
|
1660
1681
|
$this->_set_error_message($this->_get_smtp_data());
|
|
1661
1682
|
return $this->_send_command('hello');
|
|
1662
1683
|
}
|
|
1663
|
-
|
|
1684
|
+
|
|
1664
1685
|
// --------------------------------------------------------------------
|
|
1665
1686
|
|
|
1666
1687
|
/**
|
|
@@ -1671,7 +1692,7 @@ class CI_Email {
|
|
|
1671
1692
|
* @param string
|
|
1672
1693
|
* @return string
|
|
1673
1694
|
*/
|
|
1674
|
-
function _send_command($cmd, $data = '')
|
|
1695
|
+
private function _send_command($cmd, $data = '')
|
|
1675
1696
|
{
|
|
1676
1697
|
switch ($cmd)
|
|
1677
1698
|
{
|
|
@@ -1727,7 +1748,7 @@ class CI_Email {
|
|
|
1727
1748
|
|
|
1728
1749
|
return TRUE;
|
|
1729
1750
|
}
|
|
1730
|
-
|
|
1751
|
+
|
|
1731
1752
|
// --------------------------------------------------------------------
|
|
1732
1753
|
|
|
1733
1754
|
/**
|
|
@@ -1736,7 +1757,7 @@ class CI_Email {
|
|
|
1736
1757
|
* @access private
|
|
1737
1758
|
* @return bool
|
|
1738
1759
|
*/
|
|
1739
|
-
function _smtp_authenticate()
|
|
1760
|
+
private function _smtp_authenticate()
|
|
1740
1761
|
{
|
|
1741
1762
|
if ( ! $this->_smtp_auth)
|
|
1742
1763
|
{
|
|
@@ -1781,7 +1802,7 @@ class CI_Email {
|
|
|
1781
1802
|
|
|
1782
1803
|
return TRUE;
|
|
1783
1804
|
}
|
|
1784
|
-
|
|
1805
|
+
|
|
1785
1806
|
// --------------------------------------------------------------------
|
|
1786
1807
|
|
|
1787
1808
|
/**
|
|
@@ -1790,7 +1811,7 @@ class CI_Email {
|
|
|
1790
1811
|
* @access private
|
|
1791
1812
|
* @return bool
|
|
1792
1813
|
*/
|
|
1793
|
-
function _send_data($data)
|
|
1814
|
+
private function _send_data($data)
|
|
1794
1815
|
{
|
|
1795
1816
|
if ( ! fwrite($this->_smtp_connect, $data . $this->newline))
|
|
1796
1817
|
{
|
|
@@ -1802,7 +1823,7 @@ class CI_Email {
|
|
|
1802
1823
|
return TRUE;
|
|
1803
1824
|
}
|
|
1804
1825
|
}
|
|
1805
|
-
|
|
1826
|
+
|
|
1806
1827
|
// --------------------------------------------------------------------
|
|
1807
1828
|
|
|
1808
1829
|
/**
|
|
@@ -1811,7 +1832,7 @@ class CI_Email {
|
|
|
1811
1832
|
* @access private
|
|
1812
1833
|
* @return string
|
|
1813
1834
|
*/
|
|
1814
|
-
function _get_smtp_data()
|
|
1835
|
+
private function _get_smtp_data()
|
|
1815
1836
|
{
|
|
1816
1837
|
$data = "";
|
|
1817
1838
|
|
|
@@ -1827,7 +1848,7 @@ class CI_Email {
|
|
|
1827
1848
|
|
|
1828
1849
|
return $data;
|
|
1829
1850
|
}
|
|
1830
|
-
|
|
1851
|
+
|
|
1831
1852
|
// --------------------------------------------------------------------
|
|
1832
1853
|
|
|
1833
1854
|
/**
|
|
@@ -1836,11 +1857,11 @@ class CI_Email {
|
|
|
1836
1857
|
* @access private
|
|
1837
1858
|
* @return string
|
|
1838
1859
|
*/
|
|
1839
|
-
function _get_hostname()
|
|
1860
|
+
private function _get_hostname()
|
|
1840
1861
|
{
|
|
1841
1862
|
return (isset($_SERVER['SERVER_NAME'])) ? $_SERVER['SERVER_NAME'] : 'localhost.localdomain';
|
|
1842
1863
|
}
|
|
1843
|
-
|
|
1864
|
+
|
|
1844
1865
|
// --------------------------------------------------------------------
|
|
1845
1866
|
|
|
1846
1867
|
/**
|
|
@@ -1849,7 +1870,7 @@ class CI_Email {
|
|
|
1849
1870
|
* @access private
|
|
1850
1871
|
* @return string
|
|
1851
1872
|
*/
|
|
1852
|
-
function _get_ip()
|
|
1873
|
+
private function _get_ip()
|
|
1853
1874
|
{
|
|
1854
1875
|
if ($this->_IP !== FALSE)
|
|
1855
1876
|
{
|
|
@@ -1860,12 +1881,12 @@ class CI_Email {
|
|
|
1860
1881
|
$rip = (isset($_SERVER['REMOTE_ADDR']) AND $_SERVER['REMOTE_ADDR'] != "") ? $_SERVER['REMOTE_ADDR'] : FALSE;
|
|
1861
1882
|
$fip = (isset($_SERVER['HTTP_X_FORWARDED_FOR']) AND $_SERVER['HTTP_X_FORWARDED_FOR'] != "") ? $_SERVER['HTTP_X_FORWARDED_FOR'] : FALSE;
|
|
1862
1883
|
|
|
1863
|
-
if ($cip && $rip)
|
|
1884
|
+
if ($cip && $rip) $this->_IP = $cip;
|
|
1864
1885
|
elseif ($rip) $this->_IP = $rip;
|
|
1865
1886
|
elseif ($cip) $this->_IP = $cip;
|
|
1866
1887
|
elseif ($fip) $this->_IP = $fip;
|
|
1867
1888
|
|
|
1868
|
-
if (
|
|
1889
|
+
if (strpos($this->_IP, ',') !== FALSE)
|
|
1869
1890
|
{
|
|
1870
1891
|
$x = explode(',', $this->_IP);
|
|
1871
1892
|
$this->_IP = end($x);
|
|
@@ -1882,7 +1903,7 @@ class CI_Email {
|
|
|
1882
1903
|
|
|
1883
1904
|
return $this->_IP;
|
|
1884
1905
|
}
|
|
1885
|
-
|
|
1906
|
+
|
|
1886
1907
|
// --------------------------------------------------------------------
|
|
1887
1908
|
|
|
1888
1909
|
/**
|
|
@@ -1891,7 +1912,7 @@ class CI_Email {
|
|
|
1891
1912
|
* @access public
|
|
1892
1913
|
* @return string
|
|
1893
1914
|
*/
|
|
1894
|
-
function print_debugger()
|
|
1915
|
+
public function print_debugger()
|
|
1895
1916
|
{
|
|
1896
1917
|
$msg = '';
|
|
1897
1918
|
|
|
@@ -1906,7 +1927,7 @@ class CI_Email {
|
|
|
1906
1927
|
$msg .= "<pre>".$this->_header_str."\n".htmlspecialchars($this->_subject)."\n".htmlspecialchars($this->_finalbody).'</pre>';
|
|
1907
1928
|
return $msg;
|
|
1908
1929
|
}
|
|
1909
|
-
|
|
1930
|
+
|
|
1910
1931
|
// --------------------------------------------------------------------
|
|
1911
1932
|
|
|
1912
1933
|
/**
|
|
@@ -1916,7 +1937,7 @@ class CI_Email {
|
|
|
1916
1937
|
* @param string
|
|
1917
1938
|
* @return string
|
|
1918
1939
|
*/
|
|
1919
|
-
function _set_error_message($msg, $val = '')
|
|
1940
|
+
private function _set_error_message($msg, $val = '')
|
|
1920
1941
|
{
|
|
1921
1942
|
$CI =& get_instance();
|
|
1922
1943
|
$CI->lang->load('email');
|
|
@@ -1930,7 +1951,7 @@ class CI_Email {
|
|
|
1930
1951
|
$this->_debug_msg[] = str_replace('%s', $val, $line)."<br />";
|
|
1931
1952
|
}
|
|
1932
1953
|
}
|
|
1933
|
-
|
|
1954
|
+
|
|
1934
1955
|
// --------------------------------------------------------------------
|
|
1935
1956
|
|
|
1936
1957
|
/**
|
|
@@ -1940,7 +1961,7 @@ class CI_Email {
|
|
|
1940
1961
|
* @param string
|
|
1941
1962
|
* @return string
|
|
1942
1963
|
*/
|
|
1943
|
-
function _mime_types($ext = "")
|
|
1964
|
+
private function _mime_types($ext = "")
|
|
1944
1965
|
{
|
|
1945
1966
|
$mimes = array( 'hqx' => 'application/mac-binhex40',
|
|
1946
1967
|
'cpt' => 'application/mac-compactpro',
|