conf.ini 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. ; ZeroBin
  2. ;
  3. ; a zero-knowledge paste bin
  4. ;
  5. ; @link http://sebsauvage.net/wiki/doku.php?id=php:zerobin
  6. ; @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
  7. ; @license http://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
  8. ; @version 0.15
  9. [main]
  10. ; enable or disable discussions
  11. opendiscussion = true
  12. ; enable or disable syntax highlighting
  13. syntaxhighlighting = true
  14. ; preselect the burn-after-reading feature by default
  15. burnafterreadingselected = false
  16. ; size limit per paste or comment in bytes, default is 2 Mibibytes
  17. sizelimit = 2097152
  18. ; template to include, default is "page" (tpl/page.html)
  19. template = "page"
  20. [expire]
  21. ; expire value that is selected per default
  22. ; make sure the value exists in [expire_options]
  23. default = "1month"
  24. [expire_options]
  25. ; Set each one of these to the number of seconds in the expiration period,
  26. ; or 0 if it should never expire
  27. 5min = 300
  28. 10min = 600
  29. 1hour = 3600
  30. 1day = 86400
  31. 1week = 604800
  32. ; Well this is not *exactly* one month, it's 30 days:
  33. 1month = 2592000
  34. 1year = 31536000
  35. never = 0
  36. [expire_labels]
  37. ; descriptive labels for the expiration times
  38. ; must match those in [expire_options]
  39. 5min = "5 minutes"
  40. 10min = "10 minutes"
  41. 1hour = "1 hour"
  42. 1day = "1 day"
  43. 1week = "1 week"
  44. 1month = "1 month"
  45. 1year = "1 year"
  46. never = "Never"
  47. [traffic]
  48. ; time limit between calls from the same IP address in seconds
  49. ; Set this to 0 to disable rate limiting.
  50. limit = 10
  51. dir = PATH "data"
  52. [model]
  53. ; name of data model class to load and directory for storage
  54. ; the default model "zerobin_data" stores everything in the filesystem
  55. class = zerobin_data
  56. [model_options]
  57. dir = PATH "data"
  58. ;[model]
  59. ; example of DB configuration for MySQL
  60. ;class = zerobin_db
  61. ;[model_options]
  62. ;dsn = "mysql:host=localhost;dbname=zerobin;charset=UTF8"
  63. ;tbl = "zerobin_" ; table prefix
  64. ;usr = "zerobin"
  65. ;pwd = "Z3r0P4ss"
  66. ;opt[12] = true ; PDO::ATTR_PERSISTENT
  67. ;[model]
  68. ; example of DB configuration for SQLite
  69. ;class = zerobin_db
  70. ;[model_options]
  71. ;dsn = "sqlite:" PATH "data/db.sq3"
  72. ;usr = null
  73. ;pwd = null
  74. ;opt[12] = true ; PDO::ATTR_PERSISTENT