From 4b9c62980599228f070b401c7673dce8085b0c61 Mon Sep 17 00:00:00 2001
From: Derek Jones If you wish to increase security by hiding the location of your CodeIgniter files you can rename the system and application folders
-to something more private. If you do rename them, you must open your main index.php file and set the $system_folder and $application_folder
+to something more private. If you do rename them, you must open your main index.php file and set the $system_folder and $application_folder
variables at the top of the file with the new name you've chosen. For the best security, both the system and any application folders should be placed above web root so that they are not directly accessible via a browser. By default, .htaccess files are included in each folder to help prevent direct access, but it is best to remove them from public access entirely in case the web server configuration changes or doesn't abide by the .htaccess. For the best security, both the system and any application folders should be placed above web root so that they are not directly accessible via a browser. By default, .htaccess files are included in each folder to help prevent direct access, but it is best to remove them from public access entirely in case the web server configuration changes or doesn't abide by the .htaccess. After moving them, open your main
- One additional measure to take in production environments is to disable
- PHP error reporting and any other development-only functionality. In CodeIgniter,
- this can be done by setting the ENVIRONMENT constant, which is
- more fully described on the security page.
+ One additional measure to take in production environments is to disable
+ PHP error reporting and any other development-only functionality. In CodeIgniter,
+ this can be done by setting the ENVIRONMENT constant, which is
+ more fully described on the security page.
That's it!
$config['index_page'] = "index.php";
diff --git a/user_guide/installation/upgrade_130.html b/user_guide/installation/upgrade_130.html
index e6bb9480e..f7ffac74e 100644
--- a/user_guide/installation/upgrade_130.html
+++ b/user_guide/installation/upgrade_130.html
@@ -57,7 +57,7 @@ Upgrading from 1.2 to 1.3
Note: The instructions on this page assume you are running version 1.2. If you +
Note: The instructions on this page assume you are running version 1.2. If you have not upgraded to that version please do so first.
@@ -72,8 +72,8 @@ with a static one.Note: If you have any custom developed files in these folders please make copies of them first.
Please open your main index.php file (located at your root). At the very bottom of the file, change this:
+Please open your main index.php file (located at your root). At the very bottom of the file, change this:
require_once BASEPATH.'libraries/Front_controller'.EXT;
diff --git a/user_guide/installation/upgrade_131.html b/user_guide/installation/upgrade_131.html
index a7025f2a7..7541a83ec 100644
--- a/user_guide/installation/upgrade_131.html
+++ b/user_guide/installation/upgrade_131.html
@@ -57,7 +57,7 @@ Upgrading from 1.3 to 1.3.1
Note: The instructions on this page assume you are running version 1.3. If you +
Note: The instructions on this page assume you are running version 1.3. If you have not upgraded to that version please do so first.
Before performing an update you should take your site offline by replacing the index.php file with a static one.
diff --git a/user_guide/installation/upgrade_132.html b/user_guide/installation/upgrade_132.html index 3b71594dc..4fcbb46b9 100644 --- a/user_guide/installation/upgrade_132.html +++ b/user_guide/installation/upgrade_132.html @@ -57,7 +57,7 @@ Upgrading from 1.3.1 to 1.3.2Note: The instructions on this page assume you are running version 1.3.1. If you +
Note: The instructions on this page assume you are running version 1.3.1. If you have not upgraded to that version please do so first.
Before performing an update you should take your site offline by replacing the index.php file with a static one.
diff --git a/user_guide/installation/upgrade_133.html b/user_guide/installation/upgrade_133.html index a81f67bf5..c63465955 100644 --- a/user_guide/installation/upgrade_133.html +++ b/user_guide/installation/upgrade_133.html @@ -57,7 +57,7 @@ Upgrading from 1.3.2 to 1.3.3Note: The instructions on this page assume you are running version 1.3.2. If you +
Note: The instructions on this page assume you are running version 1.3.2. If you have not upgraded to that version please do so first.
Before performing an update you should take your site offline by replacing the index.php file with a static one.
@@ -83,9 +83,9 @@ have not upgraded to that version please do so first.If you are NOT using CodeIgniter's Models feature disregard this step.
-As of version 1.3.3, CodeIgniter does not connect automatically to your database when a model is loaded. This -allows you greater flexibility in determining which databases you would like used with your models. If your application is not connecting -to your database prior to a model being loaded you will have to update your code. There are several options for connecting, +
As of version 1.3.3, CodeIgniter does not connect automatically to your database when a model is loaded. This +allows you greater flexibility in determining which databases you would like used with your models. If your application is not connecting +to your database prior to a model being loaded you will have to update your code. There are several options for connecting, as described here.
diff --git a/user_guide/installation/upgrade_140.html b/user_guide/installation/upgrade_140.html index 234e2f5b3..2049628a6 100644 --- a/user_guide/installation/upgrade_140.html +++ b/user_guide/installation/upgrade_140.html @@ -57,7 +57,7 @@ Upgrading from 1.3.3 to 1.4.0Note: The instructions on this page assume you are running version 1.3.3. If you +
Note: The instructions on this page assume you are running version 1.3.3. If you have not upgraded to that version please do so first.
Before performing an update you should take your site offline by replacing the index.php file with a static one.
@@ -95,7 +95,7 @@ have not upgraded to that version please do so first. |-------------------------------------------------------------------------- | | If you would like to use the "hooks" feature you must enable it by -| setting this variable to TRUE (boolean). See the user guide for details. +| setting this variable to TRUE (boolean). See the user guide for details. | */ $config['enable_hooks'] = FALSE; @@ -111,7 +111,7 @@ $config['enable_hooks'] = FALSE; | get a warning message. | | As a security measure you are STRONGLY encouraged to restrict URLs to -| as few characters as possible. By default only these are allowed: a-z 0-9~%.:_- +| as few characters as possible. By default only these are allowed: a-z 0-9~%.:_- | | Leave blank to allow all characters -- but only if you are insane. | diff --git a/user_guide/installation/upgrade_141.html b/user_guide/installation/upgrade_141.html index 79e51e4ab..c19143c64 100644 --- a/user_guide/installation/upgrade_141.html +++ b/user_guide/installation/upgrade_141.html @@ -56,7 +56,7 @@ Upgrading from 1.4.0 to 1.4.1Note: The instructions on this page assume you are running version 1.4.0. If you +
Note: The instructions on this page assume you are running version 1.4.0. If you have not upgraded to that version please do so first.
Before performing an update you should take your site offline by replacing the index.php file with a static one.
@@ -88,16 +88,16 @@ have not upgraded to that version please do so first. | Output Compression |-------------------------------------------------------------------------- | -| Enables Gzip output compression for faster page loads. When enabled, +| Enables Gzip output compression for faster page loads. When enabled, | the output class will test whether your server supports Gzip. | Even if it does, however, not all browsers support compression | so enable only if you are reasonably sure your visitors can handle it. | -| VERY IMPORTANT: If you are getting a blank page when compression is enabled it +| VERY IMPORTANT: If you are getting a blank page when compression is enabled it | means you are prematurely outputting something to your browser. It could -| even be a line of whitespace at the end of one of your scripts. For +| even be a line of whitespace at the end of one of your scripts. For | compression to work, nothing can be sent before the output buffer is called -| by the output class. Do not "echo" any values with compression enabled. +| by the output class. Do not "echo" any values with compression enabled. | */ $config['compress_output'] = FALSE; diff --git a/user_guide/installation/upgrade_150.html b/user_guide/installation/upgrade_150.html index 9cd0089c0..342d486df 100644 --- a/user_guide/installation/upgrade_150.html +++ b/user_guide/installation/upgrade_150.html @@ -57,7 +57,7 @@ Upgrading from 1.4.1 to 1.5.0Note: The instructions on this page assume you are running version 1.4.1. If you +
Note: The instructions on this page assume you are running version 1.4.1. If you have not upgraded to that version please do so first.
Before performing an update you should take your site offline by replacing the index.php file with a static one.
@@ -105,7 +105,7 @@ $db['default']['cachedir'] = ''; |-------------------------------------------------------------------------- | | This item allows you to set the filename/classname prefix when extending -| native libraries. For more information please see the user guide: +| native libraries. For more information please see the user guide: | | http://codeigniter.com/user_guide/general/core_classes.html | http://codeigniter.com/user_guide/general/creating_libraries.html @@ -120,7 +120,7 @@ $config['subclass_prefix'] = 'MY_'; | | If your PHP installation does not have short tag support enabled CI | can rewrite the tags on-the-fly, enabling you to utilize that syntax -| in your view files. Options are TRUE or FALSE (boolean) +| in your view files. Options are TRUE or FALSE (boolean) | */ $config['rewrite_short_tags'] = FALSE; @@ -136,7 +136,7 @@ $config['rewrite_short_tags'] = FALSE; |-------------------------------------------------------------------------- | | If you would like errors or debug messages logged set this variable to -| TRUE (boolean). Note: You must set the file permissions on the "logs" folder +| TRUE (boolean). Note: You must set the file permissions on the "logs" folder | such that it is writable. | */ diff --git a/user_guide/installation/upgrade_152.html b/user_guide/installation/upgrade_152.html index 136e3090b..f601a252e 100644 --- a/user_guide/installation/upgrade_152.html +++ b/user_guide/installation/upgrade_152.html @@ -57,7 +57,7 @@ Upgrading from 1.5.0 to 1.5.2Note: The instructions on this page assume you are running version 1.5.0 or 1.5.1. If you +
Note: The instructions on this page assume you are running version 1.5.0 or 1.5.1. If you have not upgraded to that version please do so first.
Before performing an update you should take your site offline by replacing the index.php file with a static one.
diff --git a/user_guide/installation/upgrade_160.html b/user_guide/installation/upgrade_160.html index 2adeff379..d06f58ec9 100644 --- a/user_guide/installation/upgrade_160.html +++ b/user_guide/installation/upgrade_160.html @@ -84,16 +84,16 @@ Upgrading from 1.5.4 to 1.6.0Add the following to application/config/autoload.php
/*
| -------------------------------------------------------------------
- | Auto-load Model files
+ | Auto-load Model files
| -------------------------------------------------------------------
| Prototype:
|
- | $autoload['model'] = array('my_model');
+ | $autoload['model'] = array('my_model');
|
*/
$autoload['model'] = array();
Make the following changes to your application/config/database.php file:
Add the following variable above the database configuration options, with $active_group
$active_record = TRUE;
ALTER TABLE `ci_sessions` ADD `user_data` text NOT NULL
-You'll find more information regarding the new Session functionality in the Session class page.
+You'll find more information regarding the new Session functionality in the Session class page.
This is an optional, but recommended step, for people currently using the Validation class. CI 1.7 introduces a new Form Validation class, which -deprecates the old Validation library. We have left the old one in place so that existing applications that use it will not break, but you are encouraged to -migrate to the new version as soon as possible. Please read the user guide carefully as the new library works a little differently, and has several new features.
+This is an optional, but recommended step, for people currently using the Validation class. CI 1.7 introduces a new Form Validation class, which +deprecates the old Validation library. We have left the old one in place so that existing applications that use it will not break, but you are encouraged to +migrate to the new version as soon as possible. Please read the user guide carefully as the new library works a little differently, and has several new features.
diff --git a/user_guide/installation/upgrade_200.html b/user_guide/installation/upgrade_200.html index cd39d924d..0b24079ef 100644 --- a/user_guide/installation/upgrade_200.html +++ b/user_guide/installation/upgrade_200.html @@ -69,8 +69,8 @@ Upgrading from 1.7.2 to 2.0.0Version 2.0.0 brings a non-backwards compatible change to get_dir_file_info() in the File Helper. Non-backwards compatible changes are extremely rare - in CodeIgniter, but this one we feel was warranted due to how easy it was to create serious server performance issues. If you need +
Version 2.0.0 brings a non-backwards compatible change to get_dir_file_info() in the File Helper. Non-backwards compatible changes are extremely rare + in CodeIgniter, but this one we feel was warranted due to how easy it was to create serious server performance issues. If you need recursiveness where you are using this helper function, change such instances, setting the second parameter, $top_level_only to FALSE:
get_dir_file_info('/path/to/directory', FALSE);
@@ -79,7 +79,7 @@ Upgrading from 1.7.2 to 2.0.0
2.0.0 gets rid of the "Plugin" system as their functionality was identical to Helpers, but non-extensible. You will need to rename your plugin files from filename_pi.php to filename_helper.php, move them to your helpers folder, and change all instances of: +
2.0.0 gets rid of the "Plugin" system as their functionality was identical to Helpers, but non-extensible. You will need to rename your plugin files from filename_pi.php to filename_helper.php, move them to your helpers folder, and change all instances of:
$this->load->plugin('foo');
@@ -94,7 +94,7 @@ to
Note: If your application does not use the Encryption library, does not store Encrypted data permanently, or is on an environment that does not support Mcrypt, you may skip this step.
The Encryption library has had a number of improvements, some for encryption strength and some for performance, that has an unavoidable consequence of - making it no longer possible to decode encrypted data produced by the original version of this library. To help with the transition, a new method has + making it no longer possible to decode encrypted data produced by the original version of this library. To help with the transition, a new method has been added, encode_from_legacy() that will decode the data with the original algorithm and return a re-encoded string using the improved methods. This will enable you to easily replace stale encrypted data with fresh in your applications, either on the fly or en masse.
@@ -104,7 +104,7 @@ toThe compatibility helper has been removed from the CodeIgniter core. All methods in it should be natively available in supported PHP versions.
All core classes are now prefixed with CI_. Update Models and Controllers to extend CI_Model and CI_Controller, respectively.
+All core classes are now prefixed with CI_. Update Models and Controllers to extend CI_Model and CI_Controller, respectively.
All native CodeIgniter classes now use the PHP 5 __construct() convention. Please update extended libraries to call parent::__construct().
diff --git a/user_guide/installation/upgrade_202.html b/user_guide/installation/upgrade_202.html index 93c537227..d457d8bbb 100644 --- a/user_guide/installation/upgrade_202.html +++ b/user_guide/installation/upgrade_202.html @@ -76,7 +76,7 @@ Upgrading from 2.0.1 to 2.0.2If you are overriding or extending the Security library, you will need to move it to application/core.
-csrf_token_name and csrf_hash have changed to protected class properties. Please use security->get_csrf_hash() and security->get_csrf_token_name() to access those values.
+csrf_token_name and csrf_hash have changed to protected class properties. Please use security->get_csrf_hash() and security->get_csrf_token_name() to access those values.
diff --git a/user_guide/installation/upgrade_203.html b/user_guide/installation/upgrade_203.html index d1c9a940f..7dbc907ea 100644 --- a/user_guide/installation/upgrade_203.html +++ b/user_guide/installation/upgrade_203.html @@ -69,7 +69,7 @@ Upgrading from 2.0.2 to 2.0.3Replace the files and directories in your "system" folder with the new versions:
- +If you are running a stock index.php file simply replace your version with the new one.
@@ -81,7 +81,7 @@ Upgrading from 2.0.2 to 2.0.3This config file has been updated to contain more user agent types, please copy it to application/config/user_agents.php.
Note: The EXT Constant has been marked as deprecated, but has not been removed from the application. You are encouraged to make the changes sooner rather than later.
+Note: The EXT Constant has been marked as deprecated, but has not been removed from the application. You are encouraged to make the changes sooner rather than later.
CREATE INDEX last_activity_idx ON ci_sessions(last_activity);
ALTER TABLE ci_sessions MODIFY user_agent VARCHAR(120);
-
-
-
-
+
+
+
+
diff --git a/user_guide/installation/upgrade_b11.html b/user_guide/installation/upgrade_b11.html
index d2fc20d18..add7228c8 100644
--- a/user_guide/installation/upgrade_b11.html
+++ b/user_guide/installation/upgrade_b11.html
@@ -61,7 +61,7 @@ Upgrading from Beta 1.0 to Beta 1.1
Replace your main index.php file with the new index.php file. Note: If you have renamed your "system" folder you will need to edit this info in the new file.
+Replace your main index.php file with the new index.php file. Note: If you have renamed your "system" folder you will need to edit this info in the new file.
The original application/config/config.php file has a typo in it Open the file and look for the items related to cookies:
+The original application/config/config.php file has a typo in it Open the file and look for the items related to cookies:
$conf['cookie_prefix'] = "";
$conf['cookie_domain'] = "";
@@ -112,7 +112,7 @@ $config['cookie_path'] = "/";
|------------------------------------------------CodeIgniter User Guide Version 2.0.2 |
+CodeIgniter User Guide Version 2.0.3 |
Table of Contents Page |
CodeIgniter User Guide Version 2.0.2 |
+CodeIgniter User Guide Version 2.0.3 |
Table of Contents Page |
CodeIgniter User Guide Version 2.0.2 |
+CodeIgniter User Guide Version 2.0.3 |
Table of Contents Page |
CodeIgniter User Guide Version 2.0.2 |
+CodeIgniter User Guide Version 2.0.3 |
Table of Contents Page |
CodeIgniter User Guide Version 2.0.2 |
+CodeIgniter User Guide Version 2.0.3 |
Table of Contents Page |
CodeIgniter User Guide Version 2.0.2 |
+CodeIgniter User Guide Version 2.0.3 |
Table of Contents Page |
CodeIgniter User Guide Version 2.0.2 |
+CodeIgniter User Guide Version 2.0.3 |
Table of Contents Page |
CodeIgniter User Guide Version 2.0.2 |
+CodeIgniter User Guide Version 2.0.3 |
Table of Contents Page |
CodeIgniter User Guide Version 2.0.2 |
+CodeIgniter User Guide Version 2.0.3 |
Table of Contents Page |
CodeIgniter User Guide Version 2.0.2 |
+CodeIgniter User Guide Version 2.0.3 |
Table of Contents Page |
CodeIgniter User Guide Version 2.0.2 |
+CodeIgniter User Guide Version 2.0.3 |
Table of Contents Page |
CodeIgniter User Guide Version 2.0.2 |
+CodeIgniter User Guide Version 2.0.3 |
Table of Contents Page |
CodeIgniter User Guide Version 2.0.2 |
+CodeIgniter User Guide Version 2.0.3 |
Table of Contents Page |
CodeIgniter User Guide Version 2.0.2 |
+CodeIgniter User Guide Version 2.0.3 |
Table of Contents Page |
CodeIgniter User Guide Version 2.0.2 |
+CodeIgniter User Guide Version 2.0.3 |
Table of Contents Page |
CodeIgniter User Guide Version 2.0.2 |
+CodeIgniter User Guide Version 2.0.3 |
Table of Contents Page |
CodeIgniter User Guide Version 2.0.2 |
+CodeIgniter User Guide Version 2.0.3 |
Table of Contents Page |
CodeIgniter User Guide Version 2.0.2 |
+CodeIgniter User Guide Version 2.0.3 |
Table of Contents Page |
CodeIgniter User Guide Version 2.0.2 |
+CodeIgniter User Guide Version 2.0.3 |
Table of Contents Page |
CodeIgniter User Guide Version 2.0.2 |
+CodeIgniter User Guide Version 2.0.3 |
Table of Contents Page |
CodeIgniter User Guide Version 2.0.2 |
+CodeIgniter User Guide Version 2.0.3 |
Table of Contents Page |
CodeIgniter User Guide Version 2.0.2 |
+CodeIgniter User Guide Version 2.0.3 |
Table of Contents Page |
CodeIgniter User Guide Version 2.0.2 |
+CodeIgniter User Guide Version 2.0.3 |
Table of Contents Page |
CodeIgniter User Guide Version 2.0.2 |
+CodeIgniter User Guide Version 2.0.3 |
Table of Contents Page |
CodeIgniter User Guide Version 2.0.2 |
+CodeIgniter User Guide Version 2.0.3 |
Table of Contents Page |
CodeIgniter User Guide Version 2.0.2 |
+CodeIgniter User Guide Version 2.0.3 |
Table of Contents Page |