conf.ini 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  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. [expire]
  19. ; expire value that is selected per default
  20. ; make sure the value exists in [expire_options]
  21. default = "1month"
  22. [expire_options]
  23. ; Set each one of these to the number of seconds in the expiration period,
  24. ; or 0 if it should never expire
  25. 5min = 300
  26. 10min = 600
  27. 1hour = 3600
  28. 1day = 86400
  29. 1week = 604800
  30. ; Well this is not *exactly* one month, it's 30 days:
  31. 1month = 2592000
  32. 1year = 31536000
  33. never = 0
  34. [expire_labels]
  35. ; descriptive labels for the expiration times
  36. ; must match those in [expire_options]
  37. 5min = "5 minutes"
  38. 10min = "10 minutes"
  39. 1hour = "1 hour"
  40. 1day = "1 day"
  41. 1week = "1 week"
  42. 1month = "1 month"
  43. 1year = "1 year"
  44. never = "Never"
  45. [traffic]
  46. ; time limit between calls from the same IP address in seconds
  47. ; Set this to 0 to disable rate limiting.
  48. limit = 10
  49. dir = PATH "data"
  50. [model]
  51. ; name of data model class to load and directory for storage
  52. ; the default model "zerobin_data" stores everything in the filesystem
  53. class = zerobin_data
  54. [model_options]
  55. dir = PATH "data"
  56. ;[model]
  57. ; example of DB configuration for MySQL
  58. ;class = zerobin_db
  59. ;[model_options]
  60. ;dsn = "mysql:host=localhost;dbname=zerobin;charset=UTF8"
  61. ;tbl = "zerobin_" ; table prefix
  62. ;usr = "zerobin"
  63. ;pwd = "Z3r0P4ss"
  64. ;opt[12] = true ; PDO::ATTR_PERSISTENT
  65. ;[model]
  66. ; example of DB configuration for SQLite
  67. ;class = zerobin_db
  68. ;[model_options]
  69. ;dsn = "sqlite:" PATH "data/db.sq3"
  70. ;usr = null
  71. ;pwd = null
  72. ;opt[12] = true ; PDO::ATTR_PERSISTENT