blob: 267a89889c3d8c3c096ec8560cc36c2ed72a39d1 [file] [log] [blame]
adminb0dd10f2006-08-25 17:25:49 +00001<?php
2
admin1af55492006-09-22 21:43:38 +00003/*
4|---------------------------------------------------------------
5| PHP ERROR REPORTING LEVEL
6|---------------------------------------------------------------
7|
8| By default CI runs with all error reporting on. For security
9| reasons you are encouraged to change this when your site goes live.
10|
11*/
adminb0dd10f2006-08-25 17:25:49 +000012error_reporting(E_ALL);
13
14/*
admin1af55492006-09-22 21:43:38 +000015|---------------------------------------------------------------
adminb0dd10f2006-08-25 17:25:49 +000016| SYSTEM FOLDER NAME
admin1af55492006-09-22 21:43:38 +000017|---------------------------------------------------------------
adminb0dd10f2006-08-25 17:25:49 +000018|
admin1af55492006-09-22 21:43:38 +000019| This variable must contain the name of your "system" folder.
20| Include the path if the folder is not in the same directory
21| as this file.
22|
23| NO TRAILING SLASH!
24|
adminb0dd10f2006-08-25 17:25:49 +000025*/
26
27 $system_folder = "system";
28
29/*
admin1af55492006-09-22 21:43:38 +000030|---------------------------------------------------------------
adminb0dd10f2006-08-25 17:25:49 +000031| APPLICATION FOLDER NAME
admin1af55492006-09-22 21:43:38 +000032|---------------------------------------------------------------
adminb0dd10f2006-08-25 17:25:49 +000033|
admin1af55492006-09-22 21:43:38 +000034| If you want this front controller to use a different "application"
35| folder then the default one you can set its name here.
adminb0dd10f2006-08-25 17:25:49 +000036|
admin1af55492006-09-22 21:43:38 +000037| NO TRAILING SLASH!
adminb0dd10f2006-08-25 17:25:49 +000038|
39*/
40
admin1af55492006-09-22 21:43:38 +000041 $application_folder = "application";
adminb0dd10f2006-08-25 17:25:49 +000042
43/*
admin1af55492006-09-22 21:43:38 +000044|===============================================================
45| END OF USER CONFIGURABLE SETTINGS
46|===============================================================
adminb0dd10f2006-08-25 17:25:49 +000047*/
48
admin1af55492006-09-22 21:43:38 +000049// Let's attempt to determine the full-server path to the "system"
50// folder in order to reduce the possibility of path problems.
adminb0dd10f2006-08-25 17:25:49 +000051if (function_exists('realpath') AND @realpath(dirname(__FILE__)) !== FALSE)
52{
53 $system_folder = str_replace("\\", "/", realpath(dirname(__FILE__))).'/'.$system_folder;
54}
55
admin1af55492006-09-22 21:43:38 +000056// Is the aplication variable blank? If so, we'll assume it's called "application"
57if ($application_folder == '')
adminb0dd10f2006-08-25 17:25:49 +000058{
admin1af55492006-09-22 21:43:38 +000059 $application_folder = 'application';
adminb0dd10f2006-08-25 17:25:49 +000060}
61
admin1af55492006-09-22 21:43:38 +000062// Some versions of PHP don't support the E_STRICT constant so we'll
63// explicitly define it so that it will be available to the Exception class
adminb0dd10f2006-08-25 17:25:49 +000064if ( ! defined('E_STRICT'))
65{
66 define('E_STRICT', 2048);
67}
68
admin1af55492006-09-22 21:43:38 +000069// Define a few constants that we use througout the framework.
70// EXT - contains the file extension. Typically ".php"
71// FCPATH - contains the full server path to THIS file.
72// SELF - contains the name of THIS file.
73// BASEPATH - contains the full server path to the "system" folder
74// APPPATH - contains the full server path to the "application" folder
75
adminb0dd10f2006-08-25 17:25:49 +000076define('EXT', '.'.pathinfo(__FILE__, PATHINFO_EXTENSION));
admin1af55492006-09-22 21:43:38 +000077define('FCPATH', __FILE__);
adminb0dd10f2006-08-25 17:25:49 +000078define('SELF', pathinfo(__FILE__, PATHINFO_BASENAME));
79define('BASEPATH', $system_folder.'/');
admin1af55492006-09-22 21:43:38 +000080define('APPPATH', BASEPATH.$application_folder.'/');
adminb0dd10f2006-08-25 17:25:49 +000081
admin1af55492006-09-22 21:43:38 +000082// Load the front controller and away we go!....
adminb0dd10f2006-08-25 17:25:49 +000083require_once BASEPATH.'codeigniter/CodeIgniter'.EXT;
84?>