forked from sebsauvage/ZeroBin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.inc.php
More file actions
114 lines (96 loc) · 2.82 KB
/
Copy pathconfig.inc.php
File metadata and controls
114 lines (96 loc) · 2.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<?php
/*
ZeroBin - a zero-knowledge paste bin
Please see project page: http://sebsauvage.net/wiki/doku.php?id=php:zerobin
*/
// this config was ported over from https://github.com/ulikoehler/ZeroBin
// Set each one of these to the number
// of seconds in the expiration period,
// or -1 if it shall never expire
$cfg["expire"]["5min"] = 5*60;
$cfg["expire"]["10min"] = 10*60;
$cfg["expire"]["1hour"] = 60*60;
$cfg["expire"]["1day"] = 24*60*60;
$cfg["expire"]["1week"] = 7*24*60*60;
$cfg["expire"]["1month"] = 30*24*60*60; // Well this is not *exactly* one month, it's 30 days.
$cfg["expire"]["1year"] = 365*24*60*60;
$cfg["expire"]["never"] = -1;
//Labels for the expiration times. Must match those in $cfg["expire"]
$cfg["expireLabels"]["5min"] = "5 minutes";
$cfg["expireLabels"]["10min"] = "10 minutes";
$cfg["expireLabels"]["1hour"] = "1 hour";
$cfg["expireLabels"]["1day"] = "1 day";
$cfg["expireLabels"]["1week"] = "1 week";
$cfg["expireLabels"]["1month"] = "1 month";
$cfg["expireLabels"]["1year"] = "1 year";
$cfg["expireLabels"]["never"] = "Never";
/*
* The expire value that is selected per default
* Make sure the value exists in $cfg["expire"]
*/
$cfg["expireSelected"] = "1month";
/* Default expiration time, if nothing or sth invalid is selected
* This is NOT the per-default selected option
* Make sure the value exists in $cfg["expire"]
*/
$cfg["expireDefault"] = "never";
/*
* Set this to true to default-select
* the burn-after-reading feature
*/
$cfg["burnAfterReadingSelected"] = false;
/*
* The time between two posts, in seconds
* from a single IP address.
* Set this to -1 to disable rate limiting.
*/
$cfg["timeBetweenPosts"] = 10;
/*
* The maximum post size in bytes.
* Default: 2 Mibibytes
*/
$cfg["maxPostSize"] = 20; // Max paste size in MB
/*
* Whether to show the hash on-screen.
* Users selecting the text could copy
* the paste URL without hash if
* this is disabled, but it provides
* slightly higher security.
*/
$cfg["showHash"] = true;
/*
* since we generate the salt on the fly for each post, what should we append
* the for the salt file
*/
$cfg[ 'saltAppend' ] = "_salt.php";
/*
* set the default data directory
*/
$cfg[ 'dataDir' ] = "data";
/*
* Pasteid length
*/
$cfg[ 'pasteidLength' ] = 16;
/*
* Set this to false to disable the discussion system
*/
$cfg["enableDiscussionSystem"] = true;
/*
* Set this to false to disable syntax highlighting
*/
$cfg["enableSyntaxHighlighting"] = true;
/*
* set the highlight theme
* https://github.com/isagalaev/highlight.js/tree/master/src/styles
*/
$cfg["highlightTheme"] = "tomorrow";
/*
* Set this to false to disable uploading images, this will imply that
* you also cannot download image.
*/
$cfg["enableImageUploads"] = true;
/*
* Set this to false to disable downloading images
*/
$cfg["enableImageDownloads"] = true;
?>