codeigniter_vender 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -0
- data/MIT-LICENSE +20 -0
- data/README +40 -0
- data/Rakefile +18 -0
- data/VERSION +1 -0
- data/codeigniter_vender.gemspec +389 -0
- data/generators/ci_app/USAGE +8 -0
- data/generators/ci_app/ci_app_generator.rb +12 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/index.php +118 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/license.txt +52 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/config/autoload.php +116 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/config/config.php +329 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/config/constants.php +41 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/config/database.php +55 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/config/doctypes.php +15 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/config/hooks.php +16 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/config/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/config/mimes.php +105 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/config/routes.php +48 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/config/smileys.php +66 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/config/user_agents.php +175 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/controllers/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/controllers/welcome.php +17 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/errors/error_404.php +34 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/errors/error_db.php +34 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/errors/error_general.php +34 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/errors/error_php.php +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/errors/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/helpers/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/hooks/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/language/english/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/libraries/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/models/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/views/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/application/views/welcome_message.php +62 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/cache/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/codeigniter/Base4.php +69 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/codeigniter/Base5.php +56 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/codeigniter/CodeIgniter.php +280 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/codeigniter/Common.php +421 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/codeigniter/Compat.php +93 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/codeigniter/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/DB.php +146 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/DB_active_rec.php +1820 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/DB_cache.php +195 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/DB_driver.php +1366 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/DB_forge.php +375 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/DB_result.php +342 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/DB_utility.php +389 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/mssql/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/mssql/mssql_driver.php +667 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/mssql/mssql_forge.php +248 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/mssql/mssql_result.php +169 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/mssql/mssql_utility.php +123 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/mysql/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/mysql/mysql_driver.php +670 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/mysql/mysql_forge.php +254 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/mysql/mysql_result.php +169 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/mysql/mysql_utility.php +245 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/mysqli/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/mysqli/mysqli_driver.php +671 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/mysqli/mysqli_forge.php +254 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/mysqli/mysqli_result.php +169 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/mysqli/mysqli_utility.php +123 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/oci8/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/oci8/oci8_driver.php +780 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/oci8/oci8_forge.php +248 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/oci8/oci8_result.php +249 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/oci8/oci8_utility.php +122 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/odbc/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/odbc/odbc_driver.php +639 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/odbc/odbc_forge.php +266 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/odbc/odbc_result.php +228 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/odbc/odbc_utility.php +148 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/postgre/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/postgre/postgre_driver.php +684 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/postgre/postgre_forge.php +248 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/postgre/postgre_result.php +169 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/postgre/postgre_utility.php +124 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/sqlite/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/sqlite/sqlite_driver.php +657 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/sqlite/sqlite_forge.php +265 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/sqlite/sqlite_result.php +179 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/drivers/sqlite/sqlite_utility.php +141 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/database/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/fonts/index.html +10 -0
- 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/array_helper.php +78 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/compatibility_helper.php +498 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/cookie_helper.php +144 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/date_helper.php +611 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/directory_helper.php +84 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/download_helper.php +100 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/email_helper.php +62 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/file_helper.php +464 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/form_helper.php +1025 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/html_helper.php +416 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/inflector_helper.php +171 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/language_helper.php +58 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/number_helper.php +75 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/path_helper.php +72 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/security_helper.php +126 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/smiley_helper.php +273 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/string_helper.php +273 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/text_helper.php +462 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/typography_helper.php +71 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/url_helper.php +593 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/helpers/xml_helper.php +62 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/language/english/calendar_lang.php +51 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/language/english/date_lang.php +60 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/language/english/db_lang.php +28 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/language/english/email_lang.php +24 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/language/english/form_validation_lang.php +24 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/language/english/ftp_lang.php +17 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/language/english/imglib_lang.php +24 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/language/english/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/language/english/number_lang.php +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/language/english/profiler_lang.php +19 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/language/english/scaffolding_lang.php +17 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/language/english/unit_test_lang.php +24 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/language/english/upload_lang.php +22 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/language/english/validation_lang.php +24 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/language/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Benchmark.php +113 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Calendar.php +477 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Cart.php +550 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Config.php +244 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Controller.php +127 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Email.php +2041 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Encrypt.php +484 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Exceptions.php +174 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Form_validation.php +1278 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Ftp.php +618 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Hooks.php +226 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Image_lib.php +1544 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Input.php +1067 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Language.php +123 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Loader.php +1085 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Log.php +117 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Model.php +83 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Output.php +409 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Pagination.php +244 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Parser.php +173 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Profiler.php +392 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Router.php +389 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Session.php +758 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Sha1.php +251 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Table.php +440 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Trackback.php +547 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Typography.php +406 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/URI.php +586 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Unit_test.php +347 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Upload.php +970 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/User_agent.php +502 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Validation.php +875 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Xmlrpc.php +1421 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Xmlrpcs.php +536 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/Zip.php +359 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/libraries/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/logs/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/plugins/captcha_pi.php +356 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/plugins/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/plugins/js_calendar_pi.php +629 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/Scaffolding.php +291 -0
- 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/index.html +10 -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 +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/views/add.php +32 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/views/delete.php +9 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/views/edit.php +33 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/views/footer.php +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/views/header.php +29 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/views/index.html +10 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/views/no_data.php +8 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/views/stylesheet.css +143 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/system/scaffolding/views/view.php +27 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/changelog.html +1080 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/database/active_record.html +757 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/database/caching.html +220 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/database/call_function.html +118 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/database/configuration.html +157 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/database/connecting.html +186 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/database/examples.html +217 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/database/fields.html +163 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/database/forge.html +234 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/database/helpers.html +151 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/database/index.html +99 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/database/queries.html +153 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/database/results.html +238 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/database/table_data.html +113 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/database/transactions.html +200 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/database/utilities.html +295 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/doc_style/index.html +86 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/doc_style/template.html +128 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/alternative_php.html +147 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/ancillary_classes.html +117 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/autoloader.html +101 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/caching.html +115 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/common_functions.html +119 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/controllers.html +385 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/core_classes.html +185 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/creating_libraries.html +298 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/credits.html +86 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/errors.html +138 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/helpers.html +185 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/hooks.html +167 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/libraries.html +94 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/managing_apps.html +133 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/models.html +251 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/plugins.html +127 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/profiling.html +104 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/quick_reference.html +77 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/requirements.html +82 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/reserved_names.html +156 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/routing.html +176 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/scaffolding.html +147 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/security.html +153 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/styleguide.html +687 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/urls.html +151 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/general/views.html +274 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/array_helper.html +119 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/compatibility_helper.html +118 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/cookie_helper.html +147 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/date_helper.html +408 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/directory_helper.html +143 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/download_helper.html +112 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/email_helper.html +102 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/file_helper.html +178 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/form_helper.html +484 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/html_helper.html +385 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/inflector_helper.html +151 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/language_helper.html +98 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/number_helper.html +107 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/path_helper.html +106 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/security_helper.html +125 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/smiley_helper.html +215 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/string_helper.html +176 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/text_helper.html +192 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/typography_helper.html +112 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/url_helper.html +289 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/helpers/xml_helper.html +105 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/images/appflowchart.gif +0 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/images/arrow.gif +0 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/images/ci_logo.jpg +0 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/images/ci_logo_flame.jpg +0 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/images/ci_quick_ref.png +0 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/images/codeigniter_1.7.1_helper_reference.pdf +0 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/images/codeigniter_1.7.1_helper_reference.png +0 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/images/codeigniter_1.7.1_library_reference.pdf +0 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/images/codeigniter_1.7.1_library_reference.png +0 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/images/file.gif +0 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/images/folder.gif +0 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/images/nav_bg_darker.jpg +0 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/images/nav_separator_darker.jpg +0 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/images/nav_toggle_darker.jpg +0 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/images/smile.gif +0 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/images/transparent.gif +0 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/index.html +99 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/downloads.html +105 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/index.html +97 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/troubleshooting.html +90 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/upgrade_120.html +92 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/upgrade_130.html +203 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/upgrade_131.html +102 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/upgrade_132.html +100 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/upgrade_133.html +112 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/upgrade_140.html +145 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/upgrade_141.html +148 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/upgrade_150.html +178 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/upgrade_152.html +111 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/upgrade_153.html +100 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/upgrade_154.html +116 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/upgrade_160.html +125 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/upgrade_161.html +98 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/upgrade_162.html +106 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/upgrade_163.html +99 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/upgrade_170.html +121 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/upgrade_171.html +98 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/upgrade_172.html +105 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/upgrade_b11.html +144 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/installation/upgrading.html +101 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/benchmark.html +198 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/calendar.html +249 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/cart.html +346 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/config.html +181 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/email.html +307 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/encryption.html +182 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/file_uploading.html +451 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/form_validation.html +1221 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/ftp.html +303 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/image_lib.html +666 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/input.html +231 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/language.html +137 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/loader.html +214 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/output.html +145 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/pagination.html +218 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/parser.html +208 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/sessions.html +311 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/table.html +292 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/trackback.html +246 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/typography.html +160 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/unit_testing.html +205 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/uri.html +252 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/user_agent.html +201 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/validation.html +740 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/xmlrpc.html +517 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/libraries/zip.html +278 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/license.html +107 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/nav/hacks.txt +9 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/nav/moo.fx.js +119 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/nav/moo.fx.pack.js +241 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/nav/nav.js +139 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/nav/prototype.lite.js +127 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/nav/user_guide_menu.js +4 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/overview/appflow.html +95 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/overview/at_a_glance.html +172 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/overview/cheatsheets.html +83 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/overview/features.html +120 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/overview/getting_started.html +92 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/overview/goals.html +98 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/overview/index.html +84 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/overview/mvc.html +100 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/toc.html +209 -0
- data/generators/ci_app/templates/CodeIgniter_1.7.2/user_guide/userguide.css +406 -0
- data/generators/ci_app/templates/README +1 -0
- data/generators/ci_controller/USAGE +2 -0
- data/generators/ci_controller/ci_controller_generator.rb +11 -0
- data/generators/ci_controller/templates/ci_controller.php.erb +15 -0
- data/generators/ci_controller/templates/ci_view.php.erb +8 -0
- data/generators/ci_layout/USAGE +2 -0
- data/generators/ci_layout/ci_layout_generator.rb +24 -0
- data/generators/ci_layout/templates/application_layout.php.erb +19 -0
- data/generators/ci_model/USAGE +2 -0
- data/generators/ci_model/ci_model_generator.rb +42 -0
- data/generators/ci_model/templates/ci_model.php.erb +15 -0
- data/generators/ci_model/templates/model.rb +5 -0
- data/generators/ci_model/templates/model_migration.rb.erb +16 -0
- data/init.rb +1 -0
- data/install.rb +1 -0
- data/lib/codeigniter_vender.rb +1 -0
- data/lib/tasks/app.rake +8 -0
- data/test/codeigniter_vender_test.rb +8 -0
- data/test/test_helper.rb +3 -0
- data/uninstall.rb +1 -0
- metadata +411 -0
@@ -0,0 +1,593 @@
|
|
1
|
+
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
2
|
+
/**
|
3
|
+
* CodeIgniter
|
4
|
+
*
|
5
|
+
* An open source application development framework for PHP 4.3.2 or newer
|
6
|
+
*
|
7
|
+
* @package CodeIgniter
|
8
|
+
* @author ExpressionEngine Dev Team
|
9
|
+
* @copyright Copyright (c) 2008 - 2010, EllisLab, Inc.
|
10
|
+
* @license http://codeigniter.com/user_guide/license.html
|
11
|
+
* @link http://codeigniter.com
|
12
|
+
* @since Version 1.0
|
13
|
+
* @filesource
|
14
|
+
*/
|
15
|
+
|
16
|
+
// ------------------------------------------------------------------------
|
17
|
+
|
18
|
+
/**
|
19
|
+
* CodeIgniter URL Helpers
|
20
|
+
*
|
21
|
+
* @package CodeIgniter
|
22
|
+
* @subpackage Helpers
|
23
|
+
* @category Helpers
|
24
|
+
* @author ExpressionEngine Dev Team
|
25
|
+
* @link http://codeigniter.com/user_guide/helpers/url_helper.html
|
26
|
+
*/
|
27
|
+
|
28
|
+
// ------------------------------------------------------------------------
|
29
|
+
|
30
|
+
/**
|
31
|
+
* Site URL
|
32
|
+
*
|
33
|
+
* Create a local URL based on your basepath. Segments can be passed via the
|
34
|
+
* first parameter either as a string or an array.
|
35
|
+
*
|
36
|
+
* @access public
|
37
|
+
* @param string
|
38
|
+
* @return string
|
39
|
+
*/
|
40
|
+
if ( ! function_exists('site_url'))
|
41
|
+
{
|
42
|
+
function site_url($uri = '')
|
43
|
+
{
|
44
|
+
$CI =& get_instance();
|
45
|
+
return $CI->config->site_url($uri);
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
// ------------------------------------------------------------------------
|
50
|
+
|
51
|
+
/**
|
52
|
+
* Base URL
|
53
|
+
*
|
54
|
+
* Returns the "base_url" item from your config file
|
55
|
+
*
|
56
|
+
* @access public
|
57
|
+
* @return string
|
58
|
+
*/
|
59
|
+
if ( ! function_exists('base_url'))
|
60
|
+
{
|
61
|
+
function base_url()
|
62
|
+
{
|
63
|
+
$CI =& get_instance();
|
64
|
+
return $CI->config->slash_item('base_url');
|
65
|
+
}
|
66
|
+
}
|
67
|
+
|
68
|
+
// ------------------------------------------------------------------------
|
69
|
+
|
70
|
+
/**
|
71
|
+
* Current URL
|
72
|
+
*
|
73
|
+
* Returns the full URL (including segments) of the page where this
|
74
|
+
* function is placed
|
75
|
+
*
|
76
|
+
* @access public
|
77
|
+
* @return string
|
78
|
+
*/
|
79
|
+
if ( ! function_exists('current_url'))
|
80
|
+
{
|
81
|
+
function current_url()
|
82
|
+
{
|
83
|
+
$CI =& get_instance();
|
84
|
+
return $CI->config->site_url($CI->uri->uri_string());
|
85
|
+
}
|
86
|
+
}
|
87
|
+
|
88
|
+
// ------------------------------------------------------------------------
|
89
|
+
/**
|
90
|
+
* URL String
|
91
|
+
*
|
92
|
+
* Returns the URI segments.
|
93
|
+
*
|
94
|
+
* @access public
|
95
|
+
* @return string
|
96
|
+
*/
|
97
|
+
if ( ! function_exists('uri_string'))
|
98
|
+
{
|
99
|
+
function uri_string()
|
100
|
+
{
|
101
|
+
$CI =& get_instance();
|
102
|
+
return $CI->uri->uri_string();
|
103
|
+
}
|
104
|
+
}
|
105
|
+
|
106
|
+
// ------------------------------------------------------------------------
|
107
|
+
|
108
|
+
/**
|
109
|
+
* Index page
|
110
|
+
*
|
111
|
+
* Returns the "index_page" from your config file
|
112
|
+
*
|
113
|
+
* @access public
|
114
|
+
* @return string
|
115
|
+
*/
|
116
|
+
if ( ! function_exists('index_page'))
|
117
|
+
{
|
118
|
+
function index_page()
|
119
|
+
{
|
120
|
+
$CI =& get_instance();
|
121
|
+
return $CI->config->item('index_page');
|
122
|
+
}
|
123
|
+
}
|
124
|
+
|
125
|
+
// ------------------------------------------------------------------------
|
126
|
+
|
127
|
+
/**
|
128
|
+
* Anchor Link
|
129
|
+
*
|
130
|
+
* Creates an anchor based on the local URL.
|
131
|
+
*
|
132
|
+
* @access public
|
133
|
+
* @param string the URL
|
134
|
+
* @param string the link title
|
135
|
+
* @param mixed any attributes
|
136
|
+
* @return string
|
137
|
+
*/
|
138
|
+
if ( ! function_exists('anchor'))
|
139
|
+
{
|
140
|
+
function anchor($uri = '', $title = '', $attributes = '')
|
141
|
+
{
|
142
|
+
$title = (string) $title;
|
143
|
+
|
144
|
+
if ( ! is_array($uri))
|
145
|
+
{
|
146
|
+
$site_url = ( ! preg_match('!^\w+://! i', $uri)) ? site_url($uri) : $uri;
|
147
|
+
}
|
148
|
+
else
|
149
|
+
{
|
150
|
+
$site_url = site_url($uri);
|
151
|
+
}
|
152
|
+
|
153
|
+
if ($title == '')
|
154
|
+
{
|
155
|
+
$title = $site_url;
|
156
|
+
}
|
157
|
+
|
158
|
+
if ($attributes != '')
|
159
|
+
{
|
160
|
+
$attributes = _parse_attributes($attributes);
|
161
|
+
}
|
162
|
+
|
163
|
+
return '<a href="'.$site_url.'"'.$attributes.'>'.$title.'</a>';
|
164
|
+
}
|
165
|
+
}
|
166
|
+
|
167
|
+
// ------------------------------------------------------------------------
|
168
|
+
|
169
|
+
/**
|
170
|
+
* Anchor Link - Pop-up version
|
171
|
+
*
|
172
|
+
* Creates an anchor based on the local URL. The link
|
173
|
+
* opens a new window based on the attributes specified.
|
174
|
+
*
|
175
|
+
* @access public
|
176
|
+
* @param string the URL
|
177
|
+
* @param string the link title
|
178
|
+
* @param mixed any attributes
|
179
|
+
* @return string
|
180
|
+
*/
|
181
|
+
if ( ! function_exists('anchor_popup'))
|
182
|
+
{
|
183
|
+
function anchor_popup($uri = '', $title = '', $attributes = FALSE)
|
184
|
+
{
|
185
|
+
$title = (string) $title;
|
186
|
+
|
187
|
+
$site_url = ( ! preg_match('!^\w+://! i', $uri)) ? site_url($uri) : $uri;
|
188
|
+
|
189
|
+
if ($title == '')
|
190
|
+
{
|
191
|
+
$title = $site_url;
|
192
|
+
}
|
193
|
+
|
194
|
+
if ($attributes === FALSE)
|
195
|
+
{
|
196
|
+
return "<a href='javascript:void(0);' onclick=\"window.open('".$site_url."', '_blank');\">".$title."</a>";
|
197
|
+
}
|
198
|
+
|
199
|
+
if ( ! is_array($attributes))
|
200
|
+
{
|
201
|
+
$attributes = array();
|
202
|
+
}
|
203
|
+
|
204
|
+
foreach (array('width' => '800', 'height' => '600', 'scrollbars' => 'yes', 'status' => 'yes', 'resizable' => 'yes', 'screenx' => '0', 'screeny' => '0', ) as $key => $val)
|
205
|
+
{
|
206
|
+
$atts[$key] = ( ! isset($attributes[$key])) ? $val : $attributes[$key];
|
207
|
+
unset($attributes[$key]);
|
208
|
+
}
|
209
|
+
|
210
|
+
if ($attributes != '')
|
211
|
+
{
|
212
|
+
$attributes = _parse_attributes($attributes);
|
213
|
+
}
|
214
|
+
|
215
|
+
return "<a href='javascript:void(0);' onclick=\"window.open('".$site_url."', '_blank', '"._parse_attributes($atts, TRUE)."');\"$attributes>".$title."</a>";
|
216
|
+
}
|
217
|
+
}
|
218
|
+
|
219
|
+
// ------------------------------------------------------------------------
|
220
|
+
|
221
|
+
/**
|
222
|
+
* Mailto Link
|
223
|
+
*
|
224
|
+
* @access public
|
225
|
+
* @param string the email address
|
226
|
+
* @param string the link title
|
227
|
+
* @param mixed any attributes
|
228
|
+
* @return string
|
229
|
+
*/
|
230
|
+
if ( ! function_exists('mailto'))
|
231
|
+
{
|
232
|
+
function mailto($email, $title = '', $attributes = '')
|
233
|
+
{
|
234
|
+
$title = (string) $title;
|
235
|
+
|
236
|
+
if ($title == "")
|
237
|
+
{
|
238
|
+
$title = $email;
|
239
|
+
}
|
240
|
+
|
241
|
+
$attributes = _parse_attributes($attributes);
|
242
|
+
|
243
|
+
return '<a href="mailto:'.$email.'"'.$attributes.'>'.$title.'</a>';
|
244
|
+
}
|
245
|
+
}
|
246
|
+
|
247
|
+
// ------------------------------------------------------------------------
|
248
|
+
|
249
|
+
/**
|
250
|
+
* Encoded Mailto Link
|
251
|
+
*
|
252
|
+
* Create a spam-protected mailto link written in Javascript
|
253
|
+
*
|
254
|
+
* @access public
|
255
|
+
* @param string the email address
|
256
|
+
* @param string the link title
|
257
|
+
* @param mixed any attributes
|
258
|
+
* @return string
|
259
|
+
*/
|
260
|
+
if ( ! function_exists('safe_mailto'))
|
261
|
+
{
|
262
|
+
function safe_mailto($email, $title = '', $attributes = '')
|
263
|
+
{
|
264
|
+
$title = (string) $title;
|
265
|
+
|
266
|
+
if ($title == "")
|
267
|
+
{
|
268
|
+
$title = $email;
|
269
|
+
}
|
270
|
+
|
271
|
+
for ($i = 0; $i < 16; $i++)
|
272
|
+
{
|
273
|
+
$x[] = substr('<a href="mailto:', $i, 1);
|
274
|
+
}
|
275
|
+
|
276
|
+
for ($i = 0; $i < strlen($email); $i++)
|
277
|
+
{
|
278
|
+
$x[] = "|".ord(substr($email, $i, 1));
|
279
|
+
}
|
280
|
+
|
281
|
+
$x[] = '"';
|
282
|
+
|
283
|
+
if ($attributes != '')
|
284
|
+
{
|
285
|
+
if (is_array($attributes))
|
286
|
+
{
|
287
|
+
foreach ($attributes as $key => $val)
|
288
|
+
{
|
289
|
+
$x[] = ' '.$key.'="';
|
290
|
+
for ($i = 0; $i < strlen($val); $i++)
|
291
|
+
{
|
292
|
+
$x[] = "|".ord(substr($val, $i, 1));
|
293
|
+
}
|
294
|
+
$x[] = '"';
|
295
|
+
}
|
296
|
+
}
|
297
|
+
else
|
298
|
+
{
|
299
|
+
for ($i = 0; $i < strlen($attributes); $i++)
|
300
|
+
{
|
301
|
+
$x[] = substr($attributes, $i, 1);
|
302
|
+
}
|
303
|
+
}
|
304
|
+
}
|
305
|
+
|
306
|
+
$x[] = '>';
|
307
|
+
|
308
|
+
$temp = array();
|
309
|
+
for ($i = 0; $i < strlen($title); $i++)
|
310
|
+
{
|
311
|
+
$ordinal = ord($title[$i]);
|
312
|
+
|
313
|
+
if ($ordinal < 128)
|
314
|
+
{
|
315
|
+
$x[] = "|".$ordinal;
|
316
|
+
}
|
317
|
+
else
|
318
|
+
{
|
319
|
+
if (count($temp) == 0)
|
320
|
+
{
|
321
|
+
$count = ($ordinal < 224) ? 2 : 3;
|
322
|
+
}
|
323
|
+
|
324
|
+
$temp[] = $ordinal;
|
325
|
+
if (count($temp) == $count)
|
326
|
+
{
|
327
|
+
$number = ($count == 3) ? (($temp['0'] % 16) * 4096) + (($temp['1'] % 64) * 64) + ($temp['2'] % 64) : (($temp['0'] % 32) * 64) + ($temp['1'] % 64);
|
328
|
+
$x[] = "|".$number;
|
329
|
+
$count = 1;
|
330
|
+
$temp = array();
|
331
|
+
}
|
332
|
+
}
|
333
|
+
}
|
334
|
+
|
335
|
+
$x[] = '<'; $x[] = '/'; $x[] = 'a'; $x[] = '>';
|
336
|
+
|
337
|
+
$x = array_reverse($x);
|
338
|
+
ob_start();
|
339
|
+
|
340
|
+
?><script type="text/javascript">
|
341
|
+
//<![CDATA[
|
342
|
+
var l=new Array();
|
343
|
+
<?php
|
344
|
+
$i = 0;
|
345
|
+
foreach ($x as $val){ ?>l[<?php echo $i++; ?>]='<?php echo $val; ?>';<?php } ?>
|
346
|
+
|
347
|
+
for (var i = l.length-1; i >= 0; i=i-1){
|
348
|
+
if (l[i].substring(0, 1) == '|') document.write("&#"+unescape(l[i].substring(1))+";");
|
349
|
+
else document.write(unescape(l[i]));}
|
350
|
+
//]]>
|
351
|
+
</script><?php
|
352
|
+
|
353
|
+
$buffer = ob_get_contents();
|
354
|
+
ob_end_clean();
|
355
|
+
return $buffer;
|
356
|
+
}
|
357
|
+
}
|
358
|
+
|
359
|
+
// ------------------------------------------------------------------------
|
360
|
+
|
361
|
+
/**
|
362
|
+
* Auto-linker
|
363
|
+
*
|
364
|
+
* Automatically links URL and Email addresses.
|
365
|
+
* Note: There's a bit of extra code here to deal with
|
366
|
+
* URLs or emails that end in a period. We'll strip these
|
367
|
+
* off and add them after the link.
|
368
|
+
*
|
369
|
+
* @access public
|
370
|
+
* @param string the string
|
371
|
+
* @param string the type: email, url, or both
|
372
|
+
* @param bool whether to create pop-up links
|
373
|
+
* @return string
|
374
|
+
*/
|
375
|
+
if ( ! function_exists('auto_link'))
|
376
|
+
{
|
377
|
+
function auto_link($str, $type = 'both', $popup = FALSE)
|
378
|
+
{
|
379
|
+
if ($type != 'email')
|
380
|
+
{
|
381
|
+
if (preg_match_all("#(^|\s|\()((http(s?)://)|(www\.))(\w+[^\s\)\<]+)#i", $str, $matches))
|
382
|
+
{
|
383
|
+
$pop = ($popup == TRUE) ? " target=\"_blank\" " : "";
|
384
|
+
|
385
|
+
for ($i = 0; $i < count($matches['0']); $i++)
|
386
|
+
{
|
387
|
+
$period = '';
|
388
|
+
if (preg_match("|\.$|", $matches['6'][$i]))
|
389
|
+
{
|
390
|
+
$period = '.';
|
391
|
+
$matches['6'][$i] = substr($matches['6'][$i], 0, -1);
|
392
|
+
}
|
393
|
+
|
394
|
+
$str = str_replace($matches['0'][$i],
|
395
|
+
$matches['1'][$i].'<a href="http'.
|
396
|
+
$matches['4'][$i].'://'.
|
397
|
+
$matches['5'][$i].
|
398
|
+
$matches['6'][$i].'"'.$pop.'>http'.
|
399
|
+
$matches['4'][$i].'://'.
|
400
|
+
$matches['5'][$i].
|
401
|
+
$matches['6'][$i].'</a>'.
|
402
|
+
$period, $str);
|
403
|
+
}
|
404
|
+
}
|
405
|
+
}
|
406
|
+
|
407
|
+
if ($type != 'url')
|
408
|
+
{
|
409
|
+
if (preg_match_all("/([a-zA-Z0-9_\.\-\+]+)@([a-zA-Z0-9\-]+)\.([a-zA-Z0-9\-\.]*)/i", $str, $matches))
|
410
|
+
{
|
411
|
+
for ($i = 0; $i < count($matches['0']); $i++)
|
412
|
+
{
|
413
|
+
$period = '';
|
414
|
+
if (preg_match("|\.$|", $matches['3'][$i]))
|
415
|
+
{
|
416
|
+
$period = '.';
|
417
|
+
$matches['3'][$i] = substr($matches['3'][$i], 0, -1);
|
418
|
+
}
|
419
|
+
|
420
|
+
$str = str_replace($matches['0'][$i], safe_mailto($matches['1'][$i].'@'.$matches['2'][$i].'.'.$matches['3'][$i]).$period, $str);
|
421
|
+
}
|
422
|
+
}
|
423
|
+
}
|
424
|
+
|
425
|
+
return $str;
|
426
|
+
}
|
427
|
+
}
|
428
|
+
|
429
|
+
// ------------------------------------------------------------------------
|
430
|
+
|
431
|
+
/**
|
432
|
+
* Prep URL
|
433
|
+
*
|
434
|
+
* Simply adds the http:// part if missing
|
435
|
+
*
|
436
|
+
* @access public
|
437
|
+
* @param string the URL
|
438
|
+
* @return string
|
439
|
+
*/
|
440
|
+
if ( ! function_exists('prep_url'))
|
441
|
+
{
|
442
|
+
function prep_url($str = '')
|
443
|
+
{
|
444
|
+
if ($str == 'http://' OR $str == '')
|
445
|
+
{
|
446
|
+
return '';
|
447
|
+
}
|
448
|
+
|
449
|
+
if (substr($str, 0, 7) != 'http://' && substr($str, 0, 8) != 'https://')
|
450
|
+
{
|
451
|
+
$str = 'http://'.$str;
|
452
|
+
}
|
453
|
+
|
454
|
+
return $str;
|
455
|
+
}
|
456
|
+
}
|
457
|
+
|
458
|
+
// ------------------------------------------------------------------------
|
459
|
+
|
460
|
+
/**
|
461
|
+
* Create URL Title
|
462
|
+
*
|
463
|
+
* Takes a "title" string as input and creates a
|
464
|
+
* human-friendly URL string with either a dash
|
465
|
+
* or an underscore as the word separator.
|
466
|
+
*
|
467
|
+
* @access public
|
468
|
+
* @param string the string
|
469
|
+
* @param string the separator: dash, or underscore
|
470
|
+
* @return string
|
471
|
+
*/
|
472
|
+
if ( ! function_exists('url_title'))
|
473
|
+
{
|
474
|
+
function url_title($str, $separator = 'dash', $lowercase = FALSE)
|
475
|
+
{
|
476
|
+
if ($separator == 'dash')
|
477
|
+
{
|
478
|
+
$search = '_';
|
479
|
+
$replace = '-';
|
480
|
+
}
|
481
|
+
else
|
482
|
+
{
|
483
|
+
$search = '-';
|
484
|
+
$replace = '_';
|
485
|
+
}
|
486
|
+
|
487
|
+
$trans = array(
|
488
|
+
'&\#\d+?;' => '',
|
489
|
+
'&\S+?;' => '',
|
490
|
+
'\s+' => $replace,
|
491
|
+
'[^a-z0-9\-\._]' => '',
|
492
|
+
$replace.'+' => $replace,
|
493
|
+
$replace.'$' => $replace,
|
494
|
+
'^'.$replace => $replace,
|
495
|
+
'\.+$' => ''
|
496
|
+
);
|
497
|
+
|
498
|
+
$str = strip_tags($str);
|
499
|
+
|
500
|
+
foreach ($trans as $key => $val)
|
501
|
+
{
|
502
|
+
$str = preg_replace("#".$key."#i", $val, $str);
|
503
|
+
}
|
504
|
+
|
505
|
+
if ($lowercase === TRUE)
|
506
|
+
{
|
507
|
+
$str = strtolower($str);
|
508
|
+
}
|
509
|
+
|
510
|
+
return trim(stripslashes($str));
|
511
|
+
}
|
512
|
+
}
|
513
|
+
|
514
|
+
// ------------------------------------------------------------------------
|
515
|
+
|
516
|
+
/**
|
517
|
+
* Header Redirect
|
518
|
+
*
|
519
|
+
* Header redirect in two flavors
|
520
|
+
* For very fine grained control over headers, you could use the Output
|
521
|
+
* Library's set_header() function.
|
522
|
+
*
|
523
|
+
* @access public
|
524
|
+
* @param string the URL
|
525
|
+
* @param string the method: location or redirect
|
526
|
+
* @return string
|
527
|
+
*/
|
528
|
+
if ( ! function_exists('redirect'))
|
529
|
+
{
|
530
|
+
function redirect($uri = '', $method = 'location', $http_response_code = 302)
|
531
|
+
{
|
532
|
+
if ( ! preg_match('#^https?://#i', $uri))
|
533
|
+
{
|
534
|
+
$uri = site_url($uri);
|
535
|
+
}
|
536
|
+
|
537
|
+
switch($method)
|
538
|
+
{
|
539
|
+
case 'refresh' : header("Refresh:0;url=".$uri);
|
540
|
+
break;
|
541
|
+
default : header("Location: ".$uri, TRUE, $http_response_code);
|
542
|
+
break;
|
543
|
+
}
|
544
|
+
exit;
|
545
|
+
}
|
546
|
+
}
|
547
|
+
|
548
|
+
// ------------------------------------------------------------------------
|
549
|
+
|
550
|
+
/**
|
551
|
+
* Parse out the attributes
|
552
|
+
*
|
553
|
+
* Some of the functions use this
|
554
|
+
*
|
555
|
+
* @access private
|
556
|
+
* @param array
|
557
|
+
* @param bool
|
558
|
+
* @return string
|
559
|
+
*/
|
560
|
+
if ( ! function_exists('_parse_attributes'))
|
561
|
+
{
|
562
|
+
function _parse_attributes($attributes, $javascript = FALSE)
|
563
|
+
{
|
564
|
+
if (is_string($attributes))
|
565
|
+
{
|
566
|
+
return ($attributes != '') ? ' '.$attributes : '';
|
567
|
+
}
|
568
|
+
|
569
|
+
$att = '';
|
570
|
+
foreach ($attributes as $key => $val)
|
571
|
+
{
|
572
|
+
if ($javascript == TRUE)
|
573
|
+
{
|
574
|
+
$att .= $key . '=' . $val . ',';
|
575
|
+
}
|
576
|
+
else
|
577
|
+
{
|
578
|
+
$att .= ' ' . $key . '="' . $val . '"';
|
579
|
+
}
|
580
|
+
}
|
581
|
+
|
582
|
+
if ($javascript == TRUE AND $att != '')
|
583
|
+
{
|
584
|
+
$att = substr($att, 0, -1);
|
585
|
+
}
|
586
|
+
|
587
|
+
return $att;
|
588
|
+
}
|
589
|
+
}
|
590
|
+
|
591
|
+
|
592
|
+
/* End of file url_helper.php */
|
593
|
+
/* Location: ./system/helpers/url_helper.php */
|
@@ -0,0 +1,62 @@
|
|
1
|
+
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
2
|
+
/**
|
3
|
+
* CodeIgniter
|
4
|
+
*
|
5
|
+
* An open source application development framework for PHP 4.3.2 or newer
|
6
|
+
*
|
7
|
+
* @package CodeIgniter
|
8
|
+
* @author ExpressionEngine Dev Team
|
9
|
+
* @copyright Copyright (c) 2008 - 2010, EllisLab, Inc.
|
10
|
+
* @license http://codeigniter.com/user_guide/license.html
|
11
|
+
* @link http://codeigniter.com
|
12
|
+
* @since Version 1.0
|
13
|
+
* @filesource
|
14
|
+
*/
|
15
|
+
|
16
|
+
// ------------------------------------------------------------------------
|
17
|
+
|
18
|
+
/**
|
19
|
+
* CodeIgniter XML Helpers
|
20
|
+
*
|
21
|
+
* @package CodeIgniter
|
22
|
+
* @subpackage Helpers
|
23
|
+
* @category Helpers
|
24
|
+
* @author ExpressionEngine Dev Team
|
25
|
+
* @link http://codeigniter.com/user_guide/helpers/xml_helper.html
|
26
|
+
*/
|
27
|
+
|
28
|
+
// ------------------------------------------------------------------------
|
29
|
+
|
30
|
+
/**
|
31
|
+
* Convert Reserved XML characters to Entities
|
32
|
+
*
|
33
|
+
* @access public
|
34
|
+
* @param string
|
35
|
+
* @return string
|
36
|
+
*/
|
37
|
+
if ( ! function_exists('xml_convert'))
|
38
|
+
{
|
39
|
+
function xml_convert($str)
|
40
|
+
{
|
41
|
+
$temp = '__TEMP_AMPERSANDS__';
|
42
|
+
|
43
|
+
// Replace entities to temporary markers so that
|
44
|
+
// ampersands won't get messed up
|
45
|
+
$str = preg_replace("/&#(\d+);/", "$temp\\1;", $str);
|
46
|
+
$str = preg_replace("/&(\w+);/", "$temp\\1;", $str);
|
47
|
+
|
48
|
+
$str = str_replace(array("&","<",">","\"", "'", "-"),
|
49
|
+
array("&", "<", ">", """, "'", "-"),
|
50
|
+
$str);
|
51
|
+
|
52
|
+
// Decode the temp markers back to entities
|
53
|
+
$str = preg_replace("/$temp(\d+);/","&#\\1;",$str);
|
54
|
+
$str = preg_replace("/$temp(\w+);/","&\\1;", $str);
|
55
|
+
|
56
|
+
return $str;
|
57
|
+
}
|
58
|
+
}
|
59
|
+
|
60
|
+
|
61
|
+
/* End of file xml_helper.php */
|
62
|
+
/* Location: ./system/helpers/xml_helper.php */
|
@@ -0,0 +1,51 @@
|
|
1
|
+
<?php
|
2
|
+
|
3
|
+
$lang['cal_su'] = "Su";
|
4
|
+
$lang['cal_mo'] = "Mo";
|
5
|
+
$lang['cal_tu'] = "Tu";
|
6
|
+
$lang['cal_we'] = "We";
|
7
|
+
$lang['cal_th'] = "Th";
|
8
|
+
$lang['cal_fr'] = "Fr";
|
9
|
+
$lang['cal_sa'] = "Sa";
|
10
|
+
$lang['cal_sun'] = "Sun";
|
11
|
+
$lang['cal_mon'] = "Mon";
|
12
|
+
$lang['cal_tue'] = "Tue";
|
13
|
+
$lang['cal_wed'] = "Wed";
|
14
|
+
$lang['cal_thu'] = "Thu";
|
15
|
+
$lang['cal_fri'] = "Fri";
|
16
|
+
$lang['cal_sat'] = "Sat";
|
17
|
+
$lang['cal_sunday'] = "Sunday";
|
18
|
+
$lang['cal_monday'] = "Monday";
|
19
|
+
$lang['cal_tuesday'] = "Tuesday";
|
20
|
+
$lang['cal_wednesday'] = "Wednesday";
|
21
|
+
$lang['cal_thursday'] = "Thursday";
|
22
|
+
$lang['cal_friday'] = "Friday";
|
23
|
+
$lang['cal_saturday'] = "Saturday";
|
24
|
+
$lang['cal_jan'] = "Jan";
|
25
|
+
$lang['cal_feb'] = "Feb";
|
26
|
+
$lang['cal_mar'] = "Mar";
|
27
|
+
$lang['cal_apr'] = "Apr";
|
28
|
+
$lang['cal_may'] = "May";
|
29
|
+
$lang['cal_jun'] = "Jun";
|
30
|
+
$lang['cal_jul'] = "Jul";
|
31
|
+
$lang['cal_aug'] = "Aug";
|
32
|
+
$lang['cal_sep'] = "Sep";
|
33
|
+
$lang['cal_oct'] = "Oct";
|
34
|
+
$lang['cal_nov'] = "Nov";
|
35
|
+
$lang['cal_dec'] = "Dec";
|
36
|
+
$lang['cal_january'] = "January";
|
37
|
+
$lang['cal_february'] = "February";
|
38
|
+
$lang['cal_march'] = "March";
|
39
|
+
$lang['cal_april'] = "April";
|
40
|
+
$lang['cal_mayl'] = "May";
|
41
|
+
$lang['cal_june'] = "June";
|
42
|
+
$lang['cal_july'] = "July";
|
43
|
+
$lang['cal_august'] = "August";
|
44
|
+
$lang['cal_september'] = "September";
|
45
|
+
$lang['cal_october'] = "October";
|
46
|
+
$lang['cal_november'] = "November";
|
47
|
+
$lang['cal_december'] = "December";
|
48
|
+
|
49
|
+
|
50
|
+
/* End of file calendar_lang.php */
|
51
|
+
/* Location: ./system/language/english/calendar_lang.php */
|