Advertisement
pendekar_langit

config.php

Feb 27th, 2015
291
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 17.42 KB | None | 0 0
  1. <?php
  2. defined('BASEPATH') OR exit('No direct script access allowed');
  3.  
  4. /*
  5. |--------------------------------------------------------------------------
  6. | Base Site URL
  7. |--------------------------------------------------------------------------
  8. |
  9. | URL to your CodeIgniter root. Typically this will be your base URL,
  10. | WITH a trailing slash:
  11. |
  12. |   http://example.com/
  13. |
  14. | If this is not set then CodeIgniter will try guess the protocol, domain
  15. | and path to your installation. However, you should always configure this
  16. | explicitly and never rely on auto-guessing, especially in production
  17. | environments.
  18. |
  19. */
  20. $config['base_url'] = 'http://suryadana.tk/';
  21.  
  22. /*
  23. |--------------------------------------------------------------------------
  24. | Index File
  25. |--------------------------------------------------------------------------
  26. |
  27. | Typically this will be your index.php file, unless you've renamed it to
  28. | something else. If you are using mod_rewrite to remove the page set this
  29. | variable so that it is blank.
  30. |
  31. */
  32. $config['index_page'] = 'index.php';
  33.  
  34. /*
  35. |--------------------------------------------------------------------------
  36. | URI PROTOCOL
  37. |--------------------------------------------------------------------------
  38. |
  39. | This item determines which server global should be used to retrieve the
  40. | URI string.  The default setting of 'REQUEST_URI' works for most servers.
  41. | If your links do not seem to work, try one of the other delicious flavors:
  42. |
  43. | 'REQUEST_URI'    Uses $_SERVER['REQUEST_URI']
  44. | 'QUERY_STRING'   Uses $_SERVER['QUERY_STRING']
  45. | 'PATH_INFO'      Uses $_SERVER['PATH_INFO']
  46. |
  47. | WARNING: If you set this to 'PATH_INFO', URIs will always be URL-decoded!
  48. */
  49. $config['uri_protocol'] = 'REQUEST_URI';
  50.  
  51. /*
  52. |--------------------------------------------------------------------------
  53. | URL suffix
  54. |--------------------------------------------------------------------------
  55. |
  56. | This option allows you to add a suffix to all URLs generated by CodeIgniter.
  57. | For more information please see the user guide:
  58. |
  59. | http://codeigniter.com/user_guide/general/urls.html
  60. */
  61.  
  62. $config['url_suffix'] = '';
  63.  
  64. /*
  65. |--------------------------------------------------------------------------
  66. | Default Language
  67. |--------------------------------------------------------------------------
  68. |
  69. | This determines which set of language files should be used. Make sure
  70. | there is an available translation if you intend to use something other
  71. | than english.
  72. |
  73. */
  74. $config['language'] = 'english';
  75.  
  76. /*
  77. |--------------------------------------------------------------------------
  78. | Default Character Set
  79. |--------------------------------------------------------------------------
  80. |
  81. | This determines which character set is used by default in various methods
  82. | that require a character set to be provided.
  83. |
  84. | See http://php.net/htmlspecialchars for a list of supported charsets.
  85. |
  86. */
  87. $config['charset'] = 'UTF-8';
  88.  
  89. /*
  90. |--------------------------------------------------------------------------
  91. | Enable/Disable System Hooks
  92. |--------------------------------------------------------------------------
  93. |
  94. | If you would like to use the 'hooks' feature you must enable it by
  95. | setting this variable to TRUE (boolean).  See the user guide for details.
  96. |
  97. */
  98. $config['enable_hooks'] = FALSE;
  99.  
  100. /*
  101. |--------------------------------------------------------------------------
  102. | Class Extension Prefix
  103. |--------------------------------------------------------------------------
  104. |
  105. | This item allows you to set the filename/classname prefix when extending
  106. | native libraries.  For more information please see the user guide:
  107. |
  108. | http://codeigniter.com/user_guide/general/core_classes.html
  109. | http://codeigniter.com/user_guide/general/creating_libraries.html
  110. |
  111. */
  112. $config['subclass_prefix'] = 'MY_';
  113.  
  114. /*
  115. |--------------------------------------------------------------------------
  116. | Composer auto-loading
  117. |--------------------------------------------------------------------------
  118. |
  119. | Enabling this setting will tell CodeIgniter to look for a Composer
  120. | package auto-loader script in application/vendor/autoload.php.
  121. |
  122. |   $config['composer_autoload'] = TRUE;
  123. |
  124. | Or if you have your vendor/ directory located somewhere else, you
  125. | can opt to set a specific path as well:
  126. |
  127. |   $config['composer_autoload'] = '/path/to/vendor/autoload.php';
  128. |
  129. | For more information about Composer, please visit http://getcomposer.org/
  130. |
  131. | Note: This will NOT disable or override the CodeIgniter-specific
  132. |   autoloading (application/config/autoload.php)
  133. */
  134. $config['composer_autoload'] = FALSE;
  135.  
  136. /*
  137. |--------------------------------------------------------------------------
  138. | Allowed URL Characters
  139. |--------------------------------------------------------------------------
  140. |
  141. | This lets you specify which characters are permitted within your URLs.
  142. | When someone tries to submit a URL with disallowed characters they will
  143. | get a warning message.
  144. |
  145. | As a security measure you are STRONGLY encouraged to restrict URLs to
  146. | as few characters as possible.  By default only these are allowed: a-z 0-9~%.:_-
  147. |
  148. | Leave blank to allow all characters -- but only if you are insane.
  149. |
  150. | The configured value is actually a regular expression character group
  151. | and it will be executed as: ! preg_match('/^[<permitted_uri_chars>]+$/i
  152. |
  153. | DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!!
  154. |
  155. */
  156. $config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
  157.  
  158.  
  159. /*
  160. |--------------------------------------------------------------------------
  161. | Enable Query Strings
  162. |--------------------------------------------------------------------------
  163. |
  164. | By default CodeIgniter uses search-engine friendly segment based URLs:
  165. | example.com/who/what/where/
  166. |
  167. | By default CodeIgniter enables access to the $_GET array.  If for some
  168. | reason you would like to disable it, set 'allow_get_array' to FALSE.
  169. |
  170. | You can optionally enable standard query string based URLs:
  171. | example.com?who=me&what=something&where=here
  172. |
  173. | Options are: TRUE or FALSE (boolean)
  174. |
  175. | The other items let you set the query string 'words' that will
  176. | invoke your controllers and its functions:
  177. | example.com/index.php?c=controller&m=function
  178. |
  179. | Please note that some of the helpers won't work as expected when
  180. | this feature is enabled, since CodeIgniter is designed primarily to
  181. | use segment based URLs.
  182. |
  183. */
  184. $config['allow_get_array'] = TRUE;
  185. $config['enable_query_strings'] = FALSE;
  186. $config['controller_trigger'] = 'c';
  187. $config['function_trigger'] = 'm';
  188. $config['directory_trigger'] = 'd';
  189.  
  190. /*
  191. |--------------------------------------------------------------------------
  192. | Error Logging Threshold
  193. |--------------------------------------------------------------------------
  194. |
  195. | If you have enabled error logging, you can set an error threshold to
  196. | determine what gets logged. Threshold options are:
  197. | You can enable error logging by setting a threshold over zero. The
  198. | threshold determines what gets logged. Threshold options are:
  199. |
  200. |   0 = Disables logging, Error logging TURNED OFF
  201. |   1 = Error Messages (including PHP errors)
  202. |   2 = Debug Messages
  203. |   3 = Informational Messages
  204. |   4 = All Messages
  205. |
  206. | You can also pass in a array with threshold levels to show individual error types
  207. |
  208. |   array(2) = Debug Messages, without Error Messages
  209. |
  210. | For a live site you'll usually only enable Errors (1) to be logged otherwise
  211. | your log files will fill up very fast.
  212. |
  213. */
  214. $config['log_threshold'] = 0;
  215.  
  216. /*
  217. |--------------------------------------------------------------------------
  218. | Error Logging Directory Path
  219. |--------------------------------------------------------------------------
  220. |
  221. | Leave this BLANK unless you would like to set something other than the default
  222. | application/logs/ directory. Use a full server path with trailing slash.
  223. |
  224. */
  225. $config['log_path'] = '';
  226.  
  227. /*
  228. |--------------------------------------------------------------------------
  229. | Log File Extension
  230. |--------------------------------------------------------------------------
  231. |
  232. | The default filename extension for log files. The default 'php' allows for
  233. | protecting the log files via basic scripting, when they are to be stored
  234. | under a publicly accessible directory.
  235. |
  236. | Note: Leaving it blank will default to 'php'.
  237. |
  238. */
  239. $config['log_file_extension'] = '';
  240.  
  241. /*
  242. |--------------------------------------------------------------------------
  243. | Log File Permissions
  244. |--------------------------------------------------------------------------
  245. |
  246. | The file system permissions to be applied on newly created log files.
  247. |
  248. | IMPORTANT: This MUST be an integer (no quotes) and you MUST use octal
  249. |            integer notation (i.e. 0700, 0644, etc.)
  250. */
  251. $config['log_file_permissions'] = 0644;
  252.  
  253. /*
  254. |--------------------------------------------------------------------------
  255. | Date Format for Logs
  256. |--------------------------------------------------------------------------
  257. |
  258. | Each item that is logged has an associated date. You can use PHP date
  259. | codes to set your own date formatting
  260. |
  261. */
  262. $config['log_date_format'] = 'Y-m-d H:i:s';
  263.  
  264. /*
  265. |--------------------------------------------------------------------------
  266. | Error Views Directory Path
  267. |--------------------------------------------------------------------------
  268. |
  269. | Leave this BLANK unless you would like to set something other than the default
  270. | application/views/errors/ directory.  Use a full server path with trailing slash.
  271. |
  272. */
  273. $config['error_views_path'] = '';
  274.  
  275. /*
  276. |--------------------------------------------------------------------------
  277. | Cache Directory Path
  278. |--------------------------------------------------------------------------
  279. |
  280. | Leave this BLANK unless you would like to set something other than the default
  281. | application/cache/ directory.  Use a full server path with trailing slash.
  282. |
  283. */
  284. $config['cache_path'] = '';
  285.  
  286. /*
  287. |--------------------------------------------------------------------------
  288. | Cache Include Query String
  289. |--------------------------------------------------------------------------
  290. |
  291. | Set this to TRUE if you want to use different cache files depending on the
  292. | URL query string.  Please be aware this might result in numerous cache files.
  293. |
  294. */
  295. $config['cache_query_string'] = FALSE;
  296.  
  297. /*
  298. |--------------------------------------------------------------------------
  299. | Encryption Key
  300. |--------------------------------------------------------------------------
  301. |
  302. | If you use the Encryption class, you must set an encryption key.
  303. | See the user guide for more info.
  304. |
  305. | http://codeigniter.com/user_guide/libraries/encryption.html
  306. |
  307. */
  308. $config['encryption_key'] = '';
  309.  
  310. /*
  311. |--------------------------------------------------------------------------
  312. | Session Variables
  313. |--------------------------------------------------------------------------
  314. |
  315. | 'sess_driver'
  316. |
  317. |   The storage driver to use: files, database, redis, memcached
  318. |
  319. | 'sess_cookie_name'
  320. |
  321. |   The session cookie name, must contain only [0-9a-z_-] characters
  322. |
  323. | 'sess_expiration'
  324. |
  325. |   The number of SECONDS you want the session to last.
  326. |   Setting to 0 (zero) means expire when the browser is closed.
  327. |
  328. | 'sess_save_path'
  329. |
  330. |   The location to save sessions to, driver dependant.
  331. |
  332. |   For the 'files' driver, it's a path to a writable directory.
  333. |   For the 'database' driver, it's a table name.
  334. |   Please read up the manual for the format with other session drivers.
  335. |
  336. |   IMPORTANT: You are REQUIRED to set a valid save path!
  337. |
  338. | 'sess_match_ip'
  339. |
  340. |   Whether to match the user's IP address when reading the session data.
  341. |
  342. | 'sess_time_to_update'
  343. |
  344. |   How many seconds between CI regenerating the session ID.
  345. |
  346. | 'sess_regenerate_destroy'
  347. |
  348. |   Whether to destroy session data associated with the old session ID
  349. |   when auto-regenerating the session ID. When set to FALSE, the data
  350. |   will be later deleted by the garbage collector.
  351. |
  352. | Other session cookie settings are shared with the rest of the application,
  353. | except for 'cookie_prefix' and 'cookie_httponly', which are ignored here.
  354. |
  355. */
  356. $config['sess_driver'] = 'files';
  357. $config['sess_cookie_name'] = 'ci_session';
  358. $config['sess_expiration'] = 7200;
  359. $config['sess_save_path'] = NULL;
  360. $config['sess_match_ip'] = FALSE;
  361. $config['sess_time_to_update'] = 300;
  362. $config['sess_regenerate_destroy'] = FALSE;
  363.  
  364. /*
  365. |--------------------------------------------------------------------------
  366. | Cookie Related Variables
  367. |--------------------------------------------------------------------------
  368. |
  369. | 'cookie_prefix'   = Set a cookie name prefix if you need to avoid collisions
  370. | 'cookie_domain'   = Set to .your-domain.com for site-wide cookies
  371. | 'cookie_path'     = Typically will be a forward slash
  372. | 'cookie_secure'   = Cookie will only be set if a secure HTTPS connection exists.
  373. | 'cookie_httponly' = Cookie will only be accessible via HTTP(S) (no javascript)
  374. |
  375. | Note: These settings (with the exception of 'cookie_prefix' and
  376. |       'cookie_httponly') will also affect sessions.
  377. |
  378. */
  379. $config['cookie_prefix']    = '';
  380. $config['cookie_domain']    = '';
  381. $config['cookie_path']      = '/';
  382. $config['cookie_secure']    = FALSE;
  383. $config['cookie_httponly']  = FALSE;
  384.  
  385. /*
  386. |--------------------------------------------------------------------------
  387. | Standardize newlines
  388. |--------------------------------------------------------------------------
  389. |
  390. | Determines whether to standardize newline characters in input data,
  391. | meaning to replace \r\n, \r, \n occurences with the PHP_EOL value.
  392. |
  393. | This is particularly useful for portability between UNIX-based OSes,
  394. | (usually \n) and Windows (\r\n).
  395. |
  396. */
  397. $config['standardize_newlines'] = FALSE;
  398.  
  399. /*
  400. |--------------------------------------------------------------------------
  401. | Global XSS Filtering
  402. |--------------------------------------------------------------------------
  403. |
  404. | Determines whether the XSS filter is always active when GET, POST or
  405. | COOKIE data is encountered
  406. |
  407. */
  408. $config['global_xss_filtering'] = FALSE;
  409.  
  410. /*
  411. |--------------------------------------------------------------------------
  412. | Cross Site Request Forgery
  413. |--------------------------------------------------------------------------
  414. | Enables a CSRF cookie token to be set. When set to TRUE, token will be
  415. | checked on a submitted form. If you are accepting user data, it is strongly
  416. | recommended CSRF protection be enabled.
  417. |
  418. | 'csrf_token_name' = The token name
  419. | 'csrf_cookie_name' = The cookie name
  420. | 'csrf_expire' = The number in seconds the token should expire.
  421. | 'csrf_regenerate' = Regenerate token on every submission
  422. | 'csrf_exclude_uris' = Array of URIs which ignore CSRF checks
  423. */
  424. $config['csrf_protection'] = FALSE;
  425. $config['csrf_token_name'] = 'csrf_test_name';
  426. $config['csrf_cookie_name'] = 'csrf_cookie_name';
  427. $config['csrf_expire'] = 7200;
  428. $config['csrf_regenerate'] = TRUE;
  429. $config['csrf_exclude_uris'] = array();
  430.  
  431. /*
  432. |--------------------------------------------------------------------------
  433. | Output Compression
  434. |--------------------------------------------------------------------------
  435. |
  436. | Enables Gzip output compression for faster page loads.  When enabled,
  437. | the output class will test whether your server supports Gzip.
  438. | Even if it does, however, not all browsers support compression
  439. | so enable only if you are reasonably sure your visitors can handle it.
  440. |
  441. | Only used if zlib.output_compression is turned off in your php.ini.
  442. | Please do not use it together with httpd-level output compression.
  443. |
  444. | VERY IMPORTANT:  If you are getting a blank page when compression is enabled it
  445. | means you are prematurely outputting something to your browser. It could
  446. | even be a line of whitespace at the end of one of your scripts.  For
  447. | compression to work, nothing can be sent before the output buffer is called
  448. | by the output class.  Do not 'echo' any values with compression enabled.
  449. |
  450. */
  451. $config['compress_output'] = FALSE;
  452.  
  453. /*
  454. |--------------------------------------------------------------------------
  455. | Master Time Reference
  456. |--------------------------------------------------------------------------
  457. |
  458. | Options are 'local' or any PHP supported timezone. This preference tells
  459. | the system whether to use your server's local time as the master 'now'
  460. | reference, or convert it to the configured one timezone. See the 'date
  461. | helper' page of the user guide for information regarding date handling.
  462. |
  463. */
  464. $config['time_reference'] = 'local';
  465.  
  466. /*
  467. |--------------------------------------------------------------------------
  468. | Rewrite PHP Short Tags
  469. |--------------------------------------------------------------------------
  470. |
  471. | If your PHP installation does not have short tag support enabled CI
  472. | can rewrite the tags on-the-fly, enabling you to utilize that syntax
  473. | in your view files.  Options are TRUE or FALSE (boolean)
  474. |
  475. */
  476. $config['rewrite_short_tags'] = FALSE;
  477.  
  478.  
  479. /*
  480. |--------------------------------------------------------------------------
  481. | Reverse Proxy IPs
  482. |--------------------------------------------------------------------------
  483. |
  484. | If your server is behind a reverse proxy, you must whitelist the proxy
  485. | IP addresses from which CodeIgniter should trust headers such as
  486. | HTTP_X_FORWARDED_FOR and HTTP_CLIENT_IP in order to properly identify
  487. | the visitor's IP address.
  488. |
  489. | You can use both an array or a comma-separated list of proxy addresses,
  490. | as well as specifying whole subnets. Here are a few examples:
  491. |
  492. | Comma-separated:  '10.0.1.200,192.168.5.0/24'
  493. | Array:        array('10.0.1.200', '192.168.5.0/24')
  494. */
  495. $config['proxy_ips'] = '';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement