codex73

Untitled

Jan 17th, 2016
280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 5.77 KB | None | 0 0
  1. <?php
  2. /**
  3.  * CodeIgniter
  4.  *
  5.  * An open source application development framework for PHP 5.2.4 or newer
  6.  *
  7.  * This content is released under the MIT License (MIT)
  8.  *
  9.  * Copyright (c) 2014, British Columbia Institute of Technology
  10.  *
  11.  * Permission is hereby granted, free of charge, to any person obtaining a copy
  12.  * of this software and associated documentation files (the "Software"), to deal
  13.  * in the Software without restriction, including without limitation the rights
  14.  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  15.  * copies of the Software, and to permit persons to whom the Software is
  16.  * furnished to do so, subject to the following conditions:
  17.  *
  18.  * The above copyright notice and this permission notice shall be included in
  19.  * all copies or substantial portions of the Software.
  20.  *
  21.  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  22.  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  23.  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  24.  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  25.  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  26.  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  27.  * THE SOFTWARE.
  28.  *
  29.  * @package CodeIgniter
  30.  * @author  EllisLab Dev Team
  31.  * @copyright   Copyright (c) 2008 - 2014, EllisLab, Inc. (http://ellislab.com/)
  32.  * @copyright   Copyright (c) 2014, British Columbia Institute of Technology (http://bcit.ca/)
  33.  * @license http://opensource.org/licenses/MIT  MIT License
  34.  * @link    http://codeigniter.com
  35.  * @since   Version 1.0.0
  36.  * @filesource
  37.  */
  38. defined('BASEPATH') OR exit('No direct script access allowed');
  39.  
  40. /*
  41. | -------------------------------------------------------------------
  42. | AUTO-LOADER
  43. | -------------------------------------------------------------------
  44. | This file specifies which systems should be loaded by default.
  45. |
  46. | In order to keep the framework as light-weight as possible only the
  47. | absolute minimal resources are loaded by default. For example,
  48. | the database is not connected to automatically since no assumption
  49. | is made regarding whether you intend to use it.  This file lets
  50. | you globally define which systems you would like loaded with every
  51. | request.
  52. |
  53. | -------------------------------------------------------------------
  54. | Instructions
  55. | -------------------------------------------------------------------
  56. |
  57. | These are the things you can load automatically:
  58. |
  59. | 1. Packages
  60. | 2. Libraries
  61. | 3. Drivers
  62. | 4. Helper files
  63. | 5. Custom config files
  64. | 6. Language files
  65. | 7. Models
  66. |
  67. */
  68.  
  69. /*
  70. | -------------------------------------------------------------------
  71. |  Auto-load Packages
  72. | -------------------------------------------------------------------
  73. | Prototype:
  74. |
  75. |  $autoload['packages'] = array(APPPATH.'third_party', '/usr/local/shared');
  76. |
  77. */
  78.  
  79. $autoload['packages'] = array(
  80.     APPPATH . 'third_party/community_auth/'
  81. );
  82.  
  83.  
  84. /*
  85. | -------------------------------------------------------------------
  86. |  Auto-load Libraries
  87. | -------------------------------------------------------------------
  88. | These are the classes located in the system/libraries folder
  89. | or in your application/libraries folder.
  90. |
  91. | Prototype:
  92. |
  93. |   $autoload['libraries'] = array('database', 'email', 'xmlrpc');
  94. |
  95. | You can also supply an alternative library name to be assigned
  96. | in the controller:
  97. |
  98. |   $autoload['libraries'] = array('user_agent' => 'ua');
  99. */
  100.  
  101. $autoload['libraries'] = array(
  102.     'database','session','tokens','Authentication'
  103. );
  104.  
  105.  
  106. /*
  107. | -------------------------------------------------------------------
  108. |  Auto-load Drivers
  109. | -------------------------------------------------------------------
  110. | These classes are located in the system/libraries folder or in your
  111. | application/libraries folder within their own subdirectory. They
  112. | offer multiple interchangeable driver options.
  113. |
  114. | Prototype:
  115. |
  116. |   $autoload['drivers'] = array('session', 'cache');
  117. */
  118.  
  119. $autoload['drivers'] = array('session');
  120.  
  121.  
  122. /*
  123. | -------------------------------------------------------------------
  124. |  Auto-load Helper Files
  125. | -------------------------------------------------------------------
  126. | Prototype:
  127. |
  128. |   $autoload['helper'] = array('url', 'file');
  129. */
  130.  
  131. $autoload['helper'] = array(
  132.     'serialization','url','form','cookie','security'
  133. );
  134.  
  135.  
  136. /*
  137. | -------------------------------------------------------------------
  138. |  Auto-load Config files
  139. | -------------------------------------------------------------------
  140. | Prototype:
  141. |
  142. |   $autoload['config'] = array('config1', 'config2');
  143. |
  144. | NOTE: This item is intended for use ONLY if you have created custom
  145. | config files.  Otherwise, leave it blank.
  146. |
  147. */
  148.  
  149. $autoload['config'] = array(
  150.     'db_tables','authentication'
  151. );
  152.  
  153.  
  154. /*
  155. | -------------------------------------------------------------------
  156. |  Auto-load Language files
  157. | -------------------------------------------------------------------
  158. | Prototype:
  159. |
  160. |   $autoload['language'] = array('lang1', 'lang2');
  161. |
  162. | NOTE: Do not include the "_lang" part of your file.  For example
  163. | "codeigniter_lang.php" would be referenced as array('codeigniter');
  164. |
  165. */
  166.  
  167. $autoload['language'] = array();
  168.  
  169.  
  170. /*
  171. | -------------------------------------------------------------------
  172. |  Auto-load Models
  173. | -------------------------------------------------------------------
  174. | Prototype:
  175. |
  176. |   $autoload['model'] = array('first_model', 'second_model');
  177. |
  178. | You can also supply an alternative model name to be assigned
  179. | in the controller:
  180. |
  181. |   $autoload['model'] = array('first_model' => 'first');
  182. */
  183.  
  184. $autoload['model'] = array(
  185.     'auth_model'
  186. );
  187.  
  188.  
  189. /* End of file autoload.php */
  190. /* Location: ./application/config/autoload.php */
Advertisement
Add Comment
Please, Sign In to add comment