forked from arunoda-susiripala/Code51
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 9c2da5d
Showing
321 changed files
with
70,250 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
<?php | ||
/* | ||
|--------------------------------------------------------------- | ||
| PHP ERROR REPORTING LEVEL | ||
|--------------------------------------------------------------- | ||
| | ||
| By default CI runs with error reporting set to ALL. For security | ||
| reasons you are encouraged to change this when your site goes live. | ||
| For more info visit: http://www.php.net/error_reporting | ||
| | ||
*/ | ||
error_reporting(E_ALL); | ||
|
||
/* | ||
|--------------------------------------------------------------- | ||
| SYSTEM FOLDER NAME | ||
|--------------------------------------------------------------- | ||
| | ||
| This variable must contain the name of your "system" folder. | ||
| Include the path if the folder is not in the same directory | ||
| as this file. | ||
| | ||
| NO TRAILING SLASH! | ||
| | ||
*/ | ||
$system_folder = "system"; | ||
|
||
/* | ||
|--------------------------------------------------------------- | ||
| APPLICATION FOLDER NAME | ||
|--------------------------------------------------------------- | ||
| | ||
| If you want this front controller to use a different "application" | ||
| folder then the default one you can set its name here. The folder | ||
| can also be renamed or relocated anywhere on your server. | ||
| For more info please see the user guide: | ||
| http://codeigniter.com/user_guide/general/managing_apps.html | ||
| | ||
| | ||
| NO TRAILING SLASH! | ||
| | ||
*/ | ||
$application_folder = "application"; | ||
|
||
/* | ||
|=============================================================== | ||
| END OF USER CONFIGURABLE SETTINGS | ||
|=============================================================== | ||
*/ | ||
|
||
|
||
/* | ||
|--------------------------------------------------------------- | ||
| SET THE SERVER PATH | ||
|--------------------------------------------------------------- | ||
| | ||
| Let's attempt to determine the full-server path to the "system" | ||
| folder in order to reduce the possibility of path problems. | ||
| Note: We only attempt this if the user hasn't specified a | ||
| full server path. | ||
| | ||
*/ | ||
if (strpos($system_folder, '/') === FALSE) | ||
{ | ||
if (function_exists('realpath') AND @realpath(dirname(__FILE__)) !== FALSE) | ||
{ | ||
$system_folder = realpath(dirname(__FILE__)).'/'.$system_folder; | ||
} | ||
} | ||
else | ||
{ | ||
// Swap directory separators to Unix style for consistency | ||
$system_folder = str_replace("\\", "/", $system_folder); | ||
} | ||
|
||
/* | ||
|--------------------------------------------------------------- | ||
| DEFINE APPLICATION CONSTANTS | ||
|--------------------------------------------------------------- | ||
| | ||
| EXT - The file extension. Typically ".php" | ||
| SELF - The name of THIS file (typically "index.php") | ||
| FCPATH - The full server path to THIS file | ||
| BASEPATH - The full server path to the "system" folder | ||
| APPPATH - The full server path to the "application" folder | ||
| | ||
*/ | ||
define('EXT', '.php'); | ||
define('SELF', pathinfo(__FILE__, PATHINFO_BASENAME)); | ||
define('FCPATH', str_replace(SELF, '', __FILE__)); | ||
define('BASEPATH', $system_folder.'/'); | ||
|
||
if (is_dir($application_folder)) | ||
{ | ||
define('APPPATH', $application_folder.'/'); | ||
} | ||
else | ||
{ | ||
if ($application_folder == '') | ||
{ | ||
$application_folder = 'application'; | ||
} | ||
|
||
define('APPPATH', BASEPATH.$application_folder.'/'); | ||
} | ||
|
||
/* | ||
|--------------------------------------------------------------- | ||
| LOAD THE FRONT CONTROLLER | ||
|--------------------------------------------------------------- | ||
| | ||
| And away we go... | ||
| | ||
*/ | ||
require_once BASEPATH.'codeigniter/CodeIgniter'.EXT; | ||
|
||
/* End of file index.php */ | ||
/* Location: ./index.php */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
Copyright (c) 2008 - 2009, EllisLab, Inc. | ||
All rights reserved. | ||
|
||
This license is a legal agreement between you and EllisLab Inc. for the use | ||
of CodeIgniter Software (the "Software"). By obtaining the Software you | ||
agree to comply with the terms and conditions of this license. | ||
|
||
PERMITTED USE | ||
You are permitted to use, copy, modify, and distribute the Software and its | ||
documentation, with or without modification, for any purpose, provided that | ||
the following conditions are met: | ||
|
||
1. A copy of this license agreement must be included with the distribution. | ||
|
||
2. Redistributions of source code must retain the above copyright notice in | ||
all source code files. | ||
|
||
3. Redistributions in binary form must reproduce the above copyright notice | ||
in the documentation and/or other materials provided with the distribution. | ||
|
||
4. Any files that have been modified must carry notices stating the nature | ||
of the change and the names of those who changed them. | ||
|
||
5. Products derived from the Software must include an acknowledgment that | ||
they are derived from CodeIgniter in their documentation and/or other | ||
materials provided with the distribution. | ||
|
||
6. Products derived from the Software may not be called "CodeIgniter", | ||
nor may "CodeIgniter" appear in their name, without prior written | ||
permission from EllisLab, Inc. | ||
|
||
|
||
INDEMNITY | ||
You agree to indemnify and hold harmless the authors of the Software and | ||
any contributors for any direct, indirect, incidental, or consequential | ||
third-party claims, actions or suits, as well as any related expenses, | ||
liabilities, damages, settlements or fees arising from your use or misuse | ||
of the Software, or a violation of any terms of this license. | ||
|
||
DISCLAIMER OF WARRANTY | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESSED OR | ||
IMPLIED, INCLUDING, BUT NOT LIMITED TO, WARRANTIES OF QUALITY, PERFORMANCE, | ||
NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. | ||
|
||
LIMITATIONS OF LIABILITY | ||
YOU ASSUME ALL RISK ASSOCIATED WITH THE INSTALLATION AND USE OF THE SOFTWARE. | ||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS OF THE SOFTWARE BE LIABLE | ||
FOR CLAIMS, DAMAGES OR OTHER LIABILITY ARISING FROM, OUT OF, OR IN CONNECTION | ||
WITH THE SOFTWARE. LICENSE HOLDERS ARE SOLELY RESPONSIBLE FOR DETERMINING THE | ||
APPROPRIATENESS OF USE AND ASSUME ALL RISKS ASSOCIATED WITH ITS USE, INCLUDING | ||
BUT NOT LIMITED TO THE RISKS OF PROGRAM ERRORS, DAMAGE TO EQUIPMENT, LOSS OF | ||
DATA OR SOFTWARE PROGRAMS, OR UNAVAILABILITY OR INTERRUPTION OF OPERATIONS. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | ||
/* | ||
| ------------------------------------------------------------------- | ||
| AUTO-LOADER | ||
| ------------------------------------------------------------------- | ||
| This file specifies which systems should be loaded by default. | ||
| | ||
| In order to keep the framework as light-weight as possible only the | ||
| absolute minimal resources are loaded by default. For example, | ||
| the database is not connected to automatically since no assumption | ||
| is made regarding whether you intend to use it. This file lets | ||
| you globally define which systems you would like loaded with every | ||
| request. | ||
| | ||
| ------------------------------------------------------------------- | ||
| Instructions | ||
| ------------------------------------------------------------------- | ||
| | ||
| These are the things you can load automatically: | ||
| | ||
| 1. Libraries | ||
| 2. Helper files | ||
| 3. Plugins | ||
| 4. Custom config files | ||
| 5. Language files | ||
| 6. Models | ||
| | ||
*/ | ||
|
||
/* | ||
| ------------------------------------------------------------------- | ||
| Auto-load Libraries | ||
| ------------------------------------------------------------------- | ||
| These are the classes located in the system/libraries folder | ||
| or in your system/application/libraries folder. | ||
| | ||
| Prototype: | ||
| | ||
| $autoload['libraries'] = array('database', 'session', 'xmlrpc'); | ||
*/ | ||
|
||
$autoload['libraries'] = array(); | ||
|
||
|
||
/* | ||
| ------------------------------------------------------------------- | ||
| Auto-load Helper Files | ||
| ------------------------------------------------------------------- | ||
| Prototype: | ||
| | ||
| $autoload['helper'] = array('url', 'file'); | ||
*/ | ||
|
||
$autoload['helper'] = array(); | ||
|
||
|
||
/* | ||
| ------------------------------------------------------------------- | ||
| Auto-load Plugins | ||
| ------------------------------------------------------------------- | ||
| Prototype: | ||
| | ||
| $autoload['plugin'] = array('captcha', 'js_calendar'); | ||
*/ | ||
|
||
$autoload['plugin'] = array(); | ||
|
||
|
||
/* | ||
| ------------------------------------------------------------------- | ||
| Auto-load Config files | ||
| ------------------------------------------------------------------- | ||
| Prototype: | ||
| | ||
| $autoload['config'] = array('config1', 'config2'); | ||
| | ||
| NOTE: This item is intended for use ONLY if you have created custom | ||
| config files. Otherwise, leave it blank. | ||
| | ||
*/ | ||
|
||
$autoload['config'] = array(); | ||
|
||
|
||
/* | ||
| ------------------------------------------------------------------- | ||
| Auto-load Language files | ||
| ------------------------------------------------------------------- | ||
| Prototype: | ||
| | ||
| $autoload['language'] = array('lang1', 'lang2'); | ||
| | ||
| NOTE: Do not include the "_lang" part of your file. For example | ||
| "codeigniter_lang.php" would be referenced as array('codeigniter'); | ||
| | ||
*/ | ||
|
||
$autoload['language'] = array(); | ||
|
||
|
||
/* | ||
| ------------------------------------------------------------------- | ||
| Auto-load Models | ||
| ------------------------------------------------------------------- | ||
| Prototype: | ||
| | ||
| $autoload['model'] = array('model1', 'model2'); | ||
| | ||
*/ | ||
|
||
$autoload['model'] = array(); | ||
|
||
|
||
|
||
/* End of file autoload.php */ | ||
/* Location: ./system/application/config/autoload.php */ |
Oops, something went wrong.