summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorGreg Aker <greg@gregaker.net>2012-02-06 01:40:03 +0100
committerGreg Aker <greg@gregaker.net>2012-02-06 01:40:03 +0100
commit082a383a26f0f36685c6b5bdddc44f10eceafcb8 (patch)
tree02ad420bf5ec25e6e3379e1f821e4e029b00f828 /index.php
parentb211adee89f5fd2192051e9c0826146bd150f469 (diff)
parentd63e40138e675df40f3a17e04972e82e7a748307 (diff)
Merge pull request #1016 from kevincupp/develop
Adding in a few 503 status codes for common errors
Diffstat (limited to 'index.php')
-rw-r--r--index.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/index.php b/index.php
index 1712a7d66..a37826690 100644
--- a/index.php
+++ b/index.php
@@ -218,6 +218,7 @@ if (defined('ENVIRONMENT'))
{
if ( ! is_dir(BASEPATH.$application_folder.'/'))
{
+ header('HTTP/1.1 503 Service Unavailable.', TRUE, '503');
exit('Your application folder path does not appear to be set correctly. Please open the following file and correct this: '.SELF);
}
@@ -233,6 +234,7 @@ if (defined('ENVIRONMENT'))
{
if ( ! is_dir(APPPATH.'views/'))
{
+ header('HTTP/1.1 503 Service Unavailable.', TRUE, '503');
exit('Your view folder path does not appear to be set correctly. Please open the following file and correct this: '.SELF);
}