file.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <?php
  2. /**
  3. * Part of the Fuel framework.
  4. *
  5. * @package Fuel
  6. * @version 1.5
  7. * @author Fuel Development Team
  8. * @license MIT License
  9. * @copyright 2010 - 2013 Fuel Development Team
  10. * @link http://fuelphp.com
  11. */
  12. /**
  13. * NOTICE:
  14. *
  15. * If you need to make modifications to the default configuration, copy
  16. * this file to your app/config folder, and make them in there.
  17. *
  18. * This will allow you to upgrade fuel without losing your custom config.
  19. */
  20. return array(
  21. // The default File_Area config
  22. 'base_config' => array(
  23. /**
  24. * Path to basedir restriction, null for no restriction
  25. */
  26. 'basedir' => null,
  27. /**
  28. * array of allowed extensions, null for all
  29. */
  30. 'extensions' => null,
  31. /**
  32. * Base url for files, null for not available
  33. */
  34. 'url' => null,
  35. /**
  36. * Whether or not to use file locks when doing file operations
  37. */
  38. 'use_locks' => null,
  39. /**
  40. * array containing file driver per file extension
  41. */
  42. 'file_handlers' => array(),
  43. ),
  44. // Pre configure some areas
  45. 'areas' => array(
  46. /* 'area_name' => array(
  47. 'basedir' => null,
  48. 'extensions' => null,
  49. 'url' => null,
  50. 'use_locks' => null,
  51. 'file_handlers' => array(),
  52. ), */
  53. ),
  54. // fileinfo() magic filename
  55. 'magic_file' => null,
  56. // default file and directory permissions
  57. 'chmod' => array(
  58. /**
  59. * Permissions for newly created files
  60. */
  61. 'files' => 0666,
  62. /**
  63. * Permissions for newly created directories
  64. */
  65. 'folders' => 0777,
  66. ),
  67. );