Guest User

Untitled

a guest
Nov 27th, 2015
240
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
  2.  
  3. // Include the external configuration.php
  4. include dirname(dirname(dirname(__FILE__))) . '/configuration.php';
  5.  
  6. /*
  7. |--------------------------------------------------------------------------
  8. | Base Site URL
  9. |--------------------------------------------------------------------------
  10. |
  11. | URL to your CodeIgniter root. Typically this will be your base URL,
  12. | WITH a trailing slash:
  13. |
  14. | http://example.com/
  15. |
  16. | If this is not set then CodeIgniter will guess the protocol, domain and
  17. | path to your installation.
  18. |
  19. */
  20. require_once dirname(dirname(dirname(__FILE__))) . '/configuration.php';
  21. $config['base_url'] = SystemConfiguration::$base_url;
  22.  
  23. /*
  24. |--------------------------------------------------------------------------
  25. | Easy!Appointments Configuration
  26. |--------------------------------------------------------------------------
  27. |
  28. | Declare some of the global config values of Easy!Appointments.
  29. | the global "config" variable.
  30. |
  31. */
  32. $config['ea_version'] = '1.0'; // This must be changed manually.
  33. $config['ea_release_title'] = ''; // Leave empty for no title or add BETA, TEST etc ...
  34. $config['ea_google_sync_feature'] = SystemConfiguration::$google_sync_feature;
  35.  
  36. /*
  37. |--------------------------------------------------------------------------
  38. | Index File
  39. |--------------------------------------------------------------------------
  40. |
  41. | Typically this will be your index.php file, unless you've renamed it to
  42. | something else. If you are using mod_rewrite to remove the page set this
  43. | variable so that it is blank.
  44. |
  45. */
  46. $config['index_page'] = '';
  47.  
  48. /*
  49. |--------------------------------------------------------------------------
  50. | URI PROTOCOL
  51. |--------------------------------------------------------------------------
  52. |
  53. | This item determines which server global should be used to retrieve the
  54. | URI string. The default setting of 'AUTO' works for most servers.
  55. | If your links do not seem to work, try one of the other delicious flavors:
  56. |
  57. | 'AUTO' Default - auto detects
  58. | 'PATH_INFO' Uses the PATH_INFO
  59. | 'QUERY_STRING' Uses the QUERY_STRING
  60. | 'REQUEST_URI' Uses the REQUEST_URI
  61. | 'ORIG_PATH_INFO' Uses the ORIG_PATH_INFO
  62. |
  63. */
  64. $config['uri_protocol'] = 'PATH_INFO';
  65.  
  66. /*
  67. |--------------------------------------------------------------------------
  68. | URL suffix
  69. |--------------------------------------------------------------------------
  70. |
  71. | This option allows you to add a suffix to all URLs generated by CodeIgniter.
  72. | For more information please see the user guide:
  73. |
  74. | http://codeigniter.com/user_guide/general/urls.html
  75. */
  76.  
  77. $config['url_suffix'] = '';
  78.  
  79. /*
  80. |--------------------------------------------------------------------------
  81. | Default Language
  82. |--------------------------------------------------------------------------
  83. |
  84. | This determines which set of language files should be used. Make sure
  85. | there is an available translation if you intend to use something other
  86. | than english.
  87. |
  88. */
  89. $config['language'] = 'italian'; // default language, attenzione come prima installazione va cambiata su english se il file index non è localizzato
  90. $config['available_languages'] = array('english', 'italian');
  91.  
  92. /*
  93. |--------------------------------------------------------------------------
  94. | Default Character Set
  95. |--------------------------------------------------------------------------
  96. |
  97. | This determines which character set is used by default in various methods
  98. | that require a character set to be provided.
  99. |
  100. */
  101. $config['charset'] = 'UTF-8';
  102.  
  103. /*
  104. |--------------------------------------------------------------------------
  105. | Enable/Disable System Hooks
  106. |--------------------------------------------------------------------------
  107. |
  108. | If you would like to use the 'hooks' feature you must enable it by
  109. | setting this variable to TRUE (boolean). See the user guide for details.
  110. |
  111. */
  112. $config['enable_hooks'] = TRUE;
  113.  
  114.  
  115. /*
  116. |--------------------------------------------------------------------------
  117. | Class Extension Prefix
  118. |--------------------------------------------------------------------------
  119. |
  120. | This item allows you to set the filename/classname prefix when extending
  121. | native libraries. For more information please see the user guide:
  122. |
  123. | http://codeigniter.com/user_guide/general/core_classes.html
  124. | http://codeigniter.com/user_guide/general/creating_libraries.html
  125. |
  126. */
  127. $config['subclass_prefix'] = 'MY_';
  128.  
  129.  
  130. /*
  131. |--------------------------------------------------------------------------
  132. | Allowed URL Characters
  133. |--------------------------------------------------------------------------
  134. |
  135. | This lets you specify with a regular expression which characters are permitted
  136. | within your URLs. When someone tries to submit a URL with disallowed
  137. | characters they will get a warning message.
  138. |
  139. | As a security measure you are STRONGLY encouraged to restrict URLs to
  140. | as few characters as possible. By default only these are allowed: a-z 0-9~%.:_-
  141. |
  142. | Leave blank to allow all characters -- but only if you are insane.
  143. |
  144. | DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!!
  145. |
  146. */
  147. $config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
  148.  
  149.  
  150. /*
  151. |--------------------------------------------------------------------------
  152. | Enable Query Strings
  153. |--------------------------------------------------------------------------
  154. |
  155. | By default CodeIgniter uses search-engine friendly segment based URLs:
  156. | example.com/who/what/where/
  157. |
  158. | By default CodeIgniter enables access to the $_GET array. If for some
  159. | reason you would like to disable it, set 'allow_get_array' to FALSE.
  160. |
  161. | You can optionally enable standard query string based URLs:
  162. | example.com?who=me&what=something&where=here
  163. |
  164. | Options are: TRUE or FALSE (boolean)
  165. |
  166. | The other items let you set the query string 'words' that will
  167. | invoke your controllers and its functions:
  168. | example.com/index.php?c=controller&m=function
  169. |
  170. | Please note that some of the helpers won't work as expected when
  171. | this feature is enabled, since CodeIgniter is designed primarily to
  172. | use segment based URLs.
  173. |
  174. */
  175. $config['allow_get_array'] = TRUE;
  176. $config['enable_query_strings'] = FALSE;
  177. $config['controller_trigger'] = 'c';
  178. $config['function_trigger'] = 'm';
  179. $config['directory_trigger'] = 'd'; // experimental not currently in use
  180.  
  181. /*
  182. |--------------------------------------------------------------------------
  183. | Error Logging Threshold
  184. |--------------------------------------------------------------------------
  185. |
  186. | If you have enabled error logging, you can set an error threshold to
  187. | determine what gets logged. Threshold options are:
  188. | You can enable error logging by setting a threshold over zero. The
  189. | threshold determines what gets logged. Threshold options are:
  190. |
  191. | 0 = Disables logging, Error logging TURNED OFF
  192. | 1 = Error Messages (including PHP errors)
  193. | 2 = Debug Messages
  194. | 3 = Informational Messages
  195. | 4 = All Messages
  196. |
  197. | For a live site you'll usually only enable Errors (1) to be logged otherwise
  198. | your log files will fill up very fast.
  199. |
  200. */
  201. $config['log_threshold'] = 0;
  202.  
  203. /*
  204. |--------------------------------------------------------------------------
  205. | Error Logging Directory Path
  206. |--------------------------------------------------------------------------
  207. |
  208. | Leave this BLANK unless you would like to set something other than the default
  209. | application/logs/ folder. Use a full server path with trailing slash.
  210. |
  211. */
  212. $config['log_path'] = '';
  213.  
  214. /*
  215. |--------------------------------------------------------------------------
  216. | Date Format for Logs
  217. |--------------------------------------------------------------------------
  218. |
  219. | Each item that is logged has an associated date. You can use PHP date
  220. | codes to set your own date formatting
  221. |
  222. */
  223. $config['log_date_format'] = 'Y-m-d H:i:s';
  224.  
  225. /*
  226. |--------------------------------------------------------------------------
  227. | Cache Directory Path
  228. |--------------------------------------------------------------------------
  229. |
  230. | Leave this BLANK unless you would like to set something other than the default
  231. | system/cache/ folder. Use a full server path with trailing slash.
  232. |
  233. */
  234. $config['cache_path'] = '';
  235.  
  236. /*
  237. |--------------------------------------------------------------------------
  238. | Encryption Key
  239. |--------------------------------------------------------------------------
  240. |
  241. | If you use the Encryption class or the Session class you
  242. | MUST set an encryption key. See the user guide for info.
  243. |
  244. */
  245. $config['encryption_key'] = SystemConfiguration::$base_url;
  246.  
  247. /*
  248. |--------------------------------------------------------------------------
  249. | Session Variables
  250. |--------------------------------------------------------------------------
  251. |
  252. | 'sess_cookie_name' = the name you want for the cookie
  253. | 'sess_expiration' = the number of SECONDS you want the session to last.
  254. | by default sessions last 7200 seconds (two hours). Set to zero for no expiration.
  255. | 'sess_expire_on_close' = Whether to cause the session to expire automatically
  256. | when the browser window is closed
  257. | 'sess_encrypt_cookie' = Whether to encrypt the cookie
  258. | 'sess_use_database' = Whether to save the session data to a database
  259. | 'sess_table_name' = The name of the session database table
  260. | 'sess_match_ip' = Whether to match the user's IP address when reading the session data
  261. | 'sess_match_useragent' = Whether to match the User Agent when reading the session data
  262. | 'sess_time_to_update' = how many seconds between CI refreshing Session Information
  263. |
  264. */
  265. $config['sess_cookie_name'] = 'ci_session';
  266. $config['sess_expiration'] = 7200;
  267. $config['sess_expire_on_close'] = FALSE;
  268. $config['sess_encrypt_cookie'] = FALSE;
  269. $config['sess_use_database'] = FALSE;
  270. $config['sess_table_name'] = 'ci_sessions';
  271. $config['sess_match_ip'] = FALSE;
  272. $config['sess_match_useragent'] = TRUE;
  273. $config['sess_time_to_update'] = 300;
  274.  
  275. /*
  276. |--------------------------------------------------------------------------
  277. | Cookie Related Variables
  278. |--------------------------------------------------------------------------
  279. |
  280. | 'cookie_prefix' = Set a prefix if you need to avoid collisions
  281. | 'cookie_domain' = Set to .your-domain.com for site-wide cookies
  282. | 'cookie_path' = Typically will be a forward slash
  283. | 'cookie_secure' = Cookies will only be set if a secure HTTPS connection exists.
  284. |
  285. */
  286. $config['cookie_prefix'] = "";
  287. $config['cookie_domain'] = "";
  288. $config['cookie_path'] = "/";
  289. $config['cookie_secure'] = FALSE;
  290.  
  291. /*
  292. |--------------------------------------------------------------------------
  293. | Global XSS Filtering
  294. |--------------------------------------------------------------------------
  295. |
  296. | Determines whether the XSS filter is always active when GET, POST or
  297. | COOKIE data is encountered
  298. |
  299. */
  300. $config['global_xss_filtering'] = FALSE;
  301.  
  302. /*
  303. |--------------------------------------------------------------------------
  304. | Cross Site Request Forgery
  305. |--------------------------------------------------------------------------
  306. | Enables a CSRF cookie token to be set. When set to TRUE, token will be
  307. | checked on a submitted form. If you are accepting user data, it is strongly
  308. | recommended CSRF protection be enabled.
  309. |
  310. | 'csrf_token_name' = The token name
  311. | 'csrf_cookie_name' = The cookie name
  312. | 'csrf_expire' = The number in seconds the token should expire.
  313. */
  314. $config['csrf_protection'] = FALSE;
  315. $config['csrf_token_name'] = 'csrf_test_name';
  316. $config['csrf_cookie_name'] = 'csrf_cookie_name';
  317. $config['csrf_expire'] = 7200;
  318.  
  319. /*
  320. |--------------------------------------------------------------------------
  321. | Output Compression
  322. |--------------------------------------------------------------------------
  323. |
  324. | Enables Gzip output compression for faster page loads. When enabled,
  325. | the output class will test whether your server supports Gzip.
  326. | Even if it does, however, not all browsers support compression
  327. | so enable only if you are reasonably sure your visitors can handle it.
  328. |
  329. | VERY IMPORTANT: If you are getting a blank page when compression is enabled it
  330. | means you are prematurely outputting something to your browser. It could
  331. | even be a line of whitespace at the end of one of your scripts. For
  332. | compression to work, nothing can be sent before the output buffer is called
  333. | by the output class. Do not 'echo' any values with compression enabled.
  334. |
  335. */
  336. $config['compress_output'] = FALSE;
  337.  
  338. /*
  339. |--------------------------------------------------------------------------
  340. | Master Time Reference
  341. |--------------------------------------------------------------------------
  342. |
  343. | Options are 'local' or 'gmt'. This pref tells the system whether to use
  344. | your server's local time as the master 'now' reference, or convert it to
  345. | GMT. See the 'date helper' page of the user guide for information
  346. | regarding date handling.
  347. |
  348. */
  349. $config['time_reference'] = 'local';
  350.  
  351.  
  352. /*
  353. |--------------------------------------------------------------------------
  354. | Rewrite PHP Short Tags
  355. |--------------------------------------------------------------------------
  356. |
  357. | If your PHP installation does not have short tag support enabled CI
  358. | can rewrite the tags on-the-fly, enabling you to utilize that syntax
  359. | in your view files. Options are TRUE or FALSE (boolean)
  360. |
  361. */
  362. $config['rewrite_short_tags'] = FALSE;
  363.  
  364.  
  365. /*
  366. |--------------------------------------------------------------------------
  367. | Reverse Proxy IPs
  368. |--------------------------------------------------------------------------
  369. |
  370. | If your server is behind a reverse proxy, you must whitelist the proxy IP
  371. | addresses from which CodeIgniter should trust the HTTP_X_FORWARDED_FOR
  372. | header in order to properly identify the visitor's IP address.
  373. | Comma-delimited, e.g. '10.0.1.200,10.0.1.201'
  374. |
  375. */
  376. $config['proxy_ips'] = '';
  377.  
  378.  
  379. /* End of file config.php */
  380. /* Location: ./application/config/config.php */
RAW Paste Data