Compare commits
588 Commits
1.2.2
...
paste-mana
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f66c690fc0 | ||
|
|
c37052fe82 | ||
|
|
7e30134d1f | ||
|
|
2b67f0369d | ||
|
|
02278c73ce | ||
|
|
2575656831 | ||
|
|
5ec72f1d89 | ||
|
|
2e4595c1ec | ||
|
|
291fdb306d | ||
|
|
0d492805b3 | ||
|
|
ba10c80ab1 | ||
|
|
d89601d505 | ||
|
|
cc11ef6d7a | ||
|
|
a2e9a94b58 | ||
|
|
8b7ae28830 | ||
|
|
c0567dd005 | ||
|
|
7becdd26f1 | ||
|
|
8962c86d29 | ||
|
|
d4e440c1a2 | ||
|
|
6546210da8 | ||
|
|
5d418be054 | ||
|
|
f2fb92eedc | ||
|
|
f4c7807181 | ||
|
|
4a04915269 | ||
|
|
a518b7c2ca | ||
|
|
48faf7b2f0 | ||
|
|
350cc21f42 | ||
|
|
ccbb24fdf1 | ||
|
|
8bbf568d43 | ||
|
|
6b2801f7de | ||
|
|
50881ff172 | ||
|
|
4e4c36a6c4 | ||
|
|
1d36fa2c21 | ||
|
|
21435d0111 | ||
|
|
669430aa10 | ||
|
|
566f8f1b1d | ||
|
|
9365f88a31 | ||
|
|
40172b8500 | ||
|
|
ea53546799 | ||
|
|
91062a28e3 | ||
|
|
9b35a4da70 | ||
|
|
5d379e6534 | ||
|
|
13b5c66e6d | ||
|
|
3668f1e3f4 | ||
|
|
417b17f86d | ||
|
|
3ef741b27b | ||
|
|
565063d839 | ||
|
|
646a2348db | ||
|
|
7f1d03df55 | ||
|
|
397442913b | ||
|
|
f9ed831092 | ||
|
|
b2751ca444 | ||
|
|
ddfccb338c | ||
|
|
633ec4b199 | ||
|
|
1614342248 | ||
|
|
298cbebca3 | ||
|
|
9f7b60a402 | ||
|
|
b30f3a9b58 | ||
|
|
7637d69e1b | ||
|
|
85943a9ce1 | ||
|
|
2b9abb8db4 | ||
|
|
33bcce593a | ||
|
|
3cd346c7de | ||
|
|
cbd3c75dd2 | ||
|
|
e531592b05 | ||
|
|
9f7db595a7 | ||
|
|
4204e4b8b7 | ||
|
|
d027cb188d | ||
|
|
e61c44ef46 | ||
|
|
13c2f8d968 | ||
|
|
4e3348795c | ||
|
|
0673c1cde1 | ||
|
|
2d9666c5ef | ||
|
|
521f134638 | ||
|
|
ea93c474ea | ||
|
|
af02731002 | ||
|
|
8b170397a9 | ||
|
|
ac32826009 | ||
|
|
c4830044f7 | ||
|
|
daae0d0dca | ||
|
|
283d85c7cf | ||
|
|
8537f396b3 | ||
|
|
e35a26c916 | ||
|
|
b555f679f6 | ||
|
|
45a0535640 | ||
|
|
cb0faf690c | ||
|
|
8fcc321eb6 | ||
|
|
5450a431cf | ||
|
|
f1d4792d3e | ||
|
|
65011019b7 | ||
|
|
dfed1a4b45 | ||
|
|
9b138fd5fd | ||
|
|
903ea5ea68 | ||
|
|
7794915172 | ||
|
|
df408c1e82 | ||
|
|
fbefe47806 | ||
|
|
bd7ecb9c55 | ||
|
|
2a04ee385d | ||
|
|
3268464ada | ||
|
|
09a2c5c3b9 | ||
|
|
51a867bc20 | ||
|
|
a1bac9b6e1 | ||
|
|
268730e07b | ||
|
|
120ba0b8ca | ||
|
|
bd26972a73 | ||
|
|
7cef87e856 | ||
|
|
420f0d6634 | ||
|
|
dd98af0775 | ||
|
|
5f0011b0f6 | ||
|
|
25a39148a8 | ||
|
|
e298c3d10c | ||
|
|
afcece17dd | ||
|
|
74551f58d7 | ||
|
|
4984194c33 | ||
|
|
d6b06269a4 | ||
|
|
7eb96eb3cb | ||
|
|
bb9a5772bc | ||
|
|
e59ef24d35 | ||
|
|
8c6c10cd0f | ||
|
|
958d55a8be | ||
|
|
57766496e4 | ||
|
|
75fc6b0c8c | ||
|
|
38a1726e22 | ||
|
|
d3ba7eeb13 | ||
|
|
5ece4d2632 | ||
|
|
fc1be18cbe | ||
|
|
878f13a643 | ||
|
|
b5ab38e657 | ||
|
|
fb66e2392b | ||
|
|
7e77b94158 | ||
|
|
2f9f6d90dd | ||
|
|
c63dc3df7b | ||
|
|
9914c37683 | ||
|
|
1439bb291f | ||
|
|
0907ee90e3 | ||
|
|
7abfe56910 | ||
|
|
0cc0830421 | ||
|
|
71c76adac4 | ||
|
|
7cb830e22f | ||
|
|
c334d2d00d | ||
|
|
c11dc8e17e | ||
|
|
8a6dcf910a | ||
|
|
33bb0c6bd6 | ||
|
|
0564c0e62e | ||
|
|
b52e78d173 | ||
|
|
f05e5c2e29 | ||
|
|
879a2a9255 | ||
|
|
f391773c65 | ||
|
|
5340f417e0 | ||
|
|
d2e9e47b67 | ||
|
|
b0800060c2 | ||
|
|
15f66870d1 | ||
|
|
afd82ac34d | ||
|
|
adece1d784 | ||
|
|
e74d786a68 | ||
|
|
f190317d95 | ||
|
|
5d54006c9e | ||
|
|
2870023e9c | ||
|
|
df7a06315f | ||
|
|
12c83a13c7 | ||
|
|
aa377038a0 | ||
|
|
7038fd5712 | ||
|
|
81194f6bd6 | ||
|
|
bab95cce1b | ||
|
|
00438ec1ab | ||
|
|
87423abd7c | ||
|
|
347e7e03e1 | ||
|
|
6e08d8a497 | ||
|
|
3fdd42487a | ||
|
|
2cbb8bf3ca | ||
|
|
3996f82404 | ||
|
|
d7fd6667fd | ||
|
|
21ca30af3c | ||
|
|
1b206e8495 | ||
|
|
cc0920fc09 | ||
|
|
428ea2f34e | ||
|
|
f940f17bba | ||
|
|
91003d6597 | ||
|
|
9a4018bffe | ||
|
|
8a6415ef5f | ||
|
|
b674c187a0 | ||
|
|
665192e27e | ||
|
|
b4256a986a | ||
|
|
13b30608cb | ||
|
|
a86dd35ac3 | ||
|
|
19d0cace13 | ||
|
|
d0589e77d4 | ||
|
|
271c954f9a | ||
|
|
3f8cf1792d | ||
|
|
f6899785a9 | ||
|
|
2d11d7b29e | ||
|
|
29efc14aa7 | ||
|
|
62365880b4 | ||
|
|
aa3f1206b2 | ||
|
|
b160e5d1f8 | ||
|
|
56ad0273e4 | ||
|
|
83c29165ad | ||
|
|
39ee46caee | ||
|
|
774fea9230 | ||
|
|
1d8b0d6189 | ||
|
|
72e96c7147 | ||
|
|
1ae4f4f0fc | ||
|
|
28c387074f | ||
|
|
3993b47e06 | ||
|
|
42130e0468 | ||
|
|
685c354d0e | ||
|
|
fa9d3037ba | ||
|
|
7b87dc3ca9 | ||
|
|
0d08edbe55 | ||
|
|
cec5cb41d7 | ||
|
|
76eff6a87a | ||
|
|
fd4492f229 | ||
|
|
5daba16333 | ||
|
|
eb549d70d1 | ||
|
|
9f6c02276a | ||
|
|
ebc2d649c4 | ||
|
|
01414e43ca | ||
|
|
9aac073a49 | ||
|
|
599264e167 | ||
|
|
ed590ee557 | ||
|
|
d73f8468d8 | ||
|
|
ef8943d838 | ||
|
|
2fd649db14 | ||
|
|
11a7ac4e2b | ||
|
|
a9bf667f8e | ||
|
|
4bf7f863dc | ||
|
|
8d0ac336d2 | ||
|
|
ddaee6486d | ||
|
|
3485922366 | ||
|
|
0efe6f7a8e | ||
|
|
07a6e3094d | ||
|
|
7d9ec9509b | ||
|
|
d5d13fa831 | ||
|
|
13fb849973 | ||
|
|
b5c86e290f | ||
|
|
6b0468ebff | ||
|
|
825f6884be | ||
|
|
ee9e340de0 | ||
|
|
2cbb86cefc | ||
|
|
3923817f2b | ||
|
|
b00d8e4ad8 | ||
|
|
aa75e596c8 | ||
|
|
787daccb78 | ||
|
|
87cf61c39b | ||
|
|
853fd906cb | ||
|
|
af8d963fd2 | ||
|
|
0ed238a775 | ||
|
|
8cf0c86ebb | ||
|
|
b23fd48d49 | ||
|
|
ffe26a8841 | ||
|
|
0b6139fb42 | ||
|
|
7d7ff34d83 | ||
|
|
e079f6c830 | ||
|
|
63fdd2eba3 | ||
|
|
759113f453 | ||
|
|
7255cd29a7 | ||
|
|
13afa7fe21 | ||
|
|
00a9e36c59 | ||
|
|
6fc4303acc | ||
|
|
56222d6cfb | ||
|
|
65b7077756 | ||
|
|
03138bcde5 | ||
|
|
7e9e3155a8 | ||
|
|
2b3b47c59d | ||
|
|
8fc85bc39c | ||
|
|
92571512bf | ||
|
|
d3153b5e38 | ||
|
|
71797d1dd4 | ||
|
|
476b9c90e2 | ||
|
|
2d4edfe401 | ||
|
|
ced5f30280 | ||
|
|
d5aeba60ca | ||
|
|
5c0012cf51 | ||
|
|
091dc14074 | ||
|
|
a3f793fec7 | ||
|
|
b496ae42fd | ||
|
|
e9eeeacdf0 | ||
|
|
8da382f7c6 | ||
|
|
28d70a1b18 | ||
|
|
c1f6e5663b | ||
|
|
bf0be09f09 | ||
|
|
955317d924 | ||
|
|
8e27dbff15 | ||
|
|
7c61f59dcd | ||
|
|
70c38db81d | ||
|
|
4332d0edb0 | ||
|
|
5810f17c31 | ||
|
|
15b3d67ba7 | ||
|
|
1a42158dd1 | ||
|
|
713ce148a4 | ||
|
|
63426d6f8b | ||
|
|
a363b2ff95 | ||
|
|
c2962af4f8 | ||
|
|
ae11d168ce | ||
|
|
7b029d3657 | ||
|
|
b1c9ca65fa | ||
|
|
5471757fa7 | ||
|
|
7a85900b7c | ||
|
|
269def8300 | ||
|
|
c992d10833 | ||
|
|
813e72d871 | ||
|
|
50881a75e6 | ||
|
|
c56d777c11 | ||
|
|
7f65fe9218 | ||
|
|
ad570c391a | ||
|
|
a6aef109cc | ||
|
|
6fcd82fb85 | ||
|
|
ff68043c9f | ||
|
|
5877111ccb | ||
|
|
00b886c492 | ||
|
|
e242d87427 | ||
|
|
271d4b680a | ||
|
|
ad096b80a1 | ||
|
|
b912c07cd1 | ||
|
|
ab75b183fb | ||
|
|
121b1e75d2 | ||
|
|
c77726b917 | ||
|
|
649c7aaa78 | ||
|
|
6a79519641 | ||
|
|
e4a0a8e82c | ||
|
|
72565e48ff | ||
|
|
ffac1adad6 | ||
|
|
d317cfbcc0 | ||
|
|
388655fdd1 | ||
|
|
b7b7aa3a47 | ||
|
|
2eed7a8a1c | ||
|
|
078b8d8fd6 | ||
|
|
3a9730f883 | ||
|
|
30ddcacca6 | ||
|
|
1de315619b | ||
|
|
e7fab8439d | ||
|
|
f22449ffd1 | ||
|
|
962df90b24 | ||
|
|
d351c7b734 | ||
|
|
84827e19c3 | ||
|
|
b8196ee63c | ||
|
|
e6e4facde0 | ||
|
|
6ac425d468 | ||
|
|
49b358b1ee | ||
|
|
71931b0f18 | ||
|
|
1af7b536a5 | ||
|
|
a5cd8696e6 | ||
|
|
cd5ede5670 | ||
|
|
cb877e4494 | ||
|
|
c66bff9d1b | ||
|
|
d63a0d10d3 | ||
|
|
847c9e7355 | ||
|
|
d33c89666d | ||
|
|
c8a9038f27 | ||
|
|
b65303dd71 | ||
|
|
8d323c1da4 | ||
|
|
5c5de860e2 | ||
|
|
da576baab9 | ||
|
|
78225165ca | ||
|
|
b0d1a3949e | ||
|
|
1469d0c062 | ||
|
|
a1704b2dd9 | ||
|
|
0780e5ace2 | ||
|
|
5d7658b58f | ||
|
|
1e2014b9fa | ||
|
|
07018e5876 | ||
|
|
6df5127132 | ||
|
|
8ae87d8653 | ||
|
|
d8ba1b1462 | ||
|
|
07e0b267f9 | ||
|
|
ae456bf7a1 | ||
|
|
57417c08cf | ||
|
|
943b6bdfc3 | ||
|
|
c707c87cac | ||
|
|
2cbf528894 | ||
|
|
11375a4f59 | ||
|
|
67b9b5f0d8 | ||
|
|
fdc532b3c1 | ||
|
|
ddb1c550f5 | ||
|
|
c2e060d464 | ||
|
|
848d3563f4 | ||
|
|
47944ba3b1 | ||
|
|
8dc9db90c9 | ||
|
|
c9680ed741 | ||
|
|
5a1adea050 | ||
|
|
f5fee9b44a | ||
|
|
40493dfb3a | ||
|
|
61fde53de0 | ||
|
|
dc193f7555 | ||
|
|
d9f27fb004 | ||
|
|
603f7fd911 | ||
|
|
59153633b8 | ||
|
|
d0365faf76 | ||
|
|
57bd65225d | ||
|
|
58fa7c987d | ||
|
|
b7db033bdd | ||
|
|
e5974d4663 | ||
|
|
a1b1efeae2 | ||
|
|
59dc413829 | ||
|
|
50cc6995e0 | ||
|
|
1958a55651 | ||
|
|
77419ec2c1 | ||
|
|
e9ce8ca1a0 | ||
|
|
b1be74a56f | ||
|
|
42c2003220 | ||
|
|
a67c9ab129 | ||
|
|
fc914b4b84 | ||
|
|
748b85e025 | ||
|
|
7ab6411f71 | ||
|
|
4d6897f063 | ||
|
|
8515c9d223 | ||
|
|
8a69411d50 | ||
|
|
49e118a8b3 | ||
|
|
3259cabfb3 | ||
|
|
b527bc6208 | ||
|
|
0a88b3043c | ||
|
|
66cee9dbd2 | ||
|
|
db4ae09ee3 | ||
|
|
362045c664 | ||
|
|
cd72110ea4 | ||
|
|
b4ceb4078d | ||
|
|
f915af1a5a | ||
|
|
451a4817c4 | ||
|
|
6cf52f4cf3 | ||
|
|
abd71413c3 | ||
|
|
d3f9670bc2 | ||
|
|
dcbefcc1c3 | ||
|
|
ff6b9bd8f9 | ||
|
|
a459c4692c | ||
|
|
ebbb850b27 | ||
|
|
87c7719513 | ||
|
|
c4b84b2b6b | ||
|
|
d73c68ad85 | ||
|
|
a270cd818a | ||
|
|
398fabd664 | ||
|
|
b44e729a1a | ||
|
|
12a9b2ff8e | ||
|
|
1baa1c2b0a | ||
|
|
800a0df8e3 | ||
|
|
353d08daf6 | ||
|
|
909ff2daa7 | ||
|
|
8fd3e680e4 | ||
|
|
86b4e0e7a4 | ||
|
|
d785ada3fe | ||
|
|
3b0ab7e99f | ||
|
|
0e71211fad | ||
|
|
7111e38898 | ||
|
|
6f480bf014 | ||
|
|
5779d87788 | ||
|
|
e77eb1de13 | ||
|
|
09162a3c57 | ||
|
|
cc1c55129f | ||
|
|
be1e7babc0 | ||
|
|
5b67721a6a | ||
|
|
dfb16ea61d | ||
|
|
ccdcf4cefa | ||
|
|
50af37507f | ||
|
|
788ea67b49 | ||
|
|
5b3286df4d | ||
|
|
20befe4bd6 | ||
|
|
a622c8f484 | ||
|
|
c3719435a3 | ||
|
|
7598b28a4a | ||
|
|
02f3cc739f | ||
|
|
9b6b25dac0 | ||
|
|
76007b6ee9 | ||
|
|
f58cbefd1e | ||
|
|
fb0c9c595e | ||
|
|
b1d35057cc | ||
|
|
bd4dee0f3e | ||
|
|
1e44902340 | ||
|
|
632d70412a | ||
|
|
0f42bd818f | ||
|
|
700f8a0ea7 | ||
|
|
59569bf9fc | ||
|
|
7f1afb2b3e | ||
|
|
fcf9cf63b5 | ||
|
|
54d21a7803 | ||
|
|
b12a099e29 | ||
|
|
4aab3c0061 | ||
|
|
76dc01b959 | ||
|
|
06b90ff48e | ||
|
|
b7a03cfdb9 | ||
|
|
6e15903f1e | ||
|
|
bbdcb3fb0f | ||
|
|
3338bd792e | ||
|
|
ed676acac3 | ||
|
|
5652a43d1d | ||
|
|
eeca365e18 | ||
|
|
0e18b5d0c1 | ||
|
|
0033f39b85 | ||
|
|
d8616d1e68 | ||
|
|
8ea7c4cda6 | ||
|
|
742add3d1e | ||
|
|
e01179653f | ||
|
|
a60b86691e | ||
|
|
ec698681aa | ||
|
|
2a9d2f9993 | ||
|
|
fd33cc8206 | ||
|
|
9c3a4cebd4 | ||
|
|
ba3efefc7b | ||
|
|
e418b083e8 | ||
|
|
48560e3d60 | ||
|
|
34c64acb75 | ||
|
|
c2a46b7af7 | ||
|
|
99d49a56ba | ||
|
|
7cb942aca3 | ||
|
|
541fff199a | ||
|
|
6beea8f2f4 | ||
|
|
e3d7ac4442 | ||
|
|
79a858f176 | ||
|
|
cc53d95ed1 | ||
|
|
5e4c6b5770 | ||
|
|
6bb599c81f | ||
|
|
8f52173ec3 | ||
|
|
287130dd37 | ||
|
|
ec68abe2b5 | ||
|
|
ce87b1cc39 | ||
|
|
0ee86f33da | ||
|
|
be69e4a50f | ||
|
|
0ad5b3e900 | ||
|
|
5ce3aa2817 | ||
|
|
210870590c | ||
|
|
0ab06e34ec | ||
|
|
f3165f0cab | ||
|
|
70007285bf | ||
|
|
4edbb66c91 | ||
|
|
3883e3fb30 | ||
|
|
9348cbe2a1 | ||
|
|
2bb3df5bee | ||
|
|
1de57c874e | ||
|
|
e64eaf45ee | ||
|
|
c39e578f04 | ||
|
|
c15351b793 | ||
|
|
cde96d8f24 | ||
|
|
e220a97c8f | ||
|
|
fe670dc94f | ||
|
|
ac9eac5ed6 | ||
|
|
2303c81ce0 | ||
|
|
9ce41022cf | ||
|
|
b36b3d1a82 | ||
|
|
18151e6e9e | ||
|
|
30bb34a4fe | ||
|
|
7a5a97c6ae | ||
|
|
8b803a1f5d | ||
|
|
3885047cb6 | ||
|
|
419311dffa | ||
|
|
9cce056cc8 | ||
|
|
6f34626ad6 | ||
|
|
5b00f4ead7 | ||
|
|
4c3fb3fe63 | ||
|
|
717e5b0e57 | ||
|
|
0f76b9066d | ||
|
|
2d7996570e | ||
|
|
2929d5c17a | ||
|
|
a08fed1add | ||
|
|
35045bb69a | ||
|
|
100d955e1a | ||
|
|
ff8ec5a1a0 | ||
|
|
c0d3b9062b | ||
|
|
17131f3172 | ||
|
|
746debf586 | ||
|
|
94a352e7f5 | ||
|
|
bc0fb5b91e | ||
|
|
00692a29d6 | ||
|
|
538462f134 | ||
|
|
b62e259cfb | ||
|
|
034d60f966 | ||
|
|
256a5b2450 | ||
|
|
41c54325fa | ||
|
|
f9e0b7236c | ||
|
|
dcee0c7d39 | ||
|
|
762386efd7 | ||
|
|
f3eaee206c | ||
|
|
176264f135 | ||
|
|
b791157717 | ||
|
|
b191e2c437 | ||
|
|
d66800b8ce | ||
|
|
8b71cb0b2f | ||
|
|
30b7be0781 | ||
|
|
b97ac08003 | ||
|
|
0dbbb61d11 | ||
|
|
fe7fa09ce8 | ||
|
|
5f8aeabea0 | ||
|
|
bd6888687f | ||
|
|
c4fc7edc43 | ||
|
|
6f25d651b7 | ||
|
|
c9a3bb08ee | ||
|
|
4f332b7719 | ||
|
|
c76957b3cb | ||
|
|
b40e6305ca | ||
|
|
5582c05414 | ||
|
|
ee8ffdc51b |
@@ -1,18 +0,0 @@
|
|||||||
# Documentation, might leak version number
|
|
||||||
CHANGELOG.md
|
|
||||||
LICENSE.md
|
|
||||||
CREDITS.md
|
|
||||||
INSTALL.md
|
|
||||||
README.md
|
|
||||||
doc/
|
|
||||||
|
|
||||||
# Dotfiles, pointless
|
|
||||||
.codeclimate.yml
|
|
||||||
.csslintrc
|
|
||||||
.editorconfig
|
|
||||||
.eslint*
|
|
||||||
.git*
|
|
||||||
.php_cs
|
|
||||||
.styleci.yml
|
|
||||||
.travis.yml
|
|
||||||
.github
|
|
||||||
22
.eslintrc
22
.eslintrc
@@ -1,3 +1,7 @@
|
|||||||
|
---
|
||||||
|
parserOptions:
|
||||||
|
ecmaVersion: 2017
|
||||||
|
|
||||||
ecmaFeatures:
|
ecmaFeatures:
|
||||||
modules: true
|
modules: true
|
||||||
jsx: true
|
jsx: true
|
||||||
@@ -8,18 +12,16 @@ env:
|
|||||||
es6: true
|
es6: true
|
||||||
jquery: true
|
jquery: true
|
||||||
node: true
|
node: true
|
||||||
|
mocha: true
|
||||||
|
|
||||||
globals:
|
globals:
|
||||||
sjcl: false
|
DOMPurify: readonly
|
||||||
DOMPurify: false
|
cleanup: writable
|
||||||
after: true
|
describe: readonly
|
||||||
before: true
|
jsc: readonly
|
||||||
cleanup: true
|
jsdom: writable
|
||||||
describe: false
|
kjua: writable
|
||||||
it: false
|
WebCrypto: writable
|
||||||
jsc: false
|
|
||||||
jsdom: true
|
|
||||||
kjua: true
|
|
||||||
|
|
||||||
# http://eslint.org/docs/rules/
|
# http://eslint.org/docs/rules/
|
||||||
rules:
|
rules:
|
||||||
|
|||||||
12
.gitattributes
vendored
12
.gitattributes
vendored
@@ -1,10 +1,12 @@
|
|||||||
doc/ export-ignore
|
doc/ export-ignore
|
||||||
tst/ export-ignore
|
tst/ export-ignore
|
||||||
|
img/browserstack.svg export-ignore
|
||||||
js/.istanbul.yml export-ignore
|
js/.istanbul.yml export-ignore
|
||||||
|
js/.nycrc.yml export-ignore
|
||||||
|
js/common.js export-ignore
|
||||||
js/test/ export-ignore
|
js/test/ export-ignore
|
||||||
.codeclimate.yml export-ignore
|
.codeclimate.yml export-ignore
|
||||||
.csslintrc export-ignore
|
.csslintrc export-ignore
|
||||||
.dockerignore export-ignore
|
|
||||||
.editorconfig export-ignore
|
.editorconfig export-ignore
|
||||||
.eslintignore export-ignore
|
.eslintignore export-ignore
|
||||||
.eslintrc export-ignore
|
.eslintrc export-ignore
|
||||||
@@ -16,7 +18,9 @@ js/test/ export-ignore
|
|||||||
.php_cs export-ignore
|
.php_cs export-ignore
|
||||||
.styleci.yml export-ignore
|
.styleci.yml export-ignore
|
||||||
.travis.yml export-ignore
|
.travis.yml export-ignore
|
||||||
Dockerfile export-ignore
|
|
||||||
docker-compose.yml export-ignore
|
|
||||||
docker/ export-ignore
|
|
||||||
composer.json export-ignore
|
composer.json export-ignore
|
||||||
|
composer.lock export-ignore
|
||||||
|
crowdin.yml export-ignore
|
||||||
|
BADGES.md export-ignore
|
||||||
|
CODE_OF_CONDUCT.md export-ignore
|
||||||
|
Makefile export-ignore
|
||||||
|
|||||||
52
.github/workflows/tests.yml
vendored
Normal file
52
.github/workflows/tests.yml
vendored
Normal file
@@ -0,0 +1,52 @@
|
|||||||
|
name: Tests
|
||||||
|
on: [push]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Composer:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Validate composer.json and composer.lock
|
||||||
|
run: composer validate
|
||||||
|
- name: Install dependencies
|
||||||
|
run: composer install --prefer-dist --no-progress --no-suggest
|
||||||
|
PHPunit:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
php-versions: ['5.6', '7.0', '7.1', '7.2', '7.3', '7.4']
|
||||||
|
name: PHP ${{ matrix.php-versions }} unit tests on ${{ matrix.operating-system }}
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Setup PHP
|
||||||
|
uses: shivammathur/setup-php@v2
|
||||||
|
with:
|
||||||
|
php-version: ${{ matrix.php-versions }}
|
||||||
|
extensions: gd, sqlite3
|
||||||
|
- name: Remove composer lock
|
||||||
|
run: rm composer.lock
|
||||||
|
- name: Setup PHPunit
|
||||||
|
run: composer install -n
|
||||||
|
- name: Run unit tests
|
||||||
|
run: ../vendor/bin/phpunit --no-coverage
|
||||||
|
working-directory: tst
|
||||||
|
Mocha:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Setup Node
|
||||||
|
uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: '12'
|
||||||
|
- name: Setup Mocha
|
||||||
|
run: npm install -g mocha
|
||||||
|
- name: Setup Node modules
|
||||||
|
run: npm install
|
||||||
|
working-directory: js
|
||||||
|
- name: Run unit tests
|
||||||
|
run: mocha
|
||||||
|
working-directory: js
|
||||||
|
|
||||||
4
.gitignore
vendored
4
.gitignore
vendored
@@ -12,10 +12,6 @@ data/
|
|||||||
doc/*
|
doc/*
|
||||||
!doc/*.md
|
!doc/*.md
|
||||||
|
|
||||||
# Ignore developers composer status so it isn't accidentally checked in,
|
|
||||||
# see https://github.com/PrivateBin/PrivateBin/issues/84
|
|
||||||
composer.lock
|
|
||||||
|
|
||||||
# Ignore vendor dir of Composer except PHP files
|
# Ignore vendor dir of Composer except PHP files
|
||||||
vendor/*.*
|
vendor/*.*
|
||||||
vendor/*/*.*
|
vendor/*/*.*
|
||||||
|
|||||||
@@ -1,3 +1,12 @@
|
|||||||
RewriteEngine on
|
RewriteEngine on
|
||||||
|
RewriteCond !%{HTTP_USER_AGENT} "Let's Encrypt validation server" [NC]
|
||||||
RewriteCond %{HTTP_USER_AGENT} ^.*(bot|spider|crawl|https?://|WhatsApp|SkypeUriPreview|facebookexternalhit) [NC]
|
RewriteCond %{HTTP_USER_AGENT} ^.*(bot|spider|crawl|https?://|WhatsApp|SkypeUriPreview|facebookexternalhit) [NC]
|
||||||
RewriteRule .* - [R=403,L]
|
RewriteRule .* - [R=403,L]
|
||||||
|
|
||||||
|
<IfModule mod_php7.c>
|
||||||
|
php_value max_execution_time 30
|
||||||
|
php_value post_max_size 10M
|
||||||
|
php_value upload_max_size 10M
|
||||||
|
php_value upload_max_filesize 10M
|
||||||
|
php_value max_file_uploads 100
|
||||||
|
</IfModule>
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"bitwise": true,
|
"bitwise": true,
|
||||||
"curly": true,
|
"curly": true,
|
||||||
"eqeqeq": true,
|
"eqeqeq": true,
|
||||||
"esversion": 5,
|
"esversion": 6,
|
||||||
"forin": true,
|
"forin": true,
|
||||||
"freeze": true,
|
"freeze": true,
|
||||||
"futurehostile": true,
|
"futurehostile": true,
|
||||||
@@ -39,7 +39,6 @@
|
|||||||
"window": true
|
"window": true
|
||||||
},
|
},
|
||||||
"globals": {
|
"globals": {
|
||||||
"sjcl": true,
|
|
||||||
"DOMPurify": true,
|
"DOMPurify": true,
|
||||||
"kjua": true
|
"kjua": true
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ disabled:
|
|||||||
- concat_without_spaces
|
- concat_without_spaces
|
||||||
- declare_equal_normalize
|
- declare_equal_normalize
|
||||||
- heredoc_to_nowdoc
|
- heredoc_to_nowdoc
|
||||||
- method_argument_space
|
- method_argument_space_strict
|
||||||
- new_with_braces
|
- new_with_braces
|
||||||
- no_alternative_syntax
|
- no_alternative_syntax
|
||||||
- phpdoc_align
|
- phpdoc_align
|
||||||
|
|||||||
35
.travis.yml
35
.travis.yml
@@ -1,35 +0,0 @@
|
|||||||
language: php
|
|
||||||
sudo: false
|
|
||||||
php:
|
|
||||||
- '5.4'
|
|
||||||
- '5.5'
|
|
||||||
- '5.6'
|
|
||||||
- '7.0'
|
|
||||||
- '7.1'
|
|
||||||
- '7.2'
|
|
||||||
|
|
||||||
# as this is a php project, node.js v4 (for JS unit testing) isn't installed
|
|
||||||
install:
|
|
||||||
- if [ ! -d "$HOME/.nvm" ]; then mkdir -p $HOME/.nvm && curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | NVM_METHOD=script bash; fi
|
|
||||||
- source ~/.nvm/nvm.sh && nvm install 4
|
|
||||||
|
|
||||||
before_script:
|
|
||||||
- composer install -n
|
|
||||||
- npm install -g mocha
|
|
||||||
- cd js && npm install jsverify jsdom@9 jsdom-global@2 mime-types
|
|
||||||
|
|
||||||
script:
|
|
||||||
- mocha
|
|
||||||
- cd ../tst && ../vendor/bin/phpunit
|
|
||||||
|
|
||||||
after_script:
|
|
||||||
- ../vendor/bin/test-reporter --coverage-report log/coverage-clover.xml
|
|
||||||
- cd .. && vendor/bin/codacycoverage clover tst/log/coverage-clover.xml
|
|
||||||
|
|
||||||
cache:
|
|
||||||
directories:
|
|
||||||
- $HOME/.composer/cache/files
|
|
||||||
- $HOME/.composer/cache/vcs
|
|
||||||
- $HOME/.nvm
|
|
||||||
- $HOME/.npm
|
|
||||||
- js/node_modules
|
|
||||||
11
BADGES.md
Normal file
11
BADGES.md
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
# Badges
|
||||||
|
|
||||||
|
[](https://travis-ci.org/PrivateBin/PrivateBin) [](https://scrutinizer-ci.com/g/PrivateBin/PrivateBin/build-status/master)
|
||||||
|
[](https://www.codacy.com/app/PrivateBin/PrivateBin)
|
||||||
|
[](https://codeclimate.com/github/PrivateBin/PrivateBin)
|
||||||
|
[](https://scrutinizer-ci.com/g/PrivateBin/PrivateBin/?branch=master)
|
||||||
|
[](https://insight.sensiolabs.com/projects/57c9e74e-c6f9-4de6-a876-df66ec2ea1ff)
|
||||||
|
[](https://www.codacy.com/app/PrivateBin/PrivateBin)
|
||||||
|
[](https://codeclimate.com/github/PrivateBin/PrivateBin/coverage) [](https://scrutinizer-ci.com/g/PrivateBin/PrivateBin/?branch=master)
|
||||||
|
|
||||||
|
[](https://www.browserstack.com/)
|
||||||
60
CHANGELOG.md
60
CHANGELOG.md
@@ -1,8 +1,68 @@
|
|||||||
# PrivateBin version history
|
# PrivateBin version history
|
||||||
|
|
||||||
|
* **1.4 (not yet released)**
|
||||||
|
* ADDED: Translation for Hebrew
|
||||||
|
* CHANGED: Upgrading libraries to: DOMpurify 2.1.1
|
||||||
|
* **1.3.4 (2020-03-22)**
|
||||||
|
* CHANGED: Minimum required PHP version is 5.6, due to a change in the identicon library and to use php's native hash_equals()
|
||||||
|
* CHANGED: Upgrading libraries to: identicon 2.0.0
|
||||||
|
* FIXED: Support custom expiration options in email function (#586)
|
||||||
|
* FIXED: Regression with encoding of HTML entities (#588)
|
||||||
|
* FIXED: Unable to paste password on paste with attachment (#565 & #595)
|
||||||
|
* **1.3.3 (2020-02-16)**
|
||||||
|
* CHANGED: Upgrading libraries to: DOMpurify 2.0.8
|
||||||
|
* CHANGED: Several translations got updated with missing messages
|
||||||
|
* CHANGED: Introduce HTML entity encoding on server side (#581)
|
||||||
|
* FIXED: HTML entity double encoding issues introduced in 1.3.2 (#560)
|
||||||
|
* **1.2.3 (2020-02-16)**
|
||||||
|
* CHANGED: Upgrading libraries to: DOMpurify 2.0.8
|
||||||
|
* CHANGED: Introduce HTML entity encoding on server side (#581)
|
||||||
|
* FIXED: HTML entity double encoding issues introduced in 1.3.2 (#560)
|
||||||
|
* **1.3.2 (2020-01-11)**
|
||||||
|
* ADDED: Translation for Ukrainian (#533)
|
||||||
|
* ADDED: Option to send a mail with the link, when creating a paste (#398)
|
||||||
|
* ADDED: Add support for CONFIG_PATH environment variable (#552)
|
||||||
|
* CHANGED: Upgrading libraries to: base-x 3.0.7, DOMpurify 2.0.7 & Showdown 1.9.1
|
||||||
|
* FIXED: HTML injection via unescaped attachment filename (#554)
|
||||||
|
* FIXED: Password disabling option (#527)
|
||||||
* **1.2.2 (2020-01-11)**
|
* **1.2.2 (2020-01-11)**
|
||||||
* CHANGED: Upgrading libraries to: bootstrap 3.4.1, DOMpurify 2.0.7, jQuery 3.4.1, kjua 0.6.0, Showdown 1.9.1 & SJCL 1.0.8
|
* CHANGED: Upgrading libraries to: bootstrap 3.4.1, DOMpurify 2.0.7, jQuery 3.4.1, kjua 0.6.0, Showdown 1.9.1 & SJCL 1.0.8
|
||||||
* FIXED: HTML injection via unescaped attachment filename (#554)
|
* FIXED: HTML injection via unescaped attachment filename (#554)
|
||||||
|
* **1.3.1 (2019-09-22)**
|
||||||
|
* ADDED: Translation for Bulgarian (#455)
|
||||||
|
* CHANGED: Improved mobile UI - obscured send button and hard to click shortener button (#477)
|
||||||
|
* CHANGED: Enhanced URL shortener integration (#479)
|
||||||
|
* CHANGED: Improved file upload drag & drop UI (#317)
|
||||||
|
* CHANGED: Increased default size limit from 2 to 10 MiB, switch data from BLOB to MEDIUMBLOB in MySQL (#458)
|
||||||
|
* CHANGED: Upgrading libraries to: DOMpurify 2.0.1
|
||||||
|
* FIXED: Enabling browsers without WASM to create pastes and read uncompressed ones (#454)
|
||||||
|
* FIXED: Cloning related issues (#489, #491, #493, #494)
|
||||||
|
* FIXED: Enable file operation only when editing (#497)
|
||||||
|
* FIXED: Clicking 'New' on a previously submitted paste does not blank address bar (#354)
|
||||||
|
* FIXED: Clear address bar when create new paste from existing paste (#479)
|
||||||
|
* FIXED: Discussion section not hiding when new/clone paste is clicked on (#484)
|
||||||
|
* FIXED: Showdown.js error when posting svg qrcode (#485)
|
||||||
|
* FIXED: Failed to handle the case where user cancelled attachment selection properly (#487)
|
||||||
|
* FIXED: Displaying the appropriate errors in older browsers (#508)
|
||||||
|
* **1.3 (2019-07-09)**
|
||||||
|
* ADDED: Translation for Czech (#424)
|
||||||
|
* ADDED: Threat modeled the application (#177)
|
||||||
|
* ADDED: Made compression configurable (#38)
|
||||||
|
* CHANGED: Minimum required PHP version is 5.5, due to a change in the identicon library
|
||||||
|
* CHANGED: Minimum required browser versions are Firefox 54, Chrome 57, Opera 44, Safari 11, Edge 16, due to use of WebCrypto API, async/await, ES6 & WebAssembly features - all Internet Explorer versions are incompatible
|
||||||
|
* CHANGED: JSON and encryption formats were changed to replace SJCL library by browser integrated WebCrypto API (#28, #74)
|
||||||
|
* CHANGED: Replaced rawdeflate.js with zlib.wasm to resolve decompression failures and gain compatibility with standard deflate implementations (#193, #260, #328, #434, #440)
|
||||||
|
* CHANGED: Increase PBKDF2 iterations to 100k (#350)
|
||||||
|
* CHANGED: Replaced last use of MD5 with Fowler–Noll–Vo checksum which produces the exact length we need for the paste ID (#49)
|
||||||
|
* CHANGED: Simplified some PHP code & renamed PrivateBin class into Controller, to make MVC pattern use more obvious (#342)
|
||||||
|
* CHANGED: Upgrading libraries to: identicon 1.2.0, random_compat 2.0.18, jQuery 3.4.1, Showdown 1.9.0, DOMpurify 1.0.11 & kjua 0.6.0
|
||||||
|
* FIXED: Prevent Chrome from sending content of paste to Google for translation (#378)
|
||||||
|
* FIXED: To support attachments larger then 2 MiB in newer Chrome versions, we switched to blob instead of data URIs (#432)
|
||||||
|
* FIXED: Since Outlook strips trailing equal signs in links, the key in URL hash is now base58 encoded, instead of base64 (#377)
|
||||||
|
* FIXED: Facebooks started injecting parameters into shared URLs for tracking that lead to inaccessible pastes (#396)
|
||||||
|
* FIXED: Properly escaped HTML in raw text mode (#358)
|
||||||
|
* FIXED: Made download links better readable in the dark bootstrap theme (#364)
|
||||||
|
* FIXED: Allow Letsencrypt bot to access on apache servers (#413)
|
||||||
* **1.2.1 (2018-08-11)**
|
* **1.2.1 (2018-08-11)**
|
||||||
* ADDED: Add support for mega.nz links in pastes and comments (#331)
|
* ADDED: Add support for mega.nz links in pastes and comments (#331)
|
||||||
* CHANGED: Added some missing Russian translations (#348)
|
* CHANGED: Added some missing Russian translations (#348)
|
||||||
|
|||||||
9
CODE_OF_CONDUCT.md
Normal file
9
CODE_OF_CONDUCT.md
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
# Netiquette
|
||||||
|
|
||||||
|
As suggested by the current project hoster, we are hereby referring to
|
||||||
|
[RFC 1855](https://tools.ietf.org/html/rfc1855) as a minimum set of guidelines
|
||||||
|
of Network Etiquette for individuals interacting on this project.
|
||||||
|
|
||||||
|
The maintainers of this project reserve the right to remove unlawful or
|
||||||
|
disrupting content and block users that repeatedly disturb the project at their
|
||||||
|
discretion.
|
||||||
12
CREDITS.md
12
CREDITS.md
@@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
Simon Rupf - current developer and maintainer
|
Simon Rupf - current developer and maintainer
|
||||||
rugk - security review, doc improvment, JS refactoring & various other stuff
|
rugk - security review, doc improvment, JS refactoring & various other stuff
|
||||||
|
R4SAS - python client, compression, blob URI to support larger attachments
|
||||||
|
|
||||||
## Past contributions
|
## Past contributions
|
||||||
|
|
||||||
@@ -12,7 +13,7 @@ Sébastien Sauvage - original idea and main developer
|
|||||||
* Alexey Gladkov - syntax highlighting
|
* Alexey Gladkov - syntax highlighting
|
||||||
* Greg Knaddison - robots.txt
|
* Greg Knaddison - robots.txt
|
||||||
* MrKooky - HTML5 markup, CSS cleanup
|
* MrKooky - HTML5 markup, CSS cleanup
|
||||||
* Simon Rupf - MVC refactoring, configuration, i18n and unit tests
|
* Simon Rupf - WebCrypto, unit tests, current docker containers, MVC, configuration, i18n
|
||||||
* Hexalyse - Password protection
|
* Hexalyse - Password protection
|
||||||
* Viktor Stanchev - File upload support
|
* Viktor Stanchev - File upload support
|
||||||
* azlux - Tab character input support
|
* azlux - Tab character input support
|
||||||
@@ -21,8 +22,11 @@ Sébastien Sauvage - original idea and main developer
|
|||||||
* Sobak - PSR-4 and PSR-2 refactoring
|
* Sobak - PSR-4 and PSR-2 refactoring
|
||||||
* Nathaniel Olsen - jQuery upgrade
|
* Nathaniel Olsen - jQuery upgrade
|
||||||
* Alexander Demenshin - modal password dialog
|
* Alexander Demenshin - modal password dialog
|
||||||
* PunKeel - Dockerfile
|
* PunKeel - first docker container
|
||||||
* thororm - Display of video, audio & PDF, drag & drop, preview of attachments
|
* thororm - Display of video, audio & PDF, drag & drop, preview of attachments
|
||||||
|
* Harald Leithner - base58 encoding of key
|
||||||
|
* Haocen - lots of bugfixes and UI improvements
|
||||||
|
* Lucas Savva - configurable config file location, NixOS packaging
|
||||||
|
|
||||||
## Translations
|
## Translations
|
||||||
* Hexalyse - French
|
* Hexalyse - French
|
||||||
@@ -39,3 +43,7 @@ Sébastien Sauvage - original idea and main developer
|
|||||||
* Tulio Leao - Portuguese
|
* Tulio Leao - Portuguese
|
||||||
* Michael van Schaik - Dutch
|
* Michael van Schaik - Dutch
|
||||||
* Péter Tabajdi - Hungarian
|
* Péter Tabajdi - Hungarian
|
||||||
|
* info-path - Czech
|
||||||
|
* BigWax - Bulgarian
|
||||||
|
* AndriiZ - Ukrainian
|
||||||
|
* Yaron Shahrabani - Hebrew
|
||||||
|
|||||||
26
Dockerfile
26
Dockerfile
@@ -1,26 +0,0 @@
|
|||||||
FROM php:apache
|
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y \
|
|
||||||
libfreetype6-dev \
|
|
||||||
libjpeg62-turbo-dev \
|
|
||||||
libpng-dev \
|
|
||||||
wget \
|
|
||||||
zip \
|
|
||||||
unzip && \
|
|
||||||
# We install and enable php-gd
|
|
||||||
docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ &&\
|
|
||||||
docker-php-ext-install -j$(nproc) gd && \
|
|
||||||
# We enable Apache's mod_rewrite
|
|
||||||
a2enmod rewrite
|
|
||||||
|
|
||||||
|
|
||||||
# Copy app content
|
|
||||||
COPY . /var/www/html
|
|
||||||
|
|
||||||
# Copy start script
|
|
||||||
RUN mv /var/www/html/docker/entrypoint.sh / && \
|
|
||||||
rm -r /var/www/html/docker
|
|
||||||
|
|
||||||
VOLUME /var/www/html/data
|
|
||||||
|
|
||||||
CMD /entrypoint.sh
|
|
||||||
32
INSTALL.md
32
INSTALL.md
@@ -11,7 +11,7 @@ options](#configuration) to adjust as you see fit.
|
|||||||
|
|
||||||
### Minimal requirements
|
### Minimal requirements
|
||||||
|
|
||||||
- PHP version 5.4 or above
|
- PHP version 5.5 or above
|
||||||
- _one_ of the following sources of cryptographically safe randomness is required:
|
- _one_ of the following sources of cryptographically safe randomness is required:
|
||||||
- PHP 7 or higher
|
- PHP 7 or higher
|
||||||
- [Libsodium](https://download.libsodium.org/libsodium/content/installation/) and it's [PHP extension](https://paragonie.com/book/pecl-libsodium/read/00-intro.md#installing-libsodium)
|
- [Libsodium](https://download.libsodium.org/libsodium/content/installation/) and it's [PHP extension](https://paragonie.com/book/pecl-libsodium/read/00-intro.md#installing-libsodium)
|
||||||
@@ -50,6 +50,27 @@ process (see also
|
|||||||
> PrivateBin will look for your includes / data here:
|
> PrivateBin will look for your includes / data here:
|
||||||
> /home/example.com/secret/privatebin
|
> /home/example.com/secret/privatebin
|
||||||
|
|
||||||
|
### Changing the config path only
|
||||||
|
|
||||||
|
In situations where you want to keep the PrivateBin static files separate from the
|
||||||
|
rest of your data, or you want to reuse the installation files on multiple vhosts,
|
||||||
|
you may only want to change the `conf.php`. In this instance, you can set the
|
||||||
|
`CONFIG_PATH` environment variable to the absolute path to the `conf.php` file.
|
||||||
|
This can be done in your web server's virtual host config, the PHP config, or in
|
||||||
|
the index.php if you choose to customize it.
|
||||||
|
|
||||||
|
Note that your PHP process will need read access to the config wherever it may be.
|
||||||
|
|
||||||
|
> #### CONFIG_PATH example
|
||||||
|
> Setting the value in an Apache Vhost:
|
||||||
|
> SetEnv CONFIG_PATH /var/lib/privatebin/conf.php
|
||||||
|
>
|
||||||
|
> In a php-fpm pool config:
|
||||||
|
> env[CONFIG_PATH] = /var/lib/privatebin/conf.php
|
||||||
|
>
|
||||||
|
> In the index.php, near the top:
|
||||||
|
> putenv('CONFIG_PATH=/var/lib/privatebin/conf.php');
|
||||||
|
|
||||||
### Transport security
|
### Transport security
|
||||||
|
|
||||||
When setting up PrivateBin, also set up HTTPS, if you haven't already. Without HTTPS
|
When setting up PrivateBin, also set up HTTPS, if you haven't already. Without HTTPS
|
||||||
@@ -66,8 +87,9 @@ See [this FAQ item](https://github.com/PrivateBin/PrivateBin/wiki/FAQ#what-are-t
|
|||||||
|
|
||||||
In the file `cfg/conf.php` you can configure PrivateBin. A `cfg/conf.sample.php`
|
In the file `cfg/conf.php` you can configure PrivateBin. A `cfg/conf.sample.php`
|
||||||
is provided containing all options and default values. You can copy it to
|
is provided containing all options and default values. You can copy it to
|
||||||
`cfg/conf.php` and adapt it as needed. The config file is divided into multiple
|
`cfg/conf.php` and adapt it as needed. Alternatively you can copy it anywhere and
|
||||||
sections, which are enclosed in square brackets.
|
set the `CONFIG_PATH` environment variable (see above notes). The config file is
|
||||||
|
divided into multiple sections, which are enclosed in square brackets.
|
||||||
|
|
||||||
In the `[main]` section you can enable or disable the discussion feature, set
|
In the `[main]` section you can enable or disable the discussion feature, set
|
||||||
the limit of stored pastes and comments in bytes. The `[traffic]` section lets
|
the limit of stored pastes and comments in bytes. The `[traffic]` section lets
|
||||||
@@ -139,7 +161,7 @@ For reference or if you want to create the table schema for yourself to avoid ha
|
|||||||
```sql
|
```sql
|
||||||
CREATE TABLE prefix_paste (
|
CREATE TABLE prefix_paste (
|
||||||
dataid CHAR(16) NOT NULL,
|
dataid CHAR(16) NOT NULL,
|
||||||
data BLOB,
|
data MEDIUMBLOB,
|
||||||
postdate INT,
|
postdate INT,
|
||||||
expiredate INT,
|
expiredate INT,
|
||||||
opendiscussion INT,
|
opendiscussion INT,
|
||||||
@@ -165,7 +187,7 @@ CREATE INDEX parent ON prefix_comment(pasteid);
|
|||||||
CREATE TABLE prefix_config (
|
CREATE TABLE prefix_config (
|
||||||
id CHAR(16) NOT NULL, value TEXT, PRIMARY KEY (id)
|
id CHAR(16) NOT NULL, value TEXT, PRIMARY KEY (id)
|
||||||
);
|
);
|
||||||
INSERT INTO prefix_config VALUES('VERSION', '1.2.2');
|
INSERT INTO prefix_config VALUES('VERSION', '1.3.4');
|
||||||
```
|
```
|
||||||
|
|
||||||
In **PostgreSQL**, the data, attachment, nickname and vizhash columns needs to be TEXT and not BLOB or MEDIUMBLOB.
|
In **PostgreSQL**, the data, attachment, nickname and vizhash columns needs to be TEXT and not BLOB or MEDIUMBLOB.
|
||||||
|
|||||||
174
LICENSE.md
174
LICENSE.md
@@ -2,15 +2,15 @@
|
|||||||
|
|
||||||
PrivateBin consists of PHP and JS code which was originally written by Sébastien
|
PrivateBin consists of PHP and JS code which was originally written by Sébastien
|
||||||
Sauvage in 2012 and falls unter the Zlib/libpng license. Also included are
|
Sauvage in 2012 and falls unter the Zlib/libpng license. Also included are
|
||||||
libraries that fall under the GPLv2 (SJCL, rawinflate, rawdeflate), BSD
|
libraries that fall under the GPLv2 (rawinflate), BSD 3-clause (Showdown), MIT
|
||||||
2-clause (SJCL), BSD 3-clause (base64.js version 2.1.9, Showdown), MIT
|
(base64.js version 1.7, Bootstrap, Identicon, random_compat, composer, kjua,
|
||||||
(base64.js version 1.7, Bootstrap, Identicon, random_compat), Apache
|
base-x), Apache (prettify.js) and CC-BY (favicon, icon, logo) licenses. All of
|
||||||
(prettify.js) and CC-BY (favicon, icon, logo) licenses. All of these license
|
these license terms can be found here below:
|
||||||
terms can be found here below:
|
|
||||||
|
|
||||||
## Zlib/libpng license for PrivateBin
|
## Zlib/libpng license for PrivateBin and zlib
|
||||||
|
|
||||||
Copyright © 2012 Sébastien Sauvage
|
Copyright © 2012 Sébastien Sauvage
|
||||||
|
Copyright © 1995-2017 Jean-loup Gailly and Mark Adler
|
||||||
|
|
||||||
This software is provided 'as-is', without any express or implied warranty. In
|
This software is provided 'as-is', without any express or implied warranty. In
|
||||||
no event will the authors be held liable for any damages arising from the use
|
no event will the authors be held liable for any damages arising from the use
|
||||||
@@ -30,17 +30,7 @@ the following restrictions:
|
|||||||
|
|
||||||
3. This notice may not be removed or altered from any source distribution.
|
3. This notice may not be removed or altered from any source distribution.
|
||||||
|
|
||||||
### MIT license for kjua
|
## GNU General Public License, version 2.0, for rawinflate
|
||||||
|
|
||||||
Copyright (c) 2016 Lars Jung (https://larsjung.de)
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
||||||
|
|
||||||
## GNU General Public License, version 2.0, for SJCL, rawdeflate and rawinflate
|
|
||||||
|
|
||||||
_Version 2, June 1991_
|
_Version 2, June 1991_
|
||||||
_Copyright © 1989, 1991 Free Software Foundation, Inc.,_
|
_Copyright © 1989, 1991 Free Software Foundation, Inc.,_
|
||||||
@@ -317,31 +307,6 @@ POSSIBILITY OF SUCH DAMAGES.
|
|||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
## BSD 2-Clause License for SJCL
|
|
||||||
|
|
||||||
_Copyright © 2009-2015, Emily Stark, Mike Hamburg and Dan Boneh at Stanford University._
|
|
||||||
_All rights reserved._
|
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
|
||||||
modification, are permitted provided that the following conditions are met:
|
|
||||||
|
|
||||||
1. Redistributions of source code must retain the above copyright notice, this
|
|
||||||
list of conditions and the following disclaimer.
|
|
||||||
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
||||||
this list of conditions and the following disclaimer in the documentation
|
|
||||||
and/or other materials provided with the distribution.
|
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND
|
|
||||||
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
||||||
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
||||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
|
|
||||||
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
||||||
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
||||||
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
|
|
||||||
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
||||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
||||||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
|
|
||||||
## BSD 3-Clause License for Showdown
|
## BSD 3-Clause License for Showdown
|
||||||
|
|
||||||
Showdown Copyright © 2007, John Fraser
|
Showdown Copyright © 2007, John Fraser
|
||||||
@@ -377,61 +342,16 @@ any theory of liability, whether in contract, strict liability, or tort
|
|||||||
(including negligence or otherwise) arising in any way out of the use of this
|
(including negligence or otherwise) arising in any way out of the use of this
|
||||||
software, even if advised of the possibility of such damage.
|
software, even if advised of the possibility of such damage.
|
||||||
|
|
||||||
## BSD 3-Clause License for base64.js version 2.1.9
|
## MIT License for base64.js version 1.7, Bootstrap, Identicon, random_compat, Composer, kjua and base-x
|
||||||
|
|
||||||
Copyright © 2014, Dan Kogai
|
|
||||||
All rights reserved.
|
|
||||||
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
|
||||||
modification, are permitted provided that the following conditions are met:
|
|
||||||
|
|
||||||
* Redistributions of source code must retain the above copyright notice, this
|
|
||||||
list of conditions and the following disclaimer.
|
|
||||||
|
|
||||||
* Redistributions in binary form must reproduce the above copyright notice,
|
|
||||||
this list of conditions and the following disclaimer in the documentation
|
|
||||||
and/or other materials provided with the distribution.
|
|
||||||
|
|
||||||
* Neither the name of base64.js nor the names of its contributors may be used
|
|
||||||
to endorse or promote products derived from this software without specific
|
|
||||||
prior written permission.
|
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
||||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
||||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
||||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
||||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
||||||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
||||||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
||||||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
||||||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
||||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
|
|
||||||
## MIT License for base64.js version 1.7
|
|
||||||
|
|
||||||
Copyright © 2012 Dan Kogai
|
Copyright © 2012 Dan Kogai
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in
|
|
||||||
all copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
||||||
THE SOFTWARE.
|
|
||||||
|
|
||||||
## MIT License for Bootstrap
|
|
||||||
|
|
||||||
Copyright © 2011-2016 Twitter, Inc.
|
Copyright © 2011-2016 Twitter, Inc.
|
||||||
|
Copyright © 2013 Benjamin Laugueux <benjamin@yzalis.com>
|
||||||
|
Copyright © 2015 Paragon Initiative Enterprises
|
||||||
|
Copyright © 2016 Nils Adermann, Jordi Boggiano
|
||||||
|
Copyright © 2016 Lars Jung (https://larsjung.de)
|
||||||
|
Copyright © 2018 base-x contributors
|
||||||
|
Copyright © 2014-2018 The Bitcoin Core developers
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
@@ -451,72 +371,6 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
THE SOFTWARE.
|
THE SOFTWARE.
|
||||||
|
|
||||||
## MIT License for Identicon
|
|
||||||
|
|
||||||
Copyright © 2013 Benjamin Laugueux <benjamin@yzalis.com>
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is furnished
|
|
||||||
to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all
|
|
||||||
copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
||||||
THE SOFTWARE.
|
|
||||||
|
|
||||||
## MIT License for random_compat
|
|
||||||
|
|
||||||
Copyright © 2015 Paragon Initiative Enterprises
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all
|
|
||||||
copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
||||||
SOFTWARE.
|
|
||||||
|
|
||||||
## MIT license for Composer
|
|
||||||
|
|
||||||
Copyright (c) 2016 Nils Adermann, Jordi Boggiano
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is furnished
|
|
||||||
to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all
|
|
||||||
copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
||||||
THE SOFTWARE.
|
|
||||||
|
|
||||||
## Apache License for prettify.js
|
## Apache License for prettify.js
|
||||||
|
|
||||||
_Version 2.0, January 2004_
|
_Version 2.0, January 2004_
|
||||||
|
|||||||
53
Makefile
Normal file
53
Makefile
Normal file
@@ -0,0 +1,53 @@
|
|||||||
|
.PHONY: all coverage coverage-js coverage-php doc doc-js doc-php increment sign test test-js test-php help
|
||||||
|
|
||||||
|
CURRENT_VERSION = 1.3.4
|
||||||
|
VERSION ?= 1.3.5
|
||||||
|
VERSION_FILES = index.php cfg/ *.md css/ i18n/ img/ js/privatebin.js lib/ Makefile tpl/ tst/
|
||||||
|
REGEX_CURRENT_VERSION := $(shell echo $(CURRENT_VERSION) | sed "s/\./\\\./g")
|
||||||
|
REGEX_VERSION := $(shell echo $(VERSION) | sed "s/\./\\\./g")
|
||||||
|
|
||||||
|
all: coverage doc ## Equivalent to running `make coverage doc`.
|
||||||
|
|
||||||
|
coverage: coverage-js coverage-php ## Run all unit tests and generate code coverage reports.
|
||||||
|
|
||||||
|
coverage-js: ## Run JS unit tests and generate code coverage reports.
|
||||||
|
cd js && nyc mocha
|
||||||
|
|
||||||
|
coverage-php: ## Run PHP unit tests and generate code coverage reports.
|
||||||
|
cd tst && phpunit 2> /dev/null
|
||||||
|
cd log/php-coverage-report && sed -i "s#$(CURDIR)##g" *.html */*.html
|
||||||
|
|
||||||
|
doc: doc-js doc-php ## Generate all code documentation.
|
||||||
|
|
||||||
|
doc-js: ## Generate JS code documentation.
|
||||||
|
jsdoc -p -d doc/jsdoc js/privatebin.js js/legacy.js
|
||||||
|
|
||||||
|
doc-php: ## Generate JS code documentation.
|
||||||
|
phpdoc --visibility public,protected,private -t doc/phpdoc -d lib/
|
||||||
|
|
||||||
|
increment: ## Increment and commit new version number, set target version using `make increment VERSION=1.2.3`.
|
||||||
|
for F in `grep -l -R $(REGEX_CURRENT_VERSION) $(VERSION_FILES) | grep -v -e tst/log/ -e ":0" -e CHANGELOG.md`; \
|
||||||
|
do \
|
||||||
|
sed -i "s/$(REGEX_CURRENT_VERSION)/$(REGEX_VERSION)/g" $$F; \
|
||||||
|
done
|
||||||
|
git add $(VERSION_FILES)
|
||||||
|
git commit -m "incrementing version"
|
||||||
|
|
||||||
|
sign: ## Sign a release.
|
||||||
|
git tag $(VERSION)
|
||||||
|
git push --tags
|
||||||
|
signrelease.sh
|
||||||
|
|
||||||
|
test: test-js test-php ## Run all unit tests.
|
||||||
|
|
||||||
|
test-js: ## Run JS unit tests.
|
||||||
|
cd js && mocha
|
||||||
|
|
||||||
|
test-php: ## Run PHP unit tests.
|
||||||
|
cd tst && phpunit --no-coverage
|
||||||
|
|
||||||
|
help: ## Displays these usage instructions.
|
||||||
|
@echo "Usage: make <target(s)>"
|
||||||
|
@echo
|
||||||
|
@echo "Specify one or multiple of the following targets and they will be processed in the given order:"
|
||||||
|
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "%-16s%s\n", $$1, $$2}' $(MAKEFILE_LIST)
|
||||||
15
README.md
15
README.md
@@ -1,13 +1,6 @@
|
|||||||
# [<img alt="PrivateBin" src="https://cdn.rawgit.com/PrivateBin/assets/master/images/minified/logo.svg" width="500" />](https://privatebin.info/)
|
# [](https://privatebin.info/)
|
||||||
[](https://travis-ci.org/PrivateBin/PrivateBin) [](https://scrutinizer-ci.com/g/PrivateBin/PrivateBin/build-status/master)
|
|
||||||
[](https://www.codacy.com/app/PrivateBin/PrivateBin)
|
|
||||||
[](https://codeclimate.com/github/PrivateBin/PrivateBin)
|
|
||||||
[](https://scrutinizer-ci.com/g/PrivateBin/PrivateBin/?branch=master)
|
|
||||||
[](https://insight.sensiolabs.com/projects/57c9e74e-c6f9-4de6-a876-df66ec2ea1ff)
|
|
||||||
[](https://www.codacy.com/app/PrivateBin/PrivateBin)
|
|
||||||
[](https://codeclimate.com/github/PrivateBin/PrivateBin/coverage) [](https://scrutinizer-ci.com/g/PrivateBin/PrivateBin/?branch=master)
|
|
||||||
|
|
||||||
*Current version: 1.2.2*
|
*Current version: 1.3.4*
|
||||||
|
|
||||||
**PrivateBin** is a minimalist, open source online [pastebin](https://en.wikipedia.org/wiki/Pastebin)
|
**PrivateBin** is a minimalist, open source online [pastebin](https://en.wikipedia.org/wiki/Pastebin)
|
||||||
where the server has zero knowledge of pasted data.
|
where the server has zero knowledge of pasted data.
|
||||||
@@ -102,9 +95,9 @@ file](https://github.com/PrivateBin/PrivateBin/wiki/Configuration):
|
|||||||
|
|
||||||
## Further resources
|
## Further resources
|
||||||
|
|
||||||
* [Installation guide](https://github.com/PrivateBin/PrivateBin/blob/master/INSTALL.md#installation)
|
* [FAQ](https://github.com/PrivateBin/PrivateBin/wiki/FAQ)
|
||||||
|
|
||||||
* [Upgrading from ZeroBin 0.19 Alpha](https://github.com/PrivateBin/PrivateBin/wiki/Upgrading-from-ZeroBin-0.19-Alpha)
|
* [Installation guide](https://github.com/PrivateBin/PrivateBin/blob/master/INSTALL.md#installation)
|
||||||
|
|
||||||
* [Configuration guide](https://github.com/PrivateBin/PrivateBin/wiki/Configuration)
|
* [Configuration guide](https://github.com/PrivateBin/PrivateBin/wiki/Configuration)
|
||||||
|
|
||||||
|
|||||||
18
SECURITY.md
Normal file
18
SECURITY.md
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
# Security Policy
|
||||||
|
|
||||||
|
## Supported Versions
|
||||||
|
|
||||||
|
| Version | Supported |
|
||||||
|
| ------- | ------------------ |
|
||||||
|
| 1.3.4 | :heavy_check_mark: |
|
||||||
|
| < 1.3.4 | :x: |
|
||||||
|
|
||||||
|
## Reporting a Vulnerability
|
||||||
|
|
||||||
|
You can send us email at security@privatebin.org. You should be able to get
|
||||||
|
a response within a week (usually during the next weekend). The respondee will
|
||||||
|
reply from their personal address and can offer you their GPG public key to
|
||||||
|
support end-to-end encrypted communication on sensitive topics or attachments.
|
||||||
|
|
||||||
|
You can also contact us via the regular issue tracker if the risk of early
|
||||||
|
publication is low or you would request input from other PrivateBin users.
|
||||||
@@ -7,6 +7,10 @@
|
|||||||
; (optional) set a project name to be displayed on the website
|
; (optional) set a project name to be displayed on the website
|
||||||
; name = "PrivateBin"
|
; name = "PrivateBin"
|
||||||
|
|
||||||
|
; The full URL, with the domain name and directories that point to the PrivateBin files
|
||||||
|
; This URL is essential to allow Opengraph images to be displayed on social networks
|
||||||
|
; basepath = ""
|
||||||
|
|
||||||
; enable or disable the discussion feature, defaults to true
|
; enable or disable the discussion feature, defaults to true
|
||||||
discussion = true
|
discussion = true
|
||||||
|
|
||||||
@@ -29,8 +33,8 @@ defaultformatter = "plaintext"
|
|||||||
; (optional) set a syntax highlighting theme, as found in css/prettify/
|
; (optional) set a syntax highlighting theme, as found in css/prettify/
|
||||||
; syntaxhighlightingtheme = "sons-of-obsidian"
|
; syntaxhighlightingtheme = "sons-of-obsidian"
|
||||||
|
|
||||||
; size limit per paste or comment in bytes, defaults to 2 Mebibytes
|
; size limit per paste or comment in bytes, defaults to 10 Mebibytes
|
||||||
sizelimit = 2097152
|
sizelimit = 10485760
|
||||||
|
|
||||||
; template to include, default is "bootstrap" (tpl/bootstrap.php)
|
; template to include, default is "bootstrap" (tpl/bootstrap.php)
|
||||||
template = "bootstrap"
|
template = "bootstrap"
|
||||||
@@ -60,22 +64,43 @@ languageselection = false
|
|||||||
; a different user when the same username was used in a comment. It might be
|
; a different user when the same username was used in a comment. It might be
|
||||||
; used to get the IP of a non anonymous comment poster if the server salt is
|
; used to get the IP of a non anonymous comment poster if the server salt is
|
||||||
; leaked and a SHA256 HMAC rainbow table is generated for all (relevant) IPs.
|
; leaked and a SHA256 HMAC rainbow table is generated for all (relevant) IPs.
|
||||||
; Can be set to one these values: none / vizhash / identicon (default).
|
; Can be set to one these values: "none" / "vizhash" / "identicon" (default).
|
||||||
; icon = none
|
; icon = "none"
|
||||||
|
|
||||||
; Content Security Policy headers allow a website to restrict what sources are
|
; Content Security Policy headers allow a website to restrict what sources are
|
||||||
; allowed to be accessed in its context. You need to change this if you added
|
; allowed to be accessed in its context. You need to change this if you added
|
||||||
; custom scripts from third-party domains to your templates, e.g. tracking
|
; custom scripts from third-party domains to your templates, e.g. tracking
|
||||||
; scripts or run your site behind certain DDoS-protection services.
|
; scripts or run your site behind certain DDoS-protection services.
|
||||||
; Check the documentation at https://content-security-policy.com/
|
; Check the documentation at https://content-security-policy.com/
|
||||||
; Note: If you use a bootstrap theme, you can remove the allow-popups from the sandbox restrictions.
|
; Notes:
|
||||||
; By default this disallows to load images from third-party servers, e.g. when they are embedded in pastes. If you wish to allow that, you can adjust the policy here. See https://github.com/PrivateBin/PrivateBin/wiki/FAQ#why-does-not-it-load-embedded-images for details.
|
; - If you use a bootstrap theme, you can remove the allow-popups from the
|
||||||
; cspheader = "default-src 'none'; manifest-src 'self'; connect-src *; script-src 'self'; style-src 'self'; font-src 'self'; img-src 'self' data:; media-src data:; object-src data:; Referrer-Policy: 'no-referrer'; sandbox allow-same-origin allow-scripts allow-forms allow-popups allow-modals"
|
; sandbox restrictions.
|
||||||
|
; - By default this disallows to load images from third-party servers, e.g. when
|
||||||
|
; they are embedded in pastes. If you wish to allow that, you can adjust the
|
||||||
|
; policy here. See https://github.com/PrivateBin/PrivateBin/wiki/FAQ#why-does-not-it-load-embedded-images
|
||||||
|
; for details.
|
||||||
|
; - The 'unsafe-eval' is used in two cases; to check if the browser supports
|
||||||
|
; async functions and display an error if not and for Chrome to enable
|
||||||
|
; webassembly support (used for zlib compression). You can remove it if Chrome
|
||||||
|
; doesn't need to be supported and old browsers don't need to be warned.
|
||||||
|
; cspheader = "default-src 'none'; manifest-src 'self'; connect-src * blob:; script-src 'self' 'unsafe-eval' resource:; style-src 'self'; font-src 'self'; img-src 'self' data: blob:; media-src blob:; object-src blob:; sandbox allow-same-origin allow-scripts allow-forms allow-popups allow-modals allow-downloads"
|
||||||
|
|
||||||
; stay compatible with PrivateBin Alpha 0.19, less secure
|
; stay compatible with PrivateBin Alpha 0.19, less secure
|
||||||
; if enabled will use base64.js version 1.7 instead of 2.1.9 and sha1 instead of
|
; if enabled will use base64.js version 1.7 instead of 2.1.9 and sha1 instead of
|
||||||
; sha256 in HMAC for the deletion token
|
; sha256 in HMAC for the deletion token
|
||||||
zerobincompatibility = false
|
; zerobincompatibility = false
|
||||||
|
|
||||||
|
; Enable or disable the warning message when the site is served over an insecure
|
||||||
|
; connection (insecure HTTP instead of HTTPS), defaults to true.
|
||||||
|
; Secure transport methods like Tor and I2P domains are automatically whitelisted.
|
||||||
|
; It is **strongly discouraged** to disable this.
|
||||||
|
; See https://github.com/PrivateBin/PrivateBin/wiki/FAQ#why-does-it-show-me-an-error-about-an-insecure-connection for more information.
|
||||||
|
; httpwarning = true
|
||||||
|
|
||||||
|
; Pick compression algorithm or disable it. Only applies to pastes/comments
|
||||||
|
; created after changing the setting.
|
||||||
|
; Can be set to one these values: "none" / "zlib" (default).
|
||||||
|
; compression = "zlib"
|
||||||
|
|
||||||
[expire]
|
[expire]
|
||||||
; expire value that is selected per default
|
; expire value that is selected per default
|
||||||
|
|||||||
@@ -1,32 +1,42 @@
|
|||||||
{
|
{
|
||||||
"name": "privatebin/privatebin",
|
"name" : "privatebin/privatebin",
|
||||||
"description": "PrivateBin is a minimalist, open source online pastebin where the server has zero knowledge of pasted data. Data is encrypted/decrypted in the browser using 256 bit AES in Galois Counter mode (GCM).",
|
"description" : "PrivateBin is a minimalist, open source online pastebin where the server has zero knowledge of pasted data. Data is encrypted/decrypted in the browser using 256 bit AES in Galois Counter mode (GCM).",
|
||||||
"type": "project",
|
"type" : "project",
|
||||||
"keywords": ["private", "secure", "end-to-end-encrypted", "e2e", "paste", "pastebin", "zero", "zero-knowledge", "encryption", "encrypted", "AES"],
|
"keywords" : [
|
||||||
"homepage": "https://github.com/PrivateBin",
|
"private",
|
||||||
"license":"zlib-acknowledgement",
|
"secure",
|
||||||
"support": {
|
"end-to-end-encrypted",
|
||||||
"issues": "https://github.com/PrivateBin/PrivateBin/issues",
|
"e2e",
|
||||||
"wiki": "https://github.com/PrivateBin/PrivateBin/wiki",
|
"paste",
|
||||||
"source": "https://github.com/PrivateBin/PrivateBin",
|
"pastebin",
|
||||||
"docs": "https://zerobin.dssr.ch/documentation/"
|
"zero",
|
||||||
|
"zero-knowledge",
|
||||||
|
"encryption",
|
||||||
|
"encrypted",
|
||||||
|
"AES"
|
||||||
|
],
|
||||||
|
"homepage" : "https://privatebin.info/",
|
||||||
|
"license" : "zlib-acknowledgement",
|
||||||
|
"support" : {
|
||||||
|
"issues" : "https://github.com/PrivateBin/PrivateBin/issues",
|
||||||
|
"wiki" : "https://github.com/PrivateBin/PrivateBin/wiki",
|
||||||
|
"source" : "https://github.com/PrivateBin/PrivateBin",
|
||||||
|
"docs" : "https://privatebin.info/codedoc/"
|
||||||
},
|
},
|
||||||
"require": {
|
"require" : {
|
||||||
"php": "^5.4.0 || ^7.0",
|
"php" : "^5.6.0 || ^7.0",
|
||||||
"paragonie/random_compat": "2.0.15",
|
"paragonie/random_compat" : "2.0.18",
|
||||||
"yzalis/identicon": "1.1.0"
|
"yzalis/identicon" : "2.0.0"
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev" : {
|
||||||
"codacy/coverage": "dev-master",
|
"phpunit/phpunit" : "^4.6 || ^5.0"
|
||||||
"codeclimate/php-test-reporter": "dev-master",
|
|
||||||
"phpunit/phpunit": "^4.6 || ^5.0"
|
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload" : {
|
||||||
"psr-4": {
|
"psr-4" : {
|
||||||
"PrivateBin\\": "lib/"
|
"PrivateBin\\" : "lib/"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"config": {
|
"config" : {
|
||||||
"autoloader-suffix": "DontChange"
|
"autoloader-suffix" : "DontChange"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
1509
composer.lock
generated
Normal file
1509
composer.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
3
crowdin.yml
Normal file
3
crowdin.yml
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
files:
|
||||||
|
- source: /i18n/en.json
|
||||||
|
translation: /i18n/%two_letters_code%.json
|
||||||
@@ -6,7 +6,7 @@
|
|||||||
* @link https://github.com/PrivateBin/PrivateBin
|
* @link https://github.com/PrivateBin/PrivateBin
|
||||||
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
|
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
|
||||||
* @license https://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
|
* @license https://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
|
||||||
* @version 1.2.2
|
* @version 1.3.4
|
||||||
*/
|
*/
|
||||||
|
|
||||||
body {
|
body {
|
||||||
@@ -80,12 +80,30 @@ body.loading {
|
|||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.dragAndDropFile{
|
#dropzone {
|
||||||
color:#777;
|
text-align: center;
|
||||||
font-size:1em;
|
position: fixed;
|
||||||
display:inline;
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
z-index: 1000;
|
||||||
|
opacity: 0.6;
|
||||||
|
background-color: #99ccff;
|
||||||
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z'/%3E%3C/svg%3E");
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: center;
|
||||||
|
background-size: 25vh;
|
||||||
|
outline: 2px dashed #228bff;
|
||||||
|
outline-offset: -50px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.dragAndDropFile{
|
||||||
|
color: #777;
|
||||||
|
font-size: 1em;
|
||||||
|
display: inline;
|
||||||
|
white-space: normal;
|
||||||
|
}
|
||||||
|
|
||||||
#deletelink {
|
#deletelink {
|
||||||
float: right;
|
float: right;
|
||||||
@@ -113,8 +131,9 @@ body.loading {
|
|||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#message {
|
#message, .replymessage {
|
||||||
font-family: monospace;
|
font-family: monospace;
|
||||||
|
resize: vertical;
|
||||||
}
|
}
|
||||||
|
|
||||||
#nickname {
|
#nickname {
|
||||||
@@ -125,6 +144,10 @@ body.loading {
|
|||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#filewrap {
|
||||||
|
transition: background-color 0.75s ease-out;
|
||||||
|
}
|
||||||
|
|
||||||
.comment {
|
.comment {
|
||||||
border-left: 1px solid #ccc;
|
border-left: 1px solid #ccc;
|
||||||
padding: 5px 0 5px 10px;
|
padding: 5px 0 5px 10px;
|
||||||
@@ -132,7 +155,7 @@ body.loading {
|
|||||||
transition: background-color 0.75s ease-out;
|
transition: background-color 0.75s ease-out;
|
||||||
}
|
}
|
||||||
|
|
||||||
.comment.highlight {
|
.highlight {
|
||||||
background-color: #ffdd86;
|
background-color: #ffdd86;
|
||||||
transition: background-color 0.2s ease-in;
|
transition: background-color 0.2s ease-in;
|
||||||
}
|
}
|
||||||
@@ -144,3 +167,81 @@ footer h4 {
|
|||||||
li.L0, li.L1, li.L2, li.L3, li.L5, li.L6, li.L7, li.L8 {
|
li.L0, li.L1, li.L2, li.L3, li.L5, li.L6, li.L7, li.L8 {
|
||||||
list-style-type: decimal !important;
|
list-style-type: decimal !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.dark-theme .alert-info .alert-link {
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* address 2K or 4K monitors when using bootstrap 3 */
|
||||||
|
@media (min-width: 1280px) {
|
||||||
|
.container {
|
||||||
|
width: 100%;
|
||||||
|
padding-left: 4ch;
|
||||||
|
padding-right: 4ch;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-dialog {
|
||||||
|
margin: auto !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* makeup for the original margin on modal-dialog */
|
||||||
|
@media (min-width: 768px) {
|
||||||
|
.modal-content {
|
||||||
|
margin: 30px 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-content {
|
||||||
|
margin: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal-body {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.modal .modal-content button {
|
||||||
|
margin: 0.5em 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* sidebar */
|
||||||
|
#menu-toggle {
|
||||||
|
position: relative;
|
||||||
|
bottom: -94px;
|
||||||
|
left: -61px;
|
||||||
|
margin-bottom: -12px;
|
||||||
|
transform: rotate(90deg);
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
#menu-toggle {
|
||||||
|
position: static;
|
||||||
|
margin-bottom: 1em;
|
||||||
|
transform: rotate(0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
main {
|
||||||
|
transition: all 0.5s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
main.toggled {
|
||||||
|
padding-left: 450px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#sidebar-wrapper {
|
||||||
|
position: fixed;
|
||||||
|
width: 450px;
|
||||||
|
height: 100%;
|
||||||
|
left: -450px;
|
||||||
|
padding-left: 4ch;
|
||||||
|
overflow-y: scroll;
|
||||||
|
overflow-x: hidden;
|
||||||
|
transition: all 0.5s ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
main.toggled #sidebar-wrapper {
|
||||||
|
left: 0;
|
||||||
|
}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
* @link https://github.com/PrivateBin/PrivateBin
|
* @link https://github.com/PrivateBin/PrivateBin
|
||||||
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
|
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
|
||||||
* @license https://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
|
* @license https://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
|
||||||
* @version 1.2.2
|
* @version 1.3.4
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* When there is no script at all other */
|
/* When there is no script at all other */
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
* @link https://github.com/PrivateBin/PrivateBin
|
* @link https://github.com/PrivateBin/PrivateBin
|
||||||
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
|
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
|
||||||
* @license https://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
|
* @license https://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
|
||||||
* @version 1.2.2
|
* @version 1.3.4
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* CSS Reset from YUI 3.4.1 (build 4118) - Copyright 2011 Yahoo! Inc. All rights reserved.
|
/* CSS Reset from YUI 3.4.1 (build 4118) - Copyright 2011 Yahoo! Inc. All rights reserved.
|
||||||
@@ -102,6 +102,7 @@ h3.title {
|
|||||||
padding: 5px;
|
padding: 5px;
|
||||||
white-space: pre-wrap;
|
white-space: pre-wrap;
|
||||||
font-family: Consolas, "Lucida Console", "DejaVu Sans Mono", Monaco, monospace;
|
font-family: Consolas, "Lucida Console", "DejaVu Sans Mono", Monaco, monospace;
|
||||||
|
resize: vertical;
|
||||||
}
|
}
|
||||||
|
|
||||||
#attachmentPreview img {
|
#attachmentPreview img {
|
||||||
@@ -115,10 +116,29 @@ h3.title {
|
|||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#dropzone {
|
||||||
|
text-align: center;
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
z-index: 1000;
|
||||||
|
opacity: 0.6;
|
||||||
|
background-color: #99ccff;
|
||||||
|
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM14 13v4h-4v-4H7l5-5 5 5h-3z'/%3E%3C/svg%3E");
|
||||||
|
background-repeat: no-repeat;
|
||||||
|
background-position: center;
|
||||||
|
background-size: 25vh;
|
||||||
|
outline: 2px dashed #228bff;
|
||||||
|
outline-offset: -50px;
|
||||||
|
}
|
||||||
|
|
||||||
.dragAndDropFile{
|
.dragAndDropFile{
|
||||||
color:#777;
|
color: #777;
|
||||||
font-size:1em;
|
font-size: 1em;
|
||||||
display:inline;
|
display: inline;
|
||||||
|
white-space: normal;
|
||||||
}
|
}
|
||||||
|
|
||||||
#status {
|
#status {
|
||||||
@@ -290,9 +310,9 @@ input {
|
|||||||
|
|
||||||
#ienotice a { color: #000; }
|
#ienotice a { color: #000; }
|
||||||
|
|
||||||
#oldienotice { display: none; }
|
#oldnotice, #httpnotice { display: none; }
|
||||||
|
|
||||||
.errorMessage {
|
#errormessage, .errorMessage {
|
||||||
background-color: #f77 !important;
|
background-color: #f77 !important;
|
||||||
color:#ff0;
|
color:#ff0;
|
||||||
}
|
}
|
||||||
@@ -405,6 +425,15 @@ h4.title {
|
|||||||
|
|
||||||
.commentdate { color: #bfcede; }
|
.commentdate { color: #bfcede; }
|
||||||
|
|
||||||
|
#filewrap {
|
||||||
|
transition: background-color 0.75s ease-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
.highlight {
|
||||||
|
background-color: #ffdd86;
|
||||||
|
transition: background-color 0.2s ease-in;
|
||||||
|
}
|
||||||
|
|
||||||
img.vizhash {
|
img.vizhash {
|
||||||
width: 16px;
|
width: 16px;
|
||||||
height: 16px;
|
height: 16px;
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ $ sudo pear install phpdoc/phpDocumentor
|
|||||||
To generate the documentation, change into the main directory and run phpdoc:
|
To generate the documentation, change into the main directory and run phpdoc:
|
||||||
```console
|
```console
|
||||||
$ cd PrivateBin
|
$ cd PrivateBin
|
||||||
$ phpdoc -t doc/phpdoc -d lib/
|
$ phpdoc --visibility public,protected,private -t doc/phpdoc -d lib/
|
||||||
```
|
```
|
||||||
|
|
||||||
**Note:** When used with PHP 7, the prerelease of phpDocumentator 2.9 needs to be
|
**Note:** When used with PHP 7, the prerelease of phpDocumentator 2.9 needs to be
|
||||||
@@ -55,6 +55,6 @@ $ ln -s /usr/bin/nodejs /usr/local/bin/node
|
|||||||
To generate the documentation, change into the main directory and run phpdoc:
|
To generate the documentation, change into the main directory and run phpdoc:
|
||||||
```console
|
```console
|
||||||
$ cd PrivateBin
|
$ cd PrivateBin
|
||||||
$ jsdoc -d doc/jsdoc js/privatebin.js
|
$ jsdoc -p -d doc/jsdoc js/privatebin.js js/legacy.js
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -1,15 +0,0 @@
|
|||||||
version: '3'
|
|
||||||
|
|
||||||
services:
|
|
||||||
privatebin:
|
|
||||||
build: .
|
|
||||||
ports:
|
|
||||||
- "3000:80"
|
|
||||||
volumes:
|
|
||||||
- data:/var/www/html/data
|
|
||||||
# Optionally mount a custom config file
|
|
||||||
#- /srv/docker/privatebin/conf.php:/var/www/html/cfg/conf.php
|
|
||||||
|
|
||||||
volumes:
|
|
||||||
data:
|
|
||||||
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
#! /bin/sh
|
|
||||||
|
|
||||||
chown -R www-data /var/www/html/data
|
|
||||||
apache2-foreground
|
|
||||||
181
i18n/bg.json
Normal file
181
i18n/bg.json
Normal file
@@ -0,0 +1,181 @@
|
|||||||
|
{
|
||||||
|
"PrivateBin": "PrivateBin",
|
||||||
|
"%s is a minimalist, open source online pastebin where the server has zero knowledge of pasted data. Data is encrypted/decrypted <i>in the browser</i> using 256 bits AES. More information on the <a href=\"https://privatebin.info/\">project page</a>.": "%s е изчистен и изцяло достъпен като отворен код, онлайн \"paste\" услуга, където сървъра не знае подадената информация. Тя се шифрова/дешифрова <i>във браузъра</i> използвайки 256 битов AES алгоритъм. Повече информация може да намерите на <a href=\"https://privatebin.info/\">страницата на проекта (Английски)</a>",
|
||||||
|
"Because ignorance is bliss": "Невежеството е блаженство",
|
||||||
|
"en": "bg",
|
||||||
|
"Paste does not exist, has expired or has been deleted.": "Информацията не съществува, срокът и е изтекъл или е била изтрита.",
|
||||||
|
"%s requires php %s or above to work. Sorry.": "%s има нужда от PHP %s или по-нова, за да работи. Съжалявам.",
|
||||||
|
"%s requires configuration section [%s] to be present in configuration file.": "%s задължава отдела от настройките [%s] да съществува във файла със настройките.",
|
||||||
|
"Please wait %d seconds between each post.": "Моля изчакайте %d секунди между всяка публикация.",
|
||||||
|
"Paste is limited to %s of encrypted data.": "Съдържанието е ограничено до %s криптирана информация.",
|
||||||
|
"Invalid data.": "Невалидна информация.",
|
||||||
|
"You are unlucky. Try again.": "Нямаш късмет. Пробвай отново.",
|
||||||
|
"Error saving comment. Sorry.": "Грешка в запазването на коментара. Съжалявам.",
|
||||||
|
"Error saving paste. Sorry.": "Грешка в записването на информацията. Съжалявам.",
|
||||||
|
"Invalid paste ID.": "Невалиден идентификационен код.",
|
||||||
|
"Paste is not of burn-after-reading type.": "Информацията не е от тип \"унищожаване след преглед\".",
|
||||||
|
"Wrong deletion token. Paste was not deleted.": "Невалиден код за изтриване. Информацията Ви не беше изтрита.",
|
||||||
|
"Paste was properly deleted.": "Информацията Ви е изтрита.",
|
||||||
|
"JavaScript is required for %s to work. Sorry for the inconvenience.": "Услугата %s се нуждае от JavaScript, за да работи. Съжаляваме за неудобството.",
|
||||||
|
"%s requires a modern browser to work.": "%s се нуждае от съвременен браузър за да работи.",
|
||||||
|
"New": "Създаване",
|
||||||
|
"Send": "Изпрати",
|
||||||
|
"Clone": "Дублирай",
|
||||||
|
"Raw text": "Чист текст",
|
||||||
|
"Expires": "Изтича",
|
||||||
|
"Burn after reading": "Унищожи след преглед",
|
||||||
|
"Open discussion": "Отворена дискусия",
|
||||||
|
"Password (recommended)": "Парола (препоръчва се)",
|
||||||
|
"Discussion": "Коментари",
|
||||||
|
"Toggle navigation": "Включи или Изключи навигацията",
|
||||||
|
"%d seconds": [
|
||||||
|
"%d секунди",
|
||||||
|
"%d секунда",
|
||||||
|
"%d seconds (2nd plural)",
|
||||||
|
"%d seconds (3rd plural)"
|
||||||
|
],
|
||||||
|
"%d minutes": [
|
||||||
|
"%d минути",
|
||||||
|
"%d минута",
|
||||||
|
"%d minutes (2nd plural)",
|
||||||
|
"%d minutes (3rd plural)"
|
||||||
|
],
|
||||||
|
"%d hours": [
|
||||||
|
"%d часа",
|
||||||
|
"%d час",
|
||||||
|
"%d hours (2nd plural)",
|
||||||
|
"%d hours (3rd plural)"
|
||||||
|
],
|
||||||
|
"%d days": [
|
||||||
|
"%d дни",
|
||||||
|
"%d ден",
|
||||||
|
"%d days (2nd plural)",
|
||||||
|
"%d days (3rd plural)"
|
||||||
|
],
|
||||||
|
"%d weeks": [
|
||||||
|
"%d седмици",
|
||||||
|
"%d седмица",
|
||||||
|
"%d weeks (2nd plural)",
|
||||||
|
"%d weeks (3rd plural)"
|
||||||
|
],
|
||||||
|
"%d months": [
|
||||||
|
"%d месеци",
|
||||||
|
"%d месец",
|
||||||
|
"%d months (2nd plural)",
|
||||||
|
"%d months (3rd plural)"
|
||||||
|
],
|
||||||
|
"%d years": [
|
||||||
|
"%d години",
|
||||||
|
"%d година",
|
||||||
|
"%d years (2nd plural)",
|
||||||
|
"%d years (3rd plural)"
|
||||||
|
],
|
||||||
|
"Never": "Никога",
|
||||||
|
"Note: This is a test service: Data may be deleted anytime. Kittens will die if you abuse this service.": "Забележка: Това е пробна услуга: Информацията може да бъде изтрита по всяко време. Котета ще измрат ако злоупотребиш с услугата.",
|
||||||
|
"This document will expire in %d seconds.": [
|
||||||
|
"Този документ изтича след една секунда.",
|
||||||
|
"Този документ изтича след %d секунди.",
|
||||||
|
"This document will expire in %d seconds (2nd plural)",
|
||||||
|
"This document will expire in %d seconds (3rd plural)"
|
||||||
|
],
|
||||||
|
"This document will expire in %d minutes.": [
|
||||||
|
"Този документ изтича след една минута.",
|
||||||
|
"Този документ изтича след %d минути.",
|
||||||
|
"This document will expire in %d minutes (2nd plural)",
|
||||||
|
"This document will expire in %d minutes (3rd plural)"
|
||||||
|
],
|
||||||
|
"This document will expire in %d hours.": [
|
||||||
|
"Този документ изтича след един час.",
|
||||||
|
"Този документ изтича след %d часа.",
|
||||||
|
"This document will expire in %d hours (2nd plural)",
|
||||||
|
"This document will expire in %d hours (3rd plural)"
|
||||||
|
],
|
||||||
|
"This document will expire in %d days.": [
|
||||||
|
"Този документ изтича след един ден.",
|
||||||
|
"Този документ изтича след %d дни.",
|
||||||
|
"This document will expire in %d days (2nd plural)",
|
||||||
|
"This document will expire in %d days (3rd plural)"
|
||||||
|
],
|
||||||
|
"This document will expire in %d months.": [
|
||||||
|
"Този документ изтича след една година.",
|
||||||
|
"Този документ изтича след %d години.",
|
||||||
|
"This document will expire in %d months (2nd plural)",
|
||||||
|
"This document will expire in %d months (3rd plural)"
|
||||||
|
],
|
||||||
|
"Please enter the password for this paste:": "Моля въведете паролата за това съдържание:",
|
||||||
|
"Could not decrypt data (Wrong key?)": "Информацията не можеше да се дешифрова (Грешен ключ?)",
|
||||||
|
"Could not delete the paste, it was not stored in burn after reading mode.": "Изтриването на информацията беше неуспешно. Тя не е от тип \"унищожаване след преглед\".",
|
||||||
|
"FOR YOUR EYES ONLY. Don't close this window, this message can't be displayed again.": "САМО ЗА ВАШИТЕ ОЧИ. Не затваряйте прозореца, понеже тази информация няма да може да бъде показана отново.",
|
||||||
|
"Could not decrypt comment; Wrong key?": "Дешифроването на коментара беше неуспешно. Грешен ключ?",
|
||||||
|
"Reply": "Отговор",
|
||||||
|
"Anonymous": "Безименен",
|
||||||
|
"Avatar generated from IP address": "Аватар (на базата на IP адреса Ви)",
|
||||||
|
"Add comment": "Добави коментар",
|
||||||
|
"Optional nickname…": "Избирателен псевдоним",
|
||||||
|
"Post comment": "Публикувай коментара",
|
||||||
|
"Sending comment…": "Изпращане на коментара Ви…",
|
||||||
|
"Comment posted.": "Коментара Ви е публикуван.",
|
||||||
|
"Could not refresh display: %s": "Презареждането на екрана беше неуспешно: %s",
|
||||||
|
"unknown status": "Неизвестно състояние",
|
||||||
|
"server error or not responding": "Грешка в сървъра или не отговаря",
|
||||||
|
"Could not post comment: %s": "Публикуването на коментара Ви беше неуспешно: %s",
|
||||||
|
"Sending paste…": "Изпращане на информацията Ви…",
|
||||||
|
"Your paste is <a id=\"pasteurl\" href=\"%s\">%s</a> <span id=\"copyhint\">(Hit [Ctrl]+[c] to copy)</span>": "Вашата връзка е <a id=\"pasteurl\" href=\"%s\">%s</a> <span id=\"copyhint\">(Натиснете [Ctrl]+[c] за да копирате)</span>",
|
||||||
|
"Delete data": "Изтриване на информацията",
|
||||||
|
"Could not create paste: %s": "Създаването на връзката ви беше неуспешно: %s",
|
||||||
|
"Cannot decrypt paste: Decryption key missing in URL (Did you use a redirector or an URL shortener which strips part of the URL?)": "Дешифроването на информацията беше неуспешно: Ключа за декриптиране липсва във връзката (Да не сте използвали услуга за пренасочване или скъсяване на връзката, което би изрязало части от нея?)",
|
||||||
|
"B": "B",
|
||||||
|
"KiB": "KiB",
|
||||||
|
"MiB": "MiB",
|
||||||
|
"GiB": "GiB",
|
||||||
|
"TiB": "TiB",
|
||||||
|
"PiB": "PiB",
|
||||||
|
"EiB": "EiB",
|
||||||
|
"ZiB": "ZiB",
|
||||||
|
"YiB": "YiB",
|
||||||
|
"Format": "Format",
|
||||||
|
"Plain Text": "Чист текст",
|
||||||
|
"Source Code": "Изходен код",
|
||||||
|
"Markdown": "Markdown",
|
||||||
|
"Download attachment": "Свали прикачения файл",
|
||||||
|
"Cloned: '%s'": "Дублирано: '%s'",
|
||||||
|
"The cloned file '%s' was attached to this paste.": "Дублирания файл '%s' беше прикачен.",
|
||||||
|
"Attach a file": "Прикачи файл",
|
||||||
|
"alternatively drag & drop a file or paste an image from the clipboard": "Също можеш да пуснеш файла върху този прозорец или да поставиш изображение от клипборда",
|
||||||
|
"File too large, to display a preview. Please download the attachment.": "Файла е твърде голям, за да се представи визуализация. Моля, свалете файла.",
|
||||||
|
"Remove attachment": "Премахнете файла",
|
||||||
|
"Your browser does not support uploading encrypted files. Please use a newer browser.": "Браузърът ви не поддържа прикачване на шифровани файлове. Моля, използвайте по-нов браузър",
|
||||||
|
"Invalid attachment.": "Невалидно прикачване.",
|
||||||
|
"Options": "Настройки",
|
||||||
|
"Shorten URL": "Скъси връзката",
|
||||||
|
"Editor": "Редактор",
|
||||||
|
"Preview": "Визуализация",
|
||||||
|
"%s requires the PATH to end in a \"%s\". Please update the PATH in your index.php.": "PATH трябва да е във края на \"%s\" за да може %s да работи правилно. Моля обновете PATH във вашият index.php .",
|
||||||
|
"Decrypt": "Дешифровай",
|
||||||
|
"Enter password": "Въведи паролата",
|
||||||
|
"Loading…": "Зареждане…",
|
||||||
|
"Decrypting paste…": "Дешифроване на информацията…",
|
||||||
|
"Preparing new paste…": "Приготвяне на връзката Ви…",
|
||||||
|
"In case this message never disappears please have a look at <a href=\"%s\">this FAQ for information to troubleshoot</a>.": "Във случай, че това съобщение не изчезне след време, моля прегледайте <a href=\"%s\">този FAQ (Английски)</a>, за информация, която би ви помогнала.",
|
||||||
|
"+++ no paste text +++": "+++ няма текстово съдържание +++",
|
||||||
|
"Could not get paste data: %s": "Взимането на информацията беше неуспешно: %s",
|
||||||
|
"QR code": "QR код",
|
||||||
|
"This website is using an insecure HTTP connection! Please use it only for testing.": "Този сайт използва несигурна HTTP връзка. Моля използвайте само за проби.",
|
||||||
|
"For more information <a href=\"%s\">see this FAQ entry</a>.": "<a href=\"%s\">Вижте тази страница</a> за повече информация.",
|
||||||
|
"Your browser may require an HTTPS connection to support the WebCrypto API. Try <a href=\"%s\">switching to HTTPS</a>.": "Браузъра ви може да се нуждае от HTTPS връзка за да използва WebCrypto API. Пробвай <a href=\"%s\">да минеш на HTTPS</a>.",
|
||||||
|
"Your browser doesn't support WebAssembly, used for zlib compression. You can create uncompressed documents, but can't read compressed ones.": "Your browser doesn't support WebAssembly, used for zlib compression. You can create uncompressed documents, but can't read compressed ones.",
|
||||||
|
"waiting on user to provide a password": "waiting on user to provide a password",
|
||||||
|
"Could not decrypt data. Did you enter a wrong password? Retry with the button at the top.": "Could not decrypt data. Did you enter a wrong password? Retry with the button at the top.",
|
||||||
|
"Retry": "Retry",
|
||||||
|
"Showing raw text…": "Showing raw text…",
|
||||||
|
"Notice:": "Notice:",
|
||||||
|
"This link will expire after %s.": "This link will expire after %s.",
|
||||||
|
"This link can only be accessed once, do not use back or refresh button in your browser.": "This link can only be accessed once, do not use back or refresh button in your browser.",
|
||||||
|
"Link:": "Link:",
|
||||||
|
"Recipient may become aware of your timezone, convert time to UTC?": "Recipient may become aware of your timezone, convert time to UTC?",
|
||||||
|
"Use Current Timezone": "Use Current Timezone",
|
||||||
|
"Convert To UTC": "Convert To UTC",
|
||||||
|
"Close": "Close",
|
||||||
|
"Encrypted note on PrivateBin": "Encrypted note on PrivateBin",
|
||||||
|
"Visit this link to see the note. Giving the URL to anyone allows them to access the note, too.": "Visit this link to see the note. Giving the URL to anyone allows them to access the note, too."
|
||||||
|
}
|
||||||
181
i18n/cs.json
Normal file
181
i18n/cs.json
Normal file
@@ -0,0 +1,181 @@
|
|||||||
|
{
|
||||||
|
"PrivateBin": "PrivateBin",
|
||||||
|
"%s is a minimalist, open source online pastebin where the server has zero knowledge of pasted data. Data is encrypted/decrypted <i>in the browser</i> using 256 bits AES. More information on the <a href=\"https://privatebin.info/\">project page</a>.": "%s je minimalistický open source 'pastebin' server, který neanalyzuje vložená data. Data jsou šifrována <i>v prohlížeči</i> pomocí 256 bitů AES. Více informací na <a href=\"https://privatebin.info/\">stránce projetu</a>.",
|
||||||
|
"Because ignorance is bliss": "Protože nevědomost je sladká",
|
||||||
|
"en": "cs",
|
||||||
|
"Paste does not exist, has expired or has been deleted.": "Vložený text neexistuje, expiroval nebo byl odstraněn.",
|
||||||
|
"%s requires php %s or above to work. Sorry.": "%s vyžaduje php %s nebo vyšší. Lituji.",
|
||||||
|
"%s requires configuration section [%s] to be present in configuration file.": "%s requires configuration section [%s] to be present in configuration file.",
|
||||||
|
"Please wait %d seconds between each post.": "Počet sekund do dalšího příspěvku: %d.",
|
||||||
|
"Paste is limited to %s of encrypted data.": "Příspěvek je limitován na %s šífrovaných dat",
|
||||||
|
"Invalid data.": "Chybná data.",
|
||||||
|
"You are unlucky. Try again.": "Lituji, zkuste to znovu.",
|
||||||
|
"Error saving comment. Sorry.": "Chyba při ukládání komentáře.",
|
||||||
|
"Error saving paste. Sorry.": "Chyba při ukládání příspěvku.",
|
||||||
|
"Invalid paste ID.": "Chybně vložené ID.",
|
||||||
|
"Paste is not of burn-after-reading type.": "Paste is not of burn-after-reading type.",
|
||||||
|
"Wrong deletion token. Paste was not deleted.": "Wrong deletion token. Paste was not deleted.",
|
||||||
|
"Paste was properly deleted.": "Paste was properly deleted.",
|
||||||
|
"JavaScript is required for %s to work. Sorry for the inconvenience.": "JavaScript is required for %s to work. Sorry for the inconvenience.",
|
||||||
|
"%s requires a modern browser to work.": "%%s requires a modern browser to work.",
|
||||||
|
"New": "Nový",
|
||||||
|
"Send": "Odeslat",
|
||||||
|
"Clone": "Klonovat",
|
||||||
|
"Raw text": "Pouze Text",
|
||||||
|
"Expires": "Expirace",
|
||||||
|
"Burn after reading": "Po přečtení smazat",
|
||||||
|
"Open discussion": "Povolit komentáře",
|
||||||
|
"Password (recommended)": "Heslo (doporučeno)",
|
||||||
|
"Discussion": "Komentáře",
|
||||||
|
"Toggle navigation": "Toggle navigation",
|
||||||
|
"%d seconds": [
|
||||||
|
"%d sekuda",
|
||||||
|
"%d sekundy",
|
||||||
|
"%d sekund",
|
||||||
|
"%d seconds (3rd plural)"
|
||||||
|
],
|
||||||
|
"%d minutes": [
|
||||||
|
"%d minuta",
|
||||||
|
"%d minuty",
|
||||||
|
"%d minut",
|
||||||
|
"%d minutes (3rd plural)"
|
||||||
|
],
|
||||||
|
"%d hours": [
|
||||||
|
"%d hodin",
|
||||||
|
"%d hodiny",
|
||||||
|
"%d hodin",
|
||||||
|
"%d hours (3rd plural)"
|
||||||
|
],
|
||||||
|
"%d days": [
|
||||||
|
"%d den",
|
||||||
|
"%d dny",
|
||||||
|
"%d dní",
|
||||||
|
"%d days (3rd plural)"
|
||||||
|
],
|
||||||
|
"%d weeks": [
|
||||||
|
"%d týden",
|
||||||
|
"%d týdeny",
|
||||||
|
"%d týdnů",
|
||||||
|
"%d weeks (3rd plural)"
|
||||||
|
],
|
||||||
|
"%d months": [
|
||||||
|
"%d měsíc",
|
||||||
|
"%d měsíce",
|
||||||
|
"%d měsíců",
|
||||||
|
"%d months (3rd plural)"
|
||||||
|
],
|
||||||
|
"%d years": [
|
||||||
|
"%d rok",
|
||||||
|
"%d roky",
|
||||||
|
"%d roků",
|
||||||
|
"%d years (3rd plural)"
|
||||||
|
],
|
||||||
|
"Never": "Nikdy",
|
||||||
|
"Note: This is a test service: Data may be deleted anytime. Kittens will die if you abuse this service.": "Note: This is a test service: Data may be deleted anytime. Kittens will die if you abuse this service.",
|
||||||
|
"This document will expire in %d seconds.": [
|
||||||
|
"Tento dokument expiruje za %d sekundu.",
|
||||||
|
"Tento dokument expiruje za %d sekundy.",
|
||||||
|
"Tento dokument expiruje za %d sekund.",
|
||||||
|
"This document will expire in %d seconds (3rd plural)"
|
||||||
|
],
|
||||||
|
"This document will expire in %d minutes.": [
|
||||||
|
"Tento dokument expiruje za %d minutu.",
|
||||||
|
"Tento dokument expiruje za %d minuty.",
|
||||||
|
"Tento dokument expiruje za %d minut.",
|
||||||
|
"This document will expire in %d minutes (3rd plural)"
|
||||||
|
],
|
||||||
|
"This document will expire in %d hours.": [
|
||||||
|
"Tento dokument expiruje za %d hodinu.",
|
||||||
|
"Tento dokument expiruje za %d hodiny.",
|
||||||
|
"Tento dokument expiruje za %d hodin.",
|
||||||
|
"This document will expire in %d hours (3rd plural)"
|
||||||
|
],
|
||||||
|
"This document will expire in %d days.": [
|
||||||
|
"Tento dokument expiruje za %d den.",
|
||||||
|
"Tento dokument expiruje za %d dny.",
|
||||||
|
"Tento dokument expiruje za %d dny.",
|
||||||
|
"This document will expire in %d days (3rd plural)"
|
||||||
|
],
|
||||||
|
"This document will expire in %d months.": [
|
||||||
|
"Tento dokument expiruje za %d měsíc.",
|
||||||
|
"Tento dokument expiruje za %d měsíce.",
|
||||||
|
"Tento dokument expiruje za %d měsíců.",
|
||||||
|
"This document will expire in %d months (3rd plural)"
|
||||||
|
],
|
||||||
|
"Please enter the password for this paste:": "Zadejte prosím heslo:",
|
||||||
|
"Could not decrypt data (Wrong key?)": "Could not decrypt data (Wrong key?)",
|
||||||
|
"Could not delete the paste, it was not stored in burn after reading mode.": "Could not delete the paste, it was not stored in burn after reading mode.",
|
||||||
|
"FOR YOUR EYES ONLY. Don't close this window, this message can't be displayed again.": "FOR YOUR EYES ONLY. Don't close this window, this message can't be displayed again.",
|
||||||
|
"Could not decrypt comment; Wrong key?": "Could not decrypt comment; Wrong key?",
|
||||||
|
"Reply": "Reply",
|
||||||
|
"Anonymous": "Anonym",
|
||||||
|
"Avatar generated from IP address": "Avatar generated from IP address",
|
||||||
|
"Add comment": "Přidat komentář",
|
||||||
|
"Optional nickname…": "Volitelný nickname…",
|
||||||
|
"Post comment": "Odeslat komentář",
|
||||||
|
"Sending comment…": "Odesílání komentáře…",
|
||||||
|
"Comment posted.": "Komentář odeslán.",
|
||||||
|
"Could not refresh display: %s": "Could not refresh display: %s",
|
||||||
|
"unknown status": "neznámý stav",
|
||||||
|
"server error or not responding": "Chyba na serveru nebo server neodpovídá",
|
||||||
|
"Could not post comment: %s": "Nelze odeslat komentář: %s",
|
||||||
|
"Sending paste…": "Odesílání příspěvku…",
|
||||||
|
"Your paste is <a id=\"pasteurl\" href=\"%s\">%s</a> <span id=\"copyhint\">(Hit [Ctrl]+[c] to copy)</span>": "Váš link je <a id=\"pasteurl\" href=\"%s\">%s</a> <span id=\"copyhint\">(Stiskněte [Ctrl]+[c] pro zkopírování)</span>",
|
||||||
|
"Delete data": "Odstranit data",
|
||||||
|
"Could not create paste: %s": "Nelze vytvořit příspěvek: %s",
|
||||||
|
"Cannot decrypt paste: Decryption key missing in URL (Did you use a redirector or an URL shortener which strips part of the URL?)": "Nepodařilo se dešifrovat příspěvek: V adrese chybí dešifrovací klíč (Možnou příčinou může být URL shortener?)",
|
||||||
|
"B": "B",
|
||||||
|
"KiB": "KiB",
|
||||||
|
"MiB": "MiB",
|
||||||
|
"GiB": "GiB",
|
||||||
|
"TiB": "TiB",
|
||||||
|
"PiB": "PiB",
|
||||||
|
"EiB": "EiB",
|
||||||
|
"ZiB": "ZiB",
|
||||||
|
"YiB": "YiB",
|
||||||
|
"Format": "Formát",
|
||||||
|
"Plain Text": "Prostý Text",
|
||||||
|
"Source Code": "Zdrojový kód",
|
||||||
|
"Markdown": "Markdown",
|
||||||
|
"Download attachment": "Stáhnout přílohu",
|
||||||
|
"Cloned: '%s'": "Klonováno: '%s'",
|
||||||
|
"The cloned file '%s' was attached to this paste.": "The cloned file '%s' was attached to this paste.",
|
||||||
|
"Attach a file": "Připojit soubor",
|
||||||
|
"alternatively drag & drop a file or paste an image from the clipboard": "alternatively drag & drop a file or paste an image from the clipboard",
|
||||||
|
"File too large, to display a preview. Please download the attachment.": "Soubor je příliš velký pro zobrazení náhledu. Stáhněte si přílohu.",
|
||||||
|
"Remove attachment": "Odstranit přílohu",
|
||||||
|
"Your browser does not support uploading encrypted files. Please use a newer browser.": "Váš prohlížeč nepodporuje nahrávání šifrovaných souborů. Použijte modernější verzi prohlížeče.",
|
||||||
|
"Invalid attachment.": "Chybná příloha.",
|
||||||
|
"Options": "Volby",
|
||||||
|
"Shorten URL": "Shorten URL",
|
||||||
|
"Editor": "Editor",
|
||||||
|
"Preview": "Náhled",
|
||||||
|
"%s requires the PATH to end in a \"%s\". Please update the PATH in your index.php.": "%s requires the PATH to end in a \"%s\". Please update the PATH in your index.php.",
|
||||||
|
"Decrypt": "Decrypt",
|
||||||
|
"Enter password": "Zadejte heslo",
|
||||||
|
"Loading…": "Loading…",
|
||||||
|
"Decrypting paste…": "Decrypting paste…",
|
||||||
|
"Preparing new paste…": "Preparing new paste…",
|
||||||
|
"In case this message never disappears please have a look at <a href=\"%s\">this FAQ for information to troubleshoot</a>.": "In case this message never disappears please have a look at <a href=\"%s\">this FAQ for information to troubleshoot</a>.",
|
||||||
|
"+++ no paste text +++": "+++ žádný vložený text +++",
|
||||||
|
"Could not get paste data: %s": "Could not get paste data: %s",
|
||||||
|
"QR code": "QR code",
|
||||||
|
"This website is using an insecure HTTP connection! Please use it only for testing.": "This website is using an insecure HTTP connection! Please use it only for testing.",
|
||||||
|
"For more information <a href=\"%s\">see this FAQ entry</a>.": "For more information <a href=\"%s\">see this FAQ entry</a>.",
|
||||||
|
"Your browser may require an HTTPS connection to support the WebCrypto API. Try <a href=\"%s\">switching to HTTPS</a>.": "Your browser may require an HTTPS connection to support the WebCrypto API. Try <a href=\"%s\">switching to HTTPS</a>.",
|
||||||
|
"Your browser doesn't support WebAssembly, used for zlib compression. You can create uncompressed documents, but can't read compressed ones.": "Your browser doesn't support WebAssembly, used for zlib compression. You can create uncompressed documents, but can't read compressed ones.",
|
||||||
|
"waiting on user to provide a password": "waiting on user to provide a password",
|
||||||
|
"Could not decrypt data. Did you enter a wrong password? Retry with the button at the top.": "Could not decrypt data. Did you enter a wrong password? Retry with the button at the top.",
|
||||||
|
"Retry": "Retry",
|
||||||
|
"Showing raw text…": "Showing raw text…",
|
||||||
|
"Notice:": "Notice:",
|
||||||
|
"This link will expire after %s.": "This link will expire after %s.",
|
||||||
|
"This link can only be accessed once, do not use back or refresh button in your browser.": "This link can only be accessed once, do not use back or refresh button in your browser.",
|
||||||
|
"Link:": "Link:",
|
||||||
|
"Recipient may become aware of your timezone, convert time to UTC?": "Recipient may become aware of your timezone, convert time to UTC?",
|
||||||
|
"Use Current Timezone": "Use Current Timezone",
|
||||||
|
"Convert To UTC": "Convert To UTC",
|
||||||
|
"Close": "Close",
|
||||||
|
"Encrypted note on PrivateBin": "Encrypted note on PrivateBin",
|
||||||
|
"Visit this link to see the note. Giving the URL to anyone allows them to access the note, too.": "Visit this link to see the note. Giving the URL to anyone allows them to access the note, too."
|
||||||
|
}
|
||||||
296
i18n/de.json
296
i18n/de.json
@@ -1,129 +1,138 @@
|
|||||||
{
|
{
|
||||||
"PrivateBin": "PrivateBin",
|
"PrivateBin": "PrivateBin",
|
||||||
"%s is a minimalist, open source online pastebin where the server has zero knowledge of pasted data. Data is encrypted/decrypted <i>in the browser</i> using 256 bits AES. More information on the <a href=\"https://privatebin.info/\">project page</a>.":
|
"%s is a minimalist, open source online pastebin where the server has zero knowledge of pasted data. Data is encrypted/decrypted <i>in the browser</i> using 256 bits AES. More information on the <a href=\"https://privatebin.info/\">project page</a>.": "%s ist ein minimalistischer, quelloffener \"Pastebin\"-artiger Dienst, bei dem der Server keinerlei Kenntnis der Inhalte hat. Die Daten werden <i>im Browser</i> mit 256 Bit AES ver- und entschlüsselt. Weitere Informationen sind auf der <a href=\"https://privatebin.info/\">Projektseite</a> zu finden.",
|
||||||
"%s ist ein minimalistischer, quelloffener \"Pastebin\"-artiger Dienst, bei dem der Server keinerlei Kenntnis der Inhalte hat. Die Daten werden <i>im Browser</i> mit 256 Bit AES ver- und entschlüsselt. Weitere Informationen sind auf der <a href=\"https://privatebin.info/\">Projektseite</a> zu finden.",
|
"Because ignorance is bliss": "Unwissenheit ist ein Segen",
|
||||||
"Because ignorance is bliss":
|
|
||||||
"Unwissenheit ist ein Segen",
|
|
||||||
"en": "de",
|
"en": "de",
|
||||||
"Paste does not exist, has expired or has been deleted.":
|
"Paste does not exist, has expired or has been deleted.": "Diesen Text gibt es nicht, er ist abgelaufen oder wurde gelöscht.",
|
||||||
"Diesen Text gibt es nicht, er ist abgelaufen oder wurde gelöscht.",
|
"%s requires php %s or above to work. Sorry.": "%s benötigt PHP %s oder höher, um zu funktionieren. Sorry.",
|
||||||
"%s requires php %s or above to work. Sorry.":
|
"%s requires configuration section [%s] to be present in configuration file.": "%s benötigt den Konfigurationsabschnitt [%s] in der Konfigurationsdatei um zu funktionieren.",
|
||||||
"%s benötigt PHP %s oder höher, um zu funktionieren. Sorry.",
|
"Please wait %d seconds between each post.": "Bitte warte %d Sekunden zwischen dem Absenden.",
|
||||||
"%s requires configuration section [%s] to be present in configuration file.":
|
"Paste is limited to %s of encrypted data.": "Texte sind auf %s verschlüsselte Datenmenge beschränkt.",
|
||||||
"%s benötigt den Konfigurationsabschnitt [%s] in der Konfigurationsdatei um zu funktionieren.",
|
"Invalid data.": "Ungültige Daten.",
|
||||||
"Please wait %d seconds between each post.":
|
"You are unlucky. Try again.": "Du hast Pech. Versuchs nochmal.",
|
||||||
"Bitte warte %d Sekunden zwischen dem Absenden.",
|
"Error saving comment. Sorry.": "Fehler beim Speichern des Kommentars. Sorry.",
|
||||||
"Paste is limited to %s of encrypted data.":
|
"Error saving paste. Sorry.": "Fehler beim Speichern des Textes. Sorry.",
|
||||||
"Texte sind auf %s verschlüsselte Datenmenge beschränkt.",
|
"Invalid paste ID.": "Ungültige Text-ID.",
|
||||||
"Invalid data.":
|
"Paste is not of burn-after-reading type.": "Text ist kein \"Einmal\"-Typ.",
|
||||||
"Ungültige Daten.",
|
"Wrong deletion token. Paste was not deleted.": "Falscher Lösch-Code. Text wurde nicht gelöscht.",
|
||||||
"You are unlucky. Try again.":
|
"Paste was properly deleted.": "Text wurde erfolgreich gelöscht.",
|
||||||
"Du hast Pech. Versuchs nochmal.",
|
"JavaScript is required for %s to work. Sorry for the inconvenience.": "JavaScript ist eine Voraussetzung, um %s zu nutzen. Bitte entschuldige die Unannehmlichkeiten.",
|
||||||
"Error saving comment. Sorry.":
|
"%s requires a modern browser to work.": "%s setzt einen modernen Browser voraus, um funktionieren zu können.",
|
||||||
"Fehler beim Speichern des Kommentars. Sorry.",
|
"New": "Neu",
|
||||||
"Error saving paste. Sorry.":
|
"Send": "Senden",
|
||||||
"Fehler beim Speichern des Textes. Sorry.",
|
"Clone": "Klonen",
|
||||||
"Invalid paste ID.":
|
"Raw text": "Reiner Text",
|
||||||
"Ungültige Text-ID.",
|
"Expires": "Ablaufzeit",
|
||||||
"Paste is not of burn-after-reading type.":
|
"Burn after reading": "Nach dem Lesen löschen",
|
||||||
"Text ist kein \"Einmal\"-Typ.",
|
"Open discussion": "Kommentare aktivieren",
|
||||||
"Wrong deletion token. Paste was not deleted.":
|
"Password (recommended)": "Passwort (empfohlen)",
|
||||||
"Falscher Lösch-Code. Text wurde nicht gelöscht.",
|
"Discussion": "Kommentare",
|
||||||
"Paste was properly deleted.":
|
"Toggle navigation": "Navigation umschalten",
|
||||||
"Text wurde erfolgreich gelöscht.",
|
"%d seconds": [
|
||||||
"JavaScript is required for %s to work.<br />Sorry for the inconvenience.":
|
"%d Sekunde",
|
||||||
"JavaScript ist eine Voraussetzung, um %s zu nutzen.<br />Bitte entschuldige die Unannehmlichkeiten.",
|
"%d Sekunden",
|
||||||
"%s requires a modern browser to work.":
|
"%d seconds (2nd plural)",
|
||||||
"%s setzt einen modernen Browser voraus, um funktionieren zu können.",
|
"%d seconds (3rd plural)"
|
||||||
"Still using Internet Explorer? Do yourself a favor, switch to a modern browser:":
|
],
|
||||||
"Du benutzt immer noch den Internet Explorer? Tu Dir einen Gefallen und wechsle zu einem moderneren Browser:",
|
"%d minutes": [
|
||||||
"New":
|
"%d Minute",
|
||||||
"Neu",
|
"%d Minuten",
|
||||||
"Send":
|
"%d minutes (2nd plural)",
|
||||||
"Senden",
|
"%d minutes (3rd plural)"
|
||||||
"Clone":
|
],
|
||||||
"Klonen",
|
"%d hours": [
|
||||||
"Raw text":
|
"%d Stunde",
|
||||||
"Reiner Text",
|
"%d Stunden",
|
||||||
"Expires":
|
"%d hours (2nd plural)",
|
||||||
"Ablaufzeit",
|
"%d hours (3rd plural)"
|
||||||
"Burn after reading":
|
],
|
||||||
"Einmal-Text",
|
"%d days": [
|
||||||
"Open discussion":
|
"%d Tag",
|
||||||
"Diskussion eröffnen",
|
"%d Tage",
|
||||||
"Password (recommended)":
|
"%d days (2nd plural)",
|
||||||
"Passwort (empfohlen)",
|
"%d days (3rd plural)"
|
||||||
"Discussion":
|
],
|
||||||
"Diskussion",
|
"%d weeks": [
|
||||||
"Toggle navigation":
|
"%d Woche",
|
||||||
"Navigation umschalten",
|
"%d Wochen",
|
||||||
"%d seconds": ["%d Sekunde", "%d Sekunden"],
|
"%d weeks (2nd plural)",
|
||||||
"%d minutes": ["%d Minute", "%d Minuten"],
|
"%d weeks (3rd plural)"
|
||||||
"%d hours": ["%d Stunde", "%d Stunden"],
|
],
|
||||||
"%d days": ["%d Tag", "%d Tage"],
|
"%d months": [
|
||||||
"%d weeks": ["%d Woche", "%d Wochen"],
|
"%d Monat",
|
||||||
"%d months": ["%d Monat", "%d Monate"],
|
"%d Monate",
|
||||||
"%d years": ["%d Jahr", "%d Jahre"],
|
"%d months (2nd plural)",
|
||||||
"Never":
|
"%d months (3rd plural)"
|
||||||
"Nie",
|
],
|
||||||
"Note: This is a test service: Data may be deleted anytime. Kittens will die if you abuse this service.":
|
"%d years": [
|
||||||
"Hinweis: Dies ist ein Versuchsdienst. Daten können jederzeit gelöscht werden. Kätzchen werden sterben wenn du diesen Dienst missbrauchst.",
|
"%d Jahr",
|
||||||
"This document will expire in %d seconds.":
|
"%d Jahre",
|
||||||
["Dieses Dokument läuft in einer Sekunde ab.", "Dieses Dokument läuft in %d Sekunden ab."],
|
"%d years (2nd plural)",
|
||||||
"This document will expire in %d minutes.":
|
"%d years (3rd plural)"
|
||||||
["Dieses Dokument läuft in einer Minute ab.", "Dieses Dokument läuft in %d Minuten ab."],
|
],
|
||||||
"This document will expire in %d hours.":
|
"Never": "Nie",
|
||||||
["Dieses Dokument läuft in einer Stunde ab.", "Dieses Dokument läuft in %d Stunden ab."],
|
"Note: This is a test service: Data may be deleted anytime. Kittens will die if you abuse this service.": "Hinweis: Dies ist ein Versuchsdienst. Daten können jederzeit gelöscht werden. Kätzchen werden sterben, wenn du diesen Dienst missbrauchst.",
|
||||||
"This document will expire in %d days.":
|
"This document will expire in %d seconds.": [
|
||||||
["Dieses Dokument läuft in einem Tag ab.", "Dieses Dokument läuft in %d Tagen ab."],
|
"Dieses Dokument läuft in einer Sekunde ab.",
|
||||||
"This document will expire in %d months.":
|
"Dieses Dokument läuft in %d Sekunden ab.",
|
||||||
["Dieses Dokument läuft in einem Monat ab.", "Dieses Dokument läuft in %d Monaten ab."],
|
"This document will expire in %d seconds (2nd plural)",
|
||||||
"Please enter the password for this paste:":
|
"This document will expire in %d seconds (3rd plural)"
|
||||||
"Bitte gib das Passwort für diesen Text ein:",
|
],
|
||||||
"Could not decrypt data (Wrong key?)":
|
"This document will expire in %d minutes.": [
|
||||||
"Konnte Daten nicht entschlüsseln (Falscher Schlüssel?)",
|
"Dieses Dokument läuft in einer Minute ab.",
|
||||||
"Could not delete the paste, it was not stored in burn after reading mode.":
|
"Dieses Dokument läuft in %d Minuten ab.",
|
||||||
"Konnte das Paste nicht löschen, es wurde nicht im Einmal-Modus gespeichert.",
|
"This document will expire in %d minutes (2nd plural)",
|
||||||
"FOR YOUR EYES ONLY. Don't close this window, this message can't be displayed again.":
|
"This document will expire in %d minutes (3rd plural)"
|
||||||
"DIESER TEXT IST NUR FÜR DICH GEDACHT. Schließe das Fenster nicht, diese Nachricht kann nur einmal geöffnet werden.",
|
],
|
||||||
"Could not decrypt comment; Wrong key?":
|
"This document will expire in %d hours.": [
|
||||||
"Konnte Kommentar nicht entschlüsseln; Falscher Schlüssel?",
|
"Dieses Dokument läuft in einer Stunde ab.",
|
||||||
"Reply":
|
"Dieses Dokument läuft in %d Stunden ab.",
|
||||||
"Antworten",
|
"This document will expire in %d hours (2nd plural)",
|
||||||
"Anonymous":
|
"This document will expire in %d hours (3rd plural)"
|
||||||
"Anonym",
|
],
|
||||||
"Avatar generated from IP address":
|
"This document will expire in %d days.": [
|
||||||
"Avatar (generiert aus der IP-Adresse)",
|
"Dieses Dokument läuft in einem Tag ab.",
|
||||||
"Add comment":
|
"Dieses Dokument läuft in %d Tagen ab.",
|
||||||
"Kommentar hinzufügen",
|
"This document will expire in %d days (2nd plural)",
|
||||||
"Optional nickname…":
|
"This document will expire in %d days (3rd plural)"
|
||||||
"Optionales Pseudonym…",
|
],
|
||||||
"Post comment":
|
"This document will expire in %d months.": [
|
||||||
"Kommentar absenden",
|
"Dieses Dokument läuft in einem Monat ab.",
|
||||||
"Sending comment…":
|
"Dieses Dokument läuft in %d Monaten ab.",
|
||||||
"Sende Kommentar…",
|
"This document will expire in %d months (2nd plural)",
|
||||||
"Comment posted.":
|
"This document will expire in %d months (3rd plural)"
|
||||||
"Kommentar gesendet.",
|
],
|
||||||
"Could not refresh display: %s":
|
"Please enter the password for this paste:": "Bitte gib das Passwort für diesen Text ein:",
|
||||||
"Konnte Ansicht nicht aktualisieren: %s",
|
"Could not decrypt data (Wrong key?)": "Konnte Daten nicht entschlüsseln (Falscher Schlüssel?)",
|
||||||
"unknown status":
|
"Could not delete the paste, it was not stored in burn after reading mode.": "Konnte das Paste nicht löschen, es wurde nicht im Einmal-Modus gespeichert.",
|
||||||
"Unbekannter Grund",
|
"FOR YOUR EYES ONLY. Don't close this window, this message can't be displayed again.": "DIESER TEXT IST NUR FÜR DICH GEDACHT. Schließe das Fenster nicht, diese Nachricht kann nur einmal geöffnet werden.",
|
||||||
"server error or not responding":
|
"Could not decrypt comment; Wrong key?": "Konnte Kommentar nicht entschlüsseln; Falscher Schlüssel?",
|
||||||
"Fehler auf dem Server oder keine Antwort vom Server",
|
"Reply": "Antworten",
|
||||||
"Could not post comment: %s":
|
"Anonymous": "Anonym",
|
||||||
"Konnte Kommentar nicht senden: %s",
|
"Avatar generated from IP address": "Avatar (generiert aus der IP-Adresse)",
|
||||||
"Please move your mouse for more entropy…":
|
"Add comment": "Kommentar hinzufügen",
|
||||||
"Bitte bewege Deine Maus um die Entropie zu erhöhen…",
|
"Optional nickname…": "Optionales Pseudonym…",
|
||||||
"Sending paste…":
|
"Post comment": "Kommentar absenden",
|
||||||
"Sende Paste…",
|
"Sending comment…": "Sende Kommentar…",
|
||||||
"Your paste is <a id=\"pasteurl\" href=\"%s\">%s</a> <span id=\"copyhint\">(Hit [Ctrl]+[c] to copy)</span>":
|
"Comment posted.": "Kommentar gesendet.",
|
||||||
"Dein Paste ist unter <a id=\"pasteurl\" href=\"%s\">%s</a> zu finden <span id=\"copyhint\">(Drücke [Strg]+[c] um den Link zu kopieren)</span>",
|
"Could not refresh display: %s": "Ansicht konnte nicht aktualisiert werden: %s",
|
||||||
"Delete data":
|
"unknown status": "Unbekannter Grund",
|
||||||
"Lösche Daten",
|
"server error or not responding": "Fehler auf dem Server oder keine Antwort vom Server",
|
||||||
"Could not create paste: %s":
|
"Could not post comment: %s": "Konnte Kommentar nicht senden: %s",
|
||||||
"Konnte Paste nicht erstellen: %s",
|
"Sending paste…": "Sende Paste…",
|
||||||
"Cannot decrypt paste: Decryption key missing in URL (Did you use a redirector or an URL shortener which strips part of the URL?)":
|
"Your paste is <a id=\"pasteurl\" href=\"%s\">%s</a> <span id=\"copyhint\">(Hit [Ctrl]+[c] to copy)</span>": "Dein Text ist unter <a id=\"pasteurl\" href=\"%s\">%s</a> zu finden <span id=\"copyhint\">(Drücke [Strg]+[c] um den Link zu kopieren)</span>",
|
||||||
"Konnte Paste nicht entschlüsseln: Der Schlüssel fehlt in der Adresse (Hast du eine Umleitung oder einen URL-Verkürzer benutzt, der Teile der Adresse entfernt?)",
|
"Delete data": "Lösche Daten",
|
||||||
|
"Could not create paste: %s": "Text konnte nicht erstellt werden: %s",
|
||||||
|
"Cannot decrypt paste: Decryption key missing in URL (Did you use a redirector or an URL shortener which strips part of the URL?)": "Konnte Paste nicht entschlüsseln: Der Schlüssel fehlt in der Adresse (Hast du eine Umleitung oder einen URL-Verkürzer benutzt, der Teile der Adresse entfernt?)",
|
||||||
|
"B": "B",
|
||||||
|
"KiB": "KiB",
|
||||||
|
"MiB": "MiB",
|
||||||
|
"GiB": "GiB",
|
||||||
|
"TiB": "TiB",
|
||||||
|
"PiB": "PiB",
|
||||||
|
"EiB": "EiB",
|
||||||
|
"ZiB": "ZiB",
|
||||||
|
"YiB": "YiB",
|
||||||
"Format": "Format",
|
"Format": "Format",
|
||||||
"Plain Text": "Nur Text",
|
"Plain Text": "Nur Text",
|
||||||
"Source Code": "Quellcode",
|
"Source Code": "Quellcode",
|
||||||
@@ -135,25 +144,38 @@
|
|||||||
"alternatively drag & drop a file or paste an image from the clipboard": "Alternativ Drag & Drop einer Datei oder einfügen eines Bildes aus der Zwischenablage",
|
"alternatively drag & drop a file or paste an image from the clipboard": "Alternativ Drag & Drop einer Datei oder einfügen eines Bildes aus der Zwischenablage",
|
||||||
"File too large, to display a preview. Please download the attachment.": "Datei zu groß, um als Vorschau angezeigt zu werden. Bitte Anhang herunterladen.",
|
"File too large, to display a preview. Please download the attachment.": "Datei zu groß, um als Vorschau angezeigt zu werden. Bitte Anhang herunterladen.",
|
||||||
"Remove attachment": "Anhang entfernen",
|
"Remove attachment": "Anhang entfernen",
|
||||||
"Your browser does not support uploading encrypted files. Please use a newer browser.":
|
"Your browser does not support uploading encrypted files. Please use a newer browser.": "Dein Browser unterstützt das hochladen von verschlüsselten Dateien nicht. Bitte verwende einen neueren Browser.",
|
||||||
"Dein Browser unterstützt das hochladen von verschlüsselten Dateien nicht. Bitte verwende einen neueren Browser.",
|
|
||||||
"Invalid attachment.": "Ungültiger Datei-Anhang.",
|
"Invalid attachment.": "Ungültiger Datei-Anhang.",
|
||||||
"Options": "Optionen",
|
"Options": "Optionen",
|
||||||
"Shorten URL": "URL verkürzen",
|
"Shorten URL": "URL verkürzen",
|
||||||
"Editor": "Bearbeiten",
|
"Editor": "Bearbeiten",
|
||||||
"Preview": "Vorschau",
|
"Preview": "Vorschau",
|
||||||
"%s requires the PATH to end in a \"%s\". Please update the PATH in your index.php.":
|
"%s requires the PATH to end in a \"%s\". Please update the PATH in your index.php.": "Der PATH muss bei %s mit einem \"%s\" enden. Bitte passe Deinen PATH in Deiner index.php an.",
|
||||||
"Der PATH muss bei %s mit einem \"%s\" enden. Bitte passe Deinen PATH in Deiner index.php an.",
|
"Decrypt": "Entschlüsseln",
|
||||||
"Decrypt":
|
"Enter password": "Passwort eingeben",
|
||||||
"Entschlüsseln",
|
|
||||||
"Enter password":
|
|
||||||
"Passwort eingeben",
|
|
||||||
"Loading…": "Lädt…",
|
"Loading…": "Lädt…",
|
||||||
"Decrypting paste…": "Entschlüssle Paste…",
|
"Decrypting paste…": "Entschlüssle Text…",
|
||||||
"Preparing new paste…": "Bereite neues Paste vor…",
|
"Preparing new paste…": "Bereite neuen Text vor…",
|
||||||
"In case this message never disappears please have a look at <a href=\"https://github.com/PrivateBin/PrivateBin/wiki/FAQ#why-does-not-the-loading-message-go-away\">this FAQ for information to troubleshoot</a>.":
|
"In case this message never disappears please have a look at <a href=\"%s\">this FAQ for information to troubleshoot</a>.": "Wenn diese Nachricht nicht mehr verschwindet, schau bitte in <a href=\"%s\">die FAQ</a> (englisch), um zu sehen, wie der Fehler behoben werden kann.",
|
||||||
"Wenn diese Nachricht nicht mehr verschwindet, schau bitte in <a href=\"https://github.com/PrivateBin/PrivateBin/wiki/FAQ#why-does-not-the-loading-message-go-away\">die FAQ</a> (englisch), um zu sehen, wie der Fehler behoben werden kann.",
|
|
||||||
"+++ no paste text +++": "+++ kein Paste-Text +++",
|
"+++ no paste text +++": "+++ kein Paste-Text +++",
|
||||||
"Could not get paste data: %s":
|
"Could not get paste data: %s": "Text konnte nicht geladen werden: %s",
|
||||||
"Konnte Paste nicht laden: %s"
|
"QR code": "QR code",
|
||||||
|
"This website is using an insecure HTTP connection! Please use it only for testing.": "Diese Webseite verwendet eine unsichere HTTP Verbindung! Bitte benutze sie nur zum Testen.",
|
||||||
|
"For more information <a href=\"%s\">see this FAQ entry</a>.": "<a href=\"%s\">Besuche diesen FAQ Eintrag</a> für weitere Informationen dazu.",
|
||||||
|
"Your browser may require an HTTPS connection to support the WebCrypto API. Try <a href=\"%s\">switching to HTTPS</a>.": "Dein Browser benötigt möglicherweise eine HTTPS Verbindung um das WebCrypto API nutzen zu können. Versuche <a href=\"%s\">auf HTTPS zu wechseln</a>.",
|
||||||
|
"Your browser doesn't support WebAssembly, used for zlib compression. You can create uncompressed documents, but can't read compressed ones.": "Dein Browser unterstützt WebAssembly nicht, welches für zlib Komprimierung benötigt wird. Du kannst unkomprimierte Dokumente erzeugen, aber keine komprimierten lesen.",
|
||||||
|
"waiting on user to provide a password": "warte auf Passworteingabe durch Benutzer",
|
||||||
|
"Could not decrypt data. Did you enter a wrong password? Retry with the button at the top.": "Konnte Daten nicht entschlüsseln. Hast Du das falsche Passwort eingegeben? Wiederhole den Vorgang mit dem oben stehenden Knopf.",
|
||||||
|
"Retry": "Wiederholen",
|
||||||
|
"Showing raw text…": "Zeige reinen Text an…",
|
||||||
|
"Notice:": "Hinweis:",
|
||||||
|
"This link will expire after %s.": "Dieser Link wird um %s ablaufen.",
|
||||||
|
"This link can only be accessed once, do not use back or refresh button in your browser.": "Dieser Link kann nur einmal geöffnet werden, verwende nicht den Zurück- oder Neu-laden-Knopf Deines Browsers.",
|
||||||
|
"Link:": "Link:",
|
||||||
|
"Recipient may become aware of your timezone, convert time to UTC?": "Der Empfänger könnte Deine Zeitzone erfahren, möchtest Du die Zeit in UTC umwandeln?",
|
||||||
|
"Use Current Timezone": "Aktuelle Zeitzone verwenden",
|
||||||
|
"Convert To UTC": "In UTC Umwandeln",
|
||||||
|
"Close": "Schliessen",
|
||||||
|
"Encrypted note on PrivateBin": "Verschlüsselte Notiz auf PrivateBin",
|
||||||
|
"Visit this link to see the note. Giving the URL to anyone allows them to access the note, too.": "Besuche diesen Link um das Dokument zu sehen. Wird die URL an eine andere Person gegeben, so kann diese Person ebenfalls auf diese Notiz zugreifen."
|
||||||
}
|
}
|
||||||
181
i18n/en.json
Normal file
181
i18n/en.json
Normal file
@@ -0,0 +1,181 @@
|
|||||||
|
{
|
||||||
|
"PrivateBin": "PrivateBin",
|
||||||
|
"%s is a minimalist, open source online pastebin where the server has zero knowledge of pasted data. Data is encrypted/decrypted <i>in the browser</i> using 256 bits AES. More information on the <a href=\"https://privatebin.info/\">project page</a>.": "%s is a minimalist, open source online pastebin where the server has zero knowledge of pasted data. Data is encrypted/decrypted <i>in the browser</i> using 256 bits AES. More information on the <a href=\"https://privatebin.info/\">project page</a>.",
|
||||||
|
"Because ignorance is bliss": "Because ignorance is bliss",
|
||||||
|
"en": "en",
|
||||||
|
"Paste does not exist, has expired or has been deleted.": "Paste does not exist, has expired or has been deleted.",
|
||||||
|
"%s requires php %s or above to work. Sorry.": "%s requires php %s or above to work. Sorry.",
|
||||||
|
"%s requires configuration section [%s] to be present in configuration file.": "%s requires configuration section [%s] to be present in configuration file.",
|
||||||
|
"Please wait %d seconds between each post.": "Please wait %d seconds between each post.",
|
||||||
|
"Paste is limited to %s of encrypted data.": "Paste is limited to %s of encrypted data.",
|
||||||
|
"Invalid data.": "Invalid data.",
|
||||||
|
"You are unlucky. Try again.": "You are unlucky. Try again.",
|
||||||
|
"Error saving comment. Sorry.": "Error saving comment. Sorry.",
|
||||||
|
"Error saving paste. Sorry.": "Error saving paste. Sorry.",
|
||||||
|
"Invalid paste ID.": "Invalid paste ID.",
|
||||||
|
"Paste is not of burn-after-reading type.": "Paste is not of burn-after-reading type.",
|
||||||
|
"Wrong deletion token. Paste was not deleted.": "Wrong deletion token. Paste was not deleted.",
|
||||||
|
"Paste was properly deleted.": "Paste was properly deleted.",
|
||||||
|
"JavaScript is required for %s to work. Sorry for the inconvenience.": "JavaScript is required for %s to work. Sorry for the inconvenience.",
|
||||||
|
"%s requires a modern browser to work.": "%s requires a modern browser to work.",
|
||||||
|
"New": "New",
|
||||||
|
"Send": "Send",
|
||||||
|
"Clone": "Clone",
|
||||||
|
"Raw text": "Raw text",
|
||||||
|
"Expires": "Expires",
|
||||||
|
"Burn after reading": "Burn after reading",
|
||||||
|
"Open discussion": "Open discussion",
|
||||||
|
"Password (recommended)": "Password (recommended)",
|
||||||
|
"Discussion": "Discussion",
|
||||||
|
"Toggle navigation": "Toggle navigation",
|
||||||
|
"%d seconds": [
|
||||||
|
"%d second (singular)",
|
||||||
|
"%d seconds (1st plural)",
|
||||||
|
"%d seconds (2nd plural)",
|
||||||
|
"%d seconds (3rd plural)"
|
||||||
|
],
|
||||||
|
"%d minutes": [
|
||||||
|
"%d minute (singular)",
|
||||||
|
"%d minutes (1st plural)",
|
||||||
|
"%d minutes (2nd plural)",
|
||||||
|
"%d minutes (3rd plural)"
|
||||||
|
],
|
||||||
|
"%d hours": [
|
||||||
|
"%d hour (singular)",
|
||||||
|
"%d hours (1st plural)",
|
||||||
|
"%d hours (2nd plural)",
|
||||||
|
"%d hours (3rd plural)"
|
||||||
|
],
|
||||||
|
"%d days": [
|
||||||
|
"%d day (singular)",
|
||||||
|
"%d days (1st plural)",
|
||||||
|
"%d days (2nd plural)",
|
||||||
|
"%d days (3rd plural)"
|
||||||
|
],
|
||||||
|
"%d weeks": [
|
||||||
|
"%d week (singular)",
|
||||||
|
"%d weeks (1st plural)",
|
||||||
|
"%d weeks (2nd plural)",
|
||||||
|
"%d weeks (3rd plural)"
|
||||||
|
],
|
||||||
|
"%d months": [
|
||||||
|
"%d month (singular)",
|
||||||
|
"%d months (1st plural)",
|
||||||
|
"%d months (2nd plural)",
|
||||||
|
"%d months (3rd plural)"
|
||||||
|
],
|
||||||
|
"%d years": [
|
||||||
|
"%d year (singular)",
|
||||||
|
"%d years (1st plural)",
|
||||||
|
"%d years (2nd plural)",
|
||||||
|
"%d years (3rd plural)"
|
||||||
|
],
|
||||||
|
"Never": "Never",
|
||||||
|
"Note: This is a test service: Data may be deleted anytime. Kittens will die if you abuse this service.": "Note: This is a test service: Data may be deleted anytime. Kittens will die if you abuse this service.",
|
||||||
|
"This document will expire in %d seconds.": [
|
||||||
|
"This document will expire in %d second. (singular)",
|
||||||
|
"This document will expire in %d seconds (1st plural)",
|
||||||
|
"This document will expire in %d seconds (2nd plural)",
|
||||||
|
"This document will expire in %d seconds (3rd plural)"
|
||||||
|
],
|
||||||
|
"This document will expire in %d minutes.": [
|
||||||
|
"This document will expire in %d minute. (singular)",
|
||||||
|
"This document will expire in %d minutes (1st plural)",
|
||||||
|
"This document will expire in %d minutes (2nd plural)",
|
||||||
|
"This document will expire in %d minutes (3rd plural)"
|
||||||
|
],
|
||||||
|
"This document will expire in %d hours.": [
|
||||||
|
"This document will expire in %d hour. (singular)",
|
||||||
|
"This document will expire in %d hours (1st plural)",
|
||||||
|
"This document will expire in %d hours (2nd plural)",
|
||||||
|
"This document will expire in %d hours (3rd plural)"
|
||||||
|
],
|
||||||
|
"This document will expire in %d days.": [
|
||||||
|
"This document will expire in %d day. (singular)",
|
||||||
|
"This document will expire in %d days (1st plural)",
|
||||||
|
"This document will expire in %d days (2nd plural)",
|
||||||
|
"This document will expire in %d days (3rd plural)"
|
||||||
|
],
|
||||||
|
"This document will expire in %d months.": [
|
||||||
|
"This document will expire in %d month. (singular)",
|
||||||
|
"This document will expire in %d months (1st plural)",
|
||||||
|
"This document will expire in %d months (2nd plural)",
|
||||||
|
"This document will expire in %d months (3rd plural)"
|
||||||
|
],
|
||||||
|
"Please enter the password for this paste:": "Please enter the password for this paste:",
|
||||||
|
"Could not decrypt data (Wrong key?)": "Could not decrypt data (Wrong key?)",
|
||||||
|
"Could not delete the paste, it was not stored in burn after reading mode.": "Could not delete the paste, it was not stored in burn after reading mode.",
|
||||||
|
"FOR YOUR EYES ONLY. Don't close this window, this message can't be displayed again.": "FOR YOUR EYES ONLY. Don't close this window, this message can't be displayed again.",
|
||||||
|
"Could not decrypt comment; Wrong key?": "Could not decrypt comment; Wrong key?",
|
||||||
|
"Reply": "Reply",
|
||||||
|
"Anonymous": "Anonymous",
|
||||||
|
"Avatar generated from IP address": "Avatar generated from IP address",
|
||||||
|
"Add comment": "Add comment",
|
||||||
|
"Optional nickname…": "Optional nickname…",
|
||||||
|
"Post comment": "Post comment",
|
||||||
|
"Sending comment…": "Sending comment…",
|
||||||
|
"Comment posted.": "Comment posted.",
|
||||||
|
"Could not refresh display: %s": "Could not refresh display: %s",
|
||||||
|
"unknown status": "unknown status",
|
||||||
|
"server error or not responding": "server error or not responding",
|
||||||
|
"Could not post comment: %s": "Could not post comment: %s",
|
||||||
|
"Sending paste…": "Sending paste…",
|
||||||
|
"Your paste is <a id=\"pasteurl\" href=\"%s\">%s</a> <span id=\"copyhint\">(Hit [Ctrl]+[c] to copy)</span>": "Your paste is <a id=\"pasteurl\" href=\"%s\">%s</a> <span id=\"copyhint\">(Hit [Ctrl]+[c] to copy)</span>",
|
||||||
|
"Delete data": "Delete data",
|
||||||
|
"Could not create paste: %s": "Could not create paste: %s",
|
||||||
|
"Cannot decrypt paste: Decryption key missing in URL (Did you use a redirector or an URL shortener which strips part of the URL?)": "Cannot decrypt paste: Decryption key missing in URL (Did you use a redirector or an URL shortener which strips part of the URL?)",
|
||||||
|
"B": "B",
|
||||||
|
"KiB": "KiB",
|
||||||
|
"MiB": "MiB",
|
||||||
|
"GiB": "GiB",
|
||||||
|
"TiB": "TiB",
|
||||||
|
"PiB": "PiB",
|
||||||
|
"EiB": "EiB",
|
||||||
|
"ZiB": "ZiB",
|
||||||
|
"YiB": "YiB",
|
||||||
|
"Format": "Format",
|
||||||
|
"Plain Text": "Plain Text",
|
||||||
|
"Source Code": "Source Code",
|
||||||
|
"Markdown": "Markdown",
|
||||||
|
"Download attachment": "Download attachment",
|
||||||
|
"Cloned: '%s'": "Cloned: '%s'",
|
||||||
|
"The cloned file '%s' was attached to this paste.": "The cloned file '%s' was attached to this paste.",
|
||||||
|
"Attach a file": "Attach a file",
|
||||||
|
"alternatively drag & drop a file or paste an image from the clipboard": "alternatively drag & drop a file or paste an image from the clipboard",
|
||||||
|
"File too large, to display a preview. Please download the attachment.": "File too large, to display a preview. Please download the attachment.",
|
||||||
|
"Remove attachment": "Remove attachment",
|
||||||
|
"Your browser does not support uploading encrypted files. Please use a newer browser.": "Your browser does not support uploading encrypted files. Please use a newer browser.",
|
||||||
|
"Invalid attachment.": "Invalid attachment.",
|
||||||
|
"Options": "Options",
|
||||||
|
"Shorten URL": "Shorten URL",
|
||||||
|
"Editor": "Editor",
|
||||||
|
"Preview": "Preview",
|
||||||
|
"%s requires the PATH to end in a \"%s\". Please update the PATH in your index.php.": "%s requires the PATH to end in a \"%s\". Please update the PATH in your index.php.",
|
||||||
|
"Decrypt": "Decrypt",
|
||||||
|
"Enter password": "Enter password",
|
||||||
|
"Loading…": "Loading…",
|
||||||
|
"Decrypting paste…": "Decrypting paste…",
|
||||||
|
"Preparing new paste…": "Preparing new paste…",
|
||||||
|
"In case this message never disappears please have a look at <a href=\"%s\">this FAQ for information to troubleshoot</a>.": "In case this message never disappears please have a look at <a href=\"%s\">this FAQ for information to troubleshoot</a>.",
|
||||||
|
"+++ no paste text +++": "+++ no paste text +++",
|
||||||
|
"Could not get paste data: %s": "Could not get paste data: %s",
|
||||||
|
"QR code": "QR code",
|
||||||
|
"This website is using an insecure HTTP connection! Please use it only for testing.": "This website is using an insecure HTTP connection! Please use it only for testing.",
|
||||||
|
"For more information <a href=\"%s\">see this FAQ entry</a>.": "For more information <a href=\"%s\">see this FAQ entry</a>.",
|
||||||
|
"Your browser may require an HTTPS connection to support the WebCrypto API. Try <a href=\"%s\">switching to HTTPS</a>.": "Your browser may require an HTTPS connection to support the WebCrypto API. Try <a href=\"%s\">switching to HTTPS</a>.",
|
||||||
|
"Your browser doesn't support WebAssembly, used for zlib compression. You can create uncompressed documents, but can't read compressed ones.": "Your browser doesn't support WebAssembly, used for zlib compression. You can create uncompressed documents, but can't read compressed ones.",
|
||||||
|
"waiting on user to provide a password": "waiting on user to provide a password",
|
||||||
|
"Could not decrypt data. Did you enter a wrong password? Retry with the button at the top.": "Could not decrypt data. Did you enter a wrong password? Retry with the button at the top.",
|
||||||
|
"Retry": "Retry",
|
||||||
|
"Showing raw text…": "Showing raw text…",
|
||||||
|
"Notice:": "Notice:",
|
||||||
|
"This link will expire after %s.": "This link will expire after %s.",
|
||||||
|
"This link can only be accessed once, do not use back or refresh button in your browser.": "This link can only be accessed once, do not use back or refresh button in your browser.",
|
||||||
|
"Link:": "Link:",
|
||||||
|
"Recipient may become aware of your timezone, convert time to UTC?": "Recipient may become aware of your timezone, convert time to UTC?",
|
||||||
|
"Use Current Timezone": "Use Current Timezone",
|
||||||
|
"Convert To UTC": "Convert To UTC",
|
||||||
|
"Close": "Close",
|
||||||
|
"Encrypted note on PrivateBin": "Encrypted note on PrivateBin",
|
||||||
|
"Visit this link to see the note. Giving the URL to anyone allows them to access the note, too.": "Visit this link to see the note. Giving the URL to anyone allows them to access the note, too."
|
||||||
|
}
|
||||||
298
i18n/es.json
298
i18n/es.json
@@ -1,129 +1,138 @@
|
|||||||
{
|
{
|
||||||
"PrivateBin": "PrivateBin",
|
"PrivateBin": "PrivateBin",
|
||||||
"%s is a minimalist, open source online pastebin where the server has zero knowledge of pasted data. Data is encrypted/decrypted <i>in the browser</i> using 256 bits AES. More information on the <a href=\"https://privatebin.info/\">project page</a>.":
|
"%s is a minimalist, open source online pastebin where the server has zero knowledge of pasted data. Data is encrypted/decrypted <i>in the browser</i> using 256 bits AES. More information on the <a href=\"https://privatebin.info/\">project page</a>.": "%s es un \"pastebin\" en línea minimalista de código abierto, donde el servidor no tiene ningún conocimiento de los datos guardados. Los datos son cifrados/descifrados <i>en el navegador</i> usando 256 bits AES. Más información en la <a href=\"https://privatebin.info/\">página del proyecto</a>.",
|
||||||
"%s es un servicio de tipo \"Pastebin\" minimalista de código abierto, donde el servidor no tiene ningún conocimiento de los datos guardados. Los datos son cifrados/descifrados <i>en el navegador</i> usando 256 bits AES. Más información en la <a href=\"https://privatebin.info/\">página del proyecto</a>.",
|
"Because ignorance is bliss": "Porque la ignorancia es dicha",
|
||||||
"Because ignorance is bliss":
|
|
||||||
"Porque la ignorancia es dicha",
|
|
||||||
"en": "es",
|
"en": "es",
|
||||||
"Paste does not exist, has expired or has been deleted.":
|
"Paste does not exist, has expired or has been deleted.": "El \"paste\" no existe, ha caducado o ha sido eliminado.",
|
||||||
"El texto no existe, ha caducado o ha sido eliminado.",
|
"%s requires php %s or above to work. Sorry.": "%s requiere php %s o superior para funcionar. Lo siento.",
|
||||||
"%s requires php %s or above to work. Sorry.":
|
"%s requires configuration section [%s] to be present in configuration file.": "%s requiere que la sección de configuración [%s] esté presente en el archivo de configuración.",
|
||||||
"%s requiere php %s o superior para funcionar. Lo siento.",
|
"Please wait %d seconds between each post.": "Por favor espere %d segundos entre cada publicación.",
|
||||||
"%s requires configuration section [%s] to be present in configuration file.":
|
"Paste is limited to %s of encrypted data.": "El \"paste\" está limitado a %s de datos cifrados.",
|
||||||
"%s requiere que la sección de configuración [%s] esté presente en el archivo de configuración.",
|
"Invalid data.": "Datos inválidos.",
|
||||||
"Please wait %d seconds between each post.":
|
"You are unlucky. Try again.": "Tienes mala suerte. Inténtalo de nuevo",
|
||||||
"Por favor espere %d segundos entre cada publicación.",
|
"Error saving comment. Sorry.": "Error al guardar el comentario. Lo siento.",
|
||||||
"Paste is limited to %s of encrypted data.":
|
"Error saving paste. Sorry.": "Error al guardar el \"paste\". Lo siento",
|
||||||
"El texto está limitado a %s de datos cifrados.",
|
"Invalid paste ID.": "ID del \"paste\" inválido.",
|
||||||
"Invalid data.":
|
"Paste is not of burn-after-reading type.": "El \"paste\" no es del tipo \"destruir despues de leer\".",
|
||||||
"Datos inválidos.",
|
"Wrong deletion token. Paste was not deleted.": "Token de eliminación erróneo. El \"paste\" no fue eliminado.",
|
||||||
"You are unlucky. Try again.":
|
"Paste was properly deleted.": "El \"paste\" se ha eliminado correctamente.",
|
||||||
"Tienes mala suerte. Inténtalo de nuevo",
|
"JavaScript is required for %s to work. Sorry for the inconvenience.": "JavaScript es necesario para que %s funcione. Sentimos los inconvenientes ocasionados.",
|
||||||
"Error saving comment. Sorry.":
|
"%s requires a modern browser to work.": "%s requiere un navegador moderno para funcionar.",
|
||||||
"Error al guardar el comentario. Lo siento.",
|
"New": "Nuevo",
|
||||||
"Error saving paste. Sorry.":
|
"Send": "Enviar",
|
||||||
"Error al guardar el texto. Lo siento",
|
"Clone": "Clonar",
|
||||||
"Invalid paste ID.":
|
"Raw text": "Texto sin formato",
|
||||||
"ID del texto inválido.",
|
"Expires": "Caducar en",
|
||||||
"Paste is not of burn-after-reading type.":
|
"Burn after reading": "Destruir después de leer",
|
||||||
"El texto no es del tipo \"destruir despues de leer\".",
|
"Open discussion": "Discusión abierta",
|
||||||
"Wrong deletion token. Paste was not deleted.":
|
"Password (recommended)": "Contraseña (recomendado)",
|
||||||
"Token de eliminación erróneo. El texto no fue eliminado.",
|
"Discussion": "Discusión",
|
||||||
"Paste was properly deleted.":
|
"Toggle navigation": "Cambiar navegación",
|
||||||
"El texto se ha eliminado correctamente.",
|
"%d seconds": [
|
||||||
"JavaScript is required for %s to work.<br />Sorry for the inconvenience.":
|
"%d segundo",
|
||||||
"JavaScript es necesario para que %s funcione.<br />Sentimos los inconvenientes ocasionados.",
|
"%d segundos",
|
||||||
"%s requires a modern browser to work.":
|
"%d seconds (2nd plural)",
|
||||||
"%s requiere un navegador moderno para funcionar.",
|
"%d seconds (3rd plural)"
|
||||||
"Still using Internet Explorer? Do yourself a favor, switch to a modern browser:":
|
],
|
||||||
"¿Sigues usando Internet Explorer? Hazte un favor, cambia a un navegador moderno:",
|
"%d minutes": [
|
||||||
"New":
|
"%d minuto",
|
||||||
"Nuevo",
|
"%d minutos",
|
||||||
"Send":
|
"%d minutes (2nd plural)",
|
||||||
"Enviar",
|
"%d minutes (3rd plural)"
|
||||||
"Clone":
|
],
|
||||||
"Clonar",
|
"%d hours": [
|
||||||
"Raw text":
|
"%d hora",
|
||||||
"Texto sin formato",
|
"%d horas",
|
||||||
"Expires":
|
"%d hours (2nd plural)",
|
||||||
"Caducar en",
|
"%d hours (3rd plural)"
|
||||||
"Burn after reading":
|
],
|
||||||
"Destruir después de leer",
|
"%d days": [
|
||||||
"Open discussion":
|
"%d día",
|
||||||
"Discusión abierta",
|
"%d días",
|
||||||
"Password (recommended)":
|
"%d days (2nd plural)",
|
||||||
"Contraseña (recomendado)",
|
"%d days (3rd plural)"
|
||||||
"Discussion":
|
],
|
||||||
"Discusión",
|
"%d weeks": [
|
||||||
"Toggle navigation":
|
"%d semana",
|
||||||
"Cambiar navegación",
|
"%d semanas",
|
||||||
"%d seconds": ["%d segundo", "%d segundos"],
|
"%d weeks (2nd plural)",
|
||||||
"%d minutes": ["%d minuto", "%d minutos"],
|
"%d weeks (3rd plural)"
|
||||||
"%d hours": ["%d hora", "%d horas"],
|
],
|
||||||
"%d days": ["%d día", "%d días"],
|
"%d months": [
|
||||||
"%d weeks": ["%d semana", "%d semanas"],
|
"%d mes",
|
||||||
"%d months": ["%d mes", "%d meses"],
|
"%d meses",
|
||||||
"%d years": ["%d año", "%d años"],
|
"%d months (2nd plural)",
|
||||||
"Never":
|
"%d months (3rd plural)"
|
||||||
"Nunca",
|
],
|
||||||
"Note: This is a test service: Data may be deleted anytime. Kittens will die if you abuse this service.":
|
"%d years": [
|
||||||
"Nota: Este es un servicio de prueba. Los datos pueden ser eliminados en cualquier momento. Gatitos morirán si se abusa de este servicio.",
|
"%d año",
|
||||||
"This document will expire in %d seconds.":
|
"%d años",
|
||||||
["Este documento caducará en un segundo.", "Este documento caducará en %d segundos."],
|
"%d years (2nd plural)",
|
||||||
"This document will expire in %d minutes.":
|
"%d years (3rd plural)"
|
||||||
["Este documento caducará en un minuto.", "Este documento caducará en %d minutos."],
|
],
|
||||||
"This document will expire in %d hours.":
|
"Never": "Nunca",
|
||||||
["Este documento caducará en una hora.", "Este documento caducará en %d horas."],
|
"Note: This is a test service: Data may be deleted anytime. Kittens will die if you abuse this service.": "Nota: Este es un servicio de prueba. Los datos pueden ser eliminados en cualquier momento. Morirán gatitos si abusas de este servicio.",
|
||||||
"This document will expire in %d days.":
|
"This document will expire in %d seconds.": [
|
||||||
["Este documento caducará en un día.", "Este documento caducará en %d días."],
|
"Este documento caducará en un segundo.",
|
||||||
"This document will expire in %d months.":
|
"Este documento caducará en %d segundos.",
|
||||||
["Este documento caducará en un mes.", "Este documento caducará en %d meses."],
|
"This document will expire in %d seconds (2nd plural)",
|
||||||
"Please enter the password for this paste:":
|
"This document will expire in %d seconds (3rd plural)"
|
||||||
"Por favor ingrese la contraseña para este documento:",
|
],
|
||||||
"Could not decrypt data (Wrong key?)":
|
"This document will expire in %d minutes.": [
|
||||||
"No fue posible descifrar los datos (¿Clave errónea?)",
|
"Este documento caducará en un minuto.",
|
||||||
"Could not delete the paste, it was not stored in burn after reading mode.":
|
"Este documento caducará en %d minutos.",
|
||||||
"No fue posible eliminar el documento, no fue guardado en modo \"destruir despues de leer\".",
|
"This document will expire in %d minutes (2nd plural)",
|
||||||
"FOR YOUR EYES ONLY. Don't close this window, this message can't be displayed again.":
|
"This document will expire in %d minutes (3rd plural)"
|
||||||
"SÓLO PARA TUS OJOS. No cierre esta ventana, este mensaje no se puede volver a mostrar.",
|
],
|
||||||
"Could not decrypt comment; Wrong key?":
|
"This document will expire in %d hours.": [
|
||||||
"No se pudo descifrar el comentario; ¿Llave incorrecta?",
|
"Este documento caducará en una hora.",
|
||||||
"Reply":
|
"Este documento caducará en %d horas.",
|
||||||
"Responder",
|
"This document will expire in %d hours (2nd plural)",
|
||||||
"Anonymous":
|
"This document will expire in %d hours (3rd plural)"
|
||||||
"Anónimo",
|
],
|
||||||
"Avatar generated from IP address":
|
"This document will expire in %d days.": [
|
||||||
"Avatar generado a partir de la dirección IP",
|
"Este documento caducará en un día.",
|
||||||
"Add comment":
|
"Este documento caducará en %d días.",
|
||||||
"Añadir comentario",
|
"This document will expire in %d days (2nd plural)",
|
||||||
"Optional nickname…":
|
"This document will expire in %d days (3rd plural)"
|
||||||
"Seudónimo opcional…",
|
],
|
||||||
"Post comment":
|
"This document will expire in %d months.": [
|
||||||
"Publicar comentario",
|
"Este documento caducará en un mes.",
|
||||||
"Sending comment…":
|
"Este documento caducará en %d meses.",
|
||||||
"Enviando comentario…",
|
"This document will expire in %d months (2nd plural)",
|
||||||
"Comment posted.":
|
"This document will expire in %d months (3rd plural)"
|
||||||
"Comentario publicado.",
|
],
|
||||||
"Could not refresh display: %s":
|
"Please enter the password for this paste:": "Por favor ingrese la contraseña para este \"paste\":",
|
||||||
"No se pudo actualizar la vista: %s",
|
"Could not decrypt data (Wrong key?)": "No fue posible descifrar los datos (¿Clave errónea?)",
|
||||||
"unknown status":
|
"Could not delete the paste, it was not stored in burn after reading mode.": "No fue posible eliminar el documento, no fue guardado en modo \"destruir despues de leer\".",
|
||||||
"Estado desconocido",
|
"FOR YOUR EYES ONLY. Don't close this window, this message can't be displayed again.": "SÓLO PARA TUS OJOS. No cierres esta ventana, este mensaje no se puede volver a mostrar.",
|
||||||
"server error or not responding":
|
"Could not decrypt comment; Wrong key?": "No se pudo descifrar el comentario; ¿Llave incorrecta?",
|
||||||
"Error del servidor o el servidor no responde",
|
"Reply": "Responder",
|
||||||
"Could not post comment: %s":
|
"Anonymous": "Anónimo",
|
||||||
"No fue posible publicar comentario: %s",
|
"Avatar generated from IP address": "Avatar generado a partir de la dirección IP",
|
||||||
"Please move your mouse for more entropy…":
|
"Add comment": "Añadir comentario",
|
||||||
"Por favor, mueva el ratón para mayor entropía…",
|
"Optional nickname…": "Seudónimo opcional…",
|
||||||
"Sending paste…":
|
"Post comment": "Publicar comentario",
|
||||||
"Enviando texto…",
|
"Sending comment…": "Enviando comentario…",
|
||||||
"Your paste is <a id=\"pasteurl\" href=\"%s\">%s</a> <span id=\"copyhint\">(Hit [Ctrl]+[c] to copy)</span>":
|
"Comment posted.": "Comentario publicado.",
|
||||||
"Su texto está en <a id=\"pasteurl\" href=\"%s\">%s</a> <span id=\"copyhint\">(Presione [Ctrl]+[c] para copiar)</span>",
|
"Could not refresh display: %s": "No se pudo actualizar la vista: %s",
|
||||||
"Delete data":
|
"unknown status": "Estado desconocido",
|
||||||
"Eliminar datos",
|
"server error or not responding": "Error del servidor o el servidor no responde",
|
||||||
"Could not create paste: %s":
|
"Could not post comment: %s": "No fue posible publicar comentario: %s",
|
||||||
"No fue posible crear el archivo: %s",
|
"Sending paste…": "Enviando \"paste\"…",
|
||||||
"Cannot decrypt paste: Decryption key missing in URL (Did you use a redirector or an URL shortener which strips part of the URL?)":
|
"Your paste is <a id=\"pasteurl\" href=\"%s\">%s</a> <span id=\"copyhint\">(Hit [Ctrl]+[c] to copy)</span>": "Su texto está en <a id=\"pasteurl\" href=\"%s\">%s</a> <span id=\"copyhint\">(Presione [Ctrl]+[c] para copiar)</span>",
|
||||||
"No es posible descifrar el documento: Falta la clave de descifrado en la URL (¿Utilizó un redirector o un acortador de URL que quite parte de la URL?)",
|
"Delete data": "Eliminar datos",
|
||||||
|
"Could not create paste: %s": "No fue posible crear el archivo: %s",
|
||||||
|
"Cannot decrypt paste: Decryption key missing in URL (Did you use a redirector or an URL shortener which strips part of the URL?)": "No es posible descifrar el documento: Falta la clave de descifrado en la URL (¿Utilizó un redirector o un acortador de URL que quite parte de la URL?)",
|
||||||
|
"B": "B",
|
||||||
|
"KiB": "KiB",
|
||||||
|
"MiB": "MiB",
|
||||||
|
"GiB": "GiB",
|
||||||
|
"TiB": "TiB",
|
||||||
|
"PiB": "PiB",
|
||||||
|
"EiB": "EiB",
|
||||||
|
"ZiB": "ZiB",
|
||||||
|
"YiB": "YiB",
|
||||||
"Format": "Formato",
|
"Format": "Formato",
|
||||||
"Plain Text": "Texto sin formato",
|
"Plain Text": "Texto sin formato",
|
||||||
"Source Code": "Código fuente",
|
"Source Code": "Código fuente",
|
||||||
@@ -135,25 +144,38 @@
|
|||||||
"alternatively drag & drop a file or paste an image from the clipboard": "alternatively drag & drop a file or paste an image from the clipboard",
|
"alternatively drag & drop a file or paste an image from the clipboard": "alternatively drag & drop a file or paste an image from the clipboard",
|
||||||
"File too large, to display a preview. Please download the attachment.": "File too large, to display a preview. Please download the attachment.",
|
"File too large, to display a preview. Please download the attachment.": "File too large, to display a preview. Please download the attachment.",
|
||||||
"Remove attachment": "Remover adjunto",
|
"Remove attachment": "Remover adjunto",
|
||||||
"Your browser does not support uploading encrypted files. Please use a newer browser.":
|
"Your browser does not support uploading encrypted files. Please use a newer browser.": "Tu navegador no admite la carga de archivos cifrados. Utilice un navegador más reciente.",
|
||||||
"Tu navegador no admite la carga de archivos cifrados. Utilice un navegador más reciente.",
|
|
||||||
"Invalid attachment.": "Adjunto inválido.",
|
"Invalid attachment.": "Adjunto inválido.",
|
||||||
"Options": "Opciones",
|
"Options": "Opciones",
|
||||||
"Shorten URL": "Acortar URL",
|
"Shorten URL": "Acortar URL",
|
||||||
"Editor": "Editor",
|
"Editor": "Editor",
|
||||||
"Preview": "Previsualización",
|
"Preview": "Previsualización",
|
||||||
"%s requires the PATH to end in a \"%s\". Please update the PATH in your index.php.":
|
"%s requires the PATH to end in a \"%s\". Please update the PATH in your index.php.": "%s requiere que el PATH termine en \"%s\". Por favor, actualice el PATH en su index.php.",
|
||||||
"%s requiere que el PATH termine en \"%s\". Por favor, actualice el PATH en su index.php.",
|
"Decrypt": "Descifrar",
|
||||||
"Decrypt":
|
"Enter password": "Ingrese contraseña",
|
||||||
"Descifrar",
|
|
||||||
"Enter password":
|
|
||||||
"Ingrese contraseña",
|
|
||||||
"Loading…": "Cargando…",
|
"Loading…": "Cargando…",
|
||||||
"Decrypting paste…": "Descifrando texto…",
|
"Decrypting paste…": "Descifrando \"paste\"…",
|
||||||
"Preparing new paste…": "Preparando texto nuevo…",
|
"Preparing new paste…": "Preparando \"paste\" nuevo…",
|
||||||
"In case this message never disappears please have a look at <a href=\"https://github.com/PrivateBin/PrivateBin/wiki/FAQ#why-does-not-the-loading-message-go-away\">this FAQ for information to troubleshoot</a>.":
|
"In case this message never disappears please have a look at <a href=\"%s\">this FAQ for information to troubleshoot</a>.": "En caso de que este mensaje nunca desaparezca por favor revise <a href=\"%s\">este FAQ para obtener información para solucionar problemas</a>.",
|
||||||
"En caso de que este mensaje nunca desaparezca por favor revise <a href=\"https://github.com/PrivateBin/PrivateBin/wiki/FAQ#why-does-not-the-loading-message-go-away\">este FAQ para obtener información para solucionar problemas</a>.",
|
"+++ no paste text +++": "+++ \"paste\" sin texto +++",
|
||||||
"+++ no paste text +++": "+++ sin texto +++",
|
"Could not get paste data: %s": "No se pudieron obtener los datos: %s",
|
||||||
"Could not get paste data: %s":
|
"QR code": "Código QR",
|
||||||
"Could not get paste data: %s"
|
"This website is using an insecure HTTP connection! Please use it only for testing.": "¡Este sitio está usando una conexión HTTP insegura! Por favor úselo solo para pruebas.",
|
||||||
|
"For more information <a href=\"%s\">see this FAQ entry</a>.": "Para más información <a href=\"%s\">consulte esta entrada de las preguntas frecuentes</a>.",
|
||||||
|
"Your browser may require an HTTPS connection to support the WebCrypto API. Try <a href=\"%s\">switching to HTTPS</a>.": "Su navegador puede requerir una conexión HTTPS para soportar la API de WebCrypto. Intente <a href=\"%s\">cambiar a HTTPS</a>.",
|
||||||
|
"Your browser doesn't support WebAssembly, used for zlib compression. You can create uncompressed documents, but can't read compressed ones.": "Su navegador no es compatible con WebAssembly, que se utiliza para la compresión zlib. Puede crear documentos sin comprimir, pero no puede leer los comprimidos.",
|
||||||
|
"waiting on user to provide a password": "esperando que el usuario proporcione una contraseña",
|
||||||
|
"Could not decrypt data. Did you enter a wrong password? Retry with the button at the top.": "No se pudieron descifrar los datos. ¿Ingresó una contraseña incorrecta? Vuelva a intentarlo con el botón de la parte superior.",
|
||||||
|
"Retry": "Reintentar",
|
||||||
|
"Showing raw text…": "Mostrando texto sin formato…",
|
||||||
|
"Notice:": "Aviso:",
|
||||||
|
"This link will expire after %s.": "Este enlace expirará después de %s.",
|
||||||
|
"This link can only be accessed once, do not use back or refresh button in your browser.": "Solo se puede acceder a este enlace una vez, no use el botón Atrás o Actualizar en su navegador.",
|
||||||
|
"Link:": "Enlace:",
|
||||||
|
"Recipient may become aware of your timezone, convert time to UTC?": "El destinatario puede descubrir su zona horaria, ¿convertir la hora a UTC?",
|
||||||
|
"Use Current Timezone": "Usar Zona Horaria Actual",
|
||||||
|
"Convert To UTC": "Convertir A UTC",
|
||||||
|
"Close": "Cerrar",
|
||||||
|
"Encrypted note on PrivateBin": "Nota cifrada en PrivateBin",
|
||||||
|
"Visit this link to see the note. Giving the URL to anyone allows them to access the note, too.": "Visite este enlace para ver la nota. Dar la URL a cualquier persona también les permite acceder a la nota."
|
||||||
}
|
}
|
||||||
293
i18n/fr.json
293
i18n/fr.json
@@ -1,129 +1,129 @@
|
|||||||
{
|
{
|
||||||
"PrivateBin": "PrivateBin",
|
"PrivateBin": "PrivateBin",
|
||||||
"%s is a minimalist, open source online pastebin where the server has zero knowledge of pasted data. Data is encrypted/decrypted <i>in the browser</i> using 256 bits AES. More information on the <a href=\"https://privatebin.info/\">project page</a>.":
|
"%s is a minimalist, open source online pastebin where the server has zero knowledge of pasted data. Data is encrypted/decrypted <i>in the browser</i> using 256 bits AES. More information on the <a href=\"https://privatebin.info/\">project page</a>.": "%s est un 'pastebin' (ou gestionnaire d'extraits de texte et de code source) minimaliste et open source, dans lequel le serveur n'a aucune connaissance des données envoyées. Les données sont chiffrées/déchiffrées <i>dans le navigateur</i> par un chiffrement AES 256 bits. Plus d'informations sur <a href=\"https://privatebin.info/\">la page du projet</a>.",
|
||||||
"%s est un 'pastebin' (ou gestionnaire d'extraits de texte et de code source) minimaliste et open source, dans lequel le serveur n'a aucune connaissance des données envoyées. Les données sont chiffrées/déchiffrées <i>dans le navigateur</i> par un chiffrement AES 256 bits. Plus d'informations sur <a href=\"https://privatebin.info/\">la page du projet</a>.",
|
"Because ignorance is bliss": "Parce que l'ignorance c'est le bonheur",
|
||||||
"Because ignorance is bliss":
|
|
||||||
"Parce que l'ignorance c'est le bonheur",
|
|
||||||
"en": "fr",
|
"en": "fr",
|
||||||
"Paste does not exist, has expired or has been deleted.":
|
"Paste does not exist, has expired or has been deleted.": "Le paste n'existe pas, a expiré, ou a été supprimé.",
|
||||||
"Le paste n'existe pas, a expiré, ou a été supprimé.",
|
"%s requires php %s or above to work. Sorry.": "Désolé, %s nécessite php %s ou supérieur pour fonctionner.",
|
||||||
"%s requires php %s or above to work. Sorry.":
|
"%s requires configuration section [%s] to be present in configuration file.": "%s a besoin de la section de configuration [%s] dans le fichier de configuration pour fonctionner.",
|
||||||
"Désolé, %s nécessite php %s ou supérieur pour fonctionner.",
|
"Please wait %d seconds between each post.": "Merci d'attendre %d secondes entre chaque publication.",
|
||||||
"%s requires configuration section [%s] to be present in configuration file.":
|
"Paste is limited to %s of encrypted data.": "Le paste est limité à %s de données chiffrées.",
|
||||||
"%s a besoin de la section de configuration [%s] dans le fichier de configuration pour fonctionner.",
|
"Invalid data.": "Données invalides.",
|
||||||
"Please wait %d seconds between each post.":
|
"You are unlucky. Try again.": "Pas de chance. Essayez encore.",
|
||||||
"Merci d'attendre %d secondes entre chaque publication.",
|
"Error saving comment. Sorry.": "Erreur lors de la sauvegarde du commentaire.",
|
||||||
"Paste is limited to %s of encrypted data.":
|
"Error saving paste. Sorry.": "Erreur lors de la sauvegarde du paste. Désolé.",
|
||||||
"Le paste est limité à %s de données chiffrées.",
|
"Invalid paste ID.": "ID du paste invalide.",
|
||||||
"Invalid data.":
|
"Paste is not of burn-after-reading type.": "Le paste n'est pas de type \"Effacer après lecture\".",
|
||||||
"Données invalides.",
|
"Wrong deletion token. Paste was not deleted.": "Jeton de suppression incorrect. Le paste n'a pas été supprimé.",
|
||||||
"You are unlucky. Try again.":
|
"Paste was properly deleted.": "Le paste a été correctement supprimé.",
|
||||||
"Pas de chance. Essayez encore.",
|
"JavaScript is required for %s to work. Sorry for the inconvenience.": "JavaScript est requis pour faire fonctionner %s. Désolé pour cet inconvénient.",
|
||||||
"Error saving comment. Sorry.":
|
"%s requires a modern browser to work.": "%s nécessite un navigateur moderne pour fonctionner.",
|
||||||
"Erreur lors de la sauvegarde du commentaire.",
|
"New": "Nouveau",
|
||||||
"Error saving paste. Sorry.":
|
"Send": "Envoyer",
|
||||||
"Erreur lors de la sauvegarde du paste. Désolé.",
|
"Clone": "Cloner",
|
||||||
"Invalid paste ID.":
|
"Raw text": "Texte brut",
|
||||||
"ID du paste invalide.",
|
"Expires": "Expire",
|
||||||
"Paste is not of burn-after-reading type.":
|
"Burn after reading": "Effacer après lecture",
|
||||||
"Le paste n'est pas de type \"Effacer après lecture\".",
|
"Open discussion": "Autoriser la discussion",
|
||||||
"Wrong deletion token. Paste was not deleted.":
|
"Password (recommended)": "Mot de passe (recommandé)",
|
||||||
"Jeton de suppression incorrect. Le paste n'a pas été supprimé.",
|
"Discussion": "Discussion",
|
||||||
"Paste was properly deleted.":
|
"Toggle navigation": "Basculer la navigation",
|
||||||
"Le paste a été correctement supprimé.",
|
"%d seconds": [
|
||||||
"JavaScript is required for %s to work.<br />Sorry for the inconvenience.":
|
"%d seconde",
|
||||||
"JavaScript est requis pour faire fonctionner %s. <br />Désolé pour cet inconvénient.",
|
"%d secondes",
|
||||||
"%s requires a modern browser to work.":
|
"%d seconds (2nd plural)",
|
||||||
"%s nécessite un navigateur moderne pour fonctionner.",
|
"%d seconds (3rd plural)"
|
||||||
"Still using Internet Explorer? Do yourself a favor, switch to a modern browser:":
|
],
|
||||||
"Encore sur Internet Explorer ? Faites-vous une faveur, passez à un navigateur moderne :",
|
"%d minutes": [
|
||||||
"New":
|
"%d minute",
|
||||||
"Nouveau",
|
"%d minutes",
|
||||||
"Send":
|
"%d minutes (2nd plural)",
|
||||||
"Envoyer",
|
"%d minutes (3rd plural)"
|
||||||
"Clone":
|
],
|
||||||
"Cloner",
|
"%d hours": [
|
||||||
"Raw text":
|
"%d heure",
|
||||||
"Texte brut",
|
"%d heures",
|
||||||
"Expires":
|
"%d hours (2nd plural)",
|
||||||
"Expire",
|
"%d hours (3rd plural)"
|
||||||
"Burn after reading":
|
],
|
||||||
"Effacer après lecture",
|
"%d days": [
|
||||||
"Open discussion":
|
"%d jour",
|
||||||
"Autoriser la discussion",
|
"%d jours",
|
||||||
"Password (recommended)":
|
"%d days (2nd plural)",
|
||||||
"Mot de passe (recommandé)",
|
"%d days (3rd plural)"
|
||||||
"Discussion":
|
],
|
||||||
"Discussion",
|
"%d weeks": [
|
||||||
"Toggle navigation":
|
"%d semaine",
|
||||||
"Basculer la navigation",
|
"%d semaines",
|
||||||
"%d seconds": ["%d seconde", "%d secondes"],
|
"%d weeks (2nd plural)",
|
||||||
"%d minutes": ["%d minute", "%d minutes"],
|
"%d weeks (3rd plural)"
|
||||||
"%d hours": ["%d heure", "%d heures"],
|
],
|
||||||
"%d days": ["%d jour", "%d jours"],
|
"%d months": [
|
||||||
"%d weeks": ["%d semaine", "%d semaines"],
|
"%d mois",
|
||||||
"%d months": ["%d mois", "%d mois"],
|
"%d mois",
|
||||||
"%d years": ["%d an", "%d ans"],
|
"%d months (2nd plural)",
|
||||||
"Never":
|
"%d months (3rd plural)"
|
||||||
"Jamais",
|
],
|
||||||
"Note: This is a test service: Data may be deleted anytime. Kittens will die if you abuse this service.":
|
"%d years": [
|
||||||
"Note : Ceci est un service de test : les données peuvent être supprimées à tout moment. Des chatons mourront si vous utilisez ce service de manière abusive.",
|
"%d an",
|
||||||
"This document will expire in %d seconds.":
|
"%d ans",
|
||||||
["Ce document expirera dans %d seconde.", "Ce document expirera dans %d secondes."],
|
"%d years (2nd plural)",
|
||||||
"This document will expire in %d minutes.":
|
"%d years (3rd plural)"
|
||||||
["Ce document expirera dans %d minute.", "Ce document expirera dans %d minutes."],
|
],
|
||||||
"This document will expire in %d hours.":
|
"Never": "Jamais",
|
||||||
["Ce document expirera dans %d heure.", "Ce document expirera dans %d heures."],
|
"Note: This is a test service: Data may be deleted anytime. Kittens will die if you abuse this service.": "Note : Ceci est un service de test : les données peuvent être supprimées à tout moment. Des chatons mourront si vous utilisez ce service de manière abusive.",
|
||||||
"This document will expire in %d days.":
|
"This document will expire in %d seconds.": [
|
||||||
["Ce document expirera dans %d jour.", "Ce document expirera dans %d jours."],
|
"Ce document expirera dans %d seconde.",
|
||||||
"This document will expire in %d months.":
|
"Ce document expirera dans %d secondes.",
|
||||||
["Ce document expirera dans %d mois.", "Ce document expirera dans %d mois."],
|
"This document will expire in %d seconds (2nd plural)",
|
||||||
"Please enter the password for this paste:":
|
"This document will expire in %d seconds (3rd plural)"
|
||||||
"Entrez le mot de passe pour ce paste:",
|
],
|
||||||
"Could not decrypt data (Wrong key?)":
|
"This document will expire in %d minutes.": [
|
||||||
"Impossible de déchiffrer les données (mauvaise clé ?)",
|
"Ce document expirera dans %d minute.",
|
||||||
"Could not delete the paste, it was not stored in burn after reading mode.":
|
"Ce document expirera dans %d minutes.",
|
||||||
"Impossible de supprimer le paste, car il n'a pas été stocké en mode \"Effacer après lecture\".",
|
"This document will expire in %d minutes (2nd plural)",
|
||||||
"FOR YOUR EYES ONLY. Don't close this window, this message can't be displayed again.":
|
"This document will expire in %d minutes (3rd plural)"
|
||||||
"POUR VOS YEUX UNIQUEMENT. Ne fermez pas cette fenêtre, ce paste ne pourra plus être affiché.",
|
],
|
||||||
"Could not decrypt comment; Wrong key?":
|
"This document will expire in %d hours.": [
|
||||||
"Impossible de déchiffrer le commentaire ; mauvaise clé ?",
|
"Ce document expirera dans %d heure.",
|
||||||
"Reply":
|
"Ce document expirera dans %d heures.",
|
||||||
"Répondre",
|
"This document will expire in %d hours (2nd plural)",
|
||||||
"Anonymous":
|
"This document will expire in %d hours (3rd plural)"
|
||||||
"Anonyme",
|
],
|
||||||
"Avatar generated from IP address":
|
"This document will expire in %d days.": [
|
||||||
"Avatar généré à partir de l'adresse IP",
|
"Ce document expirera dans %d jour.",
|
||||||
"Add comment":
|
"Ce document expirera dans %d jours.",
|
||||||
"Ajouter un commentaire",
|
"This document will expire in %d days (2nd plural)",
|
||||||
"Optional nickname…":
|
"This document will expire in %d days (3rd plural)"
|
||||||
"Pseudonyme optionnel…",
|
],
|
||||||
"Post comment":
|
"This document will expire in %d months.": [
|
||||||
"Poster le commentaire",
|
"Ce document expirera dans %d mois.",
|
||||||
"Sending comment…":
|
"Ce document expirera dans %d mois.",
|
||||||
"Envoi du commentaire…",
|
"This document will expire in %d months (2nd plural)",
|
||||||
"Comment posted.":
|
"This document will expire in %d months (3rd plural)"
|
||||||
"Commentaire posté.",
|
],
|
||||||
"Could not refresh display: %s":
|
"Please enter the password for this paste:": "Entrez le mot de passe pour ce paste:",
|
||||||
"Impossible de rafraichir l'affichage : %s",
|
"Could not decrypt data (Wrong key?)": "Impossible de déchiffrer les données (mauvaise clé ?)",
|
||||||
"unknown status":
|
"Could not delete the paste, it was not stored in burn after reading mode.": "Impossible de supprimer le paste, car il n'a pas été stocké en mode \"Effacer après lecture\".",
|
||||||
"Statut inconnu",
|
"FOR YOUR EYES ONLY. Don't close this window, this message can't be displayed again.": "POUR VOS YEUX UNIQUEMENT. Ne fermez pas cette fenêtre, ce paste ne pourra plus être affiché.",
|
||||||
"server error or not responding":
|
"Could not decrypt comment; Wrong key?": "Impossible de déchiffrer le commentaire; mauvaise clé ?",
|
||||||
"Le serveur ne répond pas ou a rencontré une erreur",
|
"Reply": "Répondre",
|
||||||
"Could not post comment: %s":
|
"Anonymous": "Anonyme",
|
||||||
"Impossible de poster le commentaire : %s",
|
"Avatar generated from IP address": "Avatar généré à partir de l'adresse IP",
|
||||||
"Please move your mouse for more entropy…":
|
"Add comment": "Ajouter un commentaire",
|
||||||
"Merci de bouger votre souris pour plus d'entropie…",
|
"Optional nickname…": "Pseudonyme optionnel…",
|
||||||
"Sending paste…":
|
"Post comment": "Poster le commentaire",
|
||||||
"Envoi du paste…",
|
"Sending comment…": "Envoi du commentaire…",
|
||||||
"Your paste is <a id=\"pasteurl\" href=\"%s\">%s</a> <span id=\"copyhint\">(Hit [Ctrl]+[c] to copy)</span>":
|
"Comment posted.": "Commentaire posté.",
|
||||||
"Votre paste est disponible à l'adresse <a id=\"pasteurl\" href=\"%s\">%s</a> <span id=\"copyhint\">(Appuyez sur [Ctrl]+[c] pour copier)</span>",
|
"Could not refresh display: %s": "Impossible de rafraichir l'affichage : %s",
|
||||||
"Delete data":
|
"unknown status": "Statut inconnu",
|
||||||
"Supprimer les données du paste",
|
"server error or not responding": "Le serveur ne répond pas ou a rencontré une erreur",
|
||||||
"Could not create paste: %s":
|
"Could not post comment: %s": "Impossible de poster le commentaire : %s",
|
||||||
"Impossible de créer le paste : %s",
|
"Sending paste…": "Envoi du paste…",
|
||||||
"Cannot decrypt paste: Decryption key missing in URL (Did you use a redirector or an URL shortener which strips part of the URL?)":
|
"Your paste is <a id=\"pasteurl\" href=\"%s\">%s</a> <span id=\"copyhint\">(Hit [Ctrl]+[c] to copy)</span>": "Votre paste est disponible à l'adresse <a id=\"pasteurl\" href=\"%s\">%s</a> <span id=\"copyhint\">(Appuyez sur [Ctrl]+[c] pour copier)</span>",
|
||||||
"Impossible de déchiffrer le paste : Clé de déchiffrement manquante dans l'URL (Avez-vous utilisé un redirecteur ou un site de réduction d'URL qui supprime une partie de l'URL ?)",
|
"Delete data": "Supprimer les données du paste",
|
||||||
|
"Could not create paste: %s": "Impossible de créer le paste : %s",
|
||||||
|
"Cannot decrypt paste: Decryption key missing in URL (Did you use a redirector or an URL shortener which strips part of the URL?)": "Impossible de déchiffrer le paste : Clé de déchiffrement manquante dans l'URL (Avez-vous utilisé un redirecteur ou un site de réduction d'URL qui supprime une partie de l'URL ?)",
|
||||||
"B": "o",
|
"B": "o",
|
||||||
"KiB": "Kio",
|
"KiB": "Kio",
|
||||||
"MiB": "Mio",
|
"MiB": "Mio",
|
||||||
@@ -141,28 +141,41 @@
|
|||||||
"Cloned: '%s'": "Cloner '%s'",
|
"Cloned: '%s'": "Cloner '%s'",
|
||||||
"The cloned file '%s' was attached to this paste.": "Le fichier cloné '%s' a été attaché à ce paste.",
|
"The cloned file '%s' was attached to this paste.": "Le fichier cloné '%s' a été attaché à ce paste.",
|
||||||
"Attach a file": "Attacher un fichier ",
|
"Attach a file": "Attacher un fichier ",
|
||||||
"alternatively drag & drop a file or paste an image from the clipboard": "alternatively drag & drop a file or paste an image from the clipboard",
|
"alternatively drag & drop a file or paste an image from the clipboard": "au choix, glisser & déposer un fichier ou coller une image à partir du presse-papiers",
|
||||||
"File too large, to display a preview. Please download the attachment.": "File too large, to display a preview. Please download the attachment.",
|
"File too large, to display a preview. Please download the attachment.": "Fichier trop volumineux, pour afficher un aperçu. Veuillez télécharger la pièce jointe.",
|
||||||
"Remove attachment": "Enlever l'attachement",
|
"Remove attachment": "Enlever la pièce jointe",
|
||||||
"Your browser does not support uploading encrypted files. Please use a newer browser.":
|
"Your browser does not support uploading encrypted files. Please use a newer browser.": "Votre navigateur ne supporte pas l'envoi de fichiers chiffrés. Merci d'utiliser un navigateur plus récent.",
|
||||||
"Votre navigateur ne supporte pas l'envoi de fichiers chiffrés. Merci d'utiliser un navigateur plus récent.",
|
"Invalid attachment.": "Pièce jointe invalide.",
|
||||||
"Invalid attachment.": "Attachement invalide.",
|
|
||||||
"Options": "Options",
|
"Options": "Options",
|
||||||
"Shorten URL": "Raccourcir URL",
|
"Shorten URL": "Raccourcir URL",
|
||||||
"Editor": "Éditer",
|
"Editor": "Éditer",
|
||||||
"Preview": "Prévisualiser",
|
"Preview": "Prévisualiser",
|
||||||
"%s requires the PATH to end in a \"%s\". Please update the PATH in your index.php.":
|
"%s requires the PATH to end in a \"%s\". Please update the PATH in your index.php.": "%s requiert que le PATH se termine dans un \"%s\". Veuillez mettre à jour le PATH dans votre index.php.",
|
||||||
"%s requiert que le PATH se termine dans un \"%s\". Veuillez mettre à jour le PATH dans votre index.php.",
|
"Decrypt": "Déchiffrer",
|
||||||
"Decrypt":
|
"Enter password": "Entrez le mot de passe",
|
||||||
"Déchiffrer",
|
|
||||||
"Enter password":
|
|
||||||
"Entrez le mot de passe",
|
|
||||||
"Loading…": "Chargement…",
|
"Loading…": "Chargement…",
|
||||||
"Decrypting paste…": "Déchiffrement du paste…",
|
"Decrypting paste…": "Déchiffrement du paste…",
|
||||||
"Preparing new paste…": "Préparation du paste…",
|
"Preparing new paste…": "Préparation du paste…",
|
||||||
"In case this message never disappears please have a look at <a href=\"https://github.com/PrivateBin/PrivateBin/wiki/FAQ#why-does-not-the-loading-message-go-away\">this FAQ for information to troubleshoot</a>.":
|
"In case this message never disappears please have a look at <a href=\"%s\">this FAQ for information to troubleshoot</a>.": "Si ce message ne disparaîssait pas, jetez un oeil à <a href=\"%s\">cette FAQ pour des idées de résolution</a> (en Anglais).",
|
||||||
"Si ce message ne disparaîssait pas, jetez un oeil à <a href=\"https://github.com/PrivateBin/PrivateBin/wiki/FAQ#why-does-not-the-loading-message-go-away\">cette FAQ pour des idées de résolution</a> (en Anglais).",
|
"+++ no paste text +++": "+++ pas de texte copié +++",
|
||||||
"+++ no paste text +++": "+++ pas de paste-text +++",
|
"Could not get paste data: %s": "Impossible d'obtenir les données du paste: %s",
|
||||||
"Could not get paste data: %s":
|
"QR code": "QR code",
|
||||||
"Could not get paste data: %s"
|
"This website is using an insecure HTTP connection! Please use it only for testing.": "Ce site web utilise une connexion HTTP non sécurisée ! Veuillez l’utiliser uniquement pour des tests.",
|
||||||
|
"For more information <a href=\"%s\">see this FAQ entry</a>.": "Pour plus d'informations <a href=\"%s\">consultez cette rubrique de la FAQ</a>.",
|
||||||
|
"Your browser may require an HTTPS connection to support the WebCrypto API. Try <a href=\"%s\">switching to HTTPS</a>.": "Votre navigateur peut nécessiter une connexion HTTPS pour prendre en charge l’API WebCrypto. Essayez <a href=\"%s\">de passer en HTTPS</a>.",
|
||||||
|
"Your browser doesn't support WebAssembly, used for zlib compression. You can create uncompressed documents, but can't read compressed ones.": "Votre navigateur ne prend pas en charge WebAssembly, utilisé pour la compression zlib. Vous pouvez créer des documents non compressés, mais vous ne pouvez pas lire les documents compressés.",
|
||||||
|
"waiting on user to provide a password": "en attendant que l'utilisateur fournisse un mot de passe",
|
||||||
|
"Could not decrypt data. Did you enter a wrong password? Retry with the button at the top.": "Impossible de décrypter les données. Vous avez saisi un mot de passe incorrect ? Réessayez avec le bouton en haut.",
|
||||||
|
"Retry": "Réessayer",
|
||||||
|
"Showing raw text…": "Affichage du texte brut…",
|
||||||
|
"Notice:": "Avertissement :",
|
||||||
|
"This link will expire after %s.": "Ce lien expire après le %s.",
|
||||||
|
"This link can only be accessed once, do not use back or refresh button in your browser.": "Vous ne pouvez accéder à ce lien qu'une seule fois, n'utilisez pas le bouton précédent ou rafraîchir de votre navigateur.",
|
||||||
|
"Link:": "Lien :",
|
||||||
|
"Recipient may become aware of your timezone, convert time to UTC?": "Le destinataire peut connaître votre fuseau horaire, convertir l'heure au format UTC ?",
|
||||||
|
"Use Current Timezone": "Conserver l'actuel",
|
||||||
|
"Convert To UTC": "Convertir en UTC",
|
||||||
|
"Close": "Fermer",
|
||||||
|
"Encrypted note on PrivateBin": "Message chiffré sur PrivateBin",
|
||||||
|
"Visit this link to see the note. Giving the URL to anyone allows them to access the note, too.": "Visiter ce lien pour voir la note. Donner l'URL à une autre personne lui permet également d'accéder à la note."
|
||||||
}
|
}
|
||||||
292
i18n/hu.json
292
i18n/hu.json
@@ -1,129 +1,138 @@
|
|||||||
{
|
{
|
||||||
"PrivateBin": "PrivateBin",
|
"PrivateBin": "PrivateBin",
|
||||||
"%s is a minimalist, open source online pastebin where the server has zero knowledge of pasted data. Data is encrypted/decrypted <i>in the browser</i> using 256 bits AES. More information on the <a href=\"https://privatebin.info/\">project page</a>.":
|
"%s is a minimalist, open source online pastebin where the server has zero knowledge of pasted data. Data is encrypted/decrypted <i>in the browser</i> using 256 bits AES. More information on the <a href=\"https://privatebin.info/\">project page</a>.": "A %s egy minimalista, nyílt forráskódú adattároló szoftver, ahol a szerver semmilyen információt nem tárol a feltett adatról. Azt ugyanis a <i>böngésződ</i> segítségével titkosítja és oldja fel 256 bit hosszú titkosítási kulcsú AES-t használva. További információt a <a href=\"https://privatebin.info/\">projekt oldalán</a> találsz.",
|
||||||
"A %s egy minimalista, nyílt forráskódú adattároló szoftver, ahol a szerver semmilyen információt nem tárol a feltett adatról. Azt ugyanis a <i>böngésződ</i> segítségével titkosítja és oldja fel 256 bit hosszú titkosítási kulcsú AES-t használva. További információt a <a href=\"https://privatebin.info/\">projekt oldalán</a> találsz.",
|
"Because ignorance is bliss": "A titok egyfajta hatalom.",
|
||||||
"Because ignorance is bliss":
|
|
||||||
"A titok egyfajta hatalom.",
|
|
||||||
"en": "hu",
|
"en": "hu",
|
||||||
"Paste does not exist, has expired or has been deleted.":
|
"Paste does not exist, has expired or has been deleted.": "A bejegyzés nem létezik, lejárt vagy törölve lett.",
|
||||||
"A bejegyzés nem létezik, lejárt vagy törölve lett.",
|
"%s requires php %s or above to work. Sorry.": "Bocs, de a %s működéséhez %s vagy ezt meghaladó verziójú php-s környezet szükséges.",
|
||||||
"%s requires php %s or above to work. Sorry.":
|
"%s requires configuration section [%s] to be present in configuration file.": "A %s megfelelő működéséhez a konfigurációs fájlban a [%s] résznek léteznie kell.",
|
||||||
"Bocs, de a %s működéséhez %s vagy ezt meghaladó verziójú php-s környezet szükséges.",
|
"Please wait %d seconds between each post.": "Kérlek várj %d másodpercet két beküldés között.",
|
||||||
"%s requires configuration section [%s] to be present in configuration file.":
|
"Paste is limited to %s of encrypted data.": "A bejegyzés maximális hossza: %s",
|
||||||
"A %s megfelelő működéséhez a konfigurációs fájlban a [%s] résznek léteznie kell.",
|
"Invalid data.": "Érvénytelen adat.",
|
||||||
"Please wait %d seconds between each post.":
|
"You are unlucky. Try again.": "Peched volt, próbáld újra.",
|
||||||
"Kérlek várj %d másodpercet két beküldés között.",
|
"Error saving comment. Sorry.": "Nem sikerült menteni a hozzászólást. Bocs.",
|
||||||
"Paste is limited to %s of encrypted data.":
|
"Error saving paste. Sorry.": "Nem sikerült menteni a bejegyzést. Bocs.",
|
||||||
"A bejegyzés maximális hossza: %s",
|
"Invalid paste ID.": "Érvénytelen bejegyzés azonosító.",
|
||||||
"Invalid data.":
|
"Paste is not of burn-after-reading type.": "A bejegyzés nem semmisül meg azonnal olvasás után.",
|
||||||
"Érvénytelen adat.",
|
"Wrong deletion token. Paste was not deleted.": "Hibás törlési azonosító. A bejegyzés nem lett törölve.",
|
||||||
"You are unlucky. Try again.":
|
"Paste was properly deleted.": "A bejegyzés sikeresen törölve.",
|
||||||
"Peched volt, próbáld újra.",
|
"JavaScript is required for %s to work. Sorry for the inconvenience.": "JavaScript szükséges a %s működéséhez. Elnézést a fennakadásért.",
|
||||||
"Error saving comment. Sorry.":
|
"%s requires a modern browser to work.": "A %s működéséhez a jelenleginél újabb böngészőre van szükség.",
|
||||||
"Nem sikerült menteni a hozzászólást. Bocs.",
|
"New": "Új",
|
||||||
"Error saving paste. Sorry.":
|
"Send": "Beküldöm!",
|
||||||
"Nem sikerült menteni a bejegyzést. Bocs.",
|
"Clone": "Másol",
|
||||||
"Invalid paste ID.":
|
"Raw text": "A nyers szöveg",
|
||||||
"Érvénytelen bejegyzés azonosító.",
|
"Expires": "Lejárati idő",
|
||||||
"Paste is not of burn-after-reading type.":
|
"Burn after reading": "Törlés az első olvasás után",
|
||||||
"A bejegyzés nem semmisül meg azonnal olvasás után.",
|
"Open discussion": "Hozzászólások engedélyezése",
|
||||||
"Wrong deletion token. Paste was not deleted.":
|
"Password (recommended)": "Jelszó (ajánlott)",
|
||||||
"Hibás törlési azonosító. A bejegyzés nem lett törölve.",
|
"Discussion": "Hozzászólások",
|
||||||
"Paste was properly deleted.":
|
"Toggle navigation": "Navigáció",
|
||||||
"A bejegyzés sikeresen törölve.",
|
"%d seconds": [
|
||||||
"JavaScript is required for %s to work.<br />Sorry for the inconvenience.":
|
"%d másodperc",
|
||||||
"JavaScript szükséges a %s működéséhez. Elnézést a fennakadásért.",
|
"%d másodperc",
|
||||||
"%s requires a modern browser to work.":
|
"%d seconds (2nd plural)",
|
||||||
"A %s működéséhez a jelenleginél újabb böngészőre van szükség.",
|
"%d seconds (3rd plural)"
|
||||||
"Still using Internet Explorer? Do yourself a favor, switch to a modern browser:":
|
],
|
||||||
"Még mindig Internet Explorert használsz? Ideje váltani:",
|
"%d minutes": [
|
||||||
"New":
|
"%d perc",
|
||||||
"Új",
|
"%d perc",
|
||||||
"Send":
|
"%d minutes (2nd plural)",
|
||||||
"Beküldöm!",
|
"%d minutes (3rd plural)"
|
||||||
"Clone":
|
],
|
||||||
"Másol",
|
"%d hours": [
|
||||||
"Raw text":
|
"%d óra",
|
||||||
"A nyers szöveg",
|
"%d óra",
|
||||||
"Expires":
|
"%d hours (2nd plural)",
|
||||||
"Lejárati idő",
|
"%d hours (3rd plural)"
|
||||||
"Burn after reading":
|
],
|
||||||
"Törlés az első olvasás után",
|
"%d days": [
|
||||||
"Open discussion":
|
"%d nap",
|
||||||
"Hozzászólások engedélyezése",
|
"%d nap",
|
||||||
"Password (recommended)":
|
"%d days (2nd plural)",
|
||||||
"Jelszó (ajánlott)",
|
"%d days (3rd plural)"
|
||||||
"Discussion":
|
],
|
||||||
"Hozzászólások",
|
"%d weeks": [
|
||||||
"Toggle navigation":
|
"%d hét",
|
||||||
"Navigáció",
|
"%d hét",
|
||||||
"%d seconds": ["%d másodperc", "%d másodperc"],
|
"%d weeks (2nd plural)",
|
||||||
"%d minutes": ["%d perc", "%d perc"],
|
"%d weeks (3rd plural)"
|
||||||
"%d hours": ["%d óra", "%d óra"],
|
],
|
||||||
"%d days": ["%d nap", "%d nap"],
|
"%d months": [
|
||||||
"%d weeks": ["%d hét", "%d hét"],
|
"%d hónap",
|
||||||
"%d months": ["%d hónap", "%d hónap"],
|
"%d hónap",
|
||||||
"%d years": ["%d év", "%d év"],
|
"%d months (2nd plural)",
|
||||||
"Never":
|
"%d months (3rd plural)"
|
||||||
"Soha",
|
],
|
||||||
"Note: This is a test service: Data may be deleted anytime. Kittens will die if you abuse this service.":
|
"%d years": [
|
||||||
"Megjegyzés: ez egy teszt szolgáltatás, az adatok bármikor törlődhetnek. Ha visszaélsz vele, kiscicák bánhatják! :)",
|
"%d év",
|
||||||
"This document will expire in %d seconds.":
|
"%d év",
|
||||||
["Ez a bejegyzés %d másodperc után megsemmisül.", "Ez a bejegyzés %d másodperc múlva megsemmisül."],
|
"%d years (2nd plural)",
|
||||||
"This document will expire in %d minutes.":
|
"%d years (3rd plural)"
|
||||||
["Ez a bejegyzés %d perc után megsemmisül.", "Ez a bejegyzés %d perc múlva megsemmisül."],
|
],
|
||||||
"This document will expire in %d hours.":
|
"Never": "Soha",
|
||||||
["Ez a bejegyzés %d óra után megsemmisül.", "Ez a bejegyzés %d óra múlva megsemmisül."],
|
"Note: This is a test service: Data may be deleted anytime. Kittens will die if you abuse this service.": "Megjegyzés: ez egy teszt szolgáltatás, az adatok bármikor törlődhetnek. Ha visszaélsz vele, kiscicák bánhatják! :)",
|
||||||
"This document will expire in %d days.":
|
"This document will expire in %d seconds.": [
|
||||||
["Ez a bejegyzés %d nap után megsemmisül.", "Ez a bejegyzés %d nap múlva megsemmisül."],
|
"Ez a bejegyzés %d másodperc után megsemmisül.",
|
||||||
"This document will expire in %d months.":
|
"Ez a bejegyzés %d másodperc múlva megsemmisül.",
|
||||||
["Ez a bejegyzés %d hónap múlva megsemmisül.", "Ez a bejegyzés %d hónap múlva megsemmisül."],
|
"This document will expire in %d seconds (2nd plural)",
|
||||||
"Please enter the password for this paste:":
|
"This document will expire in %d seconds (3rd plural)"
|
||||||
"Add meg a szükséges jelszót a bejegyzés megtekintéséhez:",
|
],
|
||||||
"Could not decrypt data (Wrong key?)":
|
"This document will expire in %d minutes.": [
|
||||||
"Nem tudtuk dekódolni az adatot. Talán rossz kulcsot adtál meg?",
|
"Ez a bejegyzés %d perc után megsemmisül.",
|
||||||
"Could not delete the paste, it was not stored in burn after reading mode.":
|
"Ez a bejegyzés %d perc múlva megsemmisül.",
|
||||||
"Nem tudtuk törölni a bejegyzést, mivel az olvasás után egyből megsemmisült. Így nem is volt tárolva.",
|
"This document will expire in %d minutes (2nd plural)",
|
||||||
"FOR YOUR EYES ONLY. Don't close this window, this message can't be displayed again.":
|
"This document will expire in %d minutes (3rd plural)"
|
||||||
"EZT A BEJEGYZÉST CSAK TE LÁTHATOD!!! Ne csukd be ezt az ablakot, mivel nem tudod újra megnézni. Az ugyanis az első olvasás után rögtön megsemmisül.",
|
],
|
||||||
"Could not decrypt comment; Wrong key?":
|
"This document will expire in %d hours.": [
|
||||||
"Nem tudtuk dekódolni a hozzászólást. Talán rossz kulcsot adtál meg?",
|
"Ez a bejegyzés %d óra után megsemmisül.",
|
||||||
"Reply":
|
"Ez a bejegyzés %d óra múlva megsemmisül.",
|
||||||
"Válasz",
|
"This document will expire in %d hours (2nd plural)",
|
||||||
"Anonymous":
|
"This document will expire in %d hours (3rd plural)"
|
||||||
"Anonymous",
|
],
|
||||||
"Avatar generated from IP address":
|
"This document will expire in %d days.": [
|
||||||
"Avatar (az IP cím alapján generáljuk)",
|
"Ez a bejegyzés %d nap után megsemmisül.",
|
||||||
"Add comment":
|
"Ez a bejegyzés %d nap múlva megsemmisül.",
|
||||||
"Hozzászólok",
|
"This document will expire in %d days (2nd plural)",
|
||||||
"Optional nickname…":
|
"This document will expire in %d days (3rd plural)"
|
||||||
"Becenév (már ha meg akarod adni)",
|
],
|
||||||
"Post comment":
|
"This document will expire in %d months.": [
|
||||||
"Beküld",
|
"Ez a bejegyzés %d hónap múlva megsemmisül.",
|
||||||
"Sending comment…":
|
"Ez a bejegyzés %d hónap múlva megsemmisül.",
|
||||||
"Beküldés alatt...",
|
"This document will expire in %d months (2nd plural)",
|
||||||
"Comment posted.":
|
"This document will expire in %d months (3rd plural)"
|
||||||
"A hozzászólás beküldve.",
|
],
|
||||||
"Could not refresh display: %s":
|
"Please enter the password for this paste:": "Add meg a szükséges jelszót a bejegyzés megtekintéséhez:",
|
||||||
"Nem tudtuk frissíteni: %s",
|
"Could not decrypt data (Wrong key?)": "Nem tudtuk dekódolni az adatot. Talán rossz kulcsot adtál meg?",
|
||||||
"unknown status":
|
"Could not delete the paste, it was not stored in burn after reading mode.": "Nem tudtuk törölni a bejegyzést, mivel az olvasás után egyből megsemmisült. Így nem is volt tárolva.",
|
||||||
"Ismeretlen státusz.",
|
"FOR YOUR EYES ONLY. Don't close this window, this message can't be displayed again.": "EZT A BEJEGYZÉST CSAK TE LÁTHATOD!!! Ne csukd be ezt az ablakot, mivel nem tudod újra megnézni. Az ugyanis az első olvasás után rögtön megsemmisül.",
|
||||||
"server error or not responding":
|
"Could not decrypt comment; Wrong key?": "Nem tudtuk dekódolni a hozzászólást. Talán rossz kulcsot adtál meg?",
|
||||||
"A szerveren hiba lépett fel vagy nem válaszol.",
|
"Reply": "Válasz",
|
||||||
"Could not post comment: %s":
|
"Anonymous": "Anonymous",
|
||||||
"Nem tudtuk beküldeni a hozzászólást: %s",
|
"Avatar generated from IP address": "Avatar (az IP cím alapján generáljuk)",
|
||||||
"Please move your mouse for more entropy…":
|
"Add comment": "Hozzászólok",
|
||||||
"Nincs elég véletlenszerűség a rendszerben. Mozgasd az egered, hogy növeld az entrópiát.",
|
"Optional nickname…": "Becenév (már ha meg akarod adni)",
|
||||||
"Sending paste…":
|
"Post comment": "Beküld",
|
||||||
"Bejegyzés elküldése...",
|
"Sending comment…": "Beküldés alatt...",
|
||||||
"Your paste is <a id=\"pasteurl\" href=\"%s\">%s</a> <span id=\"copyhint\">(Hit [Ctrl]+[c] to copy)</span>":
|
"Comment posted.": "A hozzászólás beküldve.",
|
||||||
"A bejegyzésed a <a id=\"pasteurl\" href=\"%s\">%s</a> címen elérhető. <span id=\"copyhint\"> [Ctrl]+[c]-vel tudod vágólapra másolni.</span>",
|
"Could not refresh display: %s": "Nem tudtuk frissíteni: %s",
|
||||||
"Delete data":
|
"unknown status": "Ismeretlen státusz.",
|
||||||
"Adat törlése",
|
"server error or not responding": "A szerveren hiba lépett fel vagy nem válaszol.",
|
||||||
"Could not create paste: %s":
|
"Could not post comment: %s": "Nem tudtuk beküldeni a hozzászólást: %s",
|
||||||
"Nem tudtuk létrehozni a bejegyzést: %s",
|
"Sending paste…": "Bejegyzés elküldése...",
|
||||||
"Cannot decrypt paste: Decryption key missing in URL (Did you use a redirector or an URL shortener which strips part of the URL?)":
|
"Your paste is <a id=\"pasteurl\" href=\"%s\">%s</a> <span id=\"copyhint\">(Hit [Ctrl]+[c] to copy)</span>": "A bejegyzésed a <a id=\"pasteurl\" href=\"%s\">%s</a> címen elérhető. <span id=\"copyhint\"> [Ctrl]+[c]-vel tudod vágólapra másolni.</span>",
|
||||||
"Nem tudjuk dekódolni a bejegyzést: a dekódoláshoz szükséges kulcs hiányzik a címből. Talán URL rövidítőt használtál ami kivágta azt belőle?",
|
"Delete data": "Adat törlése",
|
||||||
|
"Could not create paste: %s": "Nem tudtuk létrehozni a bejegyzést: %s",
|
||||||
|
"Cannot decrypt paste: Decryption key missing in URL (Did you use a redirector or an URL shortener which strips part of the URL?)": "Nem tudjuk dekódolni a bejegyzést: a dekódoláshoz szükséges kulcs hiányzik a címből. Talán URL rövidítőt használtál ami kivágta azt belőle?",
|
||||||
|
"B": "B",
|
||||||
|
"KiB": "KiB",
|
||||||
|
"MiB": "MiB",
|
||||||
|
"GiB": "GiB",
|
||||||
|
"TiB": "TiB",
|
||||||
|
"PiB": "PiB",
|
||||||
|
"EiB": "EiB",
|
||||||
|
"ZiB": "ZiB",
|
||||||
|
"YiB": "YiB",
|
||||||
"Format": "Formátum",
|
"Format": "Formátum",
|
||||||
"Plain Text": "Egyszerű szöveg",
|
"Plain Text": "Egyszerű szöveg",
|
||||||
"Source Code": "Forráskód",
|
"Source Code": "Forráskód",
|
||||||
@@ -135,25 +144,38 @@
|
|||||||
"alternatively drag & drop a file or paste an image from the clipboard": "vagy húzz ide egy fájlt, netán illessz be egy képet a vágólapról.",
|
"alternatively drag & drop a file or paste an image from the clipboard": "vagy húzz ide egy fájlt, netán illessz be egy képet a vágólapról.",
|
||||||
"File too large, to display a preview. Please download the attachment.": "A fájl túl nagy ahhoz, hogy előnézete legyen. Töltsd le, hogy megtekinthesd.",
|
"File too large, to display a preview. Please download the attachment.": "A fájl túl nagy ahhoz, hogy előnézete legyen. Töltsd le, hogy megtekinthesd.",
|
||||||
"Remove attachment": "Csatolmány eltávolítása",
|
"Remove attachment": "Csatolmány eltávolítása",
|
||||||
"Your browser does not support uploading encrypted files. Please use a newer browser.":
|
"Your browser does not support uploading encrypted files. Please use a newer browser.": "A böngésződ nem támogatja titkosított fájlok feltöltését. Használj újabbat.",
|
||||||
"A böngésződ nem támogatja titkosított fájlok feltöltését. Használj újabbat.",
|
|
||||||
"Invalid attachment.": "Érvénytelen csatolmány.",
|
"Invalid attachment.": "Érvénytelen csatolmány.",
|
||||||
"Options": "Opciók",
|
"Options": "Opciók",
|
||||||
"Shorten URL": "URL rövidítés",
|
"Shorten URL": "URL rövidítés",
|
||||||
"Editor": "Szerkesztő felület",
|
"Editor": "Szerkesztő felület",
|
||||||
"Preview": "Előnézet",
|
"Preview": "Előnézet",
|
||||||
"%s requires the PATH to end in a \"%s\". Please update the PATH in your index.php.":
|
"%s requires the PATH to end in a \"%s\". Please update the PATH in your index.php.": "%s számára szükséges, hogy a PATH itt végződjön: \"%s\". Kérlek frissítsd a PATH értékét az index.php fájlban.",
|
||||||
"%s számára szükséges, hogy a PATH itt végződjön: \"%s\". Kérlek frissítsd a PATH értékét az index.php fájlban.",
|
"Decrypt": "Dekódolás",
|
||||||
"Decrypt":
|
"Enter password": "Jelszó",
|
||||||
"Dekódolás",
|
|
||||||
"Enter password":
|
|
||||||
"Jelszó",
|
|
||||||
"Loading…": "Folyamatban...",
|
"Loading…": "Folyamatban...",
|
||||||
"Decrypting paste…": "Bejegyzés dekódolása...",
|
"Decrypting paste…": "Bejegyzés dekódolása...",
|
||||||
"Preparing new paste…": "Új bejegyzés előkészítése...",
|
"Preparing new paste…": "Új bejegyzés előkészítése...",
|
||||||
"In case this message never disappears please have a look at <a href=\"https://github.com/PrivateBin/PrivateBin/wiki/FAQ#why-does-not-the-loading-message-go-away\">this FAQ for information to troubleshoot</a>.":
|
"In case this message never disappears please have a look at <a href=\"%s\">this FAQ for information to troubleshoot</a>.": "Abban az esetben, ha ez az üzenet mindig látható lenne, látogass el a <a href=\"%s\">Gyakran Ismételt Kérdések szekcióba a megoldásához</a>.",
|
||||||
"Abban az esetben, ha ez az üzenet mindig látható lenne, látogass el a <a href=\"https://github.com/PrivateBin/PrivateBin/wiki/FAQ#why-does-not-the-loading-message-go-away\">Gyakran Ismételt Kérdések szekcióba a megoldásához</a>.",
|
|
||||||
"+++ no paste text +++": "+++ nincs beillesztett szöveg +++",
|
"+++ no paste text +++": "+++ nincs beillesztett szöveg +++",
|
||||||
"Could not get paste data: %s":
|
"Could not get paste data: %s": "Could not get paste data: %s",
|
||||||
"Could not get paste data: %s"
|
"QR code": "QR code",
|
||||||
|
"This website is using an insecure HTTP connection! Please use it only for testing.": "This website is using an insecure HTTP connection! Please use it only for testing.",
|
||||||
|
"For more information <a href=\"%s\">see this FAQ entry</a>.": "For more information <a href=\"%s\">see this FAQ entry</a>.",
|
||||||
|
"Your browser may require an HTTPS connection to support the WebCrypto API. Try <a href=\"%s\">switching to HTTPS</a>.": "Your browser may require an HTTPS connection to support the WebCrypto API. Try <a href=\"%s\">switching to HTTPS</a>.",
|
||||||
|
"Your browser doesn't support WebAssembly, used for zlib compression. You can create uncompressed documents, but can't read compressed ones.": "Your browser doesn't support WebAssembly, used for zlib compression. You can create uncompressed documents, but can't read compressed ones.",
|
||||||
|
"waiting on user to provide a password": "waiting on user to provide a password",
|
||||||
|
"Could not decrypt data. Did you enter a wrong password? Retry with the button at the top.": "Could not decrypt data. Did you enter a wrong password? Retry with the button at the top.",
|
||||||
|
"Retry": "Retry",
|
||||||
|
"Showing raw text…": "Showing raw text…",
|
||||||
|
"Notice:": "Notice:",
|
||||||
|
"This link will expire after %s.": "This link will expire after %s.",
|
||||||
|
"This link can only be accessed once, do not use back or refresh button in your browser.": "This link can only be accessed once, do not use back or refresh button in your browser.",
|
||||||
|
"Link:": "Link:",
|
||||||
|
"Recipient may become aware of your timezone, convert time to UTC?": "Recipient may become aware of your timezone, convert time to UTC?",
|
||||||
|
"Use Current Timezone": "Use Current Timezone",
|
||||||
|
"Convert To UTC": "Convert To UTC",
|
||||||
|
"Close": "Close",
|
||||||
|
"Encrypted note on PrivateBin": "Encrypted note on PrivateBin",
|
||||||
|
"Visit this link to see the note. Giving the URL to anyone allows them to access the note, too.": "Visit this link to see the note. Giving the URL to anyone allows them to access the note, too."
|
||||||
}
|
}
|
||||||
292
i18n/it.json
292
i18n/it.json
@@ -1,129 +1,138 @@
|
|||||||
{
|
{
|
||||||
"PrivateBin": "PrivateBin",
|
"PrivateBin": "PrivateBin",
|
||||||
"%s is a minimalist, open source online pastebin where the server has zero knowledge of pasted data. Data is encrypted/decrypted <i>in the browser</i> using 256 bits AES. More information on the <a href=\"https://privatebin.info/\">project page</a>.":
|
"%s is a minimalist, open source online pastebin where the server has zero knowledge of pasted data. Data is encrypted/decrypted <i>in the browser</i> using 256 bits AES. More information on the <a href=\"https://privatebin.info/\">project page</a>.": "%s è un sistema di tipo \"Pastebin\" online, open source, minimalista. Il server non possiede alcuna conoscenza (\"Zero Knowledge\") del contenuto dei dati inviati. I dati sono cifrati/decifrati <i>nel Browser</i> con algoritmo AES a 256 Bit. Per ulteriori informazioni, vedi <a href=\"https://privatebin.info/\">Sito del progetto</a>.",
|
||||||
"%s è un sistema di tipo \"Pastebin\" online, open source, minimalista. Il server non possiede alcuna conoscenza (\"Zero Knowledge\") del contenuto dei dati inviati. I dati sono cifrati/decifrati <i>nel Browser</i> con algoritmo AES a 256 Bit. Per ulteriori informazioni, vedi <a href=\"https://privatebin.info/\">Sito del progetto</a>.",
|
"Because ignorance is bliss": "Perché l'ignoranza è una benedizione (Because ignorance is bliss)",
|
||||||
"Because ignorance is bliss":
|
|
||||||
"Perché l'ignoranza è una benedizione (Because ignorance is bliss)",
|
|
||||||
"en": "it",
|
"en": "it",
|
||||||
"Paste does not exist, has expired or has been deleted.":
|
"Paste does not exist, has expired or has been deleted.": "Questo messaggio non esiste, è scaduto o è stato cancellato.",
|
||||||
"Questo messaggio non esiste, è scaduto o è stato cancellato.",
|
"%s requires php %s or above to work. Sorry.": "%s richiede php %s o superiore per funzionare. Ci spiace.",
|
||||||
"%s requires php %s or above to work. Sorry.":
|
"%s requires configuration section [%s] to be present in configuration file.": "%s richiede la presenza della sezione [%s] nei file di configurazione.",
|
||||||
"%s richiede php %s o superiore per funzionare. Ci spiace.",
|
"Please wait %d seconds between each post.": "Attendi per favore %d secondi prima di ciascun invio.",
|
||||||
"%s requires configuration section [%s] to be present in configuration file.":
|
"Paste is limited to %s of encrypted data.": "La dimensione del messaggio è limitata a %s di dati cifrati.",
|
||||||
"%s richiede la presenza della sezione [%s] nei file di configurazione.",
|
"Invalid data.": "Dati non validi.",
|
||||||
"Please wait %d seconds between each post.":
|
"You are unlucky. Try again.": "Ritenta, sarai più fortunato.",
|
||||||
"Attendi per favore %d secondi prima di ciascun invio.",
|
"Error saving comment. Sorry.": "Errore durante il salvataggio del commento.",
|
||||||
"Paste is limited to %s of encrypted data.":
|
"Error saving paste. Sorry.": "Errore durante il salvataggio del messaggio.",
|
||||||
"La dimensione del messaggio è limitata a %s di dati cifrati.",
|
"Invalid paste ID.": "ID-Messaggio non valido.",
|
||||||
"Invalid data.":
|
"Paste is not of burn-after-reading type.": "Il messaggio non è di tipo Distruggi-dopo-lettura.",
|
||||||
"Dati non validi.",
|
"Wrong deletion token. Paste was not deleted.": "Codice cancellazione errato. Il messaggio NON è stato cancellato.",
|
||||||
"You are unlucky. Try again.":
|
"Paste was properly deleted.": "Il messaggio è stato correttamente cancellato.",
|
||||||
"Ritenta, sarai più fortunato.",
|
"JavaScript is required for %s to work. Sorry for the inconvenience.": "%s funziona solo con JavaScript attivo. Ci dispiace per l'inconveniente.",
|
||||||
"Error saving comment. Sorry.":
|
"%s requires a modern browser to work.": "%s richiede un browser moderno e aggiornato per funzionare.",
|
||||||
"Errore durante il salvataggio del commento.",
|
"New": "Nuovo",
|
||||||
"Error saving paste. Sorry.":
|
"Send": "Invia",
|
||||||
"Errore durante il salvataggio del messaggio.",
|
"Clone": "Clona",
|
||||||
"Invalid paste ID.":
|
"Raw text": "Testo Raw",
|
||||||
"ID-Messaggio non valido.",
|
"Expires": "Scade",
|
||||||
"Paste is not of burn-after-reading type.":
|
"Burn after reading": "Distruggi dopo lettura",
|
||||||
"Il messaggio non è di tipo Distruggi-dopo-lettura.",
|
"Open discussion": "Apri discussione",
|
||||||
"Wrong deletion token. Paste was not deleted.":
|
"Password (recommended)": "Password (raccomandato)",
|
||||||
"Codice cancellazione errato. Il messaggio NON è stato cancellato.",
|
"Discussion": "Discussione",
|
||||||
"Paste was properly deleted.":
|
"Toggle navigation": "Scambia Navigazione",
|
||||||
"Il messaggio è stato correttamente cancellato.",
|
"%d seconds": [
|
||||||
"JavaScript is required for %s to work.<br />Sorry for the inconvenience.":
|
"%d secondo",
|
||||||
"%s funziona solo con JavaScript attivo.<br />Ci dispiace per l'inconveniente.",
|
"%d secondi",
|
||||||
"%s requires a modern browser to work.":
|
"%d seconds (2nd plural)",
|
||||||
"%s richiede un browser moderno e aggiornato per funzionare.",
|
"%d seconds (3rd plural)"
|
||||||
"Still using Internet Explorer? Do yourself a favor, switch to a modern browser:":
|
],
|
||||||
"Usi ancora Internet Explorer? Ti consigliamo di passare ad un browser più sicuro:",
|
"%d minutes": [
|
||||||
"New":
|
"%d minuto",
|
||||||
"Nuovo",
|
"%d minuti",
|
||||||
"Send":
|
"%d minutes (2nd plural)",
|
||||||
"Invia",
|
"%d minutes (3rd plural)"
|
||||||
"Clone":
|
],
|
||||||
"Clona",
|
"%d hours": [
|
||||||
"Raw text":
|
"%d ora",
|
||||||
"Testo Raw",
|
"%d ore",
|
||||||
"Expires":
|
"%d hours (2nd plural)",
|
||||||
"Scade",
|
"%d hours (3rd plural)"
|
||||||
"Burn after reading":
|
],
|
||||||
"Distruggi dopo lettura",
|
"%d days": [
|
||||||
"Open discussion":
|
"%d giorno",
|
||||||
"Apri discussione",
|
"%d giorni",
|
||||||
"Password (recommended)":
|
"%d days (2nd plural)",
|
||||||
"Password (raccomandato)",
|
"%d days (3rd plural)"
|
||||||
"Discussion":
|
],
|
||||||
"Discussione",
|
"%d weeks": [
|
||||||
"Toggle navigation":
|
"%d settimana",
|
||||||
"Scambia Navigazione",
|
"%d settimane",
|
||||||
"%d seconds": ["%d secondo", "%d secondi"],
|
"%d weeks (2nd plural)",
|
||||||
"%d minutes": ["%d minuto", "%d minuti"],
|
"%d weeks (3rd plural)"
|
||||||
"%d hours": ["%d ora", "%d ore"],
|
],
|
||||||
"%d days": ["%d giorno", "%d giorni"],
|
"%d months": [
|
||||||
"%d weeks": ["%d settimana", "%d settimane"],
|
"%d mese",
|
||||||
"%d months": ["%d mese", "%d mesi"],
|
"%d mesi",
|
||||||
"%d years": ["%d anno", "%d anni"],
|
"%d months (2nd plural)",
|
||||||
"Never":
|
"%d months (3rd plural)"
|
||||||
"Mai",
|
],
|
||||||
"Note: This is a test service: Data may be deleted anytime. Kittens will die if you abuse this service.":
|
"%d years": [
|
||||||
"Nota: questo è un servizio di prova, i messaggi salvati possono essere cancellati in qualsiasi momento. Moriranno dei gattini se abuserai di questo servizio.",
|
"%d anno",
|
||||||
"This document will expire in %d seconds.":
|
"%d anni",
|
||||||
["Questo documento scadrà tra un secondo.", "Questo documento scadrà in %d secondi."],
|
"%d years (2nd plural)",
|
||||||
"This document will expire in %d minutes.":
|
"%d years (3rd plural)"
|
||||||
["Questo documento scadrà tra un minuto.", "Questo documento scadrà in %d minuti."],
|
],
|
||||||
"This document will expire in %d hours.":
|
"Never": "Mai",
|
||||||
["Questo documento scadrà tra un'ora.", "Questo documento scadrà in %d ore."],
|
"Note: This is a test service: Data may be deleted anytime. Kittens will die if you abuse this service.": "Nota: questo è un servizio di prova, i messaggi salvati possono essere cancellati in qualsiasi momento. Moriranno dei gattini se abuserai di questo servizio.",
|
||||||
"This document will expire in %d days.":
|
"This document will expire in %d seconds.": [
|
||||||
["Questo documento scadrà tra un giorno.", "Questo documento scadrà in %d giorni."],
|
"Questo documento scadrà tra un secondo.",
|
||||||
"This document will expire in %d months.":
|
"Questo documento scadrà in %d secondi.",
|
||||||
["Questo documento scadrà tra un mese.", "Questo documento scadrà in %d mesi."],
|
"This document will expire in %d seconds (2nd plural)",
|
||||||
"Please enter the password for this paste:":
|
"This document will expire in %d seconds (3rd plural)"
|
||||||
"Inserisci la password per questo messaggio:",
|
],
|
||||||
"Could not decrypt data (Wrong key?)":
|
"This document will expire in %d minutes.": [
|
||||||
"Non riesco a decifrari i dati (Chiave errata?)",
|
"Questo documento scadrà tra un minuto.",
|
||||||
"Could not delete the paste, it was not stored in burn after reading mode.":
|
"Questo documento scadrà in %d minuti.",
|
||||||
"Non riesco a cancellare il messaggio, non è stato salvato in modalità Distruggi-dopo-lettora.",
|
"This document will expire in %d minutes (2nd plural)",
|
||||||
"FOR YOUR EYES ONLY. Don't close this window, this message can't be displayed again.":
|
"This document will expire in %d minutes (3rd plural)"
|
||||||
"FOR YOUR EYES ONLY. Non chiudere questa finestra, il messaggio non può essere visualizzato una seconda volta.",
|
],
|
||||||
"Could not decrypt comment; Wrong key?":
|
"This document will expire in %d hours.": [
|
||||||
"Non riesco a decifrare il commento (Chiave errata?)",
|
"Questo documento scadrà tra un'ora.",
|
||||||
"Reply":
|
"Questo documento scadrà in %d ore.",
|
||||||
"Rispondi",
|
"This document will expire in %d hours (2nd plural)",
|
||||||
"Anonymous":
|
"This document will expire in %d hours (3rd plural)"
|
||||||
"Anonimo",
|
],
|
||||||
"Avatar generated from IP address":
|
"This document will expire in %d days.": [
|
||||||
"Avatar generato dall'indirizzo IP)",
|
"Questo documento scadrà tra un giorno.",
|
||||||
"Add comment":
|
"Questo documento scadrà in %d giorni.",
|
||||||
"Aggiungi un commento",
|
"This document will expire in %d days (2nd plural)",
|
||||||
"Optional nickname…":
|
"This document will expire in %d days (3rd plural)"
|
||||||
"Nickname opzionale…",
|
],
|
||||||
"Post comment":
|
"This document will expire in %d months.": [
|
||||||
"Invia commento",
|
"Questo documento scadrà tra un mese.",
|
||||||
"Sending comment…":
|
"Questo documento scadrà in %d mesi.",
|
||||||
"Commento in fase di invio…",
|
"This document will expire in %d months (2nd plural)",
|
||||||
"Comment posted.":
|
"This document will expire in %d months (3rd plural)"
|
||||||
"Commento inviato.",
|
],
|
||||||
"Could not refresh display: %s":
|
"Please enter the password for this paste:": "Inserisci la password per questo messaggio:",
|
||||||
"Non riesco ad aggiornare il display: %s",
|
"Could not decrypt data (Wrong key?)": "Non riesco a decifrari i dati (Chiave errata?)",
|
||||||
"unknown status":
|
"Could not delete the paste, it was not stored in burn after reading mode.": "Non riesco a cancellare il messaggio, non è stato salvato in modalità Distruggi-dopo-lettora.",
|
||||||
"stato sconosciuto",
|
"FOR YOUR EYES ONLY. Don't close this window, this message can't be displayed again.": "FOR YOUR EYES ONLY. Non chiudere questa finestra, il messaggio non può essere visualizzato una seconda volta.",
|
||||||
"server error or not responding":
|
"Could not decrypt comment; Wrong key?": "Non riesco a decifrare il commento (Chiave errata?)",
|
||||||
"errore o mancata risposta dal server",
|
"Reply": "Rispondi",
|
||||||
"Could not post comment: %s":
|
"Anonymous": "Anonimo",
|
||||||
"Impossibile inviare il commento: %s",
|
"Avatar generated from IP address": "Avatar generato dall'indirizzo IP)",
|
||||||
"Please move your mouse for more entropy…":
|
"Add comment": "Aggiungi un commento",
|
||||||
"Muovi il mouse in modo casuale, per generare maggior entropia…",
|
"Optional nickname…": "Nickname opzionale…",
|
||||||
"Sending paste…":
|
"Post comment": "Invia commento",
|
||||||
"Messaggio in fase di invio…",
|
"Sending comment…": "Commento in fase di invio…",
|
||||||
"Your paste is <a id=\"pasteurl\" href=\"%s\">%s</a> <span id=\"copyhint\">(Hit [Ctrl]+[c] to copy)</span>":
|
"Comment posted.": "Commento inviato.",
|
||||||
"Il tuo messaggio è qui: <a id=\"pasteurl\" href=\"%s\">%s</a> <span id=\"copyhint\">(Premi [Ctrl]+[c] (Windows) o [Cmd]+[c] (Mac) per copiare il link)</span>",
|
"Could not refresh display: %s": "Non riesco ad aggiornare il display: %s",
|
||||||
"Delete data":
|
"unknown status": "stato sconosciuto",
|
||||||
"Cancella i dati",
|
"server error or not responding": "errore o mancata risposta dal server",
|
||||||
"Could not create paste: %s":
|
"Could not post comment: %s": "Impossibile inviare il commento: %s",
|
||||||
"Non riesco a creare il messaggio: %s",
|
"Sending paste…": "Messaggio in fase di invio…",
|
||||||
"Cannot decrypt paste: Decryption key missing in URL (Did you use a redirector or an URL shortener which strips part of the URL?)":
|
"Your paste is <a id=\"pasteurl\" href=\"%s\">%s</a> <span id=\"copyhint\">(Hit [Ctrl]+[c] to copy)</span>": "Il tuo messaggio è qui: <a id=\"pasteurl\" href=\"%s\">%s</a> <span id=\"copyhint\">(Premi [Ctrl]+[c] (Windows) o [Cmd]+[c] (Mac) per copiare il link)</span>",
|
||||||
"Non riesco a decifrare il messaggio: manca la chiave di decifrazione nell'URL (La chiave è parte integrante dell'URL. Per caso hai usato un Redirector o un altro servizio che ha rimosso una parte dell'URL?)",
|
"Delete data": "Cancella i dati",
|
||||||
|
"Could not create paste: %s": "Non riesco a creare il messaggio: %s",
|
||||||
|
"Cannot decrypt paste: Decryption key missing in URL (Did you use a redirector or an URL shortener which strips part of the URL?)": "Non riesco a decifrare il messaggio: manca la chiave di decifrazione nell'URL (La chiave è parte integrante dell'URL. Per caso hai usato un Redirector o un altro servizio che ha rimosso una parte dell'URL?)",
|
||||||
|
"B": "B",
|
||||||
|
"KiB": "KiB",
|
||||||
|
"MiB": "MiB",
|
||||||
|
"GiB": "GiB",
|
||||||
|
"TiB": "TiB",
|
||||||
|
"PiB": "PiB",
|
||||||
|
"EiB": "EiB",
|
||||||
|
"ZiB": "ZiB",
|
||||||
|
"YiB": "YiB",
|
||||||
"Format": "Formato",
|
"Format": "Formato",
|
||||||
"Plain Text": "Solo Testo",
|
"Plain Text": "Solo Testo",
|
||||||
"Source Code": "Codice Sorgente",
|
"Source Code": "Codice Sorgente",
|
||||||
@@ -135,25 +144,38 @@
|
|||||||
"alternatively drag & drop a file or paste an image from the clipboard": "alternatively drag & drop a file or paste an image from the clipboard",
|
"alternatively drag & drop a file or paste an image from the clipboard": "alternatively drag & drop a file or paste an image from the clipboard",
|
||||||
"File too large, to display a preview. Please download the attachment.": "File too large, to display a preview. Please download the attachment.",
|
"File too large, to display a preview. Please download the attachment.": "File too large, to display a preview. Please download the attachment.",
|
||||||
"Remove attachment": "Rimuovi allegato",
|
"Remove attachment": "Rimuovi allegato",
|
||||||
"Your browser does not support uploading encrypted files. Please use a newer browser.":
|
"Your browser does not support uploading encrypted files. Please use a newer browser.": "Il tuo browser non supporta l'invio di file cifrati. Utilizza un browser più recente.",
|
||||||
"Il tuo browser non supporta l'invio di file cifrati. Utilizza un browser più recente.",
|
|
||||||
"Invalid attachment.": "Allegato non valido.",
|
"Invalid attachment.": "Allegato non valido.",
|
||||||
"Options": "Opzioni",
|
"Options": "Opzioni",
|
||||||
"Shorten URL": "Accorcia URL",
|
"Shorten URL": "Accorcia URL",
|
||||||
"Editor": "Editor",
|
"Editor": "Editor",
|
||||||
"Preview": "Preview",
|
"Preview": "Preview",
|
||||||
"%s requires the PATH to end in a \"%s\". Please update the PATH in your index.php.":
|
"%s requires the PATH to end in a \"%s\". Please update the PATH in your index.php.": "%s necessita che PATH termini con \"%s\". Aggiorna la variabile PATH nel tuo index.php.",
|
||||||
"%s necessita che PATH termini con \"%s\". Aggiorna la variabile PATH nel tuo index.php.",
|
"Decrypt": "Decifra",
|
||||||
"Decrypt":
|
"Enter password": "Inserisci la password",
|
||||||
"Decifra",
|
|
||||||
"Enter password":
|
|
||||||
"Inserisci la password",
|
|
||||||
"Loading…": "Carico…",
|
"Loading…": "Carico…",
|
||||||
"Decrypting paste…": "Decifro il messaggio…",
|
"Decrypting paste…": "Decifro il messaggio…",
|
||||||
"Preparing new paste…": "Preparo il nuovo messaggio…",
|
"Preparing new paste…": "Preparo il nuovo messaggio…",
|
||||||
"In case this message never disappears please have a look at <a href=\"https://github.com/PrivateBin/PrivateBin/wiki/FAQ#why-does-not-the-loading-message-go-away\">this FAQ for information to troubleshoot</a>.":
|
"In case this message never disappears please have a look at <a href=\"%s\">this FAQ for information to troubleshoot</a>.": "Nel caso questo messaggio non scompaia, controlla questa <a href=\"%s\">FAQ</a> per trovare informazioni su come risolvere il problema (in Inglese).",
|
||||||
"Nel caso questo messaggio non scompaia, controlla questa <a href=\"https://github.com/PrivateBin/PrivateBin/wiki/FAQ#why-does-not-the-loading-message-go-away\">FAQ</a> per trovare informazioni su come risolvere il problema (in Inglese).",
|
|
||||||
"+++ no paste text +++": "+++ nessun testo nel messaggio +++",
|
"+++ no paste text +++": "+++ nessun testo nel messaggio +++",
|
||||||
"Could not get paste data: %s":
|
"Could not get paste data: %s": "Could not get paste data: %s",
|
||||||
"Could not get paste data: %s"
|
"QR code": "QR code",
|
||||||
|
"This website is using an insecure HTTP connection! Please use it only for testing.": "This website is using an insecure HTTP connection! Please use it only for testing.",
|
||||||
|
"For more information <a href=\"%s\">see this FAQ entry</a>.": "For more information <a href=\"%s\">see this FAQ entry</a>.",
|
||||||
|
"Your browser may require an HTTPS connection to support the WebCrypto API. Try <a href=\"%s\">switching to HTTPS</a>.": "Your browser may require an HTTPS connection to support the WebCrypto API. Try <a href=\"%s\">switching to HTTPS</a>.",
|
||||||
|
"Your browser doesn't support WebAssembly, used for zlib compression. You can create uncompressed documents, but can't read compressed ones.": "Your browser doesn't support WebAssembly, used for zlib compression. You can create uncompressed documents, but can't read compressed ones.",
|
||||||
|
"waiting on user to provide a password": "waiting on user to provide a password",
|
||||||
|
"Could not decrypt data. Did you enter a wrong password? Retry with the button at the top.": "Could not decrypt data. Did you enter a wrong password? Retry with the button at the top.",
|
||||||
|
"Retry": "Retry",
|
||||||
|
"Showing raw text…": "Showing raw text…",
|
||||||
|
"Notice:": "Notice:",
|
||||||
|
"This link will expire after %s.": "This link will expire after %s.",
|
||||||
|
"This link can only be accessed once, do not use back or refresh button in your browser.": "This link can only be accessed once, do not use back or refresh button in your browser.",
|
||||||
|
"Link:": "Link:",
|
||||||
|
"Recipient may become aware of your timezone, convert time to UTC?": "Recipient may become aware of your timezone, convert time to UTC?",
|
||||||
|
"Use Current Timezone": "Use Current Timezone",
|
||||||
|
"Convert To UTC": "Convert To UTC",
|
||||||
|
"Close": "Close",
|
||||||
|
"Encrypted note on PrivateBin": "Encrypted note on PrivateBin",
|
||||||
|
"Visit this link to see the note. Giving the URL to anyone allows them to access the note, too.": "Visit this link to see the note. Giving the URL to anyone allows them to access the note, too."
|
||||||
}
|
}
|
||||||
292
i18n/nl.json
292
i18n/nl.json
@@ -1,129 +1,138 @@
|
|||||||
{
|
{
|
||||||
"PrivateBin": "PrivateBin",
|
"PrivateBin": "PrivateBin",
|
||||||
"%s is a minimalist, open source online pastebin where the server has zero knowledge of pasted data. Data is encrypted/decrypted <i>in the browser</i> using 256 bits AES. More information on the <a href=\"https://privatebin.info/\">project page</a>.":
|
"%s is a minimalist, open source online pastebin where the server has zero knowledge of pasted data. Data is encrypted/decrypted <i>in the browser</i> using 256 bits AES. More information on the <a href=\"https://privatebin.info/\">project page</a>.": "%s is een minimalistische, open source online pastebin waarbij de server geen kennis heeft van de geplakte gegevens. Gegevens worden gecodeerd/gedecodeerd <i> in de browser </i> met behulp van 256 bits AES. Meer informatie is te vinden op de <a href=\"https://privatebin.info/\">projectpagina</a>.",
|
||||||
"%s is een minimalistische, open source online pastebin waarbij de server geen kennis heeft van de geplakte gegevens. Gegevens worden gecodeerd/gedecodeerd <i> in de browser </i> met behulp van 256 bits AES. Meer informatie is te vinden op de <a href=\"https://privatebin.info/\">projectpagina</a>.",
|
"Because ignorance is bliss": "Onwetendheid is een zegen",
|
||||||
"Because ignorance is bliss":
|
|
||||||
"Onwetendheid is een zegen",
|
|
||||||
"en": "nl",
|
"en": "nl",
|
||||||
"Paste does not exist, has expired or has been deleted.":
|
"Paste does not exist, has expired or has been deleted.": "Geplakte tekst bestaat niet, is verlopen of verwijderd.",
|
||||||
"Geplakte tekst bestaat niet, is verlopen of verwijderd.",
|
"%s requires php %s or above to work. Sorry.": "%s vereist PHP %s of hoger om te kunnen werken. Sorry",
|
||||||
"%s requires php %s or above to work. Sorry.":
|
"%s requires configuration section [%s] to be present in configuration file.": "%s vereist dat de configuratiesectie [%s] aanwezig is in het configuratiebestand",
|
||||||
"%s vereist PHP %s of hoger om te kunnen werken. Sorry",
|
"Please wait %d seconds between each post.": "Alstublieft %d seconden wachten tussen elk bericht",
|
||||||
"%s requires configuration section [%s] to be present in configuration file.":
|
"Paste is limited to %s of encrypted data.": "Geplakte tekst is beperkt tot %s aan versleutelde gegevens",
|
||||||
"%s vereist dat de configuratiesectie [%s] aanwezig is in het configuratiebestand",
|
"Invalid data.": "Ongeldige gegevens",
|
||||||
"Please wait %d seconds between each post.":
|
"You are unlucky. Try again.": "Helaas. Probeer het nog eens",
|
||||||
"Alstublieft %d seconden wachten tussen elk bericht",
|
"Error saving comment. Sorry.": "Fout bij het opslaan van het commentaar. Sorry",
|
||||||
"Paste is limited to %s of encrypted data.":
|
"Error saving paste. Sorry.": "Fout bij het opslaan van de geplakte tekst. Sorry.",
|
||||||
"Geplakte tekst is beperkt tot %s aan versleutelde gegevens",
|
"Invalid paste ID.": "Ongeldige ID.",
|
||||||
"Invalid data.":
|
"Paste is not of burn-after-reading type.": "Geplakte tekst is geen 'vernietig na lezen' type",
|
||||||
"Ongeldige gegevens",
|
"Wrong deletion token. Paste was not deleted.": "Foutieve verwijdercode. Geplakte tekst is niet verwijderd.",
|
||||||
"You are unlucky. Try again.":
|
"Paste was properly deleted.": "Geplakte tekst is correct verwijderd.",
|
||||||
"Helaas. Probeer het nog eens",
|
"JavaScript is required for %s to work. Sorry for the inconvenience.": "JavaScript vereist om %s te laten werken. Sorry voor het ongemak.",
|
||||||
"Error saving comment. Sorry.":
|
"%s requires a modern browser to work.": "%s vereist een moderne browser om te kunnen werken ",
|
||||||
"Fout bij het opslaan van het commentaar. Sorry",
|
"New": "Nieuw",
|
||||||
"Error saving paste. Sorry.":
|
"Send": "Verzenden",
|
||||||
"Fout bij het opslaan van de geplakte tekst. Sorry.",
|
"Clone": "Clonen",
|
||||||
"Invalid paste ID.":
|
"Raw text": "Onbewerkte tekst",
|
||||||
"Ongeldige ID.",
|
"Expires": "Verloopt",
|
||||||
"Paste is not of burn-after-reading type.":
|
"Burn after reading": "Vernietig na lezen",
|
||||||
"Geplakte tekst is geen 'vernietig na lezen' type",
|
"Open discussion": "Open discussie",
|
||||||
"Wrong deletion token. Paste was not deleted.":
|
"Password (recommended)": "Wachtwoord (aanbevolen)",
|
||||||
"Foutieve verwijdercode. Geplakte tekst is niet verwijderd.",
|
"Discussion": "Discussie",
|
||||||
"Paste was properly deleted.":
|
"Toggle navigation": "Navigatie openen/sluiten",
|
||||||
"Geplakte tekst is correct verwijderd.",
|
"%d seconds": [
|
||||||
"JavaScript is required for %s to work.<br />Sorry for the inconvenience.":
|
"%d second",
|
||||||
"JavaScript vereist om %s te laten werken.<br />Sorry voor het ongemak.",
|
"%d seconden",
|
||||||
"%s requires a modern browser to work.":
|
"%d seconds (2nd plural)",
|
||||||
"%s vereist een moderne browser om te kunnen werken ",
|
"%d seconds (3rd plural)"
|
||||||
"Still using Internet Explorer? Do yourself a favor, switch to a modern browser:":
|
],
|
||||||
"Gebruik je nog steeds Internet explorer? Doe jezelf een plezier en maak gebruik van een moderne browser:",
|
"%d minutes": [
|
||||||
"New":
|
"%d minuut",
|
||||||
"Nieuw",
|
"%d minuten",
|
||||||
"Send":
|
"%d minutes (2nd plural)",
|
||||||
"Verzenden",
|
"%d minutes (3rd plural)"
|
||||||
"Clone":
|
],
|
||||||
"Clonen",
|
"%d hours": [
|
||||||
"Raw text":
|
"%d uur",
|
||||||
"Onbewerkte tekst",
|
"%d hours (1st plural)",
|
||||||
"Expires":
|
"%d hours (2nd plural)",
|
||||||
"Verloopt",
|
"%d hours (3rd plural)"
|
||||||
"Burn after reading":
|
],
|
||||||
"Vernietig na lezen",
|
"%d days": [
|
||||||
"Open discussion":
|
"%d dag",
|
||||||
"Open discussie",
|
"%d dagen",
|
||||||
"Password (recommended)":
|
"%d days (2nd plural)",
|
||||||
"Wachtwoord (aanbevolen)",
|
"%d days (3rd plural)"
|
||||||
"Discussion":
|
],
|
||||||
"Discussie",
|
"%d weeks": [
|
||||||
"Toggle navigation":
|
"%d week",
|
||||||
"Navigatie openen/sluiten",
|
"%d weken",
|
||||||
"%d seconds": ["%d second", "%d seconden"],
|
"%d weeks (2nd plural)",
|
||||||
"%d minutes": ["%d minuut", "%d minuten"],
|
"%d weeks (3rd plural)"
|
||||||
"%d hours": ["%d uur"],
|
],
|
||||||
"%d days": ["%d dag", "%d dagen"],
|
"%d months": [
|
||||||
"%d weeks": ["%d week", "%d weken"],
|
"%d maand",
|
||||||
"%d months": ["%d maand", "%d maanden"],
|
"%d maanden",
|
||||||
"%d years": ["%d jaar"],
|
"%d months (2nd plural)",
|
||||||
"Never":
|
"%d months (3rd plural)"
|
||||||
"Nooit",
|
],
|
||||||
"Note: This is a test service: Data may be deleted anytime. Kittens will die if you abuse this service.":
|
"%d years": [
|
||||||
"Opmerking: Dit is een testservice: Gegevens kunnen op elk gegeven moment verwijderd worden.",
|
"%d jaar",
|
||||||
"This document will expire in %d seconds.":
|
"%d years (1st plural)",
|
||||||
["Dit document verloopt over %d second.", "Dit document verloopt over %d seconden."],
|
"%d years (2nd plural)",
|
||||||
"This document will expire in %d minutes.":
|
"%d years (3rd plural)"
|
||||||
["Dit document verloopt over %d minuut.", "Dit document verloopt over %d minuten"],
|
],
|
||||||
"This document will expire in %d hours.":
|
"Never": "Nooit",
|
||||||
["Dit document verloopt over %d uur."],
|
"Note: This is a test service: Data may be deleted anytime. Kittens will die if you abuse this service.": "Opmerking: Dit is een testservice: Gegevens kunnen op elk gegeven moment verwijderd worden.",
|
||||||
"This document will expire in %d days.":
|
"This document will expire in %d seconds.": [
|
||||||
["Dit document verloopt over %d dag.", "Dit document verloopt over %d dagen."],
|
"Dit document verloopt over %d second.",
|
||||||
"This document will expire in %d months.":
|
"Dit document verloopt over %d seconden.",
|
||||||
["Dit document verloopt over %d maand.", "Dit document verloopt over %d maanden."],
|
"This document will expire in %d seconds (2nd plural)",
|
||||||
"Please enter the password for this paste:":
|
"This document will expire in %d seconds (3rd plural)"
|
||||||
"Voer het wachtwoord in voor deze geplakte tekst:",
|
],
|
||||||
"Could not decrypt data (Wrong key?)":
|
"This document will expire in %d minutes.": [
|
||||||
"Kon de gegevens niet decoderen (verkeerde sleutel?)",
|
"Dit document verloopt over %d minuut.",
|
||||||
"Could not delete the paste, it was not stored in burn after reading mode.":
|
"Dit document verloopt over %d minuten",
|
||||||
"Verwijderen van de geplakte tekst niet mogelijk, deze werd niet opgeslagen in 'vernietig na lezen' modus.",
|
"This document will expire in %d minutes (2nd plural)",
|
||||||
"FOR YOUR EYES ONLY. Don't close this window, this message can't be displayed again.":
|
"This document will expire in %d minutes (3rd plural)"
|
||||||
"FOR YOUR EYES ONLY. Sluit dit venster niet, dit bericht kan niet opnieuw worden weergegeven.",
|
],
|
||||||
"Could not decrypt comment; Wrong key?":
|
"This document will expire in %d hours.": [
|
||||||
"Kon het commentaar niet decoderen; Verkeerde sleutel?",
|
"Dit document verloopt over %d uur.",
|
||||||
"Reply":
|
"This document will expire in %d hours (1st plural)",
|
||||||
"Beantwoorden",
|
"This document will expire in %d hours (2nd plural)",
|
||||||
"Anonymous":
|
"This document will expire in %d hours (3rd plural)"
|
||||||
"Anoniem",
|
],
|
||||||
"Avatar generated from IP address":
|
"This document will expire in %d days.": [
|
||||||
"Anonieme avatar (van het IP adres)",
|
"Dit document verloopt over %d dag.",
|
||||||
"Add comment":
|
"Dit document verloopt over %d dagen.",
|
||||||
"Commentaar toevoegen",
|
"This document will expire in %d days (2nd plural)",
|
||||||
"Optional nickname…":
|
"This document will expire in %d days (3rd plural)"
|
||||||
"Optionele bijnaam…",
|
],
|
||||||
"Post comment":
|
"This document will expire in %d months.": [
|
||||||
"Plaats een commentaar",
|
"Dit document verloopt over %d maand.",
|
||||||
"Sending comment…":
|
"Dit document verloopt over %d maanden.",
|
||||||
"Commentaar verzenden…",
|
"This document will expire in %d months (2nd plural)",
|
||||||
"Comment posted.":
|
"This document will expire in %d months (3rd plural)"
|
||||||
"Commentaar geplaatst.",
|
],
|
||||||
"Could not refresh display: %s":
|
"Please enter the password for this paste:": "Voer het wachtwoord in voor deze geplakte tekst:",
|
||||||
"Kon de weergave niet vernieuwen: %s",
|
"Could not decrypt data (Wrong key?)": "Kon de gegevens niet decoderen (verkeerde sleutel?)",
|
||||||
"unknown status":
|
"Could not delete the paste, it was not stored in burn after reading mode.": "Verwijderen van de geplakte tekst niet mogelijk, deze werd niet opgeslagen in 'vernietig na lezen' modus.",
|
||||||
"Onbekende status",
|
"FOR YOUR EYES ONLY. Don't close this window, this message can't be displayed again.": "FOR YOUR EYES ONLY. Sluit dit venster niet, dit bericht kan niet opnieuw worden weergegeven.",
|
||||||
"server error or not responding":
|
"Could not decrypt comment; Wrong key?": "Kon het commentaar niet decoderen; Verkeerde sleutel?",
|
||||||
"Serverfout of server reageert niet",
|
"Reply": "Beantwoorden",
|
||||||
"Could not post comment: %s":
|
"Anonymous": "Anoniem",
|
||||||
"Kon het commentaar niet plaatsen: %s",
|
"Avatar generated from IP address": "Anonieme avatar (van het IP adres)",
|
||||||
"Please move your mouse for more entropy…":
|
"Add comment": "Commentaar toevoegen",
|
||||||
"Aub uw muis bewegen voor meer entropie…",
|
"Optional nickname…": "Optionele bijnaam…",
|
||||||
"Sending paste…":
|
"Post comment": "Plaats een commentaar",
|
||||||
"Geplakte tekst verzenden…",
|
"Sending comment…": "Commentaar verzenden…",
|
||||||
"Your paste is <a id=\"pasteurl\" href=\"%s\">%s</a> <span id=\"copyhint\">(Hit [Ctrl]+[c] to copy)</span>":
|
"Comment posted.": "Commentaar geplaatst.",
|
||||||
"Uw geplakte tekst is <a id=\"pasteurl\" href=\"%s\">%s</a> <span id=\"copyhint\">(Druk [Ctrl]+[c] om te kopiëren)</span>",
|
"Could not refresh display: %s": "Kon de weergave niet vernieuwen: %s",
|
||||||
"Delete data":
|
"unknown status": "Onbekende status",
|
||||||
"Gegevens wissen",
|
"server error or not responding": "Serverfout of server reageert niet",
|
||||||
"Could not create paste: %s":
|
"Could not post comment: %s": "Kon het commentaar niet plaatsen: %s",
|
||||||
"Kon de geplakte tekst niet aanmaken: %s",
|
"Sending paste…": "Geplakte tekst verzenden…",
|
||||||
"Cannot decrypt paste: Decryption key missing in URL (Did you use a redirector or an URL shortener which strips part of the URL?)":
|
"Your paste is <a id=\"pasteurl\" href=\"%s\">%s</a> <span id=\"copyhint\">(Hit [Ctrl]+[c] to copy)</span>": "Uw geplakte tekst is <a id=\"pasteurl\" href=\"%s\">%s</a> <span id=\"copyhint\">(Druk [Ctrl]+[c] om te kopiëren)</span>",
|
||||||
"Kon de geplakte tekst niet decoderen: Decoderingssleutel ontbreekt in URL (Hebt u een redirector of een URL-verkorter gebruikt die een deel van de URL verwijdert?)",
|
"Delete data": "Gegevens wissen",
|
||||||
|
"Could not create paste: %s": "Kon de geplakte tekst niet aanmaken: %s",
|
||||||
|
"Cannot decrypt paste: Decryption key missing in URL (Did you use a redirector or an URL shortener which strips part of the URL?)": "Kon de geplakte tekst niet decoderen: Decoderingssleutel ontbreekt in URL (Hebt u een redirector of een URL-verkorter gebruikt die een deel van de URL verwijdert?)",
|
||||||
|
"B": "B",
|
||||||
|
"KiB": "KiB",
|
||||||
|
"MiB": "MiB",
|
||||||
|
"GiB": "GiB",
|
||||||
|
"TiB": "TiB",
|
||||||
|
"PiB": "PiB",
|
||||||
|
"EiB": "EiB",
|
||||||
|
"ZiB": "ZiB",
|
||||||
|
"YiB": "YiB",
|
||||||
"Format": "Formaat",
|
"Format": "Formaat",
|
||||||
"Plain Text": "Platte tekst",
|
"Plain Text": "Platte tekst",
|
||||||
"Source Code": "Broncode",
|
"Source Code": "Broncode",
|
||||||
@@ -135,25 +144,38 @@
|
|||||||
"alternatively drag & drop a file or paste an image from the clipboard": "U kunt ook een bestand slepen en neerzetten of een afbeelding plakken van het klembord",
|
"alternatively drag & drop a file or paste an image from the clipboard": "U kunt ook een bestand slepen en neerzetten of een afbeelding plakken van het klembord",
|
||||||
"File too large, to display a preview. Please download the attachment.": "Het bestand is te groot om voorbeeld weer te geven. Aub de bijlage downloaden",
|
"File too large, to display a preview. Please download the attachment.": "Het bestand is te groot om voorbeeld weer te geven. Aub de bijlage downloaden",
|
||||||
"Remove attachment": "Bijlage verwijderen",
|
"Remove attachment": "Bijlage verwijderen",
|
||||||
"Your browser does not support uploading encrypted files. Please use a newer browser.":
|
"Your browser does not support uploading encrypted files. Please use a newer browser.": "Uw browser biedt geen ondersteuning voor het uploaden van gecodeerde bestanden. Gebruik alstublieft een nieuwere browser",
|
||||||
"Uw browser biedt geen ondersteuning voor het uploaden van gecodeerde bestanden. Gebruik alstublieft een nieuwere browser",
|
|
||||||
"Invalid attachment.": "Ongeldige bijlage",
|
"Invalid attachment.": "Ongeldige bijlage",
|
||||||
"Options": "Opties",
|
"Options": "Opties",
|
||||||
"Shorten URL": "URL verkorten",
|
"Shorten URL": "URL verkorten",
|
||||||
"Editor": "Editor",
|
"Editor": "Editor",
|
||||||
"Preview": "Preview",
|
"Preview": "Preview",
|
||||||
"%s requires the PATH to end in a \"%s\". Please update the PATH in your index.php.":
|
"%s requires the PATH to end in a \"%s\". Please update the PATH in your index.php.": "%s vereist dat het PATH eindigt in een '%s'. Aub het PATH updaten in uw index.php.",
|
||||||
"%s vereist dat het PATH eindigt in een '%s'. Aub het PATH updaten in uw index.php.",
|
"Decrypt": "Decoderen",
|
||||||
"Decrypt":
|
"Enter password": "Voer het wachtwoord in",
|
||||||
"Decoderen",
|
|
||||||
"Enter password":
|
|
||||||
"Voer het wachtwoord in",
|
|
||||||
"Loading…": "Laden…",
|
"Loading…": "Laden…",
|
||||||
"Decrypting paste…": "Geplakte tekst decoderen…",
|
"Decrypting paste…": "Geplakte tekst decoderen…",
|
||||||
"Preparing new paste…": "Nieuwe geplakte tekst voorbereiden…",
|
"Preparing new paste…": "Nieuwe geplakte tekst voorbereiden…",
|
||||||
"In case this message never disappears please have a look at <a href=\"https://github.com/PrivateBin/PrivateBin/wiki/FAQ#why-does-not-the-loading-message-go-away\">this FAQ for information to troubleshoot</a>.":
|
"In case this message never disappears please have a look at <a href=\"%s\">this FAQ for information to troubleshoot</a>.": "In het geval dat dit bericht nooit verdwijnt, kijkt u dan eens naar <a href=\"%s\"> veelgestelde vragen voor informatie over het oplossen van problemen </a>.",
|
||||||
"In het geval dat dit bericht nooit verdwijnt, kijkt u dan eens naar <a href=\"https://github.com/PrivateBin/PrivateBin/wiki/FAQ#why-does-not-the-loading-message-go-away\"> veelgestelde vragen voor informatie over het oplossen van problemen </a>.",
|
|
||||||
"+++ no paste text +++": "+++ geen geplakte tekst +++",
|
"+++ no paste text +++": "+++ geen geplakte tekst +++",
|
||||||
"Could not get paste data: %s":
|
"Could not get paste data: %s": "Could not get paste data: %s",
|
||||||
"Could not get paste data: %s"
|
"QR code": "QR code",
|
||||||
|
"This website is using an insecure HTTP connection! Please use it only for testing.": "This website is using an insecure HTTP connection! Please use it only for testing.",
|
||||||
|
"For more information <a href=\"%s\">see this FAQ entry</a>.": "For more information <a href=\"%s\">see this FAQ entry</a>.",
|
||||||
|
"Your browser may require an HTTPS connection to support the WebCrypto API. Try <a href=\"%s\">switching to HTTPS</a>.": "Your browser may require an HTTPS connection to support the WebCrypto API. Try <a href=\"%s\">switching to HTTPS</a>.",
|
||||||
|
"Your browser doesn't support WebAssembly, used for zlib compression. You can create uncompressed documents, but can't read compressed ones.": "Your browser doesn't support WebAssembly, used for zlib compression. You can create uncompressed documents, but can't read compressed ones.",
|
||||||
|
"waiting on user to provide a password": "waiting on user to provide a password",
|
||||||
|
"Could not decrypt data. Did you enter a wrong password? Retry with the button at the top.": "Could not decrypt data. Did you enter a wrong password? Retry with the button at the top.",
|
||||||
|
"Retry": "Retry",
|
||||||
|
"Showing raw text…": "Showing raw text…",
|
||||||
|
"Notice:": "Notice:",
|
||||||
|
"This link will expire after %s.": "This link will expire after %s.",
|
||||||
|
"This link can only be accessed once, do not use back or refresh button in your browser.": "This link can only be accessed once, do not use back or refresh button in your browser.",
|
||||||
|
"Link:": "Link:",
|
||||||
|
"Recipient may become aware of your timezone, convert time to UTC?": "Recipient may become aware of your timezone, convert time to UTC?",
|
||||||
|
"Use Current Timezone": "Use Current Timezone",
|
||||||
|
"Convert To UTC": "Convert To UTC",
|
||||||
|
"Close": "Close",
|
||||||
|
"Encrypted note on PrivateBin": "Encrypted note on PrivateBin",
|
||||||
|
"Visit this link to see the note. Giving the URL to anyone allows them to access the note, too.": "Visit this link to see the note. Giving the URL to anyone allows them to access the note, too."
|
||||||
}
|
}
|
||||||
292
i18n/no.json
292
i18n/no.json
@@ -1,129 +1,138 @@
|
|||||||
{
|
{
|
||||||
"PrivateBin": "PrivateBin",
|
"PrivateBin": "PrivateBin",
|
||||||
"%s is a minimalist, open source online pastebin where the server has zero knowledge of pasted data. Data is encrypted/decrypted <i>in the browser</i> using 256 bits AES. More information on the <a href=\"https://privatebin.info/\">project page</a>.":
|
"%s is a minimalist, open source online pastebin where the server has zero knowledge of pasted data. Data is encrypted/decrypted <i>in the browser</i> using 256 bits AES. More information on the <a href=\"https://privatebin.info/\">project page</a>.": "%s er en minimalistisk, åpen kildekode, elektronisk tilgjengelig pastebin hvor serveren ikke har kunnskap om dataene som limes inn. Dataene krypteres/dekrypteres <i>i nettleseren</i> ved hjelp av 256 bits AES. Mer informasjon om prosjektet på <a href=\"https://privatebin.info/\">prosjektsiden</a>.",
|
||||||
"%s er en minimalistisk, åpen kildekode, elektronisk tilgjengelig pastebin hvor serveren ikke har kunnskap om dataene som limes inn. Dataene krypteres/dekrypteres <i>i nettleseren</i> ved hjelp av 256 bits AES. Mer informasjon om prosjektet på <a href=\"https://privatebin.info/\">prosjektsiden</a>.",
|
"Because ignorance is bliss": "Fordi uvitenhet er lykke",
|
||||||
"Because ignorance is bliss":
|
|
||||||
"Fordi uvitenhet er lykke",
|
|
||||||
"en": "no",
|
"en": "no",
|
||||||
"Paste does not exist, has expired or has been deleted.":
|
"Paste does not exist, has expired or has been deleted.": "Innlegget eksisterer ikke, er utløpt eller har blitt slettet.",
|
||||||
"Innlegget eksisterer ikke, er utløpt eller har blitt slettet.",
|
"%s requires php %s or above to work. Sorry.": "Beklager, %s krever php %s eller nyere for å kjøre.",
|
||||||
"%s requires php %s or above to work. Sorry.":
|
"%s requires configuration section [%s] to be present in configuration file.": "%s krever konfigurasjonsdel [%s] å være til stede i konfigurasjonsfilen .",
|
||||||
"Beklager, %s krever php %s eller nyere for å kjøre.",
|
"Please wait %d seconds between each post.": "Vennligst vent %d sekunder mellom hvert innlegg.",
|
||||||
"%s requires configuration section [%s] to be present in configuration file.":
|
"Paste is limited to %s of encrypted data.": "Innlegg er begrenset til %s av kryptert data.",
|
||||||
"%s krever konfigurasjonsdel [%s] å være til stede i konfigurasjonsfilen .",
|
"Invalid data.": "Ugyldige data.",
|
||||||
"Please wait %d seconds between each post.":
|
"You are unlucky. Try again.": "Du er uheldig. Prøv igjen.",
|
||||||
"Vennligst vent %d sekunder mellom hvert innlegg.",
|
"Error saving comment. Sorry.": "Beklager, det oppstod en feil ved lagring kommentar.",
|
||||||
"Paste is limited to %s of encrypted data.":
|
"Error saving paste. Sorry.": "Beklager, det oppstod en feil ved lagring innlegg.",
|
||||||
"Innlegg er begrenset til %s av kryptert data.",
|
"Invalid paste ID.": "Feil innlegg ID.",
|
||||||
"Invalid data.":
|
"Paste is not of burn-after-reading type.": "Innlegg er ikke av typen slett etter lesing.",
|
||||||
"Ugyldige data.",
|
"Wrong deletion token. Paste was not deleted.": "Feil slettingsnøkkel. Innlegg ble ikke fjernet.",
|
||||||
"You are unlucky. Try again.":
|
"Paste was properly deleted.": "Innlegget er slettet.",
|
||||||
"Du er uheldig. Prøv igjen.",
|
"JavaScript is required for %s to work. Sorry for the inconvenience.": "Javascript kreves for at %s skal fungere. Beklager.",
|
||||||
"Error saving comment. Sorry.":
|
"%s requires a modern browser to work.": "%s krever en moderne nettleser for å fungere.",
|
||||||
"Beklager, det oppstod en feil ved lagring kommentar.",
|
"New": "Ny",
|
||||||
"Error saving paste. Sorry.":
|
"Send": "Send",
|
||||||
"Beklager, det oppstod en feil ved lagring innlegg.",
|
"Clone": "Kopier",
|
||||||
"Invalid paste ID.":
|
"Raw text": "Ren tekst",
|
||||||
"Feil innlegg ID.",
|
"Expires": "Utgår",
|
||||||
"Paste is not of burn-after-reading type.":
|
"Burn after reading": "Slett etter lesing",
|
||||||
"Innlegg er ikke av typen slett etter lesing.",
|
"Open discussion": "Åpen diskusjon",
|
||||||
"Wrong deletion token. Paste was not deleted.":
|
"Password (recommended)": "Passord (anbefalt)",
|
||||||
"Feil slettingsnøkkel. Innlegg ble ikke fjernet.",
|
"Discussion": "Diskusjon",
|
||||||
"Paste was properly deleted.":
|
"Toggle navigation": "Veksle navigasjon",
|
||||||
"Innlegget er slettet.",
|
"%d seconds": [
|
||||||
"JavaScript is required for %s to work.<br />Sorry for the inconvenience.":
|
"%d sekund",
|
||||||
"Javascript kreves for at %s skal fungere<br />Beklager.",
|
"%d sekunder",
|
||||||
"%s requires a modern browser to work.":
|
"%d seconds (2nd plural)",
|
||||||
"%s krever en moderne nettleser for å fungere.",
|
"%d seconds (3rd plural)"
|
||||||
"Still using Internet Explorer? Do yourself a favor, switch to a modern browser:":
|
],
|
||||||
"Fortsatt bruker av Internet Explorer? Gjør deg selv en tjeneste og bytt til en moderne nettleser:",
|
"%d minutes": [
|
||||||
"New":
|
"%d minutt",
|
||||||
"Ny",
|
"%d minutter",
|
||||||
"Send":
|
"%d minutes (2nd plural)",
|
||||||
"Send",
|
"%d minutes (3rd plural)"
|
||||||
"Clone":
|
],
|
||||||
"Kopier",
|
"%d hours": [
|
||||||
"Raw text":
|
"%d time",
|
||||||
"Ren tekst",
|
"%d timer",
|
||||||
"Expires":
|
"%d hours (2nd plural)",
|
||||||
"Utgår",
|
"%d hours (3rd plural)"
|
||||||
"Burn after reading":
|
],
|
||||||
"Slett etter lesing",
|
"%d days": [
|
||||||
"Open discussion":
|
"%d dag",
|
||||||
"Åpen diskusjon",
|
"%d dager",
|
||||||
"Password (recommended)":
|
"%d days (2nd plural)",
|
||||||
"Passord (anbefalt)",
|
"%d days (3rd plural)"
|
||||||
"Discussion":
|
],
|
||||||
"Diskusjon",
|
"%d weeks": [
|
||||||
"Toggle navigation":
|
"%d uke",
|
||||||
"Veksle navigasjon",
|
"%d uker",
|
||||||
"%d seconds": ["%d sekund", "%d sekunder"],
|
"%d weeks (2nd plural)",
|
||||||
"%d minutes": ["%d minutt", "%d minutter"],
|
"%d weeks (3rd plural)"
|
||||||
"%d hours": ["%d time", "%d timer"],
|
],
|
||||||
"%d days": ["%d dag", "%d dager"],
|
"%d months": [
|
||||||
"%d weeks": ["%d uke", "%d uker"],
|
"%d måned",
|
||||||
"%d months": ["%d måned", "%d måneder"],
|
"%d måneder",
|
||||||
"%d years": ["%d år", "%d år"],
|
"%d months (2nd plural)",
|
||||||
"Never":
|
"%d months (3rd plural)"
|
||||||
"Aldri",
|
],
|
||||||
"Note: This is a test service: Data may be deleted anytime. Kittens will die if you abuse this service.":
|
"%d years": [
|
||||||
"Merk: Dette er en test tjeneste: Data kan slettes når som helst. Kattunger vil dø hvis du misbruker denne tjenesten.",
|
"%d år",
|
||||||
"This document will expire in %d seconds.":
|
"%d år",
|
||||||
["Dette dokumentet vil utløpe om %d sekund.", "Dette dokumentet vil utløpe om %d sekunder."],
|
"%d years (2nd plural)",
|
||||||
"This document will expire in %d minutes.":
|
"%d years (3rd plural)"
|
||||||
["Dette dokumentet vil utløpe om %d minutt.", "Dette dokumentet vil utløpe om %d minutter."],
|
],
|
||||||
"This document will expire in %d hours.":
|
"Never": "Aldri",
|
||||||
["Dette dokumentet vil utløpe om %d time.", "Dette dokumentet vil utløpe om %d timer."],
|
"Note: This is a test service: Data may be deleted anytime. Kittens will die if you abuse this service.": "Merk: Dette er en test tjeneste: Data kan slettes når som helst. Kattunger vil dø hvis du misbruker denne tjenesten.",
|
||||||
"This document will expire in %d days.":
|
"This document will expire in %d seconds.": [
|
||||||
["Dette dokumentet vil utløpe om %d dag.", "Dette dokumentet vil utløpe om %d dager."],
|
"Dette dokumentet vil utløpe om %d sekund.",
|
||||||
"This document will expire in %d months.":
|
"Dette dokumentet vil utløpe om %d sekunder.",
|
||||||
["Dette dokumentet vil utløpe om %d måned.", "Dette dokumentet vil utløpe om %d måneder."],
|
"This document will expire in %d seconds (2nd plural)",
|
||||||
"Please enter the password for this paste:":
|
"This document will expire in %d seconds (3rd plural)"
|
||||||
"Vennligst skriv inn passordet for dette innlegget:",
|
],
|
||||||
"Could not decrypt data (Wrong key?)":
|
"This document will expire in %d minutes.": [
|
||||||
"Kunne ikke dekryptere data (Feil nøkkel?)",
|
"Dette dokumentet vil utløpe om %d minutt.",
|
||||||
"Could not delete the paste, it was not stored in burn after reading mode.":
|
"Dette dokumentet vil utløpe om %d minutter.",
|
||||||
"Kan ikke slette innlegget, det ble ikke lagret som 'slett etter les' type.",
|
"This document will expire in %d minutes (2nd plural)",
|
||||||
"FOR YOUR EYES ONLY. Don't close this window, this message can't be displayed again.":
|
"This document will expire in %d minutes (3rd plural)"
|
||||||
"KUN FOR DINE ØYNE. Ikke lukk dette vinduet, denne meldingen kan ikke bli vist igjen.",
|
],
|
||||||
"Could not decrypt comment; Wrong key?":
|
"This document will expire in %d hours.": [
|
||||||
"Kan ikke dekryptere kommentar; Feil nøkkel?",
|
"Dette dokumentet vil utløpe om %d time.",
|
||||||
"Reply":
|
"Dette dokumentet vil utløpe om %d timer.",
|
||||||
"Svar",
|
"This document will expire in %d hours (2nd plural)",
|
||||||
"Anonymous":
|
"This document will expire in %d hours (3rd plural)"
|
||||||
"Anonym",
|
],
|
||||||
"Avatar generated from IP address":
|
"This document will expire in %d days.": [
|
||||||
"Anonym avatar generert med data fra IP adressen)",
|
"Dette dokumentet vil utløpe om %d dag.",
|
||||||
"Add comment":
|
"Dette dokumentet vil utløpe om %d dager.",
|
||||||
"Legg til kommentar",
|
"This document will expire in %d days (2nd plural)",
|
||||||
"Optional nickname…":
|
"This document will expire in %d days (3rd plural)"
|
||||||
"Valgfritt kallenavn…",
|
],
|
||||||
"Post comment":
|
"This document will expire in %d months.": [
|
||||||
"Send kommentar",
|
"Dette dokumentet vil utløpe om %d måned.",
|
||||||
"Sending comment…":
|
"Dette dokumentet vil utløpe om %d måneder.",
|
||||||
"Sender Kommentar…",
|
"This document will expire in %d months (2nd plural)",
|
||||||
"Comment posted.":
|
"This document will expire in %d months (3rd plural)"
|
||||||
"Kommentar sendt.",
|
],
|
||||||
"Could not refresh display: %s":
|
"Please enter the password for this paste:": "Vennligst skriv inn passordet for dette innlegget:",
|
||||||
"Kunne ikke oppdatere bildet: %s",
|
"Could not decrypt data (Wrong key?)": "Kunne ikke dekryptere data (Feil nøkkel?)",
|
||||||
"unknown status":
|
"Could not delete the paste, it was not stored in burn after reading mode.": "Kan ikke slette innlegget, det ble ikke lagret som 'slett etter les' type.",
|
||||||
"ukjent status",
|
"FOR YOUR EYES ONLY. Don't close this window, this message can't be displayed again.": "KUN FOR DINE ØYNE. Ikke lukk dette vinduet, denne meldingen kan ikke bli vist igjen.",
|
||||||
"server error or not responding":
|
"Could not decrypt comment; Wrong key?": "Kan ikke dekryptere kommentar; Feil nøkkel?",
|
||||||
"tjener feilet eller svarer ikke",
|
"Reply": "Svar",
|
||||||
"Could not post comment: %s":
|
"Anonymous": "Anonym",
|
||||||
"Kunne ikke sende kommentar: %s",
|
"Avatar generated from IP address": "Anonym avatar generert med data fra IP adressen)",
|
||||||
"Please move your mouse for more entropy…":
|
"Add comment": "Legg til kommentar",
|
||||||
"Flytt musen for mer entropi…",
|
"Optional nickname…": "Valgfritt kallenavn…",
|
||||||
"Sending paste…":
|
"Post comment": "Send kommentar",
|
||||||
"Sender innlegg…",
|
"Sending comment…": "Sender Kommentar…",
|
||||||
"Your paste is <a id=\"pasteurl\" href=\"%s\">%s</a> <span id=\"copyhint\">(Hit [Ctrl]+[c] to copy)</span>":
|
"Comment posted.": "Kommentar sendt.",
|
||||||
"Ditt innlegg er <a id=\"pasteurl\" href=\"%s\">%s</a> <span id=\"copyhint\">(Trykk [Ctrl]+[c] for å kopiere)</span>",
|
"Could not refresh display: %s": "Kunne ikke oppdatere bildet: %s",
|
||||||
"Delete data":
|
"unknown status": "ukjent status",
|
||||||
"Slett data",
|
"server error or not responding": "tjener feilet eller svarer ikke",
|
||||||
"Could not create paste: %s":
|
"Could not post comment: %s": "Kunne ikke sende kommentar: %s",
|
||||||
"Kunne ikke opprette innlegg: %s",
|
"Sending paste…": "Sender innlegg…",
|
||||||
"Cannot decrypt paste: Decryption key missing in URL (Did you use a redirector or an URL shortener which strips part of the URL?)":
|
"Your paste is <a id=\"pasteurl\" href=\"%s\">%s</a> <span id=\"copyhint\">(Hit [Ctrl]+[c] to copy)</span>": "Ditt innlegg er <a id=\"pasteurl\" href=\"%s\">%s</a> <span id=\"copyhint\">(Trykk [Ctrl]+[c] for å kopiere)</span>",
|
||||||
"Kan ikke dekryptere innlegg: Dekrypteringsnøkkelen mangler i adressen (Har du bruket en redirector eller en URL forkorter som fjerner en del av addressen?)",
|
"Delete data": "Slett data",
|
||||||
|
"Could not create paste: %s": "Kunne ikke opprette innlegg: %s",
|
||||||
|
"Cannot decrypt paste: Decryption key missing in URL (Did you use a redirector or an URL shortener which strips part of the URL?)": "Kan ikke dekryptere innlegg: Dekrypteringsnøkkelen mangler i adressen (Har du bruket en redirector eller en URL forkorter som fjerner en del av addressen?)",
|
||||||
|
"B": "B",
|
||||||
|
"KiB": "KiB",
|
||||||
|
"MiB": "MiB",
|
||||||
|
"GiB": "GiB",
|
||||||
|
"TiB": "TiB",
|
||||||
|
"PiB": "PiB",
|
||||||
|
"EiB": "EiB",
|
||||||
|
"ZiB": "ZiB",
|
||||||
|
"YiB": "YiB",
|
||||||
"Format": "Format",
|
"Format": "Format",
|
||||||
"Plain Text": "Ren Tekst",
|
"Plain Text": "Ren Tekst",
|
||||||
"Source Code": "Kildekode",
|
"Source Code": "Kildekode",
|
||||||
@@ -135,25 +144,38 @@
|
|||||||
"alternatively drag & drop a file or paste an image from the clipboard": "alternatively drag & drop a file or paste an image from the clipboard",
|
"alternatively drag & drop a file or paste an image from the clipboard": "alternatively drag & drop a file or paste an image from the clipboard",
|
||||||
"File too large, to display a preview. Please download the attachment.": "File too large, to display a preview. Please download the attachment.",
|
"File too large, to display a preview. Please download the attachment.": "File too large, to display a preview. Please download the attachment.",
|
||||||
"Remove attachment": "Slett vedlegg",
|
"Remove attachment": "Slett vedlegg",
|
||||||
"Your browser does not support uploading encrypted files. Please use a newer browser.":
|
"Your browser does not support uploading encrypted files. Please use a newer browser.": "Nettleseren din støtter ikke å laste opp krypterte filer. Vennligst bruk en nyere nettleser.",
|
||||||
"Nettleseren din støtter ikke å laste opp krypterte filer. Vennligst bruk en nyere nettleser.",
|
|
||||||
"Invalid attachment.": "Ugyldig vedlegg.",
|
"Invalid attachment.": "Ugyldig vedlegg.",
|
||||||
"Options": "Alternativer",
|
"Options": "Alternativer",
|
||||||
"Shorten URL": "Adresse forkorter",
|
"Shorten URL": "Adresse forkorter",
|
||||||
"Editor": "Rediger",
|
"Editor": "Rediger",
|
||||||
"Preview": "Forhåndsvis",
|
"Preview": "Forhåndsvis",
|
||||||
"%s requires the PATH to end in a \"%s\". Please update the PATH in your index.php.":
|
"%s requires the PATH to end in a \"%s\". Please update the PATH in your index.php.": "%s krever at PATH ender på \"%s\". Vennligst oppdater PATH i index.php.",
|
||||||
"%s krever at PATH ender på \"%s\". Vennligst oppdater PATH i index.php.",
|
"Decrypt": "Dekrypter",
|
||||||
"Decrypt":
|
"Enter password": "Skriv inn passord",
|
||||||
"Dekrypter",
|
|
||||||
"Enter password":
|
|
||||||
"Skriv inn passord",
|
|
||||||
"Loading…": "Laster…",
|
"Loading…": "Laster…",
|
||||||
"Decrypting paste…": "Dekrypterer innlegg…",
|
"Decrypting paste…": "Dekrypterer innlegg…",
|
||||||
"Preparing new paste…": "Klargjør nytt innlegg…",
|
"Preparing new paste…": "Klargjør nytt innlegg…",
|
||||||
"In case this message never disappears please have a look at <a href=\"https://github.com/PrivateBin/PrivateBin/wiki/FAQ#why-does-not-the-loading-message-go-away\">this FAQ for information to troubleshoot</a>.":
|
"In case this message never disappears please have a look at <a href=\"%s\">this FAQ for information to troubleshoot</a>.": "Hvis denne meldingen ikke forsvinner kan du ta en titt på siden med <a href=\"%s\">ofte stilte spørsmål</a> for informasjon om feilsøking.",
|
||||||
"Hvis denne meldingen ikke forsvinner kan du ta en titt på siden med <a href=\"https://github.com/PrivateBin/PrivateBin/wiki/FAQ#why-does-not-the-loading-message-go-away\">ofte stilte spørsmål</a> for informasjon om feilsøking.",
|
|
||||||
"+++ no paste text +++": "+++ ingen innleggstekst +++",
|
"+++ no paste text +++": "+++ ingen innleggstekst +++",
|
||||||
"Could not get paste data: %s":
|
"Could not get paste data: %s": "Kunne ikke hente utklippsdata: %s",
|
||||||
"Could not get paste data: %s"
|
"QR code": "QR kode",
|
||||||
|
"This website is using an insecure HTTP connection! Please use it only for testing.": "Denne websiden bruker usikker HTTP tilkobling! Bruk den kun for testing.",
|
||||||
|
"For more information <a href=\"%s\">see this FAQ entry</a>.": "For mer informasjon <a href=\"%s\">se ofte stilte spørsmål</a>.",
|
||||||
|
"Your browser may require an HTTPS connection to support the WebCrypto API. Try <a href=\"%s\">switching to HTTPS</a>.": "Din nettleser har behov for HTTPS tilkobling for å støtte WebCrypto biblioteket. Prøv å <a href=\"%s\">bytt til HTTPS</a>.",
|
||||||
|
"Your browser doesn't support WebAssembly, used for zlib compression. You can create uncompressed documents, but can't read compressed ones.": "Nettleseren din støtter ikke WebAssembly som brukes for zlib komprimering. Du kan lage ukomprimerte dokumenter, men du kan ikke lese komprimerte.",
|
||||||
|
"waiting on user to provide a password": "venter på at bruker skal skrive passord",
|
||||||
|
"Could not decrypt data. Did you enter a wrong password? Retry with the button at the top.": "Kunne ikke dekryptere data. Har du tastet riktig pssord? Prøv igjen med knappen på toppen.",
|
||||||
|
"Retry": "Prøv igjen",
|
||||||
|
"Showing raw text…": "Viser rå-tekst…",
|
||||||
|
"Notice:": "Notat:",
|
||||||
|
"This link will expire after %s.": "Denne lenken vil bli inaktiv etter %s.",
|
||||||
|
"This link can only be accessed once, do not use back or refresh button in your browser.": "Denne addressen kan kun bli besøkt en gang, ikke trykk på tilbake eller oppdater knappene i nettleseren.",
|
||||||
|
"Link:": "Lenke:",
|
||||||
|
"Recipient may become aware of your timezone, convert time to UTC?": "Mottaker kan bli kjent med din tidssone, ønsker du å konvertere til UTC?",
|
||||||
|
"Use Current Timezone": "Bruk gjeldende tidssone",
|
||||||
|
"Convert To UTC": "Konverter til UTC",
|
||||||
|
"Close": "Steng",
|
||||||
|
"Encrypted note on PrivateBin": "Kryptert notat på PrivateBin",
|
||||||
|
"Visit this link to see the note. Giving the URL to anyone allows them to access the note, too.": "Besøk denne lenken for å se notatet. Hvis lenken deles med andre, vil de også kunne se notatet."
|
||||||
}
|
}
|
||||||
283
i18n/oc.json
283
i18n/oc.json
@@ -1,129 +1,129 @@
|
|||||||
{
|
{
|
||||||
"PrivateBin": "PrivateBin",
|
"PrivateBin": "PrivateBin",
|
||||||
"%s is a minimalist, open source online pastebin where the server has zero knowledge of pasted data. Data is encrypted/decrypted <i>in the browser</i> using 256 bits AES. More information on the <a href=\"https://privatebin.info/\">project page</a>.":
|
"%s is a minimalist, open source online pastebin where the server has zero knowledge of pasted data. Data is encrypted/decrypted <i>in the browser</i> using 256 bits AES. More information on the <a href=\"https://privatebin.info/\">project page</a>.": "%s es un 'pastebin' (o gestionari d’extrachs de tèxte e còdi font) minimalista e open source, dins lo qual lo servidor a pas cap de coneissença de las donadas mandadas. Las donadas son chifradas/deschifradas <i>dins lo navigator</i> per un chiframent AES 256 bits. Mai informacions sus <a href=\"https://privatebin.info/\">la pagina del projècte</a>.",
|
||||||
"%s es un 'pastebin' (o gestionari d’extrachs de tèxte e còdi font) minimalista e open source, dins lo qual lo servidor a pas cap de coneissença de las donadas mandadas. Las donadas son chifradas/deschifradas <i>dins lo navigator</i> per un chiframent AES 256 bits. Mai informacions sus <a href=\"https://privatebin.info/\">la pagina del projècte</a>.",
|
"Because ignorance is bliss": "Perque lo bonaür es l’ignorància",
|
||||||
"Because ignorance is bliss":
|
|
||||||
"Perque lo bonaür es l’ignorància",
|
|
||||||
"en": "oc",
|
"en": "oc",
|
||||||
"Paste does not exist, has expired or has been deleted.":
|
"Paste does not exist, has expired or has been deleted.": "Lo tèxte existís pas, a expirat, o es estat suprimit.",
|
||||||
"Lo tèxte existís pas, a expirat, o es estat suprimit.",
|
"%s requires php %s or above to work. Sorry.": "O planhèm, %s necessita php %s o superior per foncionar.",
|
||||||
"%s requires php %s or above to work. Sorry.":
|
"%s requires configuration section [%s] to be present in configuration file.": "%s fa besonh de la seccion de configuracion [%s] dins lo fichièr de configuracion per foncionar.",
|
||||||
"O planhèm, %s necessita php %s o superior per foncionar.",
|
"Please wait %d seconds between each post.": "Mercés d'esperar %d segondas entre cada publicacion.",
|
||||||
"%s requires configuration section [%s] to be present in configuration file.":
|
"Paste is limited to %s of encrypted data.": "Lo tèxte es limitat a %s de donadas chifradas.",
|
||||||
"%s fa besonh de la seccion de configuracion [%s] dins lo fichièr de configuracion per foncionar.",
|
"Invalid data.": "Donadas invalidas.",
|
||||||
"Please wait %d seconds between each post.":
|
"You are unlucky. Try again.": "Pas cap de fortuna. Tornatz ensajar.",
|
||||||
"Mercés d'esperar %d segondas entre cada publicacion.",
|
"Error saving comment. Sorry.": "Error al moment de salvagardar lo comentari. O planhèm.",
|
||||||
"Paste is limited to %s of encrypted data.":
|
"Error saving paste. Sorry.": "Error al moment de salvagardar lo tèxte. O planhèm.",
|
||||||
"Lo tèxte es limitat a %s de donadas chifradas.",
|
"Invalid paste ID.": "ID del tèxte invalid.",
|
||||||
"Invalid data.":
|
"Paste is not of burn-after-reading type.": "Lo tèxte es pas del tip \"Escafar aprèp lectura\".",
|
||||||
"Donadas invalidas.",
|
"Wrong deletion token. Paste was not deleted.": "Geton de supression incorrècte. Lo tèxte es pas estat suprimit.",
|
||||||
"You are unlucky. Try again.":
|
"Paste was properly deleted.": "Lo tèxte es estat corrèctament suprimit.",
|
||||||
"Pas cap de fortuna. Tornatz ensajar.",
|
"JavaScript is required for %s to work. Sorry for the inconvenience.": "JavaScript es requesit per far foncionar %s. O planhèm per l’inconvenient.",
|
||||||
"Error saving comment. Sorry.":
|
"%s requires a modern browser to work.": "%s necessita un navigator modèrn per foncionar.",
|
||||||
"Error al moment de salvagardar lo comentari. O planhèm.",
|
"New": "Nòu",
|
||||||
"Error saving paste. Sorry.":
|
"Send": "Mandar",
|
||||||
"Error al moment de salvagardar lo tèxte. O planhèm.",
|
"Clone": "Clonar",
|
||||||
"Invalid paste ID.":
|
"Raw text": "Tèxte brut",
|
||||||
"ID del tèxte invalid.",
|
"Expires": "Expira",
|
||||||
"Paste is not of burn-after-reading type.":
|
"Burn after reading": "Escafar aprèp lectura",
|
||||||
"Lo tèxte es pas del tip \"Escafar aprèp lectura\".",
|
"Open discussion": "Autorizar la discussion",
|
||||||
"Wrong deletion token. Paste was not deleted.":
|
"Password (recommended)": "Senhal (recomandat)",
|
||||||
"Geton de supression incorrècte. Lo tèxte es pas estat suprimit.",
|
"Discussion": "Discussion",
|
||||||
"Paste was properly deleted.":
|
"Toggle navigation": "Virar la navigacion",
|
||||||
"Lo tèxte es estat correctament suprimit.",
|
"%d seconds": [
|
||||||
"JavaScript is required for %s to work.<br />Sorry for the inconvenience.":
|
"%d segonda",
|
||||||
"JavaScript es requesit per far foncionar %s. <br />O planhèm per l’inconvenient.",
|
"%d segondas",
|
||||||
"%s requires a modern browser to work.":
|
"%d seconds (2nd plural)",
|
||||||
"%s necessita un navigator modèrn per foncionar.",
|
"%d seconds (3rd plural)"
|
||||||
"Still using Internet Explorer? Do yourself a favor, switch to a modern browser:":
|
],
|
||||||
"Encora sus Internet Explorer ? Fasètz-vos una favor, passatz a un navigator modèrn :",
|
"%d minutes": [
|
||||||
"New":
|
"%d minuta",
|
||||||
"Nòu",
|
"%d minutas",
|
||||||
"Send":
|
"%d minutes (2nd plural)",
|
||||||
"Mandar",
|
"%d minutes (3rd plural)"
|
||||||
"Clone":
|
],
|
||||||
"Clonar",
|
"%d hours": [
|
||||||
"Raw text":
|
"%d ora",
|
||||||
"Tèxte brut",
|
"%d oras",
|
||||||
"Expires":
|
"%d hours (2nd plural)",
|
||||||
"Expira",
|
"%d hours (3rd plural)"
|
||||||
"Burn after reading":
|
],
|
||||||
"Escafar aprèp lectura",
|
"%d days": [
|
||||||
"Open discussion":
|
"%d jorn",
|
||||||
"Autorizar la discussion",
|
"%d jorns",
|
||||||
"Password (recommended)":
|
"%d days (2nd plural)",
|
||||||
"Senhal (recomandat)",
|
"%d days (3rd plural)"
|
||||||
"Discussion":
|
],
|
||||||
"Discussion",
|
"%d weeks": [
|
||||||
"Toggle navigation":
|
"%d setmana",
|
||||||
"Virar la navigacion",
|
"%d setmanas",
|
||||||
"%d seconds": ["%d segonda", "%d segondas"],
|
"%d weeks (2nd plural)",
|
||||||
"%d minutes": ["%d minuta", "%d minutas"],
|
"%d weeks (3rd plural)"
|
||||||
"%d hours": ["%d ora", "%d oras"],
|
],
|
||||||
"%d days": ["%d jorn", "%d jorns"],
|
"%d months": [
|
||||||
"%d weeks": ["%d setmana", "%d setmanas"],
|
"%d mes",
|
||||||
"%d months": ["%d mes", "%d meses"],
|
"%d meses",
|
||||||
"%d years": ["%d an", "%d ans"],
|
"%d months (2nd plural)",
|
||||||
"Never":
|
"%d months (3rd plural)"
|
||||||
"Jamai",
|
],
|
||||||
"Note: This is a test service: Data may be deleted anytime. Kittens will die if you abuse this service.":
|
"%d years": [
|
||||||
"Nota : Aquò es un servici d’espròva : las donadas pòdon èsser suprimidas a cada moment. De catons moriràn s’abusatz d’aqueste servici.",
|
"%d an",
|
||||||
"This document will expire in %d seconds.":
|
"%d ans",
|
||||||
["Ce document expirera dans %d seconde.", "Aqueste document expirarà dins %d segondas."],
|
"%d years (2nd plural)",
|
||||||
"This document will expire in %d minutes.":
|
"%d years (3rd plural)"
|
||||||
["Ce document expirera dans %d minute.", "Aqueste document expirarà dins %d minutas."],
|
],
|
||||||
"This document will expire in %d hours.":
|
"Never": "Jamai",
|
||||||
["Ce document expirera dans %d heure.", "Aqueste document expirarà dins %d oras."],
|
"Note: This is a test service: Data may be deleted anytime. Kittens will die if you abuse this service.": "Nota : Aquò es un servici d’espròva : las donadas pòdon èsser suprimidas a cada moment. De catons moriràn s’abusatz d’aqueste servici.",
|
||||||
"This document will expire in %d days.":
|
"This document will expire in %d seconds.": [
|
||||||
["Ce document expirera dans %d jour.", "Aqueste document expirarà dins %d jorns."],
|
"Ce document expirera dans %d seconde.",
|
||||||
"This document will expire in %d months.":
|
"Aqueste document expirarà dins %d segondas.",
|
||||||
["Ce document expirera dans %d mois.", "Aqueste document expirarà dins %d meses."],
|
"This document will expire in %d seconds (2nd plural)",
|
||||||
"Please enter the password for this paste:":
|
"This document will expire in %d seconds (3rd plural)"
|
||||||
"Picatz lo senhal per aqueste tèxte :",
|
],
|
||||||
"Could not decrypt data (Wrong key?)":
|
"This document will expire in %d minutes.": [
|
||||||
"Impossible de deschifrar las donadas (marrida clau ?)",
|
"Ce document expirera dans %d minute.",
|
||||||
"Could not delete the paste, it was not stored in burn after reading mode.":
|
"Aqueste document expirarà dins %d minutas.",
|
||||||
"Impossible de suprimir lo tèxte, perque es pas estat gardat en mòde \"Escafar aprèp lectura\".",
|
"This document will expire in %d minutes (2nd plural)",
|
||||||
"FOR YOUR EYES ONLY. Don't close this window, this message can't be displayed again.":
|
"This document will expire in %d minutes (3rd plural)"
|
||||||
"PER VÒSTRES UÈLHS SOLAMENT. Tampetz pas aquesta fenèstra, aqueste tèxte poirà pas mai èsser afichat.",
|
],
|
||||||
"Could not decrypt comment; Wrong key?":
|
"This document will expire in %d hours.": [
|
||||||
"Impossible de deschifrar lo comentari ; marrida clau ?",
|
"Ce document expirera dans %d heure.",
|
||||||
"Reply":
|
"Aqueste document expirarà dins %d oras.",
|
||||||
"Respondre",
|
"This document will expire in %d hours (2nd plural)",
|
||||||
"Anonymous":
|
"This document will expire in %d hours (3rd plural)"
|
||||||
"Anonime",
|
],
|
||||||
"Avatar generated from IP address":
|
"This document will expire in %d days.": [
|
||||||
"Avatar anonime (Vizhash de l’adreça IP)",
|
"Ce document expirera dans %d jour.",
|
||||||
"Add comment":
|
"Aqueste document expirarà dins %d jorns.",
|
||||||
"Apondre un comentari",
|
"This document will expire in %d days (2nd plural)",
|
||||||
"Optional nickname…":
|
"This document will expire in %d days (3rd plural)"
|
||||||
"Escais opcional…",
|
],
|
||||||
"Post comment":
|
"This document will expire in %d months.": [
|
||||||
"Mandar lo comentari",
|
"Ce document expirera dans %d mois.",
|
||||||
"Sending comment…":
|
"Aqueste document expirarà dins %d meses.",
|
||||||
"Mandadís del comentari…",
|
"This document will expire in %d months (2nd plural)",
|
||||||
"Comment posted.":
|
"This document will expire in %d months (3rd plural)"
|
||||||
"Comentari mandat.",
|
],
|
||||||
"Could not refresh display: %s":
|
"Please enter the password for this paste:": "Picatz lo senhal per aqueste tèxte :",
|
||||||
"Impossible d’actualizar l’afichatge : %s",
|
"Could not decrypt data (Wrong key?)": "Impossible de deschifrar las donadas (marrida clau ?)",
|
||||||
"unknown status":
|
"Could not delete the paste, it was not stored in burn after reading mode.": "Impossible de suprimir lo tèxte, perque es pas estat gardat en mòde \"Escafar aprèp lectura\".",
|
||||||
"Estatut desconegut",
|
"FOR YOUR EYES ONLY. Don't close this window, this message can't be displayed again.": "PER VÒSTRES UÈLHS SOLAMENT. Tampetz pas aquesta fenèstra, aqueste tèxte poirà pas mai èsser afichat.",
|
||||||
"server error or not responding":
|
"Could not decrypt comment; Wrong key?": "Impossible de deschifrar lo comentari ; marrida clau ?",
|
||||||
"Lo servidor respond pas o a rencontrat una error",
|
"Reply": "Respondre",
|
||||||
"Could not post comment: %s":
|
"Anonymous": "Anonime",
|
||||||
"Impossible de mandar lo comentari : %s",
|
"Avatar generated from IP address": "Avatar anonime (Vizhash de l’adreça IP)",
|
||||||
"Please move your mouse for more entropy…":
|
"Add comment": "Apondre un comentari",
|
||||||
"Mercés de bolegar vòstra mirga per mai entropia…",
|
"Optional nickname…": "Escais opcional…",
|
||||||
"Sending paste…":
|
"Post comment": "Mandar lo comentari",
|
||||||
"Mandadís del tèxte…",
|
"Sending comment…": "Mandadís del comentari…",
|
||||||
"Your paste is <a id=\"pasteurl\" href=\"%s\">%s</a> <span id=\"copyhint\">(Hit [Ctrl]+[c] to copy)</span>":
|
"Comment posted.": "Comentari mandat.",
|
||||||
"Vòstre tèxte es disponible a l’adreça <a id=\"pasteurl\" href=\"%s\">%s</a> <span id=\"copyhint\">(Picatz sus [Ctrl]+[c] per copiar)</span>",
|
"Could not refresh display: %s": "Impossible d’actualizar l’afichatge : %s",
|
||||||
"Delete data":
|
"unknown status": "Estatut desconegut",
|
||||||
"Supprimir las donadas del tèxte",
|
"server error or not responding": "Lo servidor respond pas o a rescontrat una error",
|
||||||
"Could not create paste: %s":
|
"Could not post comment: %s": "Impossible de mandar lo comentari : %s",
|
||||||
"Impossible de crear lo tèxte : %s",
|
"Sending paste…": "Mandadís del tèxte…",
|
||||||
"Cannot decrypt paste: Decryption key missing in URL (Did you use a redirector or an URL shortener which strips part of the URL?)":
|
"Your paste is <a id=\"pasteurl\" href=\"%s\">%s</a> <span id=\"copyhint\">(Hit [Ctrl]+[c] to copy)</span>": "Vòstre tèxte es disponible a l’adreça <a id=\"pasteurl\" href=\"%s\">%s</a> <span id=\"copyhint\">(Picatz sus [Ctrl]+[c] per copiar)</span>",
|
||||||
"Impossible de deschifrar lo tèxte : clau de deschiframent absenta de l’URL (Avètz utilizat un redirector o un site de reduccion d’URL que suprimís una partida de l’URL ?)",
|
"Delete data": "Supprimir las donadas del tèxte",
|
||||||
|
"Could not create paste: %s": "Impossible de crear lo tèxte : %s",
|
||||||
|
"Cannot decrypt paste: Decryption key missing in URL (Did you use a redirector or an URL shortener which strips part of the URL?)": "Impossible de deschifrar lo tèxte : clau de deschiframent absenta de l’URL (Avètz utilizat un redirector o un site de reduccion d’URL que suprimís una partida de l’URL ?)",
|
||||||
"B": "o",
|
"B": "o",
|
||||||
"KiB": "Kio",
|
"KiB": "Kio",
|
||||||
"MiB": "Mio",
|
"MiB": "Mio",
|
||||||
@@ -144,25 +144,38 @@
|
|||||||
"alternatively drag & drop a file or paste an image from the clipboard": "autrament lisatz lo fichièr o pegatz l’imatge del quichapapièrs",
|
"alternatively drag & drop a file or paste an image from the clipboard": "autrament lisatz lo fichièr o pegatz l’imatge del quichapapièrs",
|
||||||
"File too large, to display a preview. Please download the attachment.": "Fichièr tròp pesuc per mostrar un apercebut. Telecargatz la pèca junta.",
|
"File too large, to display a preview. Please download the attachment.": "Fichièr tròp pesuc per mostrar un apercebut. Telecargatz la pèca junta.",
|
||||||
"Remove attachment": "Levar la pèça junta",
|
"Remove attachment": "Levar la pèça junta",
|
||||||
"Your browser does not support uploading encrypted files. Please use a newer browser.":
|
"Your browser does not support uploading encrypted files. Please use a newer browser.": "Vòstre navigator es pas compatible amb lo mandadís de fichièrs chifrats. Mercés d’emplegar un navigator mai recent.",
|
||||||
"Vòstre navigator es pas compatible amb lo mandadís de fichièrs chifrats. Mercés d’emplegar un navigator mai recent.",
|
|
||||||
"Invalid attachment.": "Pèça junta invalida.",
|
"Invalid attachment.": "Pèça junta invalida.",
|
||||||
"Options": "Opcions",
|
"Options": "Opcions",
|
||||||
"Shorten URL": "Acorchir l’URL",
|
"Shorten URL": "Acorchir l’URL",
|
||||||
"Editor": "Editar",
|
"Editor": "Editar",
|
||||||
"Preview": "Previsualizar",
|
"Preview": "Previsualizar",
|
||||||
"%s requires the PATH to end in a \"%s\". Please update the PATH in your index.php.":
|
"%s requires the PATH to end in a \"%s\". Please update the PATH in your index.php.": "%s demanda que lo PATH termine en \"%s\". Mercés de metre a jorn lo PATH dins vòstre index.php.",
|
||||||
"%s demanda que lo PATH termine en \"%s\". Mercés de metre a jorn lo PATH dins vòstre index.php.",
|
"Decrypt": "Deschifrar",
|
||||||
"Decrypt":
|
"Enter password": "Picatz lo senhal",
|
||||||
"Deschifrar",
|
|
||||||
"Enter password":
|
|
||||||
"Picatz lo senhal",
|
|
||||||
"Loading…": "Cargament…",
|
"Loading…": "Cargament…",
|
||||||
"Decrypting paste…": "Deschirament del tèxte…",
|
"Decrypting paste…": "Deschirament del tèxte…",
|
||||||
"Preparing new paste…": "Preparacion…",
|
"Preparing new paste…": "Preparacion…",
|
||||||
"In case this message never disappears please have a look at <a href=\"https://github.com/PrivateBin/PrivateBin/wiki/FAQ#why-does-not-the-loading-message-go-away\">this FAQ for information to troubleshoot</a>.":
|
"In case this message never disappears please have a look at <a href=\"%s\">this FAQ for information to troubleshoot</a>.": "Se per cas aqueste messatge quite pas de s’afichar mercés de gaitar <a href=\"%s\">aquesta FAQ per las solucions</a> (en anglés).",
|
||||||
"Se per cas aqueste messatge quita pas de s’afichar mercés de gaitar <a href=\"https://github.com/PrivateBin/PrivateBin/wiki/FAQ#why-does-not-the-loading-message-go-away\">aquesta FAQ per las solucions</a> (en anglés).",
|
|
||||||
"+++ no paste text +++": "+++ cap de tèxte pegat +++",
|
"+++ no paste text +++": "+++ cap de tèxte pegat +++",
|
||||||
"Could not get paste data: %s":
|
"Could not get paste data: %s": "Recuperacion impossibla de las donadas copiadas : %s",
|
||||||
"Could not get paste data: %s"
|
"QR code": "Còdi QR",
|
||||||
|
"This website is using an insecure HTTP connection! Please use it only for testing.": "Aqueste site utiliza una connexion HTTP pas segura ! Mercés de l’utilizar pas que per d’ensages.",
|
||||||
|
"For more information <a href=\"%s\">see this FAQ entry</a>.": "Per mai d’informacions <a href=\"%s\">vejatz aqueste article de FAQ</a>.",
|
||||||
|
"Your browser may require an HTTPS connection to support the WebCrypto API. Try <a href=\"%s\">switching to HTTPS</a>.": "Se pòt que vòstre navigator faga besonh d’una connexion HTTPS per èsser compatible amb l’API WebCrypto. Ensajatz de <a href=\"%s\">passar al HTTPS</a>.",
|
||||||
|
"Your browser doesn't support WebAssembly, used for zlib compression. You can create uncompressed documents, but can't read compressed ones.": "Vòstre navigator es pas compatible amb WebAssembly, utilizat per la compression zlib. Podètz crear de documents pas compressat, mas ne podètz pas legir de compressats.",
|
||||||
|
"waiting on user to provide a password": "en espèra que l’utilizaire fornisca un senhal",
|
||||||
|
"Could not decrypt data. Did you enter a wrong password? Retry with the button at the top.": "Deschiframent de las donadas impossible. Avètz picat un marrit senhal ? Tornatz ensajar amb lo boton ennaut.",
|
||||||
|
"Retry": "Tornar ensajar",
|
||||||
|
"Showing raw text…": "Afichatge del tèxte brut…",
|
||||||
|
"Notice:": "Avertiment :",
|
||||||
|
"This link will expire after %s.": "Aqueste ligam expirarà aprèp %s.",
|
||||||
|
"This link can only be accessed once, do not use back or refresh button in your browser.": "Òm pòt pas qu’accedir a aqueste ligam qu’un còp, utilizetz pas lo boton precedent o actualizar del navigator.",
|
||||||
|
"Link:": "Ligam :",
|
||||||
|
"Recipient may become aware of your timezone, convert time to UTC?": "Lo destinatari pòt s’avisar de vòstre fus orari, convertir en UTC ?",
|
||||||
|
"Use Current Timezone": "Utilizar l’actual",
|
||||||
|
"Convert To UTC": "Convertir en UTC",
|
||||||
|
"Close": "Tampar",
|
||||||
|
"Encrypted note on PrivateBin": "Nòtas chifradas sus PrivateBin",
|
||||||
|
"Visit this link to see the note. Giving the URL to anyone allows them to access the note, too.": "Visitatz aqueste ligam per veire la nòta. Fornir lo ligam a qualqu’un mai li permet tanben d’accedir a la nòta."
|
||||||
}
|
}
|
||||||
308
i18n/pl.json
308
i18n/pl.json
@@ -1,159 +1,181 @@
|
|||||||
{
|
{
|
||||||
"PrivateBin": "PrivateBin",
|
"PrivateBin": "PrivateBin",
|
||||||
"%s is a minimalist, open source online pastebin where the server has zero knowledge of pasted data. Data is encrypted/decrypted <i>in the browser</i> using 256 bits AES. More information on the <a href=\"https://privatebin.info/\">project page</a>.":
|
"%s is a minimalist, open source online pastebin where the server has zero knowledge of pasted data. Data is encrypted/decrypted <i>in the browser</i> using 256 bits AES. More information on the <a href=\"https://privatebin.info/\">project page</a>.": "%s jest minimalistycznym, otwartoźródłowym serwisem typu pastebin, w którym serwer nie ma jakichkolwiek informacji o tym, co jest wklejane. Dane są szyfrowane i deszyfrowane <i>w przeglądarce</i> z użyciem 256-bitowego klucza AES. Więcej informacji na <a href=\"https://privatebin.info/\">stronie projektu</a>.",
|
||||||
"%s jest minimalistycznym, otwartoźródłowym serwisem typu pastebin, w którym serwer nie ma jakichkolwiek informacji o tym, co jest wklejane. Dane są szyfrowane i deszyfrowane <i>w przeglądarce</i> z użyciem 256-bitowego klucza AES. Więcej informacji na <a href=\"https://privatebin.info/\">stronie projektu</a>.",
|
"Because ignorance is bliss": "Ponieważ ignorancja jest cnotą",
|
||||||
"Because ignorance is bliss":
|
|
||||||
"Ponieważ ignorancja jest cnotą",
|
|
||||||
"en": "pl",
|
"en": "pl",
|
||||||
"Paste does not exist, has expired or has been deleted.":
|
"Paste does not exist, has expired or has been deleted.": "Wklejka nie istnieje, wygasła albo została usunięta.",
|
||||||
"Wklejka nie istnieje, wygasła albo została usunięta.",
|
"%s requires php %s or above to work. Sorry.": "%s wymaga PHP w wersji %s lub nowszej. Przykro mi.",
|
||||||
"%s requires php %s or above to work. Sorry.":
|
"%s requires configuration section [%s] to be present in configuration file.": "%s wymaga obecności sekcji [%s] w pliku konfiguracyjnym.",
|
||||||
"%s wymaga PHP w wersji %s lub nowszej, sorry.",
|
"Please wait %d seconds between each post.": "Poczekaj %d sekund pomiędzy każdą wklejką.",
|
||||||
"%s requires configuration section [%s] to be present in configuration file.":
|
"Paste is limited to %s of encrypted data.": "Wklejka jest limitowana do %s zaszyfrowanych danych.",
|
||||||
"%s wymaga obecności sekcji [%s] w pliku konfiguracyjnym.",
|
"Invalid data.": "Nieprawidłowe dane.",
|
||||||
"Please wait %d seconds between each post.":
|
"You are unlucky. Try again.": "Miałeś pecha. Spróbuj ponownie.",
|
||||||
"Poczekaj %d sekund pomiędzy każdą wklejką.",
|
"Error saving comment. Sorry.": "Błąd przy zapisywaniu komentarza, sorry.",
|
||||||
"Paste is limited to %s of encrypted data.":
|
"Error saving paste. Sorry.": "Błąd przy zapisywaniu wklejki, sorry.",
|
||||||
"Wklejka jest limitowana do %s zaszyfrowanych danych.",
|
"Invalid paste ID.": "Nieprawidłowe ID wklejki.",
|
||||||
"Invalid data.":
|
"Paste is not of burn-after-reading type.": "Ta wklejka nie ulega autodestrukcji po przeczytaniu.",
|
||||||
"Nieprawidłowe dane.",
|
"Wrong deletion token. Paste was not deleted.": "Nieprawidłowy token usuwania. Wklejka nie została usunięta.",
|
||||||
"You are unlucky. Try again.":
|
"Paste was properly deleted.": "Wklejka usunięta poprawnie.",
|
||||||
"Miałeś pecha. Spróbuj ponownie.",
|
"JavaScript is required for %s to work. Sorry for the inconvenience.": "Do działania %sa jest wymagany JavaScript. Przepraszamy za tę niedogodność.",
|
||||||
"Error saving comment. Sorry.":
|
"%s requires a modern browser to work.": "%s wymaga do działania nowoczesnej przeglądarki.",
|
||||||
"Błąd przy zapisywaniu komentarza, sorry.",
|
"New": "Nowa",
|
||||||
"Error saving paste. Sorry.":
|
"Send": "Wyślij",
|
||||||
"Błąd przy zapisywaniu wklejki, sorry.",
|
"Clone": "Sklonuj",
|
||||||
"Invalid paste ID.":
|
"Raw text": "Czysty tekst",
|
||||||
"Nieprawidłowe ID wklejki.",
|
"Expires": "Wygasa za",
|
||||||
"Paste is not of burn-after-reading type.":
|
"Burn after reading": "Zniszcz po przeczytaniu",
|
||||||
"Ta wklejka nie ulega autodestrukcji po przeczytaniu.",
|
"Open discussion": "Otwarta dyskusja",
|
||||||
"Wrong deletion token. Paste was not deleted.":
|
"Password (recommended)": "Hasło (zalecane)",
|
||||||
"Nieprawidłowy token usuwania. Wklejka nie została usunięta.",
|
"Discussion": "Dyskusja",
|
||||||
"Paste was properly deleted.":
|
"Toggle navigation": "Przełącz nawigację",
|
||||||
"Wklejka usunięta poprawnie.",
|
"%d seconds": [
|
||||||
"JavaScript is required for %s to work.<br />Sorry for the inconvenience.":
|
"%d second",
|
||||||
"Do działania %sa jest wymagany JavaScript. Przepraszamy za tę niedogodność.",
|
"%d second",
|
||||||
"%s requires a modern browser to work.":
|
"%d second",
|
||||||
"%s wymaga do działania nowoczesnej przeglądarki.",
|
"%d seconds (3rd plural)"
|
||||||
"Still using Internet Explorer? Do yourself a favor, switch to a modern browser:":
|
],
|
||||||
"Cały czas używasz Internet Explorera? Zrób sobie przysługę, przesiądź się na nowoczesną przeglądarkę:",
|
"%d minutes": [
|
||||||
"New":
|
"%d minut",
|
||||||
"Nowa",
|
"%d minut",
|
||||||
"Send":
|
"%d minut",
|
||||||
"Wyślij",
|
"%d minutes (3rd plural)"
|
||||||
"Clone":
|
],
|
||||||
"Sklonuj",
|
"%d hours": [
|
||||||
"Raw text":
|
"%d godzina",
|
||||||
"Czysty tekst",
|
"%d godzina",
|
||||||
"Expires":
|
"%d godzinę",
|
||||||
"Wygasa za",
|
"%d hours (3rd plural)"
|
||||||
"Burn after reading":
|
],
|
||||||
"Zniszcz po przeczytaniu",
|
"%d days": [
|
||||||
"Open discussion":
|
"%d dzień",
|
||||||
"Otwarta dyskusja",
|
"%d dzień",
|
||||||
"Password (recommended)":
|
"%d dzień",
|
||||||
"Hasło (zalecane)",
|
"%d days (3rd plural)"
|
||||||
"Discussion":
|
],
|
||||||
"Dyskusja",
|
"%d weeks": [
|
||||||
"Toggle navigation":
|
"%d tydzień",
|
||||||
"Przełącz nawigację",
|
"%d tydzień",
|
||||||
"%d seconds": ["%d second", "%d second", "%d second"],
|
"%d tydzień",
|
||||||
"%d minutes": ["%d minut", "%d minut", "%d minut"],
|
"%d weeks (3rd plural)"
|
||||||
"%d hours": ["%d godzina", "%d godzina", "%d godzinę"],
|
],
|
||||||
"%d days": ["%d dzień", "%d dzień", "%d dzień"],
|
"%d months": [
|
||||||
"%d weeks": ["%d tydzień", "%d tydzień", "%d tydzień"],
|
"%d miesiąc",
|
||||||
"%d months": ["%d miesiąc", "%d miesiąc", "%d miesiąc"],
|
"%d miesiąc",
|
||||||
"%d years": ["%d rok", "%d rok", "%d rok"],
|
"%d miesiąc",
|
||||||
"Never":
|
"%d months (3rd plural)"
|
||||||
"nigdy",
|
],
|
||||||
"Note: This is a test service: Data may be deleted anytime. Kittens will die if you abuse this service.":
|
"%d years": [
|
||||||
"Notka: To jest usługa testowa. Dane mogą zostać usunięte w dowolnym momencie. Kociątka umrą, jeśli nadużyjesz tej usługi.",
|
"%d rok",
|
||||||
"This document will expire in %d seconds.":
|
"%d rok",
|
||||||
["Ten dokument wygaśnie za %d sekundę.", "Ten dokument wygaśnie za %d sekund."],
|
"%d rok",
|
||||||
"This document will expire in %d minutes.":
|
"%d years (3rd plural)"
|
||||||
["Ten dokument wygaśnie za %d minutę.", "Ten dokument wygaśnie za %d minut."],
|
],
|
||||||
"This document will expire in %d hours.":
|
"Never": "nigdy",
|
||||||
["Ten dokument wygaśnie za godzinę.", "Ten dokument wygaśnie za %d godzin."],
|
"Note: This is a test service: Data may be deleted anytime. Kittens will die if you abuse this service.": "Notka: To jest usługa testowa. Dane mogą zostać usunięte w dowolnym momencie. Kociątka umrą, jeśli nadużyjesz tej usługi.",
|
||||||
"This document will expire in %d days.":
|
"This document will expire in %d seconds.": [
|
||||||
["Ten dokument wygaśnie za %d dzień.", "Ten dokument wygaśnie za %d dni."],
|
"Ten dokument wygaśnie za %d sekundę.",
|
||||||
"This document will expire in %d months.":
|
"Ten dokument wygaśnie za %d sekund.",
|
||||||
["Ten dokument wygaśnie za miesiąc.", "Ten dokument wygaśnie za %d miesięcy."],
|
"This document will expire in %d seconds (2nd plural)",
|
||||||
"Please enter the password for this paste:":
|
"This document will expire in %d seconds (3rd plural)"
|
||||||
"Wpisz hasło dla tej wklejki:",
|
],
|
||||||
"Could not decrypt data (Wrong key?)":
|
"This document will expire in %d minutes.": [
|
||||||
"Nie udało się odszyfrować danych (zły klucz?)",
|
"Ten dokument wygaśnie za %d minutę.",
|
||||||
"Could not delete the paste, it was not stored in burn after reading mode.":
|
"Ten dokument wygaśnie za %d minut.",
|
||||||
"Nie udało się usunąć wklejki, nie została zapisana w trybie zniszczenia po przeczytaniu.",
|
"This document will expire in %d minutes (2nd plural)",
|
||||||
"FOR YOUR EYES ONLY. Don't close this window, this message can't be displayed again.":
|
"This document will expire in %d minutes (3rd plural)"
|
||||||
"TYLKO DO TWOJEGO WGLĄDU. Nie zamykaj tego okna, ta wiadomość nie będzie mogła być wyświetlona ponownie.",
|
],
|
||||||
"Could not decrypt comment; Wrong key?":
|
"This document will expire in %d hours.": [
|
||||||
"Nie udało się odszyfrować komentarza; zły klucz?",
|
"Ten dokument wygaśnie za godzinę.",
|
||||||
"Reply":
|
"Ten dokument wygaśnie za %d godzin.",
|
||||||
"Odpowiedz",
|
"This document will expire in %d hours (2nd plural)",
|
||||||
"Anonymous":
|
"This document will expire in %d hours (3rd plural)"
|
||||||
"Anonim",
|
],
|
||||||
"Avatar generated from IP address":
|
"This document will expire in %d days.": [
|
||||||
"Anonimowy avatar (Vizhash z adresu IP)",
|
"Ten dokument wygaśnie za %d dzień.",
|
||||||
"Add comment":
|
"Ten dokument wygaśnie za %d dni.",
|
||||||
"Dodaj komentarz",
|
"This document will expire in %d days (2nd plural)",
|
||||||
"Optional nickname…":
|
"This document will expire in %d days (3rd plural)"
|
||||||
"Opcjonalny nick…",
|
],
|
||||||
"Post comment":
|
"This document will expire in %d months.": [
|
||||||
"Wyślij komentarz",
|
"Ten dokument wygaśnie za miesiąc.",
|
||||||
"Sending comment…":
|
"Ten dokument wygaśnie za %d miesięcy.",
|
||||||
"Wysyłanie komentarza…",
|
"This document will expire in %d months (2nd plural)",
|
||||||
"Comment posted.":
|
"This document will expire in %d months (3rd plural)"
|
||||||
"Wysłano komentarz.",
|
],
|
||||||
"Could not refresh display: %s":
|
"Please enter the password for this paste:": "Wpisz hasło dla tej wklejki:",
|
||||||
"Nie można odświeżyć widoku: %s",
|
"Could not decrypt data (Wrong key?)": "Nie udało się odszyfrować danych (zły klucz?)",
|
||||||
"unknown status":
|
"Could not delete the paste, it was not stored in burn after reading mode.": "Nie udało się usunąć wklejki, nie została zapisana w trybie zniszczenia po przeczytaniu.",
|
||||||
"nieznany status",
|
"FOR YOUR EYES ONLY. Don't close this window, this message can't be displayed again.": "TYLKO DO TWOJEGO WGLĄDU. Nie zamykaj tego okna, ta wiadomość nie będzie mogła być wyświetlona ponownie.",
|
||||||
"server error or not responding":
|
"Could not decrypt comment; Wrong key?": "Nie udało się odszyfrować komentarza; zły klucz?",
|
||||||
"bląd serwera lub brak odpowiedzi",
|
"Reply": "Odpowiedz",
|
||||||
"Could not post comment: %s":
|
"Anonymous": "Anonim",
|
||||||
"Nie udało się wysłać komentarza: %s",
|
"Avatar generated from IP address": "Anonimowy avatar (Vizhash z adresu IP)",
|
||||||
"Please move your mouse for more entropy…":
|
"Add comment": "Dodaj komentarz",
|
||||||
"Proszę poruszać myszą aby uzyskać większą entropię…",
|
"Optional nickname…": "Opcjonalny nick…",
|
||||||
"Sending paste…":
|
"Post comment": "Wyślij komentarz",
|
||||||
"Wysyłanie wklejki…",
|
"Sending comment…": "Wysyłanie komentarza…",
|
||||||
"Your paste is <a id=\"pasteurl\" href=\"%s\">%s</a> <span id=\"copyhint\">(Hit [Ctrl]+[c] to copy)</span>":
|
"Comment posted.": "Wysłano komentarz.",
|
||||||
"Twoja wklejka to <a id=\"pasteurl\" href=\"%s\">%s</a> <span id=\"copyhint\">(wciśnij [Ctrl]+[c] aby skopiować)</span>",
|
"Could not refresh display: %s": "Nie można odświeżyć widoku: %s",
|
||||||
"Delete data":
|
"unknown status": "nieznany status",
|
||||||
"Skasuj dane",
|
"server error or not responding": "błąd serwera lub brak odpowiedzi",
|
||||||
"Could not create paste: %s":
|
"Could not post comment: %s": "Nie udało się wysłać komentarza: %s",
|
||||||
"Nie udało się utworzyć wklejki: %s",
|
"Sending paste…": "Wysyłanie wklejki…",
|
||||||
"Cannot decrypt paste: Decryption key missing in URL (Did you use a redirector or an URL shortener which strips part of the URL?)":
|
"Your paste is <a id=\"pasteurl\" href=\"%s\">%s</a> <span id=\"copyhint\">(Hit [Ctrl]+[c] to copy)</span>": "Twoja wklejka to <a id=\"pasteurl\" href=\"%s\">%s</a> <span id=\"copyhint\">(wciśnij [Ctrl]+[c] aby skopiować)</span>",
|
||||||
"Nie udało się odszyfrować wklejki - brak klucza deszyfrującego w adresie (użyłeś skracacza linków, który ucina część adresu?)",
|
"Delete data": "Skasuj dane",
|
||||||
|
"Could not create paste: %s": "Nie udało się utworzyć wklejki: %s",
|
||||||
|
"Cannot decrypt paste: Decryption key missing in URL (Did you use a redirector or an URL shortener which strips part of the URL?)": "Nie udało się odszyfrować wklejki - brak klucza deszyfrującego w adresie (użyłeś skracacza linków, który ucina część adresu?)",
|
||||||
|
"B": "B",
|
||||||
|
"KiB": "KiB",
|
||||||
|
"MiB": "MiB",
|
||||||
|
"GiB": "GiB",
|
||||||
|
"TiB": "TiB",
|
||||||
|
"PiB": "PiB",
|
||||||
|
"EiB": "EiB",
|
||||||
|
"ZiB": "ZiB",
|
||||||
|
"YiB": "YiB",
|
||||||
"Format": "Format",
|
"Format": "Format",
|
||||||
"Plain Text": "Czysty tekst",
|
"Plain Text": "Czysty tekst",
|
||||||
"Source Code": "Kod źródłowy",
|
"Source Code": "Kod źródłowy",
|
||||||
"Markdown": "Markdown",
|
"Markdown": "Markdown",
|
||||||
"Download attachment": "Pobierz załącznik",
|
"Download attachment": "Pobierz załącznik",
|
||||||
"Cloned: '%s'": "Sklonowano: '%s'",
|
"Cloned: '%s'": "Sklonowano: '%s'",
|
||||||
"The cloned file '%s' was attached to this paste.": "The cloned file '%s' was attached to this paste.",
|
"The cloned file '%s' was attached to this paste.": "Sklonowany plik '%s' był dołączony do tej wklejki.",
|
||||||
"Attach a file": "Załącz plik",
|
"Attach a file": "Załącz plik",
|
||||||
"alternatively drag & drop a file or paste an image from the clipboard": "alternatively drag & drop a file or paste an image from the clipboard",
|
"alternatively drag & drop a file or paste an image from the clipboard": "Alternatywnie przeciągnij i upuść plik albo wklej obraz ze schowka",
|
||||||
"File too large, to display a preview. Please download the attachment.": "File too large, to display a preview. Please download the attachment.",
|
"File too large, to display a preview. Please download the attachment.": "Plik zbyt duży aby wyświetlić podgląd. Proszę pobrać załącznik.",
|
||||||
"Remove attachment": "Usuń załącznik",
|
"Remove attachment": "Usuń załącznik",
|
||||||
"Your browser does not support uploading encrypted files. Please use a newer browser.":
|
"Your browser does not support uploading encrypted files. Please use a newer browser.": "Twoja przeglądarka nie wspiera wysyłania zaszyfrowanych plików. Użyj nowszej przeglądarki.",
|
||||||
"Twoja przeglądarka nie wspiera wysyłania zaszyfrowanych plików. Użyj nowszej przeglądarki.",
|
|
||||||
"Invalid attachment.": "Nieprawidłowy załącznik.",
|
"Invalid attachment.": "Nieprawidłowy załącznik.",
|
||||||
"Options": "Opcje",
|
"Options": "Opcje",
|
||||||
"Shorten URL": "Skróć adres URL",
|
"Shorten URL": "Skróć adres URL",
|
||||||
"Editor": "Edytować",
|
"Editor": "Edytować",
|
||||||
"Preview": "Zapowiedź",
|
"Preview": "Podgląd",
|
||||||
"%s requires the PATH to end in a \"%s\". Please update the PATH in your index.php.":
|
"%s requires the PATH to end in a \"%s\". Please update the PATH in your index.php.": "%s requires the PATH to end in a \"%s\". Please update the PATH in your index.php.",
|
||||||
"%s requires the PATH to end in a \"%s\". Please update the PATH in your index.php.",
|
"Decrypt": "Odszyfruj",
|
||||||
"Decrypt":
|
"Enter password": "Wpisz hasło",
|
||||||
"Decrypt",
|
"Loading…": "Wczytywanie…",
|
||||||
"Enter password":
|
"Decrypting paste…": "Odszyfrowywanie wklejki…",
|
||||||
"Wpisz hasło",
|
"Preparing new paste…": "Przygotowywanie nowej wklejki…",
|
||||||
"Loading…": "Loading…",
|
"In case this message never disappears please have a look at <a href=\"%s\">this FAQ for information to troubleshoot</a>.": "W przypadku gdy ten komunikat nigdy nie znika, proszę spójrz na <a href=\"%s\">to FAQ aby rozwiązać problem</a> (po angielsku).",
|
||||||
"Decrypting paste…": "Decrypting paste…",
|
"+++ no paste text +++": "+++ brak wklejonego tekstu +++",
|
||||||
"Preparing new paste…": "Preparing new paste…",
|
"Could not get paste data: %s": "Nie można było pobrać danych wklejki: %s",
|
||||||
"In case this message never disappears please have a look at <a href=\"https://github.com/PrivateBin/PrivateBin/wiki/FAQ#why-does-not-the-loading-message-go-away\">this FAQ for information to troubleshoot</a>.":
|
"QR code": "Kod QR",
|
||||||
"In case this message never disappears please have a look at <a href=\"https://github.com/PrivateBin/PrivateBin/wiki/FAQ#why-does-not-the-loading-message-go-away\">this FAQ for information to troubleshoot</a> (in English).",
|
"This website is using an insecure HTTP connection! Please use it only for testing.": "This website is using an insecure HTTP connection! Please use it only for testing.",
|
||||||
"+++ no paste text +++": "+++ no paste text +++",
|
"For more information <a href=\"%s\">see this FAQ entry</a>.": "For more information <a href=\"%s\">see this FAQ entry</a>.",
|
||||||
"Could not get paste data: %s":
|
"Your browser may require an HTTPS connection to support the WebCrypto API. Try <a href=\"%s\">switching to HTTPS</a>.": "Your browser may require an HTTPS connection to support the WebCrypto API. Try <a href=\"%s\">switching to HTTPS</a>.",
|
||||||
"Could not get paste data: %s"
|
"Your browser doesn't support WebAssembly, used for zlib compression. You can create uncompressed documents, but can't read compressed ones.": "Your browser doesn't support WebAssembly, used for zlib compression. You can create uncompressed documents, but can't read compressed ones.",
|
||||||
|
"waiting on user to provide a password": "waiting on user to provide a password",
|
||||||
|
"Could not decrypt data. Did you enter a wrong password? Retry with the button at the top.": "Could not decrypt data. Did you enter a wrong password? Retry with the button at the top.",
|
||||||
|
"Retry": "Retry",
|
||||||
|
"Showing raw text…": "Showing raw text…",
|
||||||
|
"Notice:": "Notice:",
|
||||||
|
"This link will expire after %s.": "This link will expire after %s.",
|
||||||
|
"This link can only be accessed once, do not use back or refresh button in your browser.": "This link can only be accessed once, do not use back or refresh button in your browser.",
|
||||||
|
"Link:": "Link:",
|
||||||
|
"Recipient may become aware of your timezone, convert time to UTC?": "Recipient may become aware of your timezone, convert time to UTC?",
|
||||||
|
"Use Current Timezone": "Use Current Timezone",
|
||||||
|
"Convert To UTC": "Convert To UTC",
|
||||||
|
"Close": "Close",
|
||||||
|
"Encrypted note on PrivateBin": "Encrypted note on PrivateBin",
|
||||||
|
"Visit this link to see the note. Giving the URL to anyone allows them to access the note, too.": "Visit this link to see the note. Giving the URL to anyone allows them to access the note, too."
|
||||||
}
|
}
|
||||||
292
i18n/pt.json
292
i18n/pt.json
@@ -1,129 +1,138 @@
|
|||||||
{
|
{
|
||||||
"PrivateBin": "PrivateBin",
|
"PrivateBin": "PrivateBin",
|
||||||
"%s is a minimalist, open source online pastebin where the server has zero knowledge of pasted data. Data is encrypted/decrypted <i>in the browser</i> using 256 bits AES. More information on the <a href=\"https://privatebin.info/\">project page</a>.":
|
"%s is a minimalist, open source online pastebin where the server has zero knowledge of pasted data. Data is encrypted/decrypted <i>in the browser</i> using 256 bits AES. More information on the <a href=\"https://privatebin.info/\">project page</a>.": "%s é um serviço minimalista e de código aberto do tipo \"pastebin\", em que o servidor tem zero conhecimento dos dados copiados. Os dados são cifrados e decifrados <i>no navegador</i> usando 256 bits AES. Mais informações na <a href=\"https://privatebin.info/\">página do projeto</a>.",
|
||||||
"%s é um serviço minimalista e de código aberto do tipo \"pastebin\", em que o servidor tem zero conhecimento dos dados copiados. Os dados são cifrados e decifrados <i>no navegador</i> usando 256 bits AES. Mais informações na <a href=\"https://privatebin.info/\">página do projeto</a>.",
|
"Because ignorance is bliss": "Porque a ignorância é uma benção",
|
||||||
"Because ignorance is bliss":
|
|
||||||
"Porque a ignorância é uma benção",
|
|
||||||
"en": "pt",
|
"en": "pt",
|
||||||
"Paste does not exist, has expired or has been deleted.":
|
"Paste does not exist, has expired or has been deleted.": "A cópia não existe, expirou ou já foi excluída.",
|
||||||
"A cópia não existe, expirou ou já foi excluída.",
|
"%s requires php %s or above to work. Sorry.": "%s requer php %s ou superior para funcionar. Desculpa.",
|
||||||
"%s requires php %s or above to work. Sorry.":
|
"%s requires configuration section [%s] to be present in configuration file.": "%s requer que a seção de configuração [% s] esteja no arquivo de configuração.",
|
||||||
"%s requer php %s ou superior para funcionar. Desculpa.",
|
"Please wait %d seconds between each post.": "Por favor espere %d segundos entre cada publicação.",
|
||||||
"%s requires configuration section [%s] to be present in configuration file.":
|
"Paste is limited to %s of encrypted data.": "A cópia está limitada a %s de dados cifrados.",
|
||||||
"%s requer que a seção de configuração [% s] esteja no arquivo de configuração.",
|
"Invalid data.": "Dados inválidos.",
|
||||||
"Please wait %d seconds between each post.":
|
"You are unlucky. Try again.": "Você é azarado. Tente novamente",
|
||||||
"Por favor espere %d segundos entre cada publicação.",
|
"Error saving comment. Sorry.": "Erro ao salvar comentário. Desculpa.",
|
||||||
"Paste is limited to %s of encrypted data.":
|
"Error saving paste. Sorry.": "Erro ao salvar cópia. Desculpa.",
|
||||||
"A cópia está limitada a %s de dados cifrados.",
|
"Invalid paste ID.": "ID de cópia inválido.",
|
||||||
"Invalid data.":
|
"Paste is not of burn-after-reading type.": "Cópia não é do tipo \"queime após ler\".",
|
||||||
"Dados inválidos.",
|
"Wrong deletion token. Paste was not deleted.": "Token de remoção inválido. A cópia não foi excluída.",
|
||||||
"You are unlucky. Try again.":
|
"Paste was properly deleted.": "A cópia foi devidamente excluída.",
|
||||||
"Você é azarado. Tente novamente",
|
"JavaScript is required for %s to work. Sorry for the inconvenience.": "JavaScript é necessário para que %s funcione. Pedimos desculpas pela inconveniência.",
|
||||||
"Error saving comment. Sorry.":
|
"%s requires a modern browser to work.": "%s requer um navegador moderno para funcionar.",
|
||||||
"Erro ao salvar comentário. Desculpa.",
|
"New": "Novo",
|
||||||
"Error saving paste. Sorry.":
|
"Send": "Enviar",
|
||||||
"Erro ao salvar cópia. Desculpa.",
|
"Clone": "Clonar",
|
||||||
"Invalid paste ID.":
|
"Raw text": "Texto sem formato",
|
||||||
"ID de cópia inválido.",
|
"Expires": "Expirar em",
|
||||||
"Paste is not of burn-after-reading type.":
|
"Burn after reading": "Queime após ler",
|
||||||
"Cópia não é do tipo \"queime após ler\".",
|
"Open discussion": "Discussão aberta",
|
||||||
"Wrong deletion token. Paste was not deleted.":
|
"Password (recommended)": "Senha (recomendada)",
|
||||||
"Token de remoção inválido. A cópia não foi excluída.",
|
"Discussion": "Discussão",
|
||||||
"Paste was properly deleted.":
|
"Toggle navigation": "Mudar navegação",
|
||||||
"A cópia foi devidamente excluída.",
|
"%d seconds": [
|
||||||
"JavaScript is required for %s to work.<br />Sorry for the inconvenience.":
|
"%d segundo",
|
||||||
"JavaScript é necessário para que %s funcione.<br />Pedimos desculpas pela inconveniência.",
|
"%d segundos",
|
||||||
"%s requires a modern browser to work.":
|
"%d seconds (2nd plural)",
|
||||||
"%s requer um navegador moderno para funcionar.",
|
"%d seconds (3rd plural)"
|
||||||
"Still using Internet Explorer? Do yourself a favor, switch to a modern browser:":
|
],
|
||||||
"Ainda usando Internet Explorer? Faça-se um favor, mude para um navegador moderno:",
|
"%d minutes": [
|
||||||
"New":
|
"%d minuto",
|
||||||
"Novo",
|
"%d minutos",
|
||||||
"Send":
|
"%d minutes (2nd plural)",
|
||||||
"Enviar",
|
"%d minutes (3rd plural)"
|
||||||
"Clone":
|
],
|
||||||
"Clonar",
|
"%d hours": [
|
||||||
"Raw text":
|
"%d hora",
|
||||||
"Texto sem formato",
|
"%d horas",
|
||||||
"Expires":
|
"%d hours (2nd plural)",
|
||||||
"Expirar em",
|
"%d hours (3rd plural)"
|
||||||
"Burn after reading":
|
],
|
||||||
"Queime após ler",
|
"%d days": [
|
||||||
"Open discussion":
|
"%d dia",
|
||||||
"Discussão aberta",
|
"%d dias",
|
||||||
"Password (recommended)":
|
"%d days (2nd plural)",
|
||||||
"Senha (recomendada)",
|
"%d days (3rd plural)"
|
||||||
"Discussion":
|
],
|
||||||
"Discussão",
|
"%d weeks": [
|
||||||
"Toggle navigation":
|
"%d semana",
|
||||||
"Mudar navegação",
|
"%d semanas",
|
||||||
"%d seconds": ["%d segundo", "%d segundos"],
|
"%d weeks (2nd plural)",
|
||||||
"%d minutes": ["%d minuto", "%d minutos"],
|
"%d weeks (3rd plural)"
|
||||||
"%d hours": ["%d hora", "%d horas"],
|
],
|
||||||
"%d days": ["%d dia", "%d dias"],
|
"%d months": [
|
||||||
"%d weeks": ["%d semana", "%d semanas"],
|
"%d mês",
|
||||||
"%d months": ["%d mês", "%d meses"],
|
"%d meses",
|
||||||
"%d years": ["%d ano", "%d anos"],
|
"%d months (2nd plural)",
|
||||||
"Never":
|
"%d months (3rd plural)"
|
||||||
"Nunca",
|
],
|
||||||
"Note: This is a test service: Data may be deleted anytime. Kittens will die if you abuse this service.":
|
"%d years": [
|
||||||
"Nota: Este é um serviço de teste. Dados podem ser perdidos a qualquer momento. Gatinhos morrerão se você abusar desse serviço.",
|
"%d ano",
|
||||||
"This document will expire in %d seconds.":
|
"%d anos",
|
||||||
["Este documento irá expirar em um segundo.", "Este documento irá expirar em %d segundos."],
|
"%d years (2nd plural)",
|
||||||
"This document will expire in %d minutes.":
|
"%d years (3rd plural)"
|
||||||
["Este documento irá expirar em um minuto.", "Este documento irá expirar em %d minutos."],
|
],
|
||||||
"This document will expire in %d hours.":
|
"Never": "Nunca",
|
||||||
["Este documento irá expirar em uma hora.", "Este documento irá expirar em %d horas."],
|
"Note: This is a test service: Data may be deleted anytime. Kittens will die if you abuse this service.": "Nota: Este é um serviço de teste. Dados podem ser perdidos a qualquer momento. Gatinhos morrerão se você abusar desse serviço.",
|
||||||
"This document will expire in %d days.":
|
"This document will expire in %d seconds.": [
|
||||||
["Este documento irá expirar em um dia.", "Este documento irá expirar em %d dias."],
|
"Este documento irá expirar em um segundo.",
|
||||||
"This document will expire in %d months.":
|
"Este documento irá expirar em %d segundos.",
|
||||||
["Este documento irá expirar em um mês.", "Este documento irá expirar em %d meses."],
|
"This document will expire in %d seconds (2nd plural)",
|
||||||
"Please enter the password for this paste:":
|
"This document will expire in %d seconds (3rd plural)"
|
||||||
"Por favor, digite a senha para essa cópia:",
|
],
|
||||||
"Could not decrypt data (Wrong key?)":
|
"This document will expire in %d minutes.": [
|
||||||
"Não foi possível decifrar os dados (Chave errada?)",
|
"Este documento irá expirar em um minuto.",
|
||||||
"Could not delete the paste, it was not stored in burn after reading mode.":
|
"Este documento irá expirar em %d minutos.",
|
||||||
"Não foi possível excluir a cópia, ela não foi salva no modo de \"queime após ler\".",
|
"This document will expire in %d minutes (2nd plural)",
|
||||||
"FOR YOUR EYES ONLY. Don't close this window, this message can't be displayed again.":
|
"This document will expire in %d minutes (3rd plural)"
|
||||||
"APENAS PARA SEUS OLHOS. Não feche essa janela, essa mensagem não pode ser exibida novamente.",
|
],
|
||||||
"Could not decrypt comment; Wrong key?":
|
"This document will expire in %d hours.": [
|
||||||
"Não foi possível decifrar o comentário; Chave errada?",
|
"Este documento irá expirar em uma hora.",
|
||||||
"Reply":
|
"Este documento irá expirar em %d horas.",
|
||||||
"Responder",
|
"This document will expire in %d hours (2nd plural)",
|
||||||
"Anonymous":
|
"This document will expire in %d hours (3rd plural)"
|
||||||
"Anônimo",
|
],
|
||||||
"Avatar generated from IP address":
|
"This document will expire in %d days.": [
|
||||||
"Avatar gerado à partir do endereço IP",
|
"Este documento irá expirar em um dia.",
|
||||||
"Add comment":
|
"Este documento irá expirar em %d dias.",
|
||||||
"Adicionar comentário",
|
"This document will expire in %d days (2nd plural)",
|
||||||
"Optional nickname…":
|
"This document will expire in %d days (3rd plural)"
|
||||||
"Apelido opcional…",
|
],
|
||||||
"Post comment":
|
"This document will expire in %d months.": [
|
||||||
"Publicar comentário",
|
"Este documento irá expirar em um mês.",
|
||||||
"Sending comment…":
|
"Este documento irá expirar em %d meses.",
|
||||||
"Enviando comentário…",
|
"This document will expire in %d months (2nd plural)",
|
||||||
"Comment posted.":
|
"This document will expire in %d months (3rd plural)"
|
||||||
"Comentário publicado.",
|
],
|
||||||
"Could not refresh display: %s":
|
"Please enter the password for this paste:": "Por favor, digite a senha para essa cópia:",
|
||||||
"Não foi possível atualizar a tela: %s",
|
"Could not decrypt data (Wrong key?)": "Não foi possível decifrar os dados (Chave errada?)",
|
||||||
"unknown status":
|
"Could not delete the paste, it was not stored in burn after reading mode.": "Não foi possível excluir a cópia, ela não foi salva no modo de \"queime após ler\".",
|
||||||
"Estado desconhecido",
|
"FOR YOUR EYES ONLY. Don't close this window, this message can't be displayed again.": "APENAS PARA SEUS OLHOS. Não feche essa janela, essa mensagem não pode ser exibida novamente.",
|
||||||
"server error or not responding":
|
"Could not decrypt comment; Wrong key?": "Não foi possível decifrar o comentário; Chave errada?",
|
||||||
"Servidor em erro ou não responsivo",
|
"Reply": "Responder",
|
||||||
"Could not post comment: %s":
|
"Anonymous": "Anônimo",
|
||||||
"Não foi possível publicar o comentário: %s",
|
"Avatar generated from IP address": "Avatar gerado à partir do endereço IP",
|
||||||
"Please move your mouse for more entropy…":
|
"Add comment": "Adicionar comentário",
|
||||||
"Por favor, mova o mouse para maior entropia…",
|
"Optional nickname…": "Apelido opcional…",
|
||||||
"Sending paste…":
|
"Post comment": "Publicar comentário",
|
||||||
"Enviando cópia…",
|
"Sending comment…": "Enviando comentário…",
|
||||||
"Your paste is <a id=\"pasteurl\" href=\"%s\">%s</a> <span id=\"copyhint\">(Hit [Ctrl]+[c] to copy)</span>":
|
"Comment posted.": "Comentário publicado.",
|
||||||
"Sua cópia é <a id=\"pasteurl\" href=\"%s\">%s</a> <span id=\"copyhint\">(Pressione [Ctrl]+[c] para copiar)</span>",
|
"Could not refresh display: %s": "Não foi possível atualizar a tela: %s",
|
||||||
"Delete data":
|
"unknown status": "Estado desconhecido",
|
||||||
"Excluir dados",
|
"server error or not responding": "Servidor em erro ou não responsivo",
|
||||||
"Could not create paste: %s":
|
"Could not post comment: %s": "Não foi possível publicar o comentário: %s",
|
||||||
"Não foi possível criar cópia: %s",
|
"Sending paste…": "Enviando cópia…",
|
||||||
"Cannot decrypt paste: Decryption key missing in URL (Did you use a redirector or an URL shortener which strips part of the URL?)":
|
"Your paste is <a id=\"pasteurl\" href=\"%s\">%s</a> <span id=\"copyhint\">(Hit [Ctrl]+[c] to copy)</span>": "Sua cópia é <a id=\"pasteurl\" href=\"%s\">%s</a> <span id=\"copyhint\">(Pressione [Ctrl]+[c] para copiar)</span>",
|
||||||
"Não foi possível decifrar a cópia: chave de decriptografia ausente na URL (Você utilizou um redirecionador ou encurtador de URL que removeu parte dela?)",
|
"Delete data": "Excluir dados",
|
||||||
|
"Could not create paste: %s": "Não foi possível criar cópia: %s",
|
||||||
|
"Cannot decrypt paste: Decryption key missing in URL (Did you use a redirector or an URL shortener which strips part of the URL?)": "Não foi possível decifrar a cópia: chave de decriptografia ausente na URL (Você utilizou um redirecionador ou encurtador de URL que removeu parte dela?)",
|
||||||
|
"B": "B",
|
||||||
|
"KiB": "KiB",
|
||||||
|
"MiB": "MiB",
|
||||||
|
"GiB": "GiB",
|
||||||
|
"TiB": "TiB",
|
||||||
|
"PiB": "PiB",
|
||||||
|
"EiB": "EiB",
|
||||||
|
"ZiB": "ZiB",
|
||||||
|
"YiB": "YiB",
|
||||||
"Format": "Formato",
|
"Format": "Formato",
|
||||||
"Plain Text": "Texto sem formato",
|
"Plain Text": "Texto sem formato",
|
||||||
"Source Code": "Código fonte",
|
"Source Code": "Código fonte",
|
||||||
@@ -135,25 +144,38 @@
|
|||||||
"alternatively drag & drop a file or paste an image from the clipboard": "alternatively drag & drop a file or paste an image from the clipboard",
|
"alternatively drag & drop a file or paste an image from the clipboard": "alternatively drag & drop a file or paste an image from the clipboard",
|
||||||
"File too large, to display a preview. Please download the attachment.": "File too large, to display a preview. Please download the attachment.",
|
"File too large, to display a preview. Please download the attachment.": "File too large, to display a preview. Please download the attachment.",
|
||||||
"Remove attachment": "Remover anexo",
|
"Remove attachment": "Remover anexo",
|
||||||
"Your browser does not support uploading encrypted files. Please use a newer browser.":
|
"Your browser does not support uploading encrypted files. Please use a newer browser.": "Seu navegador não permite subir arquivos cifrados. Por favor, utilize um navegador mais recente.",
|
||||||
"Seu navegador não permite subir arquivos cifrados. Por favor, utilize um navegador mais recente.",
|
|
||||||
"Invalid attachment.": "Anexo inválido.",
|
"Invalid attachment.": "Anexo inválido.",
|
||||||
"Options": "Opções",
|
"Options": "Opções",
|
||||||
"Shorten URL": "Encurtar URL",
|
"Shorten URL": "Encurtar URL",
|
||||||
"Editor": "Editor",
|
"Editor": "Editor",
|
||||||
"Preview": "Visualizar",
|
"Preview": "Visualizar",
|
||||||
"%s requires the PATH to end in a \"%s\". Please update the PATH in your index.php.":
|
"%s requires the PATH to end in a \"%s\". Please update the PATH in your index.php.": "%s requer que o PATH termine em \"%s\". Por favor, atualize o PATH em seu index.php.",
|
||||||
"%s requer que o PATH termine em \"%s\". Por favor, atualize o PATH em seu index.php.",
|
"Decrypt": "Decifrar",
|
||||||
"Decrypt":
|
"Enter password": "Digite a senha",
|
||||||
"Decifrar",
|
|
||||||
"Enter password":
|
|
||||||
"Digite a senha",
|
|
||||||
"Loading…": "Carregando…",
|
"Loading…": "Carregando…",
|
||||||
"Decrypting paste…": "Decifrando cópia…",
|
"Decrypting paste…": "Decifrando cópia…",
|
||||||
"Preparing new paste…": "Preparando nova cópia…",
|
"Preparing new paste…": "Preparando nova cópia…",
|
||||||
"In case this message never disappears please have a look at <a href=\"https://github.com/PrivateBin/PrivateBin/wiki/FAQ#why-does-not-the-loading-message-go-away\">this FAQ for information to troubleshoot</a>.":
|
"In case this message never disappears please have a look at <a href=\"%s\">this FAQ for information to troubleshoot</a>.": "Caso essa mensagem nunca desapareça, por favor veja <a href=\"%s\">este FAQ para saber como resolver os problemas</a>.",
|
||||||
"Caso essa mensagem nunca desapareça, por favor veja <a href=\"https://github.com/PrivateBin/PrivateBin/wiki/FAQ#why-does-not-the-loading-message-go-away\">este FAQ para saber como resolver os problemas</a>.",
|
|
||||||
"+++ no paste text +++": "+++ sem texto de cópia +++",
|
"+++ no paste text +++": "+++ sem texto de cópia +++",
|
||||||
"Could not get paste data: %s":
|
"Could not get paste data: %s": "Não foi possível obter dados de cópia: %s",
|
||||||
"Could not get paste data: %s"
|
"QR code": "Código QR",
|
||||||
|
"This website is using an insecure HTTP connection! Please use it only for testing.": "Esse site usa uma conexão HTTP insegura! Use-o apenas para testes.",
|
||||||
|
"For more information <a href=\"%s\">see this FAQ entry</a>.": "Para mais informações <a href=\"%s\">veja esse item do FAQ</a>.",
|
||||||
|
"Your browser may require an HTTPS connection to support the WebCrypto API. Try <a href=\"%s\">switching to HTTPS</a>.": "Seu navegador pode exigir uma conexão HTTPS para dar suporte à API WebCrypto. Tente <a href=\"%s\">mudar para HTTPS</a>.",
|
||||||
|
"Your browser doesn't support WebAssembly, used for zlib compression. You can create uncompressed documents, but can't read compressed ones.": "Seu navagador não suporta WebAssembly, usado para compressão zlib. Você pode criar documentos não compactados, mas não pode lê-los.",
|
||||||
|
"waiting on user to provide a password": "esperando que o usuário digite uma senha",
|
||||||
|
"Could not decrypt data. Did you enter a wrong password? Retry with the button at the top.": "Não foi possível decifrar os dados. Você digitou a senha corretamente? Tente novamente com o botão ao topo.",
|
||||||
|
"Retry": "Tentar Novamente",
|
||||||
|
"Showing raw text…": "Mostrando texto bruto…",
|
||||||
|
"Notice:": "Aviso:",
|
||||||
|
"This link will expire after %s.": "Esse link vai expirar após %s.",
|
||||||
|
"This link can only be accessed once, do not use back or refresh button in your browser.": "Esse link só pode ser acessado uma vez, não utilize o botão de voltar ou atualizar do seu navegador.",
|
||||||
|
"Link:": "Link:",
|
||||||
|
"Recipient may become aware of your timezone, convert time to UTC?": "O recipiente pode ter ciência de seu fuso horário, converter hora para UTC?",
|
||||||
|
"Use Current Timezone": "Usar Fuso Horário Atual",
|
||||||
|
"Convert To UTC": "Converter para UTC",
|
||||||
|
"Close": "Fechar",
|
||||||
|
"Encrypted note on PrivateBin": "Encrypted note on PrivateBin",
|
||||||
|
"Visit this link to see the note. Giving the URL to anyone allows them to access the note, too.": "Visit this link to see the note. Giving the URL to anyone allows them to access the note, too."
|
||||||
}
|
}
|
||||||
288
i18n/ru.json
288
i18n/ru.json
@@ -1,129 +1,129 @@
|
|||||||
{
|
{
|
||||||
"PrivateBin": "PrivateBin",
|
"PrivateBin": "PrivateBin",
|
||||||
"%s is a minimalist, open source online pastebin where the server has zero knowledge of pasted data. Data is encrypted/decrypted <i>in the browser</i> using 256 bits AES. More information on the <a href=\"https://privatebin.info/\">project page</a>.":
|
"%s is a minimalist, open source online pastebin where the server has zero knowledge of pasted data. Data is encrypted/decrypted <i>in the browser</i> using 256 bits AES. More information on the <a href=\"https://privatebin.info/\">project page</a>.": "%s это минималистичный Open Source проект для создания заметок, где сервер не знает ничего о сохраняемых данных. Данные шифруются/расшифровываются <i>в браузере</i> с использованием 256 битного шифрования AES. Подробнее можно узнать на <a href=\"https://privatebin.info/\">сайте проекта</a>.",
|
||||||
"%s это минималистичный Open Source проект для создания заметок, где сервер не знает ничего о сохраняемых данных. Данные шифруются/расшифровываются <i>в браузере</i> с использованием 256 битного шифрования AES. Подробнее можно узнать на <a href=\"https://privatebin.info/\">сайте проекта</a>.",
|
"Because ignorance is bliss": "Потому что неведение - благо",
|
||||||
"Because ignorance is bliss":
|
|
||||||
"Потому что неведение - благо",
|
|
||||||
"en": "ru",
|
"en": "ru",
|
||||||
"Paste does not exist, has expired or has been deleted.":
|
"Paste does not exist, has expired or has been deleted.": "Запись не существует, просрочена или была удалена.",
|
||||||
"Запись не существует, просрочена или была удалена.",
|
"%s requires php %s or above to work. Sorry.": "Для работы %s требуется php %s или выше. Извините.",
|
||||||
"%s requires php %s or above to work. Sorry.":
|
"%s requires configuration section [%s] to be present in configuration file.": "%s необходимо наличие секции [%s] в конфигурационном файле.",
|
||||||
"Для работы %s требуется php %s или выше. Извините.",
|
"Please wait %d seconds between each post.": "Please wait %d seconds between each post.",
|
||||||
"%s requires configuration section [%s] to be present in configuration file.":
|
"Paste is limited to %s of encrypted data.": "Размер записи ограничен %s зашифрованных данных.",
|
||||||
"%s необходимо наличие секции [%s] в конфигурационном файле.",
|
"Invalid data.": "Неверные данные.",
|
||||||
"Please wait %d seconds between each post.":
|
"You are unlucky. Try again.": "Вам не повезло. Попробуйте еще раз.",
|
||||||
["Пожалуйста ожидайте %d секунду между каждыми записями.", "Пожалуйста ожидайте %d секунды между каждыми записями.", "Пожалуйста ожидайте %d секунд между каждыми записями."],
|
"Error saving comment. Sorry.": "Ошибка при сохранении комментария. Извините.",
|
||||||
"Paste is limited to %s of encrypted data.":
|
"Error saving paste. Sorry.": "Ошибка при сохранении записи. Извините.",
|
||||||
"Размер записи ограничен %s зашифрованных данных.",
|
"Invalid paste ID.": "Неверный ID записи.",
|
||||||
"Invalid data.":
|
"Paste is not of burn-after-reading type.": "Тип записи не \"Удалить после прочтения\".",
|
||||||
"Неверные данные.",
|
"Wrong deletion token. Paste was not deleted.": "Неверный ключ удаления записи. Запись не удалена.",
|
||||||
"You are unlucky. Try again.":
|
"Paste was properly deleted.": "Запись была успешно удалена.",
|
||||||
"Вам не повезло. Попробуйте еще раз.",
|
"JavaScript is required for %s to work. Sorry for the inconvenience.": "Для работы %s требуется включенный JavaScript. Приносим извинения за неудобства.",
|
||||||
"Error saving comment. Sorry.":
|
"%s requires a modern browser to work.": "Для работы %s требуется более современный браузер.",
|
||||||
"Ошибка при сохранении комментария. Извините.",
|
"New": "Новая запись",
|
||||||
"Error saving paste. Sorry.":
|
"Send": "Отправить",
|
||||||
"Ошибка при сохранении записи. Извините.",
|
"Clone": "Дублировать",
|
||||||
"Invalid paste ID.":
|
"Raw text": "Исходный текст",
|
||||||
"Неверный ID записи.",
|
"Expires": "Удалить через",
|
||||||
"Paste is not of burn-after-reading type.":
|
"Burn after reading": "Удалить после прочтения",
|
||||||
"Тип записи не \"Удалить после прочтения\".",
|
"Open discussion": "Открыть обсуждение",
|
||||||
"Wrong deletion token. Paste was not deleted.":
|
"Password (recommended)": "Пароль (рекомендуется)",
|
||||||
"Неверный ключ удаления записи. Запись не удалена",
|
"Discussion": "Обсуждение",
|
||||||
"Paste was properly deleted.":
|
"Toggle navigation": "Переключить навигацию",
|
||||||
"Запись была успешно удалена.",
|
"%d seconds": [
|
||||||
"JavaScript is required for %s to work.<br />Sorry for the inconvenience.":
|
"%d секунду",
|
||||||
"Для работы %s требуется включенный JavaScript.<br />Приносим извинения за неудобства.",
|
"%d секунды",
|
||||||
"%s requires a modern browser to work.":
|
"%d секунд",
|
||||||
"Для работы %s требуется более современный браузер.",
|
"%d seconds (3rd plural)"
|
||||||
"Still using Internet Explorer? Do yourself a favor, switch to a modern browser:":
|
],
|
||||||
"До сих пор используете Internet Explorer? Пожалейте себя, перейдите на более современный браузер:",
|
"%d minutes": [
|
||||||
"New":
|
"%d минуту",
|
||||||
"Новая запись",
|
"%d минуты",
|
||||||
"Send":
|
"%d минут",
|
||||||
"Отправить",
|
"%d minutes (3rd plural)"
|
||||||
"Clone":
|
],
|
||||||
"Дублировать",
|
"%d hours": [
|
||||||
"Raw text":
|
"%d час",
|
||||||
"Исходный текст",
|
"%d часа",
|
||||||
"Expires":
|
"%d часов",
|
||||||
"Удалить через",
|
"%d hours (3rd plural)"
|
||||||
"Burn after reading":
|
],
|
||||||
"Удалить после прочтения",
|
"%d days": [
|
||||||
"Open discussion":
|
"%d день",
|
||||||
"Открыть обсуждение",
|
"%d дня",
|
||||||
"Password (recommended)":
|
"%d дней",
|
||||||
"Пароль (рекомендуется)",
|
"%d days (3rd plural)"
|
||||||
"Discussion":
|
],
|
||||||
"Обсуждение",
|
"%d weeks": [
|
||||||
"Toggle navigation":
|
"%d неделю",
|
||||||
"Переключить навигацию",
|
"%d недели",
|
||||||
"%d seconds": ["%d секунду", "%d секунды", "%d секунд"],
|
"%d недель",
|
||||||
"%d minutes": ["%d минуту", "%d минуты", "%d минут"],
|
"%d weeks (3rd plural)"
|
||||||
"%d hours": ["%d час", "%d часа", "%d часов"],
|
],
|
||||||
"%d days": ["%d день", "%d дня", "%d дней"],
|
"%d months": [
|
||||||
"%d weeks": ["%d неделю", "%d недели", "%d недель"],
|
"%d месяц",
|
||||||
"%d months": ["%d месяц", "%d месяца", "%d месяцев"],
|
"%d месяца",
|
||||||
"%d years": ["%d год", "%d года", "%d лет"],
|
"%d месяцев",
|
||||||
"Never":
|
"%d months (3rd plural)"
|
||||||
"Никогда",
|
],
|
||||||
"Note: This is a test service: Data may be deleted anytime. Kittens will die if you abuse this service.":
|
"%d years": [
|
||||||
"Примечание: Этот сервис тестовый: Данные могут быть удалены в любое время. Котята умрут, если вы будете злоупотреблять серсисом.",
|
"%d год",
|
||||||
"This document will expire in %d seconds.":
|
"%d года",
|
||||||
["Документ будет удален через %d секунду.", "Документ будет удален через %d секунды.", "Документ будет удален через %d секунд."],
|
"%d лет",
|
||||||
"This document will expire in %d minutes.":
|
"%d years (3rd plural)"
|
||||||
["Документ будет удален через %d минуту.", "Документ будет удален через %d минуты.", "Документ будет удален через %d минут."],
|
],
|
||||||
"This document will expire in %d hours.":
|
"Never": "Никогда",
|
||||||
["Документ будет удален через %d час.", "Документ будет удален через %d часа.", "Документ будет удален через %d часов."],
|
"Note: This is a test service: Data may be deleted anytime. Kittens will die if you abuse this service.": "Примечание: Этот сервис тестовый: Данные могут быть удалены в любое время. Котята умрут, если вы будете злоупотреблять серсисом.",
|
||||||
"This document will expire in %d days.":
|
"This document will expire in %d seconds.": [
|
||||||
["Документ будет удален через %d день.", "Документ будет удален через %d дня.", "Документ будет удален через %d дней."],
|
"Документ будет удален через %d секунду.",
|
||||||
"This document will expire in %d months.":
|
"Документ будет удален через %d секунды.",
|
||||||
["Документ будет удален через %d месяц.", "Документ будет удален через %d месяца.", "Документ будет удален через %d месяцев."],
|
"Документ будет удален через %d секунд.",
|
||||||
"Please enter the password for this paste:":
|
"This document will expire in %d seconds (3rd plural)"
|
||||||
"Пожалуйста введите пароль от записи:",
|
],
|
||||||
"Could not decrypt data (Wrong key?)":
|
"This document will expire in %d minutes.": [
|
||||||
"Невозможно расшифровать данные (Неверный ключ?)",
|
"Документ будет удален через %d минуту.",
|
||||||
"Could not delete the paste, it was not stored in burn after reading mode.":
|
"Документ будет удален через %d минуты.",
|
||||||
"Невозможно удалить запись, она не была сохранена в режиме удаления после прочтения",
|
"Документ будет удален через %d минут.",
|
||||||
"FOR YOUR EYES ONLY. Don't close this window, this message can't be displayed again.":
|
"This document will expire in %d minutes (3rd plural)"
|
||||||
"ТОЛЬКО ДЛЯ ВАШИХ ГЛАЗ. Не закрывайте это окно, это сообщение не может быть показано снова.",
|
],
|
||||||
"Could not decrypt comment; Wrong key?":
|
"This document will expire in %d hours.": [
|
||||||
"Невозможно расшифровать комментарий; Неверный ключ?",
|
"Документ будет удален через %d час.",
|
||||||
"Reply":
|
"Документ будет удален через %d часа.",
|
||||||
"Ответить",
|
"Документ будет удален через %d часов.",
|
||||||
"Anonymous":
|
"This document will expire in %d hours (3rd plural)"
|
||||||
"Аноним",
|
],
|
||||||
"Avatar generated from IP address":
|
"This document will expire in %d days.": [
|
||||||
"Аватар, сгенерированный из IP-адреса",
|
"Документ будет удален через %d день.",
|
||||||
"Add comment":
|
"Документ будет удален через %d дня.",
|
||||||
"Добавить комментарий",
|
"Документ будет удален через %d дней.",
|
||||||
"Optional nickname…":
|
"This document will expire in %d days (3rd plural)"
|
||||||
"Опциональный никнейм…",
|
],
|
||||||
"Post comment":
|
"This document will expire in %d months.": [
|
||||||
"Отправить комментарий",
|
"Документ будет удален через %d месяц.",
|
||||||
"Sending comment…":
|
"Документ будет удален через %d месяца.",
|
||||||
"Отправка комментария…",
|
"Документ будет удален через %d месяцев.",
|
||||||
"Comment posted.":
|
"This document will expire in %d months (3rd plural)"
|
||||||
"Комментарий опубликован.",
|
],
|
||||||
"Could not refresh display: %s":
|
"Please enter the password for this paste:": "Пожалуйста, введите пароль от записи:",
|
||||||
"Не удалось обновить отображение: %s",
|
"Could not decrypt data (Wrong key?)": "Невозможно расшифровать данные (Неверный ключ?)",
|
||||||
"unknown status":
|
"Could not delete the paste, it was not stored in burn after reading mode.": "Невозможно удалить запись, она не была сохранена в режиме удаления после прочтения.",
|
||||||
"неизвестная причина",
|
"FOR YOUR EYES ONLY. Don't close this window, this message can't be displayed again.": "ТОЛЬКО ДЛЯ ВАШИХ ГЛАЗ. Не закрывайте это окно, это сообщение не может быть показано снова.",
|
||||||
"server error or not responding":
|
"Could not decrypt comment; Wrong key?": "Невозможно расшифровать комментарий; Неверный ключ?",
|
||||||
"ошибка сервера или нет ответа",
|
"Reply": "Ответить",
|
||||||
"Could not post comment: %s":
|
"Anonymous": "Аноним",
|
||||||
"Не удалось опубликовать комментарий: %s",
|
"Avatar generated from IP address": "Аватар, сгенерированный из IP-адреса",
|
||||||
"Please move your mouse for more entropy…":
|
"Add comment": "Добавить комментарий",
|
||||||
"Пожалуйста двигайте мышкой для большей энтропии…",
|
"Optional nickname…": "Опциональный никнейм…",
|
||||||
"Sending paste…":
|
"Post comment": "Отправить комментарий",
|
||||||
"Отправка записи…",
|
"Sending comment…": "Отправка комментария…",
|
||||||
"Your paste is <a id=\"pasteurl\" href=\"%s\">%s</a> <span id=\"copyhint\">(Hit [Ctrl]+[c] to copy)</span>":
|
"Comment posted.": "Комментарий опубликован.",
|
||||||
"Ссылка на запись <a id=\"pasteurl\" href=\"%s\">%s</a> <span id=\"copyhint\">(Нажмите [Ctrl]+[c] чтобы скопировать ссылку)</span>",
|
"Could not refresh display: %s": "Не удалось обновить отображение: %s",
|
||||||
"Delete data":
|
"unknown status": "неизвестная причина",
|
||||||
"Удалить запись",
|
"server error or not responding": "ошибка сервера или нет ответа",
|
||||||
"Could not create paste: %s":
|
"Could not post comment: %s": "Не удалось опубликовать комментарий: %s",
|
||||||
"Не удалось опубликовать запись: %s",
|
"Sending paste…": "Отправка записи…",
|
||||||
"Cannot decrypt paste: Decryption key missing in URL (Did you use a redirector or an URL shortener which strips part of the URL?)":
|
"Your paste is <a id=\"pasteurl\" href=\"%s\">%s</a> <span id=\"copyhint\">(Hit [Ctrl]+[c] to copy)</span>": "Ссылка на запись <a id=\"pasteurl\" href=\"%s\">%s</a> <span id=\"copyhint\">(Нажмите [Ctrl]+[c], чтобы скопировать ссылку)</span>",
|
||||||
"Невозможно расшифровать запись: Ключ расшифровки отсутствует в ссылке (Может быть вы используете сокращатель ссылок, который удаляет часть ссылки?)",
|
"Delete data": "Удалить запись",
|
||||||
|
"Could not create paste: %s": "Не удалось опубликовать запись: %s",
|
||||||
|
"Cannot decrypt paste: Decryption key missing in URL (Did you use a redirector or an URL shortener which strips part of the URL?)": "Невозможно расшифровать запись: Ключ расшифровки отсутствует в ссылке (Может быть, вы используете сокращатель ссылок, который удаляет часть ссылки?)",
|
||||||
"B": "байт",
|
"B": "байт",
|
||||||
"KiB": "Кбайт",
|
"KiB": "Кбайт",
|
||||||
"MiB": "Мбайт",
|
"MiB": "Мбайт",
|
||||||
@@ -139,31 +139,43 @@
|
|||||||
"Markdown": "Язык разметки",
|
"Markdown": "Язык разметки",
|
||||||
"Download attachment": "Скачать прикрепленный файл",
|
"Download attachment": "Скачать прикрепленный файл",
|
||||||
"Cloned: '%s'": "Дублировано: '%s'",
|
"Cloned: '%s'": "Дублировано: '%s'",
|
||||||
"The cloned file '%s' was attached to this paste.":
|
"The cloned file '%s' was attached to this paste.": "Дубликат файла '%s' был прикреплен к этой записи.",
|
||||||
"Дубликат файла '%s' был прикреплен к этой записи.",
|
|
||||||
"Attach a file": "Прикрепить файл",
|
"Attach a file": "Прикрепить файл",
|
||||||
"alternatively drag & drop a file or paste an image from the clipboard": "так же можно перенести файл в окно браузера или вставить изображение из буфера",
|
"alternatively drag & drop a file or paste an image from the clipboard": "так же можно перенести файл в окно браузера или вставить изображение из буфера",
|
||||||
"File too large, to display a preview. Please download the attachment.": "Файл слишком большой для отображения предпросмотра. Пожалуйста скачайте прикрепленный файл.",
|
"File too large, to display a preview. Please download the attachment.": "Файл слишком большой для отображения предпросмотра. Пожалуйста, скачайте прикрепленный файл.",
|
||||||
"Remove attachment": "Удалить вложение",
|
"Remove attachment": "Удалить вложение",
|
||||||
"Your browser does not support uploading encrypted files. Please use a newer browser.":
|
"Your browser does not support uploading encrypted files. Please use a newer browser.": "Ваш браузер не поддерживает отправку зашифрованных файлов. Используйте более новый браузер.",
|
||||||
"Ваш браузер не поддерживает отправку зашифрованных файлов. Используйте более новый браузер.",
|
|
||||||
"Invalid attachment.": "Неизвестное вложение.",
|
"Invalid attachment.": "Неизвестное вложение.",
|
||||||
"Options": "Опции",
|
"Options": "Опции",
|
||||||
"Shorten URL": "Короткая ссылка",
|
"Shorten URL": "Короткая ссылка",
|
||||||
"Editor": "Редактор",
|
"Editor": "Редактор",
|
||||||
"Preview": "Предпросмотр",
|
"Preview": "Предпросмотр",
|
||||||
"%s requires the PATH to end in a \"%s\". Please update the PATH in your index.php.":
|
"%s requires the PATH to end in a \"%s\". Please update the PATH in your index.php.": "Переменная PATH необходима %s в конце \"%s\". Пожалуйста, обновите переменную PATH в вашем index.php.",
|
||||||
"Переменная PATH необходима %s в конце \"%s\". Пожалуйста обновите переменную PATH в вашем index.php.",
|
"Decrypt": "Расшифровать",
|
||||||
"Decrypt":
|
"Enter password": "Введите пароль",
|
||||||
"Расшифровать",
|
|
||||||
"Enter password":
|
|
||||||
"Введите пароль",
|
|
||||||
"Loading…": "Загрузка…",
|
"Loading…": "Загрузка…",
|
||||||
"Decrypting paste…": "Расшифровка записи…",
|
"Decrypting paste…": "Расшифровка записи…",
|
||||||
"Preparing new paste…": "Подготовка новой записи…",
|
"Preparing new paste…": "Подготовка новой записи…",
|
||||||
"In case this message never disappears please have a look at <a href=\"https://github.com/PrivateBin/PrivateBin/wiki/FAQ#why-does-not-the-loading-message-go-away\">this FAQ for information to troubleshoot</a>.":
|
"In case this message never disappears please have a look at <a href=\"%s\">this FAQ for information to troubleshoot</a>.": "Если данное сообщение не исчезает длительное время, посмотрите <a href=\"%s\">этот FAQ с информацией о возможном решении проблемы (на английском)</a>.",
|
||||||
"Если данное сообщение не исчезает длительное время, посмотрите <a href=\"https://github.com/PrivateBin/PrivateBin/wiki/FAQ#why-does-not-the-loading-message-go-away\">этот FAQ с информацией о возможном решении проблемы (на английском)</a>.",
|
|
||||||
"+++ no paste text +++": "+++ в записи нет текста +++",
|
"+++ no paste text +++": "+++ в записи нет текста +++",
|
||||||
"Could not get paste data: %s":
|
"Could not get paste data: %s": "Не удалось получить данные записи: %s",
|
||||||
"Не удалось получить данные записи: %s"
|
"QR code": "QR код",
|
||||||
|
"This website is using an insecure HTTP connection! Please use it only for testing.": "Данный сайт использует незащищенное HTTP подключение! Пожалуйста используйте его только для тестирования.",
|
||||||
|
"For more information <a href=\"%s\">see this FAQ entry</a>.": "Для продробностей <a href=\"%s\">прочтите информацию в FAQ</a>.",
|
||||||
|
"Your browser may require an HTTPS connection to support the WebCrypto API. Try <a href=\"%s\">switching to HTTPS</a>.": "Ваш браузер требует использования HTTPS подключения для поддержки WebCrypto API. Попробуйте <a href=\"%s\">переключиться на HTTPS</a>.",
|
||||||
|
"Your browser doesn't support WebAssembly, used for zlib compression. You can create uncompressed documents, but can't read compressed ones.": "Ваш браузер не поддерживает WebAssembly используемый для сжатия с помощью zlib. Вы можете создавать новые записи без сжатия, но не сможете открыть записи с сжатием.",
|
||||||
|
"waiting on user to provide a password": "ожидаем ввода пароля пользователем",
|
||||||
|
"Could not decrypt data. Did you enter a wrong password? Retry with the button at the top.": "Не удалось расшифровать данные. Может быть вы ввели не верный пароль? Попробуйте снова с помощью кнопки вверху.",
|
||||||
|
"Retry": "Повторить",
|
||||||
|
"Showing raw text…": "Показываем исходный текст…",
|
||||||
|
"Notice:": "Уведомление:",
|
||||||
|
"This link will expire after %s.": "Срок жизни ссылки истечет через %s.",
|
||||||
|
"This link can only be accessed once, do not use back or refresh button in your browser.": "Данная ссылка доступна только один раз, не нажимайте кнопку назад или обновления страницы в вашем браузере.",
|
||||||
|
"Link:": "Ссылка:",
|
||||||
|
"Recipient may become aware of your timezone, convert time to UTC?": "Получатель узнает ваш часовой пояс, сконвертировать время в UTC?",
|
||||||
|
"Use Current Timezone": "Использовать текущий часовой пояс",
|
||||||
|
"Convert To UTC": "Конвертировать в UTC",
|
||||||
|
"Close": "Закрыть",
|
||||||
|
"Encrypted note on PrivateBin": "Зашифрованная запиь на PrivateBin",
|
||||||
|
"Visit this link to see the note. Giving the URL to anyone allows them to access the note, too.": "Посетите эту ссылку чтобы просмотреть запись. Передача ссылки кому либо позволит им получить доступ к записи тоже."
|
||||||
}
|
}
|
||||||
|
|||||||
283
i18n/sl.json
283
i18n/sl.json
@@ -1,129 +1,129 @@
|
|||||||
{
|
{
|
||||||
"PrivateBin": "PrivateBin",
|
"PrivateBin": "PrivateBin",
|
||||||
"%s is a minimalist, open source online pastebin where the server has zero knowledge of pasted data. Data is encrypted/decrypted <i>in the browser</i> using 256 bits AES. More information on the <a href=\"https://privatebin.info/\">project page</a>.":
|
"%s is a minimalist, open source online pastebin where the server has zero knowledge of pasted data. Data is encrypted/decrypted <i>in the browser</i> using 256 bits AES. More information on the <a href=\"https://privatebin.info/\">project page</a>.": "%s je minimalističen, odprtokodni spletni 'pastebin', kjer server ne ve ničesar o prilepljenih podatkih. Podatki so zakodirani/odkodirani <i>v brskalniku</i> z uporabo 256 bitnega AES. Več informacij na <a href=\"https://privatebin.info/\">spletni strani projekta.</a>.",
|
||||||
"%s je minimalističen, odprtokodni spletni 'pastebin', kjer server ne ve ničesar o prilepljenih podatkih. Podatki so zakodirani/odkodirani <i>v brskalniku</i> z uporabo 256 bitnega AES. Več informacij na < href=\"https://privatebin.info/\">spletni strani projekta.</a>.",
|
"Because ignorance is bliss": "Ker kar ne veš ne boli.",
|
||||||
"Because ignorance is bliss":
|
|
||||||
"Ker kar ne veš ne boli.",
|
|
||||||
"en": "sl",
|
"en": "sl",
|
||||||
"Paste does not exist, has expired or has been deleted.":
|
"Paste does not exist, has expired or has been deleted.": "Prilepek ne obstaja, mu je potekla življenjska doba, ali pa je izbrisan.",
|
||||||
"Prilepek ne obstaja, mu je potekla življenjska doba, ali pa je izbrisan.",
|
"%s requires php %s or above to work. Sorry.": "Oprosti, %s za delovanje potrebuje vsaj php %s.",
|
||||||
"%s requires php %s or above to work. Sorry.":
|
"%s requires configuration section [%s] to be present in configuration file.": "%s potrebuje sekcijo konfiguracij [%s] v konfiguracijski datoteki.",
|
||||||
"Oprosti, %s za delovanje potrebuje vsaj php %s.",
|
"Please wait %d seconds between each post.": "Prosim počakaj vsaj %d sekund pred vsako naslednjo objavo.",
|
||||||
"%s requires configuration section [%s] to be present in configuration file.":
|
"Paste is limited to %s of encrypted data.": "Velikost prilepka je omejena na %s zakodiranih podatkov.",
|
||||||
"%s potrebuje sekcijo konfiguracij [%s] v konfiguracijski datoteki.",
|
"Invalid data.": "Neveljavni podatki.",
|
||||||
"Please wait %d seconds between each post.":
|
"You are unlucky. Try again.": "Nimaš sreče, poskusi ponovno.",
|
||||||
"Prosim počakaj vsaj %d sekund pred vsako naslednjo objavo.",
|
"Error saving comment. Sorry.": "Nekaj je šlo narobe pri shranjevanju komentarja. Oprosti.",
|
||||||
"Paste is limited to %s of encrypted data.":
|
"Error saving paste. Sorry.": "Nekaj je šlo narobe pri shranjevanju prilepka. Oprosti.",
|
||||||
"Velikost prilepka je omejena na %s zakodiranih podatkov.",
|
"Invalid paste ID.": "Napačen ID prilepka.",
|
||||||
"Invalid data.":
|
"Paste is not of burn-after-reading type.": "Prilepek ni tipa zažgi-po-branju.",
|
||||||
"Neveljavni podatki.",
|
"Wrong deletion token. Paste was not deleted.": "Napačen token za izbris. Prilepek ni bil izbrisan..",
|
||||||
"You are unlucky. Try again.":
|
"Paste was properly deleted.": "Prilepek je uspešno izbrisan.",
|
||||||
"Nimaš sreče, poskusi ponovno.",
|
"JavaScript is required for %s to work. Sorry for the inconvenience.": "Da %s deluje, moraš vklopiti JavaScript. Oprosti za povročene nevšečnosti.",
|
||||||
"Error saving comment. Sorry.":
|
"%s requires a modern browser to work.": "%s za svoje delovanje potrebuje moderen brskalnik.",
|
||||||
"Nekaj je šlo narobe pri shranjevanju komentarja. Oprosti.",
|
"New": "Nov prilepek",
|
||||||
"Error saving paste. Sorry.":
|
"Send": "Pošlji",
|
||||||
"Nekaj je šlo narobe pri shranjevanju prilepka. Oprosti.",
|
"Clone": "Kloniraj",
|
||||||
"Invalid paste ID.":
|
"Raw text": "Surov tekst",
|
||||||
"Napačen ID prilepka.",
|
"Expires": "Poteče",
|
||||||
"Paste is not of burn-after-reading type.":
|
"Burn after reading": "Zažgi (pobriši) po branju",
|
||||||
"Prilepek ni tipa zažgi-po-branju.",
|
"Open discussion": "Dovoli razpravo",
|
||||||
"Wrong deletion token. Paste was not deleted.":
|
"Password (recommended)": "Geslo (priporočeno)",
|
||||||
"Napačen token za izbris. Prilepek ni bil izbrisan..",
|
"Discussion": "Razprava",
|
||||||
"Paste was properly deleted.":
|
"Toggle navigation": "Preklopi navigacijo",
|
||||||
"Prilepek je uspešno izbrisan.",
|
"%d seconds": [
|
||||||
"JavaScript is required for %s to work.<br />Sorry for the inconvenience.":
|
"%d sekunda",
|
||||||
"Da %s deluje, moraš vklopiti JavaScript.<br />Oprosti za povročene nevšečnosti.",
|
"%d sekundi",
|
||||||
"%s requires a modern browser to work.":
|
"%d sekunde",
|
||||||
"%s za svoje delovanje potrebuje moderen brskalnik.",
|
"%d sekund"
|
||||||
"Still using Internet Explorer? Do yourself a favor, switch to a modern browser:":
|
],
|
||||||
"Še vedno uporabljaš Internet Explorer? Naredi si uslugo, preklopi na moderen brskalnik:",
|
"%d minutes": [
|
||||||
"New":
|
"%d minuta",
|
||||||
"Nov prilepek",
|
"%d minuti",
|
||||||
"Send":
|
"%d minute",
|
||||||
"Pošlji",
|
"%d minut"
|
||||||
"Clone":
|
],
|
||||||
"Kloniraj",
|
"%d hours": [
|
||||||
"Raw text":
|
"%d ura",
|
||||||
"Surov tekst",
|
"%d uri",
|
||||||
"Expires":
|
"%d ure",
|
||||||
"Poteče",
|
"%d ur"
|
||||||
"Burn after reading":
|
],
|
||||||
"Zažgi (pobriši) po branju",
|
"%d days": [
|
||||||
"Open discussion":
|
"%d dan",
|
||||||
"Dovoli razpravo",
|
"%d dneva",
|
||||||
"Password (recommended)":
|
"%d dnevi",
|
||||||
"Geslo (priporočeno)",
|
"%d dni"
|
||||||
"Discussion":
|
],
|
||||||
"Razprava",
|
"%d weeks": [
|
||||||
"Toggle navigation":
|
"%d teden",
|
||||||
"Preklopi navigacijo",
|
"%d tedna",
|
||||||
"%d seconds": ["%d sekunda", "%d sekundi", "%d sekunde", "%d sekund"],
|
"%d tedni",
|
||||||
"%d minutes": ["%d minuta", "%d minuti", "%d minute", "%d minut"],
|
"%d tednov"
|
||||||
"%d hours": ["%d ura", "%d uri", "%d ure", "%d ur"],
|
],
|
||||||
"%d days": ["%d dan", "%d dneva", "%d dnevi", "%d dni"],
|
"%d months": [
|
||||||
"%d weeks": ["%d teden", "%d tedna", "%d tedni", "%d tednov"],
|
"%d mesec",
|
||||||
"%d months": ["%d mesec", "%d meseca", "%d meseci", "%d mesecev"],
|
"%d meseca",
|
||||||
"%d years": ["%d leto", "%d leti", "%d leta", "%d let"],
|
"%d meseci",
|
||||||
"Never":
|
"%d mesecev"
|
||||||
"Nikoli",
|
],
|
||||||
"Note: This is a test service: Data may be deleted anytime. Kittens will die if you abuse this service.":
|
"%d years": [
|
||||||
"Ne pozabi: To je testna storitev: Podatki so lahko kadarkoli pobrisani. Mucki bodo umrli, če boš zlorabljala to storitev.",
|
"%d leto",
|
||||||
"This document will expire in %d seconds.":
|
"%d leti",
|
||||||
["Ta dokument bo potekel čez %d sekundo.", "Ta dokument bo potekel čez %d sekundi.", "Ta dokument bo potekel čez %d sekunde.", "Ta dokument bo potekel čez %d sekund."],
|
"%d leta",
|
||||||
"This document will expire in %d minutes.":
|
"%d let"
|
||||||
["Ta dokument bo potekel čez %d minuto.", "Ta dokument bo potekel čez %d minuti.", "Ta dokument bo potekel čez %d minute.", "Ta dokument bo potekel čez %d minut."],
|
],
|
||||||
"This document will expire in %d hours.":
|
"Never": "Nikoli",
|
||||||
["Ta dokument bo potekel čez %d uro.", "Ta dokument bo potekel čez %d uri.", "Ta dokument bo potekel čez %d ure.", "Ta dokument bo potekel čez %d ur."],
|
"Note: This is a test service: Data may be deleted anytime. Kittens will die if you abuse this service.": "Ne pozabi: To je testna storitev: Podatki so lahko kadarkoli pobrisani. Mucki bodo umrli, če boš zlorabljala to storitev.",
|
||||||
"This document will expire in %d days.":
|
"This document will expire in %d seconds.": [
|
||||||
["Ta dokument bo potekel čez %d dan.", "Ta dokument bo potekel čez %d dni.", "Ta dokument bo potekel čez %d dni.", "Ta dokument bo potekel čez %d dni."],
|
"Ta dokument bo potekel čez %d sekundo.",
|
||||||
"This document will expire in %d months.":
|
"Ta dokument bo potekel čez %d sekundi.",
|
||||||
["Ta dokument bo potekel čez %d mesec.", "Ta dokument bo potekel čez %d meseca.", "Ta dokument bo potekel čez %d mesece.", "Ta dokument bo potekel čez %d mesecev."],
|
"Ta dokument bo potekel čez %d sekunde.",
|
||||||
"Please enter the password for this paste:":
|
"Ta dokument bo potekel čez %d sekund."
|
||||||
"Prosim vnesi geslo tega prilepka:",
|
],
|
||||||
"Could not decrypt data (Wrong key?)":
|
"This document will expire in %d minutes.": [
|
||||||
"Nemogoče odkodirati podakte (Imaš napačen ključ?)",
|
"Ta dokument bo potekel čez %d minuto.",
|
||||||
"Could not delete the paste, it was not stored in burn after reading mode.":
|
"Ta dokument bo potekel čez %d minuti.",
|
||||||
"Prilepek je nemogoče izbrisati, ni bil shranjen v načinu \"zažgi po branju\".",
|
"Ta dokument bo potekel čez %d minute.",
|
||||||
"FOR YOUR EYES ONLY. Don't close this window, this message can't be displayed again.":
|
"Ta dokument bo potekel čez %d minut."
|
||||||
"SAMO ZA TVOJE OČI. Ne zapri tega okna (zavihka), to sporočilo ne bo prikazano nikoli več.",
|
],
|
||||||
"Could not decrypt comment; Wrong key?":
|
"This document will expire in %d hours.": [
|
||||||
"Ne morem odkodirati komentarja: Imaš napačen ključ?",
|
"Ta dokument bo potekel čez %d uro.",
|
||||||
"Reply":
|
"Ta dokument bo potekel čez %d uri.",
|
||||||
"Odgovori",
|
"Ta dokument bo potekel čez %d ure.",
|
||||||
"Anonymous":
|
"Ta dokument bo potekel čez %d ur."
|
||||||
"Aninomno",
|
],
|
||||||
"Avatar generated from IP address":
|
"This document will expire in %d days.": [
|
||||||
"Anonimen avatar (Vizhash IP naslova)",
|
"Ta dokument bo potekel čez %d dan.",
|
||||||
"Add comment":
|
"Ta dokument bo potekel čez %d dni.",
|
||||||
"Dodaj komentar",
|
"Ta dokument bo potekel čez %d dni.",
|
||||||
"Optional nickname…":
|
"Ta dokument bo potekel čez %d dni."
|
||||||
"Uporabniško ime (lahko izpustiš)",
|
],
|
||||||
"Post comment":
|
"This document will expire in %d months.": [
|
||||||
"Objavi komentar",
|
"Ta dokument bo potekel čez %d mesec.",
|
||||||
"Sending comment…":
|
"Ta dokument bo potekel čez %d meseca.",
|
||||||
"Pošiljam komentar …",
|
"Ta dokument bo potekel čez %d mesece.",
|
||||||
"Comment posted.":
|
"Ta dokument bo potekel čez %d mesecev."
|
||||||
"Komentar poslan.",
|
],
|
||||||
"Could not refresh display: %s":
|
"Please enter the password for this paste:": "Prosim vnesi geslo tega prilepka:",
|
||||||
"Ne morem osvežiti zaslona : %s",
|
"Could not decrypt data (Wrong key?)": "Nemogoče odkodirati podakte (Imaš napačen ključ?)",
|
||||||
"unknown status":
|
"Could not delete the paste, it was not stored in burn after reading mode.": "Prilepek je nemogoče izbrisati, ni bil shranjen v načinu \"zažgi po branju\".",
|
||||||
"neznan status",
|
"FOR YOUR EYES ONLY. Don't close this window, this message can't be displayed again.": "SAMO ZA TVOJE OČI. Ne zapri tega okna (zavihka), to sporočilo ne bo prikazano nikoli več.",
|
||||||
"server error or not responding":
|
"Could not decrypt comment; Wrong key?": "Ne morem odkodirati komentarja: Imaš napačen ključ?",
|
||||||
"napaka na strežniku, ali pa se strežnik ne odziva",
|
"Reply": "Odgovori",
|
||||||
"Could not post comment: %s":
|
"Anonymous": "Aninomno",
|
||||||
"Komentarja ni bilo mogoče objaviti : %s",
|
"Avatar generated from IP address": "Anonimen avatar (Vizhash IP naslova)",
|
||||||
"Please move your mouse for more entropy…":
|
"Add comment": "Dodaj komentar",
|
||||||
"Prosim premakni svojo miško za več entropije…",
|
"Optional nickname…": "Uporabniško ime (lahko izpustiš)",
|
||||||
"Sending paste…":
|
"Post comment": "Objavi komentar",
|
||||||
"Pošiljam prilepek…",
|
"Sending comment…": "Pošiljam komentar …",
|
||||||
"Your paste is <a id=\"pasteurl\" href=\"%s\">%s</a> <span id=\"copyhint\">(Hit [Ctrl]+[c] to copy)</span>":
|
"Comment posted.": "Komentar poslan.",
|
||||||
"Tvoj prilepek je dostopen na naslovu: <a id=\"pasteurl\" href=\"%s\">%s</a> <span id=\"copyhint\">(Pritisni [Ctrl]+[c] ali [Cmd] + [c] in skopiraj)</span>",
|
"Could not refresh display: %s": "Ne morem osvežiti zaslona : %s",
|
||||||
"Delete data":
|
"unknown status": "neznan status",
|
||||||
"Izbriši podatke",
|
"server error or not responding": "napaka na strežniku, ali pa se strežnik ne odziva",
|
||||||
"Could not create paste: %s":
|
"Could not post comment: %s": "Komentarja ni bilo mogoče objaviti : %s",
|
||||||
"Ne morem ustvariti prilepka: %s",
|
"Sending paste…": "Pošiljam prilepek…",
|
||||||
"Cannot decrypt paste: Decryption key missing in URL (Did you use a redirector or an URL shortener which strips part of the URL?)":
|
"Your paste is <a id=\"pasteurl\" href=\"%s\">%s</a> <span id=\"copyhint\">(Hit [Ctrl]+[c] to copy)</span>": "Tvoj prilepek je dostopen na naslovu: <a id=\"pasteurl\" href=\"%s\">%s</a> <span id=\"copyhint\">(Pritisni [Ctrl]+[c] ali [Cmd] + [c] in skopiraj)</span>",
|
||||||
"Ne morem odkodirati prilepka: V URL-ju manjka ključ (A si uporabil krajšalnik URL-jev, ki odstrani del URL-ja?)",
|
"Delete data": "Izbriši podatke",
|
||||||
|
"Could not create paste: %s": "Ne morem ustvariti prilepka: %s",
|
||||||
|
"Cannot decrypt paste: Decryption key missing in URL (Did you use a redirector or an URL shortener which strips part of the URL?)": "Ne morem odkodirati prilepka: V URL-ju manjka ključ (A si uporabil krajšalnik URL-jev, ki odstrani del URL-ja?)",
|
||||||
"B": "o",
|
"B": "o",
|
||||||
"KiB": "KB",
|
"KiB": "KB",
|
||||||
"MiB": "MB",
|
"MiB": "MB",
|
||||||
@@ -144,25 +144,38 @@
|
|||||||
"alternatively drag & drop a file or paste an image from the clipboard": "alternatively drag & drop a file or paste an image from the clipboard",
|
"alternatively drag & drop a file or paste an image from the clipboard": "alternatively drag & drop a file or paste an image from the clipboard",
|
||||||
"File too large, to display a preview. Please download the attachment.": "File too large, to display a preview. Please download the attachment.",
|
"File too large, to display a preview. Please download the attachment.": "File too large, to display a preview. Please download the attachment.",
|
||||||
"Remove attachment": "Odstrani priponko",
|
"Remove attachment": "Odstrani priponko",
|
||||||
"Your browser does not support uploading encrypted files. Please use a newer browser.":
|
"Your browser does not support uploading encrypted files. Please use a newer browser.": "Tvoj brskalnik ne omogoča nalaganje zakodiranih datotek. Prosim uporabi novejši brskalnik.",
|
||||||
"Tvoj brskalnik ne omogoča nalaganje zakodiranih datotek. Prosim uporabi novejši brskalnik.",
|
|
||||||
"Invalid attachment.": "Neveljavna priponka.",
|
"Invalid attachment.": "Neveljavna priponka.",
|
||||||
"Options": "Možnosti",
|
"Options": "Možnosti",
|
||||||
"Shorten URL": "Skrajšajte URL",
|
"Shorten URL": "Skrajšajte URL",
|
||||||
"Editor": "Uredi",
|
"Editor": "Uredi",
|
||||||
"Preview": "Predogled",
|
"Preview": "Predogled",
|
||||||
"%s requires the PATH to end in a \"%s\". Please update the PATH in your index.php.":
|
"%s requires the PATH to end in a \"%s\". Please update the PATH in your index.php.": "%s requires the PATH to end in a \"%s\". Please update the PATH in your index.php.",
|
||||||
"%s requires the PATH to end in a \"%s\". Please update the PATH in your index.php.",
|
"Decrypt": "Decrypt",
|
||||||
"Decrypt":
|
"Enter password": "Prosim vnesi geslo",
|
||||||
"Decrypt",
|
|
||||||
"Enter password":
|
|
||||||
"Prosim vnesi geslo",
|
|
||||||
"Loading…": "Loading…",
|
"Loading…": "Loading…",
|
||||||
"Decrypting paste…": "Decrypting paste…",
|
"Decrypting paste…": "Decrypting paste…",
|
||||||
"Preparing new paste…": "Preparing new paste…",
|
"Preparing new paste…": "Preparing new paste…",
|
||||||
"In case this message never disappears please have a look at <a href=\"https://github.com/PrivateBin/PrivateBin/wiki/FAQ#why-does-not-the-loading-message-go-away\">this FAQ for information to troubleshoot</a>.":
|
"In case this message never disappears please have a look at <a href=\"%s\">this FAQ for information to troubleshoot</a>.": "In case this message never disappears please have a look at <a href=\"%s\">this FAQ for information to troubleshoot</a> (in English).",
|
||||||
"In case this message never disappears please have a look at <a href=\"https://github.com/PrivateBin/PrivateBin/wiki/FAQ#why-does-not-the-loading-message-go-away\">this FAQ for information to troubleshoot</a> (in English).",
|
|
||||||
"+++ no paste text +++": "+++ no paste text +++",
|
"+++ no paste text +++": "+++ no paste text +++",
|
||||||
"Could not get paste data: %s":
|
"Could not get paste data: %s": "Could not get paste data: %s",
|
||||||
"Could not get paste data: %s"
|
"QR code": "QR code",
|
||||||
|
"This website is using an insecure HTTP connection! Please use it only for testing.": "This website is using an insecure HTTP connection! Please use it only for testing.",
|
||||||
|
"For more information <a href=\"%s\">see this FAQ entry</a>.": "For more information <a href=\"%s\">see this FAQ entry</a>.",
|
||||||
|
"Your browser may require an HTTPS connection to support the WebCrypto API. Try <a href=\"%s\">switching to HTTPS</a>.": "Your browser may require an HTTPS connection to support the WebCrypto API. Try <a href=\"%s\">switching to HTTPS</a>.",
|
||||||
|
"Your browser doesn't support WebAssembly, used for zlib compression. You can create uncompressed documents, but can't read compressed ones.": "Your browser doesn't support WebAssembly, used for zlib compression. You can create uncompressed documents, but can't read compressed ones.",
|
||||||
|
"waiting on user to provide a password": "waiting on user to provide a password",
|
||||||
|
"Could not decrypt data. Did you enter a wrong password? Retry with the button at the top.": "Could not decrypt data. Did you enter a wrong password? Retry with the button at the top.",
|
||||||
|
"Retry": "Retry",
|
||||||
|
"Showing raw text…": "Showing raw text…",
|
||||||
|
"Notice:": "Notice:",
|
||||||
|
"This link will expire after %s.": "This link will expire after %s.",
|
||||||
|
"This link can only be accessed once, do not use back or refresh button in your browser.": "This link can only be accessed once, do not use back or refresh button in your browser.",
|
||||||
|
"Link:": "Link:",
|
||||||
|
"Recipient may become aware of your timezone, convert time to UTC?": "Recipient may become aware of your timezone, convert time to UTC?",
|
||||||
|
"Use Current Timezone": "Use Current Timezone",
|
||||||
|
"Convert To UTC": "Convert To UTC",
|
||||||
|
"Close": "Close",
|
||||||
|
"Encrypted note on PrivateBin": "Encrypted note on PrivateBin",
|
||||||
|
"Visit this link to see the note. Giving the URL to anyone allows them to access the note, too.": "Visit this link to see the note. Giving the URL to anyone allows them to access the note, too."
|
||||||
}
|
}
|
||||||
|
|||||||
181
i18n/uk.json
Normal file
181
i18n/uk.json
Normal file
@@ -0,0 +1,181 @@
|
|||||||
|
{
|
||||||
|
"PrivateBin": "PrivateBin",
|
||||||
|
"%s is a minimalist, open source online pastebin where the server has zero knowledge of pasted data. Data is encrypted/decrypted <i>in the browser</i> using 256 bits AES. More information on the <a href=\"https://privatebin.info/\">project page</a>.": "%s це мінімалістичний Open Source проєкт для створення нотаток, де сервер не знає нічого про дані, що зберігаються. Дані шифруються/розшифровуються <i>у переглядачі</i> з використанням 256-бітного шифрувания AES. Подробиці можна дізнатися на <a href=\"https://privatebin.info/\">сайті проєкту</a>.",
|
||||||
|
"Because ignorance is bliss": "Бо незнання - благо",
|
||||||
|
"en": "uk",
|
||||||
|
"Paste does not exist, has expired or has been deleted.": "Допис не існує, протермінований чи був видалений.",
|
||||||
|
"%s requires php %s or above to work. Sorry.": "Для роботи %s потрібен php %s и вище. Вибачте.",
|
||||||
|
"%s requires configuration section [%s] to be present in configuration file.": "%s потрібна секція [%s] в конфігураційному файлі.",
|
||||||
|
"Please wait %d seconds between each post.": "Please wait %d seconds between each post.",
|
||||||
|
"Paste is limited to %s of encrypted data.": "Розмір допису обмежений %s зашифрованих даних.",
|
||||||
|
"Invalid data.": "Неправильні дані.",
|
||||||
|
"You are unlucky. Try again.": "Вам не пощастило. Спробуйте ще раз.",
|
||||||
|
"Error saving comment. Sorry.": "Помилка при збереженні коментаря. Вибачте.",
|
||||||
|
"Error saving paste. Sorry.": "Помилка при збереженні допису. Вибачте.",
|
||||||
|
"Invalid paste ID.": "Неправильний ID допису.",
|
||||||
|
"Paste is not of burn-after-reading type.": "Тип допису не \"Знищити після прочитання\".",
|
||||||
|
"Wrong deletion token. Paste was not deleted.": "Неправильний ключ вилучення допису. Допис не вилучено.",
|
||||||
|
"Paste was properly deleted.": "Допис був вилучений повністю.",
|
||||||
|
"JavaScript is required for %s to work. Sorry for the inconvenience.": "Для роботи %s потрібен увімкнутий JavaScript. Вибачте.",
|
||||||
|
"%s requires a modern browser to work.": "Для роботи %s потрібен більш сучасний переглядач.",
|
||||||
|
"New": "Новий допис",
|
||||||
|
"Send": "Відправити",
|
||||||
|
"Clone": "Дублювати",
|
||||||
|
"Raw text": "Початковий текст",
|
||||||
|
"Expires": "Вилучити через",
|
||||||
|
"Burn after reading": "Знищити після прочитання",
|
||||||
|
"Open discussion": "Відкрити обговорення",
|
||||||
|
"Password (recommended)": "Пароль (рекомендується)",
|
||||||
|
"Discussion": "Обговорення",
|
||||||
|
"Toggle navigation": "Перемкнути навігацію",
|
||||||
|
"%d seconds": [
|
||||||
|
"%d секунду",
|
||||||
|
"%d секунди",
|
||||||
|
"%d секунд",
|
||||||
|
"%d seconds (3rd plural)"
|
||||||
|
],
|
||||||
|
"%d minutes": [
|
||||||
|
"%d хвилину",
|
||||||
|
"%d хвилини",
|
||||||
|
"%d хвилин",
|
||||||
|
"%d minutes (3rd plural)"
|
||||||
|
],
|
||||||
|
"%d hours": [
|
||||||
|
"%d годину",
|
||||||
|
"%d години",
|
||||||
|
"%d годин",
|
||||||
|
"%d hours (3rd plural)"
|
||||||
|
],
|
||||||
|
"%d days": [
|
||||||
|
"%d день",
|
||||||
|
"%d дні",
|
||||||
|
"%d днів",
|
||||||
|
"%d days (3rd plural)"
|
||||||
|
],
|
||||||
|
"%d weeks": [
|
||||||
|
"%d тиждень",
|
||||||
|
"%d тижні",
|
||||||
|
"%d тижнів",
|
||||||
|
"%d weeks (3rd plural)"
|
||||||
|
],
|
||||||
|
"%d months": [
|
||||||
|
"%d місяць",
|
||||||
|
"%d місяці",
|
||||||
|
"%d місяців",
|
||||||
|
"%d months (3rd plural)"
|
||||||
|
],
|
||||||
|
"%d years": [
|
||||||
|
"%d рік",
|
||||||
|
"%d роки",
|
||||||
|
"%d років",
|
||||||
|
"%d years (3rd plural)"
|
||||||
|
],
|
||||||
|
"Never": "Ніколи",
|
||||||
|
"Note: This is a test service: Data may be deleted anytime. Kittens will die if you abuse this service.": "Примітка: Це тестовий сервіс: Дані можуть бути вилучені в будь який момент. Кошенята помруть, якщо ви будете зловживати сервісом.",
|
||||||
|
"This document will expire in %d seconds.": [
|
||||||
|
"Документ буде вилучений через %d секунду.",
|
||||||
|
"Документ буде вилучений через %d секунди.",
|
||||||
|
"Документ буде вилучений через %d секунд.",
|
||||||
|
"This document will expire in %d seconds (3rd plural)"
|
||||||
|
],
|
||||||
|
"This document will expire in %d minutes.": [
|
||||||
|
"Документ буде вилучений через %d хвилину.",
|
||||||
|
"Документ буде вилучений через %d хвилини.",
|
||||||
|
"Документ буде вилучений через %d хвилин.",
|
||||||
|
"This document will expire in %d minutes (3rd plural)"
|
||||||
|
],
|
||||||
|
"This document will expire in %d hours.": [
|
||||||
|
"Документ буде вилучений через %d годину.",
|
||||||
|
"Документ буде вилучений через %d години.",
|
||||||
|
"Документ буде вилучений через %d годин.",
|
||||||
|
"This document will expire in %d hours (3rd plural)"
|
||||||
|
],
|
||||||
|
"This document will expire in %d days.": [
|
||||||
|
"Документ буде вилучений через %d день.",
|
||||||
|
"Документ буде вилучений через %d дні.",
|
||||||
|
"Документ буде вилучений через %d днів.",
|
||||||
|
"This document will expire in %d days (3rd plural)"
|
||||||
|
],
|
||||||
|
"This document will expire in %d months.": [
|
||||||
|
"Документ буде вилучений через %d місяць.",
|
||||||
|
"Документ буде вилучений через %d місяці.",
|
||||||
|
"Документ буде вилучений через %d місяців.",
|
||||||
|
"This document will expire in %d months (3rd plural)"
|
||||||
|
],
|
||||||
|
"Please enter the password for this paste:": "Будь ласка, введіть пароль від допису:",
|
||||||
|
"Could not decrypt data (Wrong key?)": "Неможливо розшифрувати дані (Неправильний ключ?)",
|
||||||
|
"Could not delete the paste, it was not stored in burn after reading mode.": "Неможливо вилучити допис, він не був збережений в режимі знищити після прочитання.",
|
||||||
|
"FOR YOUR EYES ONLY. Don't close this window, this message can't be displayed again.": "ЛИШЕ ДЛЯ ВАШИХ ОЧЕЙ. Не закривайте це вікно, це повідомлення не може бути показано знову.",
|
||||||
|
"Could not decrypt comment; Wrong key?": "Неможливо розшифрувати коментар; Неправильний ключ?",
|
||||||
|
"Reply": "Відповісти",
|
||||||
|
"Anonymous": "Анонім",
|
||||||
|
"Avatar generated from IP address": "Аватар зґенерований з IP-адреси",
|
||||||
|
"Add comment": "Додати коментар",
|
||||||
|
"Optional nickname…": "Необов’язкове прізвисько…",
|
||||||
|
"Post comment": "Відправити коментар",
|
||||||
|
"Sending comment…": "Відправка коментаря…",
|
||||||
|
"Comment posted.": "Коментар опублікований.",
|
||||||
|
"Could not refresh display: %s": "Не вдалося оновити екран: %s",
|
||||||
|
"unknown status": "невідома причина",
|
||||||
|
"server error or not responding": "помилка на сервері чи немає відповіді",
|
||||||
|
"Could not post comment: %s": "Не вдалося опублікувати коментар: %s",
|
||||||
|
"Sending paste…": "Відправка допису…",
|
||||||
|
"Your paste is <a id=\"pasteurl\" href=\"%s\">%s</a> <span id=\"copyhint\">(Hit [Ctrl]+[c] to copy)</span>": "Посилання на допис <a id=\"pasteurl\" href=\"%s\">%s</a> <span id=\"copyhint\">(Тисніть [Ctrl]+[c], щоб скопіювати посилання)</span>",
|
||||||
|
"Delete data": "Видалити допис",
|
||||||
|
"Could not create paste: %s": "Не вдалося опублікувати допис: %s",
|
||||||
|
"Cannot decrypt paste: Decryption key missing in URL (Did you use a redirector or an URL shortener which strips part of the URL?)": "Неможливо розшифрувати запис: Ключ дешифрування відсутній в посиланні (Можливо, ви використовуєте скорочувач посилань, що видаляє частину посилання?)",
|
||||||
|
"B": "байт",
|
||||||
|
"KiB": "Кбайт",
|
||||||
|
"MiB": "Мбайт",
|
||||||
|
"GiB": "Гбайт",
|
||||||
|
"TiB": "Тбайт",
|
||||||
|
"PiB": "Пбайт",
|
||||||
|
"EiB": "Ебайт",
|
||||||
|
"ZiB": "Збайт",
|
||||||
|
"YiB": "Йбайт",
|
||||||
|
"Format": "Формат",
|
||||||
|
"Plain Text": "Звичайний текст",
|
||||||
|
"Source Code": "Джерельний код",
|
||||||
|
"Markdown": "Мова розмітки",
|
||||||
|
"Download attachment": "Звантажити прикріплений файл",
|
||||||
|
"Cloned: '%s'": "Дубльовано: '%s'",
|
||||||
|
"The cloned file '%s' was attached to this paste.": "Дублікат файлу '%s' був прикріплений до цього запису.",
|
||||||
|
"Attach a file": "Прикріпити файл",
|
||||||
|
"alternatively drag & drop a file or paste an image from the clipboard": "також можна перенести файл у вікно переглядача чи вставити зображення з буфера",
|
||||||
|
"File too large, to display a preview. Please download the attachment.": "Файл завеликий для відображення передогляду. Будь ласка, звантажте прикріплений файл.",
|
||||||
|
"Remove attachment": "Видалити вкладення",
|
||||||
|
"Your browser does not support uploading encrypted files. Please use a newer browser.": "Ваш переглядач не підтримує відправлення зашифрованих файлів. Використовуйте сучасніший переглядач.",
|
||||||
|
"Invalid attachment.": "Невідоме вкладення.",
|
||||||
|
"Options": "Опції",
|
||||||
|
"Shorten URL": "Коротке посилання",
|
||||||
|
"Editor": "Редактор",
|
||||||
|
"Preview": "Передогляд",
|
||||||
|
"%s requires the PATH to end in a \"%s\". Please update the PATH in your index.php.": "Змінна PATH необхідна %s в конці \"%s\". Будь ласка, оновіть змінну PATH у вашому index.php.",
|
||||||
|
"Decrypt": "Розшифрувати",
|
||||||
|
"Enter password": "Введіть пароль",
|
||||||
|
"Loading…": "Завантаження…",
|
||||||
|
"Decrypting paste…": "Розшифровування допису…",
|
||||||
|
"Preparing new paste…": "Приготування нового допису…",
|
||||||
|
"In case this message never disappears please have a look at <a href=\"%s\">this FAQ for information to troubleshoot</a>.": "Якщо це повідомлення не зникатиме тривалий час, подивіться <a href=\"%s\">цей FAQ з інформацією про можливе вирішення проблеми</a>.",
|
||||||
|
"+++ no paste text +++": "+++ у дописі немає тексту +++",
|
||||||
|
"Could not get paste data: %s": "Не вдалося отримати дані допису: %s",
|
||||||
|
"QR code": "QR код",
|
||||||
|
"This website is using an insecure HTTP connection! Please use it only for testing.": "Цей сайт використовує незахищене HTTP підключення! Будь ласка, використовуйте його лише для тестування.",
|
||||||
|
"For more information <a href=\"%s\">see this FAQ entry</a>.": "Для подробиць <a href=\"%s\">дивіться інформацію в FAQ</a>.",
|
||||||
|
"Your browser may require an HTTPS connection to support the WebCrypto API. Try <a href=\"%s\">switching to HTTPS</a>.": "Ваш переглядач вимагає підключення HTTPS для підтримки WebCrypto API. Спробуйте <a href=\"%s\">перемкнутися на HTTPS</a>.",
|
||||||
|
"Your browser doesn't support WebAssembly, used for zlib compression. You can create uncompressed documents, but can't read compressed ones.": "Ваш переглядач не підтримує WebAssembly, що використовується для стиснення zlib. Ви можете створювати нестиснені документи, але не зможете читати стиснені.",
|
||||||
|
"waiting on user to provide a password": "waiting on user to provide a password",
|
||||||
|
"Could not decrypt data. Did you enter a wrong password? Retry with the button at the top.": "Could not decrypt data. Did you enter a wrong password? Retry with the button at the top.",
|
||||||
|
"Retry": "Retry",
|
||||||
|
"Showing raw text…": "Showing raw text…",
|
||||||
|
"Notice:": "Notice:",
|
||||||
|
"This link will expire after %s.": "This link will expire after %s.",
|
||||||
|
"This link can only be accessed once, do not use back or refresh button in your browser.": "This link can only be accessed once, do not use back or refresh button in your browser.",
|
||||||
|
"Link:": "Link:",
|
||||||
|
"Recipient may become aware of your timezone, convert time to UTC?": "Recipient may become aware of your timezone, convert time to UTC?",
|
||||||
|
"Use Current Timezone": "Use Current Timezone",
|
||||||
|
"Convert To UTC": "Convert To UTC",
|
||||||
|
"Close": "Close",
|
||||||
|
"Encrypted note on PrivateBin": "Encrypted note on PrivateBin",
|
||||||
|
"Visit this link to see the note. Giving the URL to anyone allows them to access the note, too.": "Visit this link to see the note. Giving the URL to anyone allows them to access the note, too."
|
||||||
|
}
|
||||||
302
i18n/zh.json
302
i18n/zh.json
@@ -1,159 +1,181 @@
|
|||||||
{
|
{
|
||||||
"PrivateBin": "PrivateBin",
|
"PrivateBin": "PrivateBin",
|
||||||
"%s is a minimalist, open source online pastebin where the server has zero knowledge of pasted data. Data is encrypted/decrypted <i>in the browser</i> using 256 bits AES. More information on the <a href=\"https://privatebin.info/\">project page</a>.":
|
"%s is a minimalist, open source online pastebin where the server has zero knowledge of pasted data. Data is encrypted/decrypted <i>in the browser</i> using 256 bits AES. More information on the <a href=\"https://privatebin.info/\">project page</a>.": "%s是一个极简、开源、对粘贴内容毫不知情的在线粘贴板,数据<i>在浏览器内</i>进行AES-256加密。更多信息请查看<a href=\"https://privatebin.info/\">项目主页</a>。",
|
||||||
"%s是一个极简,开源,对粘贴内容毫不知情的在线粘贴板,数据<i>在浏览器内</i>进行AES-256加密。更多信息请查看<a href=\"https://privatebin.info/\">项目主页</a>。",
|
"Because ignorance is bliss": "因为无知是福",
|
||||||
"Because ignorance is bliss":
|
|
||||||
"因为无知是福",
|
|
||||||
"en": "zh",
|
"en": "zh",
|
||||||
"Paste does not exist, has expired or has been deleted.":
|
"Paste does not exist, has expired or has been deleted.": "粘贴内容不存在,已过期或已被删除。",
|
||||||
"粘贴不存在,已过期或者已被删除。",
|
"%s requires php %s or above to work. Sorry.": "%s需要PHP %s及以上版本来工作,抱歉。",
|
||||||
"%s requires php %s or above to work. Sorry.":
|
"%s requires configuration section [%s] to be present in configuration file.": "%s需要设置配置文件中 [%s] 部分。",
|
||||||
"%s需要工作于PHP %s及以上版本,抱歉。",
|
"Please wait %d seconds between each post.": "每 %d 秒只能粘贴一次。",
|
||||||
"%s requires configuration section [%s] to be present in configuration file.":
|
"Paste is limited to %s of encrypted data.": "粘贴受限于 %s 加密数据。",
|
||||||
"%s需要设置配置文件中 [%s] 的部分。",
|
"Invalid data.": "无效的数据。",
|
||||||
"Please wait %d seconds between each post.":
|
"You are unlucky. Try again.": "请再试一次。",
|
||||||
"每 %d 秒只能粘贴一次。",
|
"Error saving comment. Sorry.": "保存评论时出现错误,抱歉。",
|
||||||
"Paste is limited to %s of encrypted data.":
|
"Error saving paste. Sorry.": "保存粘贴内容时出现错误,抱歉。",
|
||||||
"粘贴受限于 %s 加密数据。",
|
"Invalid paste ID.": "无效的ID。",
|
||||||
"Invalid data.":
|
"Paste is not of burn-after-reading type.": "粘贴内容不是阅后即焚类型。",
|
||||||
"无效的数据。",
|
"Wrong deletion token. Paste was not deleted.": "错误的删除token,粘贴内容没有被删除。",
|
||||||
"You are unlucky. Try again.":
|
"Paste was properly deleted.": "粘贴内容已被正确删除。",
|
||||||
"请再试一次。",
|
"JavaScript is required for %s to work. Sorry for the inconvenience.": "%s需要JavaScript来进行加解密。 给你带来的不便敬请谅解。",
|
||||||
"Error saving comment. Sorry.":
|
"%s requires a modern browser to work.": "%s需要在现代浏览器上工作。",
|
||||||
"存储评论时出现错误,抱歉。",
|
"New": "新建",
|
||||||
"Error saving paste. Sorry.":
|
"Send": "送出",
|
||||||
"存储粘贴时出现错误,抱歉。",
|
"Clone": "复制",
|
||||||
"Invalid paste ID.":
|
"Raw text": "纯文本",
|
||||||
"无效的ID。",
|
"Expires": "有效期",
|
||||||
"Paste is not of burn-after-reading type.":
|
"Burn after reading": "阅后即焚",
|
||||||
"粘贴不是阅后即焚类型。",
|
"Open discussion": "开放讨论",
|
||||||
"Wrong deletion token. Paste was not deleted.":
|
"Password (recommended)": "密码(推荐)",
|
||||||
"错误的删除token,粘贴没有被删除。",
|
"Discussion": "讨论",
|
||||||
"Paste was properly deleted.":
|
"Toggle navigation": "切换导航栏",
|
||||||
"粘贴已被正确删除。",
|
"%d seconds": [
|
||||||
"JavaScript is required for %s to work.<br />Sorry for the inconvenience.":
|
"%d 秒",
|
||||||
"%s需要JavaScript来进行加解密。<br />带来的不便敬请谅解。",
|
"%d 秒",
|
||||||
"%s requires a modern browser to work.":
|
"%d seconds (2nd plural)",
|
||||||
"%s需要工作于现代化的浏览器。",
|
"%d seconds (3rd plural)"
|
||||||
"Still using Internet Explorer? Do yourself a favor, switch to a modern browser:":
|
],
|
||||||
"还在使用Internet Explorer?帮自己个忙,换上一个现代化的浏览器:",
|
"%d minutes": [
|
||||||
"New":
|
"%d 分钟",
|
||||||
"新建",
|
"%d 分钟",
|
||||||
"Send":
|
"%d minutes (2nd plural)",
|
||||||
"送出",
|
"%d minutes (3rd plural)"
|
||||||
"Clone":
|
],
|
||||||
"克隆",
|
"%d hours": [
|
||||||
"Raw text":
|
"%d 小时",
|
||||||
"纯文本",
|
"%d 小时",
|
||||||
"Expires":
|
"%d hours (2nd plural)",
|
||||||
"有效期",
|
"%d hours (3rd plural)"
|
||||||
"Burn after reading":
|
],
|
||||||
"阅后即焚",
|
"%d days": [
|
||||||
"Open discussion":
|
"%d 天",
|
||||||
"开放讨论",
|
"%d 天",
|
||||||
"Password (recommended)":
|
"%d days (2nd plural)",
|
||||||
"密码 (推荐)",
|
"%d days (3rd plural)"
|
||||||
"Discussion":
|
],
|
||||||
"讨论",
|
"%d weeks": [
|
||||||
"Toggle navigation":
|
"%d 周",
|
||||||
"切换导航栏",
|
"%d 周",
|
||||||
"%d seconds": ["%d 秒", "%d 秒"],
|
"%d weeks (2nd plural)",
|
||||||
"%d minutes": ["%d 分钟", "%d 分钟"],
|
"%d weeks (3rd plural)"
|
||||||
"%d hours": ["%d 小时", "%d 小时"],
|
],
|
||||||
"%d days": ["%d 天", "%d 天"],
|
"%d months": [
|
||||||
"%d weeks": ["%d 周", "%d 周"],
|
"%d 个月",
|
||||||
"%d months": ["%d 个月", "%d 个月"],
|
"%d 个月",
|
||||||
"%d years": ["%d 年", "%d 年"],
|
"%d months (2nd plural)",
|
||||||
"Never":
|
"%d months (3rd plural)"
|
||||||
"永不过期",
|
],
|
||||||
"Note: This is a test service: Data may be deleted anytime. Kittens will die if you abuse this service.":
|
"%d years": [
|
||||||
"注意:这是一个测试服务,数据随时可能被删除。如果你滥用这个服务的话,小猫咪会死的。",
|
"%d 年",
|
||||||
"This document will expire in %d seconds.":
|
"%d 年",
|
||||||
["这份文档将在一秒后过期。", "这份文档将在 %d 秒后过期"],
|
"%d years (2nd plural)",
|
||||||
"This document will expire in %d minutes.":
|
"%d years (3rd plural)"
|
||||||
["这份文档将在一分钟后过期。", "这份文档将在 %d 分钟后过期。"],
|
],
|
||||||
"This document will expire in %d hours.":
|
"Never": "永不过期",
|
||||||
["这份文档将在一小时后过期。", "这份文档将在 %d 小时后过期。"],
|
"Note: This is a test service: Data may be deleted anytime. Kittens will die if you abuse this service.": "注意:这是一个测试服务,数据随时可能被删除。如果你滥用这个服务的话,小猫咪会死的。",
|
||||||
"This document will expire in %d days.":
|
"This document will expire in %d seconds.": [
|
||||||
["这份文档将在一天后过期。", "这份文档将在 %d 天后过期。"],
|
"这份文档将在一秒后过期。",
|
||||||
"This document will expire in %d months.":
|
"这份文档将在 %d 秒后过期",
|
||||||
["这份文档将在一个月后过期。", "这份文档将在 %d 个月后过期。"],
|
"This document will expire in %d seconds (2nd plural)",
|
||||||
"Please enter the password for this paste:":
|
"This document will expire in %d seconds (3rd plural)"
|
||||||
"请输入这份粘贴的密码:",
|
],
|
||||||
"Could not decrypt data (Wrong key?)":
|
"This document will expire in %d minutes.": [
|
||||||
"无法解密数据 (密钥错误?)",
|
"这份文档将在一分钟后过期。",
|
||||||
"Could not delete the paste, it was not stored in burn after reading mode.":
|
"这份文档将在 %d 分钟后过期。",
|
||||||
"无法删除此粘贴,它没有以阅后即焚模式存储。",
|
"This document will expire in %d minutes (2nd plural)",
|
||||||
"FOR YOUR EYES ONLY. Don't close this window, this message can't be displayed again.":
|
"This document will expire in %d minutes (3rd plural)"
|
||||||
"看!仔!细!了! 不要关闭窗口,否则你再也见不到这条消息了。",
|
],
|
||||||
"Could not decrypt comment; Wrong key?":
|
"This document will expire in %d hours.": [
|
||||||
"无法解密评论; 密钥错误?",
|
"这份文档将在一小时后过期。",
|
||||||
"Reply":
|
"这份文档将在 %d 小时后过期。",
|
||||||
"回复",
|
"This document will expire in %d hours (2nd plural)",
|
||||||
"Anonymous":
|
"This document will expire in %d hours (3rd plural)"
|
||||||
"匿名",
|
],
|
||||||
"Avatar generated from IP address":
|
"This document will expire in %d days.": [
|
||||||
"由IP生成的头像",
|
"这份文档将在一天后过期。",
|
||||||
"Add comment":
|
"这份文档将在 %d 天后过期。",
|
||||||
"添加评论",
|
"This document will expire in %d days (2nd plural)",
|
||||||
"Optional nickname…":
|
"This document will expire in %d days (3rd plural)"
|
||||||
"可选昵称…",
|
],
|
||||||
"Post comment":
|
"This document will expire in %d months.": [
|
||||||
"评论",
|
"这份文档将在一个月后过期。",
|
||||||
"Sending comment…":
|
"这份文档将在 %d 个月后过期。",
|
||||||
"评论发送中…",
|
"This document will expire in %d months (2nd plural)",
|
||||||
"Comment posted.":
|
"This document will expire in %d months (3rd plural)"
|
||||||
"评论已发送。",
|
],
|
||||||
"Could not refresh display: %s":
|
"Please enter the password for this paste:": "请输入这份粘贴内容的密码:",
|
||||||
"无法刷新显示: %s",
|
"Could not decrypt data (Wrong key?)": "无法解密数据(密钥错误?)",
|
||||||
"unknown status":
|
"Could not delete the paste, it was not stored in burn after reading mode.": "无法删除此粘贴内容,它没有以阅后即焚模式保存。",
|
||||||
"未知状态",
|
"FOR YOUR EYES ONLY. Don't close this window, this message can't be displayed again.": "看!仔!细!了!不要关闭窗口,否则你再也见不到这条消息了。",
|
||||||
"server error or not responding":
|
"Could not decrypt comment; Wrong key?": "无法解密评论; 密钥错误?",
|
||||||
"服务器错误或无回应",
|
"Reply": "回复",
|
||||||
"Could not post comment: %s":
|
"Anonymous": "匿名",
|
||||||
"无法发送评论: %s",
|
"Avatar generated from IP address": "由IP生成的头像",
|
||||||
"Please move your mouse for more entropy…":
|
"Add comment": "添加评论",
|
||||||
"请移动鼠标增加随机性…",
|
"Optional nickname…": "可选昵称…",
|
||||||
"Sending paste…":
|
"Post comment": "评论",
|
||||||
"粘贴提交中…",
|
"Sending comment…": "评论发送中…",
|
||||||
"Your paste is <a id=\"pasteurl\" href=\"%s\">%s</a> <span id=\"copyhint\">(Hit [Ctrl]+[c] to copy)</span>":
|
"Comment posted.": "评论已发送。",
|
||||||
"您的粘贴的链接是<a id=\"pasteurl\" href=\"%s\">%s</a> <span id=\"copyhint\">(按下 [Ctrl]+[c] 以复制)</span>",
|
"Could not refresh display: %s": "无法刷新显示:%s",
|
||||||
"Delete data":
|
"unknown status": "未知状态",
|
||||||
"删除数据",
|
"server error or not responding": "服务器错误或无回应",
|
||||||
"Could not create paste: %s":
|
"Could not post comment: %s": "无法发送评论: %s",
|
||||||
"无法创建粘贴: %s",
|
"Sending paste…": "粘贴内容提交中…",
|
||||||
"Cannot decrypt paste: Decryption key missing in URL (Did you use a redirector or an URL shortener which strips part of the URL?)":
|
"Your paste is <a id=\"pasteurl\" href=\"%s\">%s</a> <span id=\"copyhint\">(Hit [Ctrl]+[c] to copy)</span>": "您粘贴内容的链接是<a id=\"pasteurl\" href=\"%s\">%s</a> <span id=\"copyhint\">(按下 [Ctrl]+[c] 以复制)</span>",
|
||||||
"无法解密粘贴: URL中缺失解密密钥 (是否使用了重定向或者短链接导致密钥丢失?)",
|
"Delete data": "删除数据",
|
||||||
|
"Could not create paste: %s": "无法创建粘贴:%s",
|
||||||
|
"Cannot decrypt paste: Decryption key missing in URL (Did you use a redirector or an URL shortener which strips part of the URL?)": "无法解密粘贴:URL中缺失解密密钥(是否使用了重定向或者短链接导致密钥丢失?)",
|
||||||
|
"B": "B",
|
||||||
|
"KiB": "KiB",
|
||||||
|
"MiB": "MiB",
|
||||||
|
"GiB": "GiB",
|
||||||
|
"TiB": "TiB",
|
||||||
|
"PiB": "PiB",
|
||||||
|
"EiB": "EiB",
|
||||||
|
"ZiB": "ZiB",
|
||||||
|
"YiB": "YiB",
|
||||||
"Format": "格式",
|
"Format": "格式",
|
||||||
"Plain Text": "纯文本",
|
"Plain Text": "纯文本",
|
||||||
"Source Code": "源代码",
|
"Source Code": "源代码",
|
||||||
"Markdown": "Markdown",
|
"Markdown": "Markdown",
|
||||||
"Download attachment": "下载附件",
|
"Download attachment": "下载附件",
|
||||||
"Cloned: '%s'": "克隆: '%s'",
|
"Cloned: '%s'": "副本: '%s'",
|
||||||
"The cloned file '%s' was attached to this paste.": "克隆文件 '%s' 已附加到此粘贴。",
|
"The cloned file '%s' was attached to this paste.": "副本 '%s' 已附加到此粘贴内容。",
|
||||||
"Attach a file": "添加一个附件",
|
"Attach a file": "添加一个附件",
|
||||||
"alternatively drag & drop a file or paste an image from the clipboard": "alternatively drag & drop a file or paste an image from the clipboard",
|
"alternatively drag & drop a file or paste an image from the clipboard": "拖放文件或从剪贴板粘贴图片",
|
||||||
"File too large, to display a preview. Please download the attachment.": "File too large, to display a preview. Please download the attachment.",
|
"File too large, to display a preview. Please download the attachment.": "文件过大。要显示预览,请下载附件。",
|
||||||
"Remove attachment": "移除附件",
|
"Remove attachment": "移除附件",
|
||||||
"Your browser does not support uploading encrypted files. Please use a newer browser.":
|
"Your browser does not support uploading encrypted files. Please use a newer browser.": "您的浏览器不支持上传加密的文件,请使用更新的浏览器。",
|
||||||
"您的浏览器不支持上传加密的文件,请使用更新的浏览器。",
|
|
||||||
"Invalid attachment.": "无效的附件",
|
"Invalid attachment.": "无效的附件",
|
||||||
"Options": "选项",
|
"Options": "选项",
|
||||||
"Shorten URL": "缩短链接",
|
"Shorten URL": "缩短链接",
|
||||||
"Editor": "编辑",
|
"Editor": "编辑",
|
||||||
"Preview": "预览",
|
"Preview": "预览",
|
||||||
"%s requires the PATH to end in a \"%s\". Please update the PATH in your index.php.":
|
"%s requires the PATH to end in a \"%s\". Please update the PATH in your index.php.": "%s 的 PATH 变量必须结束于 \"%s\"。 请修改你的 index.php 中的 PATH 变量。",
|
||||||
"%s 的 PATH 变量必须结束于 \"%s\"。 请修改你的 index.php 中的 PATH 变量。",
|
"Decrypt": "解密",
|
||||||
"Decrypt":
|
"Enter password": "输入密码",
|
||||||
"解密",
|
|
||||||
"Enter password":
|
|
||||||
"输入密码",
|
|
||||||
"Loading…": "载入中…",
|
"Loading…": "载入中…",
|
||||||
"Decrypting paste…": "正在解密",
|
"Decrypting paste…": "正在解密",
|
||||||
"Preparing new paste…": "正在准备新的粘贴",
|
"Preparing new paste…": "正在准备新的粘贴内容",
|
||||||
"In case this message never disappears please have a look at <a href=\"https://github.com/PrivateBin/PrivateBin/wiki/FAQ#why-does-not-the-loading-message-go-away\">this FAQ for information to troubleshoot</a>.":
|
"In case this message never disappears please have a look at <a href=\"%s\">this FAQ for information to troubleshoot</a>.": "如果这个消息一直存在,请参考 <a href=\"%s\">这里的 FAQ (英文版)</a>进行故障排除。",
|
||||||
"如果这个消息一直不消失,请参考 <a href=\"https://github.com/PrivateBin/PrivateBin/wiki/FAQ#why-does-not-the-loading-message-go-away\">这里的 FAQ 进行故障排除</a> (英文版)。",
|
|
||||||
"+++ no paste text +++": "+++ 没有粘贴内容 +++",
|
"+++ no paste text +++": "+++ 没有粘贴内容 +++",
|
||||||
"Could not get paste data: %s":
|
"Could not get paste data: %s": "无法获取粘贴数据:%s",
|
||||||
"Could not get paste data: %s"
|
"QR code": "二维码",
|
||||||
|
"This website is using an insecure HTTP connection! Please use it only for testing.": "该网站使用了不安全的HTTP连接! 请仅将其用于测试。",
|
||||||
|
"For more information <a href=\"%s\">see this FAQ entry</a>.": "有关更多信息,<a href=\"%s\">请参阅此常见问题解答</a>。",
|
||||||
|
"Your browser may require an HTTPS connection to support the WebCrypto API. Try <a href=\"%s\">switching to HTTPS</a>.": "您的浏览器可能需要HTTPS连接才能支持WebCrypto API。 尝试<a href=\"%s\">切换到HTTPS </a>。",
|
||||||
|
"Your browser doesn't support WebAssembly, used for zlib compression. You can create uncompressed documents, but can't read compressed ones.": "您的浏览器不支持用于zlib压缩的WebAssembly。 您可以创建未压缩的文档,但不能读取压缩的文档。",
|
||||||
|
"waiting on user to provide a password": "请输入密码",
|
||||||
|
"Could not decrypt data. Did you enter a wrong password? Retry with the button at the top.": "无法解密数据。 您输入了错误的密码吗? 点顶部的按钮重试。",
|
||||||
|
"Retry": "重试",
|
||||||
|
"Showing raw text…": "显示原始文字…",
|
||||||
|
"Notice:": "注意:",
|
||||||
|
"This link will expire after %s.": "这个链接将会在 %s 过期。",
|
||||||
|
"This link can only be accessed once, do not use back or refresh button in your browser.": "这个链接只能被访问一次,请勿使用浏览器中的返回和刷新按钮。",
|
||||||
|
"Link:": "链接地址:",
|
||||||
|
"Recipient may become aware of your timezone, convert time to UTC?": "收件人可能会知道您的时区,将时间转换为UTC?",
|
||||||
|
"Use Current Timezone": "使用当前时区",
|
||||||
|
"Convert To UTC": "转换为UTC",
|
||||||
|
"Close": "关闭",
|
||||||
|
"Encrypted note on PrivateBin": "PrivateBin上的加密笔记",
|
||||||
|
"Visit this link to see the note. Giving the URL to anyone allows them to access the note, too.": "访问这个链接来查看该笔记。 将这个URL发送给任何人即可允许其访问该笔记。"
|
||||||
}
|
}
|
||||||
|
|||||||
90
img/browserstack.svg
Normal file
90
img/browserstack.svg
Normal file
@@ -0,0 +1,90 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!-- Generator: Adobe Illustrator 21.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
||||||
|
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
||||||
|
viewBox="0 0 490.1 105.6" style="enable-background:new 0 0 490.1 105.6;" xml:space="preserve">
|
||||||
|
<style type="text/css">
|
||||||
|
.st0{fill:#F4B960;}
|
||||||
|
.st1{fill:#E66F32;}
|
||||||
|
.st2{fill:#E43C41;}
|
||||||
|
.st3{fill:#BDD041;}
|
||||||
|
.st4{fill:#6DB54C;}
|
||||||
|
.st5{fill:#AEDAE6;}
|
||||||
|
.st6{fill:#56B8DE;}
|
||||||
|
.st7{fill:#00B1D5;}
|
||||||
|
.st8{fill:url(#SVGID_1_);}
|
||||||
|
.st9{fill:#221F1F;}
|
||||||
|
.st10{fill:#FFFFFF;}
|
||||||
|
.st11{fill:#000111;}
|
||||||
|
</style>
|
||||||
|
<title>Browserstack-logo-white</title>
|
||||||
|
<circle class="st0" cx="52.8" cy="52.8" r="52.8"/>
|
||||||
|
<circle class="st1" cx="47.5" cy="47.5" r="47.5"/>
|
||||||
|
<circle class="st2" cx="53.8" cy="41.1" r="41.1"/>
|
||||||
|
<circle class="st3" cx="57.1" cy="44.4" r="37.8"/>
|
||||||
|
<circle class="st4" cx="54.3" cy="47.2" r="35.1"/>
|
||||||
|
<circle class="st5" cx="48.8" cy="41.7" r="29.5"/>
|
||||||
|
<circle class="st6" cx="53.6" cy="36.8" r="24.7"/>
|
||||||
|
<circle class="st7" cx="56.6" cy="39.9" r="21.7"/>
|
||||||
|
<radialGradient id="SVGID_1_" cx="53.45" cy="63.02" r="18.57" gradientTransform="matrix(1 0 0 -1 0 106)" gradientUnits="userSpaceOnUse">
|
||||||
|
<stop offset="0" style="stop-color:#797979"/>
|
||||||
|
<stop offset="1" style="stop-color:#4C4C4C"/>
|
||||||
|
</radialGradient>
|
||||||
|
<circle class="st8" cx="53.5" cy="43" r="18.6"/>
|
||||||
|
<circle class="st9" cx="53.5" cy="43" r="18.6"/>
|
||||||
|
<ellipse transform="matrix(0.4094 -0.9123 0.9123 0.4094 2.8913 76.9251)" class="st10" cx="60.9" cy="36.2" rx="5.7" ry="3.7"/>
|
||||||
|
<path class="st11" d="M122.5,32.6c0-0.3,0.3-0.6,0.6-0.6c0,0,0,0,0.1,0h16.6c9.5,0,13.9,4.4,13.9,11c0.2,3.7-1.8,7.2-5.2,8.8v0.1
|
||||||
|
c3.7,1.5,6.1,5.2,6,9.3c0,8.2-5.6,12.2-15.4,12.2h-16c-0.3,0-0.6-0.2-0.7-0.5c0,0,0,0,0-0.1L122.5,32.6L122.5,32.6z M139.6,49.1
|
||||||
|
c3.9,0,6.4-2.2,6.4-5.4s-2.4-5.5-6.4-5.5h-8.9c-0.2,0-0.4,0.1-0.4,0.3c0,0,0,0,0,0.1v10.2c0,0.2,0.1,0.3,0.3,0.4c0,0,0,0,0.1,0
|
||||||
|
H139.6L139.6,49.1z M130.6,66.9h9.3c4.3,0,6.8-2.3,6.8-5.8s-2.4-5.7-6.7-5.7h-9.3c-0.2,0-0.4,0.1-0.4,0.3c0,0,0,0,0,0.1v10.7
|
||||||
|
C130.3,66.8,130.4,66.9,130.6,66.9C130.6,66.9,130.6,66.9,130.6,66.9L130.6,66.9z"/>
|
||||||
|
<path class="st11" d="M159.9,73.3c-0.3,0-0.6-0.2-0.7-0.5c0,0,0,0,0-0.1V44.6c0-0.3,0.3-0.6,0.6-0.6c0,0,0,0,0.1,0h6
|
||||||
|
c0.3,0,0.6,0.2,0.7,0.5c0,0,0,0,0,0.1v2.5h0.1c1.5-2.2,4.2-3.8,8.2-3.8c2.4,0,4.8,0.8,6.6,2.4c0.3,0.3,0.4,0.5,0.1,0.8l-3.5,4.1
|
||||||
|
c-0.2,0.3-0.6,0.4-0.9,0.2c0,0,0,0-0.1,0c-1.4-0.9-3-1.4-4.7-1.4c-4.1,0-6,2.7-6,7.4v15.9c0,0.3-0.3,0.6-0.6,0.6c0,0,0,0-0.1,0
|
||||||
|
H159.9L159.9,73.3z"/>
|
||||||
|
<path class="st11" d="M182.9,65.8c-0.8-2.3-1.1-4.8-1.1-7.2c-0.1-2.5,0.3-4.9,1.1-7.2c1.8-5.1,6.6-8.1,13.1-8.1s11.2,3,13,8.1
|
||||||
|
c0.8,2.3,1.1,4.8,1.1,7.2c0.1,2.5-0.3,4.9-1.1,7.2c-1.8,5.1-6.6,8.1-13,8.1S184.7,71,182.9,65.8z M201.9,64c0.5-1.7,0.8-3.6,0.7-5.4
|
||||||
|
c0.1-1.8-0.1-3.7-0.7-5.4c-0.9-2.5-3.3-4-5.9-3.8c-2.6-0.2-5.1,1.4-6,3.8c-0.5,1.8-0.8,3.6-0.7,5.4c-0.1,1.8,0.1,3.7,0.7,5.4
|
||||||
|
c0.9,2.5,3.4,4,6,3.8C198.6,68,201,66.5,201.9,64L201.9,64z"/>
|
||||||
|
<path class="st11" d="M241.9,73.3c-0.4,0-0.7-0.3-0.8-0.6L235,53.9h-0.1l-6.2,18.7c-0.1,0.4-0.4,0.6-0.8,0.6h-5.4
|
||||||
|
c-0.4,0-0.7-0.3-0.8-0.6l-10-28.1c-0.1-0.2,0-0.5,0.2-0.6c0.1,0,0.2-0.1,0.3,0h6.3c0.4,0,0.8,0.2,0.9,0.6l6.1,19.3h0.1l6-19.3
|
||||||
|
c0.1-0.4,0.5-0.6,0.9-0.6h4.7c0.4,0,0.7,0.2,0.9,0.6l6.4,19.3h0.1l5.8-19.3c0.1-0.4,0.5-0.7,0.9-0.6h6.3c0.2-0.1,0.5,0.1,0.5,0.3
|
||||||
|
c0,0.1,0,0.2,0,0.3l-10,28.1c-0.1,0.4-0.4,0.6-0.8,0.6L241.9,73.3L241.9,73.3z"/>
|
||||||
|
<path class="st11" d="M259.3,69.3c-0.2-0.2-0.3-0.6-0.1-0.8c0,0,0,0,0.1-0.1l3.7-3.6c0.3-0.2,0.7-0.2,0.9,0c2.6,2.1,5.9,3.3,9.3,3.3
|
||||||
|
c3.9,0,5.9-1.5,5.9-3.5c0-1.8-1.1-2.9-5.2-3.2l-3.4-0.3c-6.4-0.6-9.7-3.6-9.7-8.6c0-5.7,4.4-9.2,12.3-9.2c4.2-0.1,8.4,1.2,11.9,3.6
|
||||||
|
c0.3,0.2,0.3,0.5,0.2,0.8c0,0,0,0,0,0.1l-3.2,3.6c-0.2,0.3-0.6,0.3-0.9,0.1c-2.5-1.5-5.4-2.4-8.3-2.4c-3.1,0-4.8,1.3-4.8,3
|
||||||
|
s1.1,2.7,5.2,3.1l3.4,0.3c6.6,0.6,9.8,3.8,9.8,8.6c0,5.8-4.6,9.9-13.3,9.9C268,74,263.2,72.4,259.3,69.3z"/>
|
||||||
|
<path class="st11" d="M291.2,65.8c-0.8-2.3-1.2-4.7-1.1-7.2c-0.1-2.5,0.3-4.9,1-7.2c1.8-5.1,6.6-8.1,12.9-8.1c6.5,0,11.2,3.1,13,8.1
|
||||||
|
c0.7,2.1,1,4.1,1,8.8c0,0.3-0.3,0.6-0.6,0.6c0,0-0.1,0-0.1,0h-19.5c-0.2,0-0.4,0.1-0.4,0.3c0,0,0,0,0,0.1c0,0.8,0.2,1.5,0.5,2.2
|
||||||
|
c1,2.9,3.5,4.4,7.1,4.4c2.7,0.1,5.4-0.9,7.4-2.8c0.2-0.3,0.7-0.4,1-0.1c0,0,0,0,0,0l3.9,3.2c0.2,0.1,0.3,0.5,0.2,0.7
|
||||||
|
c0,0.1-0.1,0.1-0.1,0.1c-2.7,2.9-7.2,5-13,5C297.8,73.9,293,70.9,291.2,65.8z M310.4,52.8c-0.9-2.4-3.2-3.8-6.2-3.8
|
||||||
|
s-5.4,1.4-6.2,3.8c-0.3,0.8-0.4,1.6-0.4,2.5c0,0.2,0.1,0.3,0.3,0.4c0,0,0,0,0.1,0h12.4c0.2,0,0.4-0.1,0.4-0.3c0,0,0,0,0-0.1
|
||||||
|
C310.8,54.5,310.6,53.6,310.4,52.8L310.4,52.8z"/>
|
||||||
|
<path class="st11" d="M323.6,73.3c-0.3,0-0.6-0.2-0.7-0.5c0,0,0,0,0-0.1V44.6c0-0.3,0.3-0.6,0.6-0.6c0,0,0,0,0.1,0h6
|
||||||
|
c0.3,0,0.6,0.2,0.7,0.5c0,0,0,0,0,0.1v2.5h0.1c1.5-2.2,4.2-3.8,8.2-3.8c2.4,0,4.8,0.8,6.6,2.4c0.3,0.3,0.4,0.5,0.1,0.8l-3.5,4.1
|
||||||
|
c-0.2,0.3-0.6,0.4-0.9,0.2c0,0,0,0-0.1,0c-1.4-0.9-3-1.4-4.7-1.4c-4.1,0-6,2.7-6,7.4v15.9c0,0.3-0.3,0.6-0.6,0.6c0,0,0,0-0.1,0
|
||||||
|
H323.6L323.6,73.3z"/>
|
||||||
|
<path class="st11" d="M346.5,68.5c-0.3-0.2-0.4-0.6-0.2-0.9c0,0,0,0,0,0l4.1-4.4c0.2-0.3,0.6-0.3,0.9-0.1c0,0,0,0,0,0
|
||||||
|
c3.5,2.7,7.7,4.2,12.1,4.4c5.3,0,8.4-2.5,8.4-6c0-3-2-4.9-8.1-5.7l-2.4-0.3c-8.6-1.1-13.5-4.9-13.5-11.8c0-7.5,5.9-12.4,15.1-12.4
|
||||||
|
c5.1-0.1,10.1,1.4,14.5,4.2c0.3,0.1,0.4,0.4,0.2,0.7c0,0.1-0.1,0.1-0.1,0.2l-3.1,4.5c-0.2,0.3-0.6,0.4-0.9,0.2
|
||||||
|
c-3.2-2.1-6.9-3.2-10.7-3.2c-4.5,0-7,2.3-7,5.5c0,2.9,2.2,4.8,8.2,5.6l2.4,0.3c8.6,1.1,13.3,4.9,13.3,12c0,7.3-5.7,12.8-16.8,12.8
|
||||||
|
C356.3,73.9,350,71.5,346.5,68.5z"/>
|
||||||
|
<path class="st11" d="M393.3,73.8c-6.4,0-8.8-2.9-8.8-8.6V49.8c0-0.2-0.1-0.3-0.3-0.4c0,0,0,0-0.1,0H382c-0.3,0-0.6-0.2-0.7-0.5
|
||||||
|
c0,0,0,0,0-0.1v-4.1c0-0.3,0.3-0.6,0.6-0.6c0,0,0,0,0.1,0h2.1c0.2,0,0.4-0.1,0.4-0.3c0,0,0,0,0-0.1v-8c0-0.3,0.3-0.6,0.6-0.6
|
||||||
|
c0,0,0,0,0.1,0h6c0.3,0,0.6,0.2,0.7,0.5c0,0,0,0,0,0.1v8c0,0.2,0.1,0.3,0.3,0.4c0,0,0,0,0.1,0h4.2c0.3,0,0.6,0.2,0.7,0.5
|
||||||
|
c0,0,0,0,0,0.1v4.1c0,0.3-0.3,0.6-0.6,0.6c0,0,0,0-0.1,0h-4.2c-0.2,0-0.4,0.1-0.4,0.3c0,0,0,0,0,0.1V65c0,2.1,0.9,2.7,3,2.7h1.6
|
||||||
|
c0.3,0,0.6,0.2,0.7,0.5c0,0,0,0,0,0.1v4.9c0,0.3-0.3,0.6-0.6,0.6c0,0,0,0-0.1,0L393.3,73.8L393.3,73.8z"/>
|
||||||
|
<path class="st11" d="M421.2,73.3c-0.3,0-0.6-0.2-0.7-0.5c0,0,0,0,0-0.1v-2.1h0c-1.5,2-4.5,3.4-8.9,3.4c-5.8,0-10.6-2.8-10.6-8.9
|
||||||
|
c0-6.4,4.9-9.3,12.7-9.3h6.4c0.2,0,0.4-0.1,0.4-0.3c0,0,0,0,0-0.1v-1.4c0-3.3-1.7-4.9-7-4.9c-2.6-0.1-5.1,0.6-7.2,2
|
||||||
|
c-0.3,0.2-0.7,0.2-0.9-0.1c0,0,0,0,0-0.1l-2.4-4c-0.2-0.2-0.1-0.6,0.1-0.8c0,0,0,0,0,0c2.6-1.7,6-2.9,11.2-2.9
|
||||||
|
c9.6,0,13.2,3,13.2,10.2v19.1c0,0.3-0.3,0.6-0.6,0.6c0,0,0,0-0.1,0H421.2L421.2,73.3z M420.4,63.4v-2.2c0-0.2-0.1-0.3-0.3-0.4
|
||||||
|
c0,0,0,0-0.1,0h-5.2c-4.7,0-6.8,1.2-6.8,3.9c0,2.4,1.9,3.6,5.5,3.6C417.9,68.4,420.4,66.8,420.4,63.4L420.4,63.4z"/>
|
||||||
|
<path class="st11" d="M433.1,65.8c-0.7-2.3-1.1-4.8-1-7.2c-0.1-2.4,0.3-4.9,1-7.2c1.8-5.2,6.7-8.1,13.1-8.1c4.2-0.2,8.2,1.5,11,4.6
|
||||||
|
c0.2,0.2,0.2,0.6,0,0.8c0,0,0,0-0.1,0.1l-4.1,3.3c-0.3,0.2-0.7,0.2-0.9-0.1c0,0,0,0,0-0.1c-1.5-1.7-3.6-2.6-5.9-2.5
|
||||||
|
c-2.8,0-5,1.3-5.9,3.8c-0.5,1.8-0.8,3.6-0.7,5.4c-0.1,1.8,0.1,3.7,0.7,5.5c0.9,2.5,3.1,3.8,5.9,3.8c2.2,0.1,4.4-0.9,5.9-2.6
|
||||||
|
c0.2-0.3,0.6-0.3,0.9-0.1c0,0,0,0,0,0l4.1,3.3c0.3,0.2,0.3,0.5,0.1,0.8c0,0,0,0-0.1,0.1c-2.9,3-6.9,4.6-11,4.5
|
||||||
|
C439.8,73.9,435,71.1,433.1,65.8z"/>
|
||||||
|
<path class="st11" d="M482.8,73.3c-0.4,0-0.8-0.2-1-0.6l-8-12.3l-4.3,4.6v7.7c0,0.3-0.3,0.6-0.6,0.6c0,0,0,0-0.1,0h-6
|
||||||
|
c-0.3,0-0.6-0.2-0.7-0.5c0,0,0,0,0-0.1V32.6c0-0.3,0.3-0.6,0.6-0.6c0,0,0,0,0.1,0h6c0.3,0,0.6,0.2,0.7,0.5c0,0,0,0,0,0.1v23.8
|
||||||
|
l10.8-11.8c0.3-0.4,0.8-0.6,1.2-0.6h6.7c0.2,0,0.4,0.1,0.4,0.3c0,0.1,0,0.3-0.1,0.3l-10.1,10.7L490,72.7c0.1,0.2,0.1,0.4,0,0.5
|
||||||
|
c-0.1,0.1-0.2,0.1-0.3,0.1H482.8L482.8,73.3z"/>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 7.4 KiB |
BIN
img/icon_email.png
Normal file
BIN
img/icon_email.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 253 B |
@@ -7,7 +7,7 @@
|
|||||||
* @link https://github.com/PrivateBin/PrivateBin
|
* @link https://github.com/PrivateBin/PrivateBin
|
||||||
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
|
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
|
||||||
* @license https://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
|
* @license https://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
|
||||||
* @version 1.2.2
|
* @version 1.3.4
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// change this, if your php files and data is outside of your webservers document root
|
// change this, if your php files and data is outside of your webservers document root
|
||||||
|
|||||||
9
js/.nycrc.yml
Normal file
9
js/.nycrc.yml
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
include:
|
||||||
|
- legacy.js
|
||||||
|
- privatebin.js
|
||||||
|
reporter:
|
||||||
|
- text
|
||||||
|
- html
|
||||||
|
report-dir: ../tst/log/js-coverage-report
|
||||||
|
temp-dir: /tmp/nyc-output
|
||||||
120
js/base-x-3.0.7.js
Normal file
120
js/base-x-3.0.7.js
Normal file
@@ -0,0 +1,120 @@
|
|||||||
|
'use strict';
|
||||||
|
// base-x encoding / decoding
|
||||||
|
// based on https://github.com/cryptocoinjs/base-x 3.0.7
|
||||||
|
// modification: removed Buffer dependency and node.modules entry
|
||||||
|
// Copyright (c) 2018 base-x contributors
|
||||||
|
// Copyright (c) 2014-2018 The Bitcoin Core developers (base58.cpp)
|
||||||
|
// Distributed under the MIT software license, see the accompanying
|
||||||
|
// file LICENSE or http://www.opensource.org/licenses/mit-license.php.
|
||||||
|
|
||||||
|
(function(){
|
||||||
|
this.baseX = function base (ALPHABET) {
|
||||||
|
if (ALPHABET.length >= 255) { throw new TypeError('Alphabet too long') }
|
||||||
|
var BASE_MAP = new Uint8Array(256)
|
||||||
|
BASE_MAP.fill(255)
|
||||||
|
for (var i = 0; i < ALPHABET.length; i++) {
|
||||||
|
var x = ALPHABET.charAt(i)
|
||||||
|
var xc = x.charCodeAt(0)
|
||||||
|
if (BASE_MAP[xc] !== 255) { throw new TypeError(x + ' is ambiguous') }
|
||||||
|
BASE_MAP[xc] = i
|
||||||
|
}
|
||||||
|
var BASE = ALPHABET.length
|
||||||
|
var LEADER = ALPHABET.charAt(0)
|
||||||
|
var FACTOR = Math.log(BASE) / Math.log(256) // log(BASE) / log(256), rounded up
|
||||||
|
var iFACTOR = Math.log(256) / Math.log(BASE) // log(256) / log(BASE), rounded up
|
||||||
|
function encode (source) {
|
||||||
|
if (source.length === 0) { return '' }
|
||||||
|
// Skip & count leading zeroes.
|
||||||
|
var zeroes = 0
|
||||||
|
var length = 0
|
||||||
|
var pbegin = 0
|
||||||
|
var pend = source.length
|
||||||
|
while (pbegin !== pend && source[pbegin] === 0) {
|
||||||
|
pbegin++
|
||||||
|
zeroes++
|
||||||
|
}
|
||||||
|
// Allocate enough space in big-endian base58 representation.
|
||||||
|
var size = ((pend - pbegin) * iFACTOR + 1) >>> 0
|
||||||
|
var b58 = new Uint8Array(size)
|
||||||
|
// Process the bytes.
|
||||||
|
while (pbegin !== pend) {
|
||||||
|
var carry = source[pbegin]
|
||||||
|
// Apply "b58 = b58 * 256 + ch".
|
||||||
|
var i = 0
|
||||||
|
for (var it1 = size - 1; (carry !== 0 || i < length) && (it1 !== -1); it1--, i++) {
|
||||||
|
carry += (256 * b58[it1]) >>> 0
|
||||||
|
b58[it1] = (carry % BASE) >>> 0
|
||||||
|
carry = (carry / BASE) >>> 0
|
||||||
|
}
|
||||||
|
if (carry !== 0) { throw new Error('Non-zero carry') }
|
||||||
|
length = i
|
||||||
|
pbegin++
|
||||||
|
}
|
||||||
|
// Skip leading zeroes in base58 result.
|
||||||
|
var it2 = size - length
|
||||||
|
while (it2 !== size && b58[it2] === 0) {
|
||||||
|
it2++
|
||||||
|
}
|
||||||
|
// Translate the result into a string.
|
||||||
|
var str = LEADER.repeat(zeroes)
|
||||||
|
for (; it2 < size; ++it2) { str += ALPHABET.charAt(b58[it2]) }
|
||||||
|
return str
|
||||||
|
}
|
||||||
|
function decodeUnsafe (source) {
|
||||||
|
if (typeof source !== 'string') { throw new TypeError('Expected String') }
|
||||||
|
if (source.length === 0) { return '' }
|
||||||
|
var psz = 0
|
||||||
|
// Skip leading spaces.
|
||||||
|
if (source[psz] === ' ') { return }
|
||||||
|
// Skip and count leading '1's.
|
||||||
|
var zeroes = 0
|
||||||
|
var length = 0
|
||||||
|
while (source[psz] === LEADER) {
|
||||||
|
zeroes++
|
||||||
|
psz++
|
||||||
|
}
|
||||||
|
// Allocate enough space in big-endian base256 representation.
|
||||||
|
var size = (((source.length - psz) * FACTOR) + 1) >>> 0 // log(58) / log(256), rounded up.
|
||||||
|
var b256 = new Uint8Array(size)
|
||||||
|
// Process the characters.
|
||||||
|
while (source[psz]) {
|
||||||
|
// Decode character
|
||||||
|
var carry = BASE_MAP[source.charCodeAt(psz)]
|
||||||
|
// Invalid character
|
||||||
|
if (carry === 255) { return }
|
||||||
|
var i = 0
|
||||||
|
for (var it3 = size - 1; (carry !== 0 || i < length) && (it3 !== -1); it3--, i++) {
|
||||||
|
carry += (BASE * b256[it3]) >>> 0
|
||||||
|
b256[it3] = (carry % 256) >>> 0
|
||||||
|
carry = (carry / 256) >>> 0
|
||||||
|
}
|
||||||
|
if (carry !== 0) { throw new Error('Non-zero carry') }
|
||||||
|
length = i
|
||||||
|
psz++
|
||||||
|
}
|
||||||
|
// Skip trailing spaces.
|
||||||
|
if (source[psz] === ' ') { return }
|
||||||
|
// Skip leading zeroes in b256.
|
||||||
|
var it4 = size - length
|
||||||
|
while (it4 !== size && b256[it4] === 0) {
|
||||||
|
it4++
|
||||||
|
}
|
||||||
|
var vch = []
|
||||||
|
var j = zeroes
|
||||||
|
while (it4 !== size) {
|
||||||
|
vch[j++] = b256[it4++]
|
||||||
|
}
|
||||||
|
return vch
|
||||||
|
}
|
||||||
|
function decode (string) {
|
||||||
|
var buffer = decodeUnsafe(string)
|
||||||
|
if (buffer) { return buffer }
|
||||||
|
throw new Error('Non-base' + BASE + ' character')
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
encode: encode,
|
||||||
|
decodeUnsafe: decodeUnsafe,
|
||||||
|
decode: decode
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}).call(this);
|
||||||
@@ -1 +0,0 @@
|
|||||||
(function(global,factory){typeof exports==="object"&&typeof module!=="undefined"?module.exports=factory(global):typeof define==="function"&&define.amd?define(factory):factory(global)})(typeof self!=="undefined"?self:typeof window!=="undefined"?window:typeof global!=="undefined"?global:this,function(global){"use strict";var _Base64=global.Base64;var version="2.4.5";var buffer;if(typeof module!=="undefined"&&module.exports){try{buffer=require("buffer").Buffer}catch(err){}}var b64chars="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var b64tab=function(bin){var t={};for(var i=0,l=bin.length;i<l;i++)t[bin.charAt(i)]=i;return t}(b64chars);var fromCharCode=String.fromCharCode;var cb_utob=function(c){if(c.length<2){var cc=c.charCodeAt(0);return cc<128?c:cc<2048?fromCharCode(192|cc>>>6)+fromCharCode(128|cc&63):fromCharCode(224|cc>>>12&15)+fromCharCode(128|cc>>>6&63)+fromCharCode(128|cc&63)}else{var cc=65536+(c.charCodeAt(0)-55296)*1024+(c.charCodeAt(1)-56320);return fromCharCode(240|cc>>>18&7)+fromCharCode(128|cc>>>12&63)+fromCharCode(128|cc>>>6&63)+fromCharCode(128|cc&63)}};var re_utob=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g;var utob=function(u){return u.replace(re_utob,cb_utob)};var cb_encode=function(ccc){var padlen=[0,2,1][ccc.length%3],ord=ccc.charCodeAt(0)<<16|(ccc.length>1?ccc.charCodeAt(1):0)<<8|(ccc.length>2?ccc.charCodeAt(2):0),chars=[b64chars.charAt(ord>>>18),b64chars.charAt(ord>>>12&63),padlen>=2?"=":b64chars.charAt(ord>>>6&63),padlen>=1?"=":b64chars.charAt(ord&63)];return chars.join("")};var btoa=global.btoa?function(b){return global.btoa(b)}:function(b){return b.replace(/[\s\S]{1,3}/g,cb_encode)};var _encode=buffer?buffer.from&&Uint8Array&&buffer.from!==Uint8Array.from?function(u){return(u.constructor===buffer.constructor?u:buffer.from(u)).toString("base64")}:function(u){return(u.constructor===buffer.constructor?u:new buffer(u)).toString("base64")}:function(u){return btoa(utob(u))};var encode=function(u,urisafe){return!urisafe?_encode(String(u)):_encode(String(u)).replace(/[+\/]/g,function(m0){return m0=="+"?"-":"_"}).replace(/=/g,"")};var encodeURI=function(u){return encode(u,true)};var re_btou=new RegExp(["[À-ß][-¿]","[à-ï][-¿]{2}","[ð-÷][-¿]{3}"].join("|"),"g");var cb_btou=function(cccc){switch(cccc.length){case 4:var cp=(7&cccc.charCodeAt(0))<<18|(63&cccc.charCodeAt(1))<<12|(63&cccc.charCodeAt(2))<<6|63&cccc.charCodeAt(3),offset=cp-65536;return fromCharCode((offset>>>10)+55296)+fromCharCode((offset&1023)+56320);case 3:return fromCharCode((15&cccc.charCodeAt(0))<<12|(63&cccc.charCodeAt(1))<<6|63&cccc.charCodeAt(2));default:return fromCharCode((31&cccc.charCodeAt(0))<<6|63&cccc.charCodeAt(1))}};var btou=function(b){return b.replace(re_btou,cb_btou)};var cb_decode=function(cccc){var len=cccc.length,padlen=len%4,n=(len>0?b64tab[cccc.charAt(0)]<<18:0)|(len>1?b64tab[cccc.charAt(1)]<<12:0)|(len>2?b64tab[cccc.charAt(2)]<<6:0)|(len>3?b64tab[cccc.charAt(3)]:0),chars=[fromCharCode(n>>>16),fromCharCode(n>>>8&255),fromCharCode(n&255)];chars.length-=[0,0,2,1][padlen];return chars.join("")};var atob=global.atob?function(a){return global.atob(a)}:function(a){return a.replace(/[\s\S]{1,4}/g,cb_decode)};var _decode=buffer?buffer.from&&Uint8Array&&buffer.from!==Uint8Array.from?function(a){return(a.constructor===buffer.constructor?a:buffer.from(a,"base64")).toString()}:function(a){return(a.constructor===buffer.constructor?a:new buffer(a,"base64")).toString()}:function(a){return btou(atob(a))};var decode=function(a){return _decode(String(a).replace(/[-_]/g,function(m0){return m0=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,""))};var noConflict=function(){var Base64=global.Base64;global.Base64=_Base64;return Base64};global.Base64={VERSION:version,atob:atob,btoa:btoa,fromBase64:decode,toBase64:encode,utob:utob,encode:encode,encodeURI:encodeURI,btou:btou,decode:decode,noConflict:noConflict};if(typeof Object.defineProperty==="function"){var noEnum=function(v){return{value:v,enumerable:false,writable:true,configurable:true}};global.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",noEnum(function(){return decode(this)}));Object.defineProperty(String.prototype,"toBase64",noEnum(function(urisafe){return encode(this,urisafe)}));Object.defineProperty(String.prototype,"toBase64URI",noEnum(function(){return encode(this,true)}))}}if(global["Meteor"]){Base64=global.Base64}if(typeof module!=="undefined"&&module.exports){module.exports.Base64=global.Base64}else if(typeof define==="function"&&define.amd){define([],function(){return global.Base64})}return{Base64:global.Base64}});
|
|
||||||
@@ -1,16 +1,35 @@
|
|||||||
{
|
{
|
||||||
"@context": {
|
"@context": {
|
||||||
"so": "https://schema.org/",
|
"so": "https://schema.org/",
|
||||||
"status": "so:Integer",
|
"pb": "?jsonld=types#",
|
||||||
"id": "so:name",
|
"cm": "?jsonld=commentmeta#",
|
||||||
"parentid": "so:name",
|
"status": {
|
||||||
"url: {
|
"@type": "so:Integer"
|
||||||
"@id": "so:url",
|
},
|
||||||
"@type": "@id"
|
"id": {
|
||||||
|
"@type": "so:name"
|
||||||
|
},
|
||||||
|
"pasteid": {
|
||||||
|
"@type": "so:name"
|
||||||
|
},
|
||||||
|
"parentid": {
|
||||||
|
"@type": "so:name"
|
||||||
|
},
|
||||||
|
"url": {
|
||||||
|
"@type": "so:url"
|
||||||
|
},
|
||||||
|
"v": {
|
||||||
|
"@type": "so:Integer",
|
||||||
|
"@value": 2
|
||||||
|
},
|
||||||
|
"ct": {
|
||||||
|
"@type": "pb:CipherText"
|
||||||
|
},
|
||||||
|
"adata": {
|
||||||
|
"@type": "pb:CipherParameters"
|
||||||
},
|
},
|
||||||
"data": "so:Text",
|
|
||||||
"meta": {
|
"meta": {
|
||||||
"@id": "?jsonld=commentmeta"
|
"@type": "cm:MetaData"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,8 +1,14 @@
|
|||||||
{
|
{
|
||||||
"@context": {
|
"@context": {
|
||||||
"so": "https://schema.org/",
|
"so": "https://schema.org/",
|
||||||
"postdate": "so:Integer",
|
"pb": "?jsonld=types#"
|
||||||
"nickname": "so:Text",
|
},
|
||||||
"vizhash": "so:Text"
|
"MetaData": {
|
||||||
|
"created": {
|
||||||
|
"@type": "CreationTime"
|
||||||
|
},
|
||||||
|
"icon": {
|
||||||
|
"@type": "so:url"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
33
js/common.js
33
js/common.js
@@ -5,26 +5,32 @@ global.assert = require('assert');
|
|||||||
global.jsc = require('jsverify');
|
global.jsc = require('jsverify');
|
||||||
global.jsdom = require('jsdom-global');
|
global.jsdom = require('jsdom-global');
|
||||||
global.cleanup = global.jsdom();
|
global.cleanup = global.jsdom();
|
||||||
|
global.URL = require('jsdom-url').URL;
|
||||||
global.fs = require('fs');
|
global.fs = require('fs');
|
||||||
|
global.WebCrypto = require('@peculiar/webcrypto').Crypto;
|
||||||
|
require('fake-indexeddb/auto');
|
||||||
|
global.FDBFactory = require('fake-indexeddb/lib/FDBFactory');
|
||||||
|
|
||||||
// application libraries to test
|
// application libraries to test
|
||||||
global.$ = global.jQuery = require('./jquery-3.4.1');
|
global.$ = global.jQuery = require('./jquery-3.4.1');
|
||||||
global.sjcl = require('./sjcl-1.0.8');
|
global.RawDeflate = require('./rawinflate-0.3').RawDeflate;
|
||||||
global.Base64 = require('./base64-2.4.5').Base64;
|
global.zlib = require('./zlib-1.2.11').zlib;
|
||||||
global.RawDeflate = require('./rawdeflate-0.5').RawDeflate;
|
|
||||||
global.RawDeflate.inflate = require('./rawinflate-0.3').RawDeflate.inflate;
|
|
||||||
require('./prettify');
|
require('./prettify');
|
||||||
global.prettyPrint = window.PR.prettyPrint;
|
global.prettyPrint = window.PR.prettyPrint;
|
||||||
global.prettyPrintOne = window.PR.prettyPrintOne;
|
global.prettyPrintOne = window.PR.prettyPrintOne;
|
||||||
global.showdown = require('./showdown-1.9.1');
|
global.showdown = require('./showdown-1.9.1');
|
||||||
global.DOMPurify = require('./purify-2.0.7');
|
global.DOMPurify = require('./purify-2.1.1');
|
||||||
|
global.baseX = require('./base-x-3.0.7').baseX;
|
||||||
|
global.Legacy = require('./legacy').Legacy;
|
||||||
require('./bootstrap-3.3.7');
|
require('./bootstrap-3.3.7');
|
||||||
require('./privatebin');
|
require('./privatebin');
|
||||||
|
|
||||||
// internal variables
|
// internal variables
|
||||||
var a2zString = ['a','b','c','d','e','f','g','h','i','j','k','l','m',
|
var a2zString = ['a','b','c','d','e','f','g','h','i','j','k','l','m',
|
||||||
'n','o','p','q','r','s','t','u','v','w','x','y','z'],
|
'n','o','p','q','r','s','t','u','v','w','x','y','z'],
|
||||||
alnumString = a2zString.concat(['0','1','2','3','4','5','6','7','8','9']),
|
digitString = ['0','1','2','3','4','5','6','7','8','9'],
|
||||||
|
alnumString = a2zString.concat(digitString),
|
||||||
|
hexString = digitString.concat(['a','b','c','d','e','f']),
|
||||||
queryString = alnumString.concat(['+','%','&','.','*','-','_']),
|
queryString = alnumString.concat(['+','%','&','.','*','-','_']),
|
||||||
hashString = queryString.concat(['!']),
|
hashString = queryString.concat(['!']),
|
||||||
base64String = alnumString.concat(['+','/','=']).concat(
|
base64String = alnumString.concat(['+','/','=']).concat(
|
||||||
@@ -32,19 +38,13 @@ var a2zString = ['a','b','c','d','e','f','g','h','i','j','k','l','m',
|
|||||||
return c.toUpperCase();
|
return c.toUpperCase();
|
||||||
})
|
})
|
||||||
),
|
),
|
||||||
schemas = ['ftp','gopher','http','https','ws','wss'],
|
schemas = ['ftp','http','https'],
|
||||||
supportedLanguages = ['de', 'es', 'fr', 'it', 'no', 'pl', 'pt', 'oc', 'ru', 'sl', 'zh'],
|
supportedLanguages = ['de', 'es', 'fr', 'it', 'no', 'pl', 'pt', 'oc', 'ru', 'sl', 'zh'],
|
||||||
mimeTypes = ['image/png', 'application/octet-stream'],
|
mimeTypes = ['image/png', 'application/octet-stream'],
|
||||||
formats = ['plaintext', 'markdown', 'syntaxhighlighting'],
|
formats = ['plaintext', 'markdown', 'syntaxhighlighting'],
|
||||||
logFile = fs.createWriteStream('test.log'),
|
|
||||||
mimeFile = fs.createReadStream('/etc/mime.types'),
|
mimeFile = fs.createReadStream('/etc/mime.types'),
|
||||||
mimeLine = '';
|
mimeLine = '';
|
||||||
|
|
||||||
// redirect console messages to log file
|
|
||||||
console.info = console.warn = console.error = function () {
|
|
||||||
logFile.write(Array.prototype.slice.call(arguments).join('') + '\n');
|
|
||||||
};
|
|
||||||
|
|
||||||
// populate mime types from environment
|
// populate mime types from environment
|
||||||
mimeFile.on('data', function(data) {
|
mimeFile.on('data', function(data) {
|
||||||
mimeLine += data;
|
mimeLine += data;
|
||||||
@@ -81,6 +81,8 @@ function parseMime(line) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// common testing helper functions
|
// common testing helper functions
|
||||||
|
exports.atob = atob;
|
||||||
|
exports.btoa = btoa;
|
||||||
|
|
||||||
// provides random lowercase characters from a to z
|
// provides random lowercase characters from a to z
|
||||||
exports.jscA2zString = function() {
|
exports.jscA2zString = function() {
|
||||||
@@ -92,6 +94,11 @@ exports.jscAlnumString = function() {
|
|||||||
return jsc.elements(alnumString);
|
return jsc.elements(alnumString);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
//provides random characters allowed in hexadecimal notation
|
||||||
|
exports.jscHexString = function() {
|
||||||
|
return jsc.elements(hexString);
|
||||||
|
};
|
||||||
|
|
||||||
// provides random characters allowed in GET queries
|
// provides random characters allowed in GET queries
|
||||||
exports.jscQueryString = function() {
|
exports.jscQueryString = function() {
|
||||||
return jsc.elements(queryString);
|
return jsc.elements(queryString);
|
||||||
|
|||||||
311
js/legacy.js
Normal file
311
js/legacy.js
Normal file
@@ -0,0 +1,311 @@
|
|||||||
|
/**
|
||||||
|
* PrivateBin
|
||||||
|
*
|
||||||
|
* a zero-knowledge paste bin
|
||||||
|
*
|
||||||
|
* @see {@link https://github.com/PrivateBin/PrivateBin}
|
||||||
|
* @copyright 2012 Sébastien SAUVAGE ({@link http://sebsauvage.net})
|
||||||
|
* @license {@link https://www.opensource.org/licenses/zlib-license.php The zlib/libpng License}
|
||||||
|
* @version 1.3.1
|
||||||
|
* @name Legacy
|
||||||
|
* @namespace
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* IMPORTANT NOTICE FOR DEVELOPERS:
|
||||||
|
* The logic in this file is intended to run in legacy browsers. Avoid any use of:
|
||||||
|
* - jQuery (doesn't work in older browsers)
|
||||||
|
* - ES5 or newer in general
|
||||||
|
* - const/let, use the traditional var declarations instead
|
||||||
|
* - async/await or Promises, use traditional callbacks
|
||||||
|
* - shorthand function notation "() => output", use the full "function() {return output;}" style
|
||||||
|
* - IE doesn't support:
|
||||||
|
* - URL(), use the traditional window.location object
|
||||||
|
* - endsWith(), use indexof()
|
||||||
|
* - yes, this logic needs to support IE 6, to at least display the error message
|
||||||
|
*/
|
||||||
|
|
||||||
|
'use strict';
|
||||||
|
(function() {
|
||||||
|
/**
|
||||||
|
* compatibility check
|
||||||
|
*
|
||||||
|
* @name Check
|
||||||
|
* @class
|
||||||
|
*/
|
||||||
|
var Check = (function () {
|
||||||
|
var me = {};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Status of the initial check, true means it passed
|
||||||
|
*
|
||||||
|
* @private
|
||||||
|
* @prop {bool}
|
||||||
|
*/
|
||||||
|
var status = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Initialization check did run
|
||||||
|
*
|
||||||
|
* @private
|
||||||
|
* @prop {bool}
|
||||||
|
*/
|
||||||
|
var init = false;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* blacklist of UserAgents (parts) known to belong to a bot
|
||||||
|
*
|
||||||
|
* @private
|
||||||
|
* @enum {Array}
|
||||||
|
* @readonly
|
||||||
|
*/
|
||||||
|
var badBotUA = [
|
||||||
|
'Bot',
|
||||||
|
'bot'
|
||||||
|
];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* whitelist of top level domains to consider a secure context,
|
||||||
|
* regardless of protocol
|
||||||
|
*
|
||||||
|
* @private
|
||||||
|
* @enum {Array}
|
||||||
|
* @readonly
|
||||||
|
*/
|
||||||
|
var tld = [
|
||||||
|
'.onion',
|
||||||
|
'.i2p'
|
||||||
|
];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* whitelist of hostnames to consider a secure context,
|
||||||
|
* regardless of protocol
|
||||||
|
*
|
||||||
|
* @private
|
||||||
|
* @enum {Array}
|
||||||
|
* @readonly
|
||||||
|
*/
|
||||||
|
// whitelists of TLDs & local hostnames
|
||||||
|
var hostname = [
|
||||||
|
'localhost',
|
||||||
|
'127.0.0.1',
|
||||||
|
'[::1]'
|
||||||
|
];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* check if the context is secure
|
||||||
|
*
|
||||||
|
* @private
|
||||||
|
* @name Check.isSecureContext
|
||||||
|
* @function
|
||||||
|
* @return {bool}
|
||||||
|
*/
|
||||||
|
function isSecureContext()
|
||||||
|
{
|
||||||
|
// use .isSecureContext if available
|
||||||
|
if (window.isSecureContext === true || window.isSecureContext === false) {
|
||||||
|
return window.isSecureContext;
|
||||||
|
}
|
||||||
|
|
||||||
|
// HTTP is obviously insecure
|
||||||
|
if (window.location.protocol !== 'http:') {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
// filter out actually secure connections over HTTP
|
||||||
|
for (var i = 0; i < tld.length; i++) {
|
||||||
|
if (
|
||||||
|
window.location.hostname.indexOf(
|
||||||
|
tld[i],
|
||||||
|
window.location.hostname.length - tld[i].length
|
||||||
|
) !== -1
|
||||||
|
) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// whitelist localhost for development
|
||||||
|
for (var j = 0; j < hostname.length; j++) {
|
||||||
|
if (window.location.hostname === hostname[j]) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// totally INSECURE http protocol!
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* checks whether this is a bot we dislike
|
||||||
|
*
|
||||||
|
* @private
|
||||||
|
* @name Check.isBadBot
|
||||||
|
* @function
|
||||||
|
* @return {bool}
|
||||||
|
*/
|
||||||
|
function isBadBot() {
|
||||||
|
// check whether a bot user agent part can be found in the current
|
||||||
|
// user agent
|
||||||
|
for (var i = 0; i < badBotUA.length; i++) {
|
||||||
|
if (navigator.userAgent.indexOf(badBotUA[i]) !== -1) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* checks whether this is an unsupported browser, via feature detection
|
||||||
|
*
|
||||||
|
* @private
|
||||||
|
* @name Check.isOldBrowser
|
||||||
|
* @function
|
||||||
|
* @return {bool}
|
||||||
|
*/
|
||||||
|
function isOldBrowser() {
|
||||||
|
// webcrypto support
|
||||||
|
if (!(
|
||||||
|
'crypto' in window &&
|
||||||
|
'getRandomValues' in window.crypto &&
|
||||||
|
'subtle' in window.crypto &&
|
||||||
|
'encrypt' in window.crypto.subtle &&
|
||||||
|
'decrypt' in window.crypto.subtle &&
|
||||||
|
'Uint8Array' in window &&
|
||||||
|
'Uint32Array' in window
|
||||||
|
)) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
// async & ES6 support
|
||||||
|
try {
|
||||||
|
eval('async () => {}');
|
||||||
|
} catch (e) {
|
||||||
|
if (e instanceof SyntaxError) {
|
||||||
|
return true;
|
||||||
|
} else {
|
||||||
|
throw e; // throws CSP error
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* shows an error message
|
||||||
|
*
|
||||||
|
* @private
|
||||||
|
* @name Check.showError
|
||||||
|
* @param {string} message
|
||||||
|
* @function
|
||||||
|
*/
|
||||||
|
function showError(message)
|
||||||
|
{
|
||||||
|
var element = document.getElementById('errormessage');
|
||||||
|
if (message.indexOf('<a') === -1) {
|
||||||
|
element.appendChild(
|
||||||
|
document.createTextNode(message)
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
element.innerHTML = message;
|
||||||
|
}
|
||||||
|
removeHiddenFromId('errormessage');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* removes "hidden" CSS class from element with given ID
|
||||||
|
*
|
||||||
|
* @private
|
||||||
|
* @name Check.removeHiddenFromId
|
||||||
|
* @param {string} id
|
||||||
|
* @function
|
||||||
|
*/
|
||||||
|
function removeHiddenFromId(id)
|
||||||
|
{
|
||||||
|
var element = document.getElementById(id);
|
||||||
|
if (element) {
|
||||||
|
element.className = element.className.replace(/\bhidden\b/g, '');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* returns if the check has concluded
|
||||||
|
*
|
||||||
|
* @name Check.getInit
|
||||||
|
* @function
|
||||||
|
* @return {bool}
|
||||||
|
*/
|
||||||
|
me.getInit = function()
|
||||||
|
{
|
||||||
|
return init;
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* returns the current status of the check
|
||||||
|
*
|
||||||
|
* @name Check.getStatus
|
||||||
|
* @function
|
||||||
|
* @return {bool}
|
||||||
|
*/
|
||||||
|
me.getStatus = function()
|
||||||
|
{
|
||||||
|
return status;
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* init on application start, returns an all-clear signal
|
||||||
|
*
|
||||||
|
* @name Check.init
|
||||||
|
* @function
|
||||||
|
*/
|
||||||
|
me.init = function()
|
||||||
|
{
|
||||||
|
// prevent bots from viewing a paste and potentially deleting data
|
||||||
|
// when burn-after-reading is set
|
||||||
|
if (isBadBot()) {
|
||||||
|
showError('I love you too, bot…');
|
||||||
|
init = true;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (isOldBrowser()) {
|
||||||
|
// some browsers (Chrome based ones) would have webcrypto support if using HTTPS
|
||||||
|
if (!isSecureContext()) {
|
||||||
|
removeHiddenFromId('insecurecontextnotice');
|
||||||
|
}
|
||||||
|
removeHiddenFromId('oldnotice');
|
||||||
|
init = true;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!isSecureContext()) {
|
||||||
|
removeHiddenFromId('httpnotice');
|
||||||
|
}
|
||||||
|
init = true;
|
||||||
|
|
||||||
|
// only if everything passed, we set the status to true
|
||||||
|
status = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
return me;
|
||||||
|
})();
|
||||||
|
|
||||||
|
// main application start, called when DOM is fully loaded
|
||||||
|
if (document.readyState === 'complete' || (!document.attachEvent && document.readyState === 'interactive')) {
|
||||||
|
Check.init();
|
||||||
|
} else {
|
||||||
|
if (document.addEventListener) {
|
||||||
|
// first choice is DOMContentLoaded event
|
||||||
|
document.addEventListener('DOMContentLoaded', Check.init, false);
|
||||||
|
// backup is window load event
|
||||||
|
window.addEventListener('load', Check.init, false);
|
||||||
|
} else {
|
||||||
|
// must be IE
|
||||||
|
document.attachEvent('onreadystatechange', Check.init);
|
||||||
|
window.attachEvent('onload', Check.init);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
this.Legacy = {
|
||||||
|
Check: Check
|
||||||
|
};
|
||||||
|
}).call(this);
|
||||||
44
js/package.json
Normal file
44
js/package.json
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
{
|
||||||
|
"name": "privatebin",
|
||||||
|
"version": "1.3.0",
|
||||||
|
"description": "PrivateBin is a minimalist, open source online pastebin where the server has zero knowledge of pasted data. Data is encrypted/decrypted in the browser using 256 bit AES in Galois Counter mode (GCM).",
|
||||||
|
"main": "privatebin.js",
|
||||||
|
"directories": {
|
||||||
|
"test": "test"
|
||||||
|
},
|
||||||
|
"dependencies": {},
|
||||||
|
"devDependencies": {
|
||||||
|
"@peculiar/webcrypto": "^1.1.1",
|
||||||
|
"fake-indexeddb": "^3.0.2",
|
||||||
|
"jsdom": "^9.12.0",
|
||||||
|
"jsdom-global": "^2.1.1",
|
||||||
|
"jsdom-url": "^2.2.1",
|
||||||
|
"jsverify": "^0.8.3"
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"test": "mocha"
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "git+https://github.com/PrivateBin/PrivateBin.git"
|
||||||
|
},
|
||||||
|
"keywords": [
|
||||||
|
"private",
|
||||||
|
"secure",
|
||||||
|
"end-to-end-encrypted",
|
||||||
|
"e2e",
|
||||||
|
"paste",
|
||||||
|
"pastebin",
|
||||||
|
"zero",
|
||||||
|
"zero-knowledge",
|
||||||
|
"encryption",
|
||||||
|
"encrypted",
|
||||||
|
"AES"
|
||||||
|
],
|
||||||
|
"author": "",
|
||||||
|
"license": "zlib-acknowledgement",
|
||||||
|
"bugs": {
|
||||||
|
"url": "https://github.com/PrivateBin/PrivateBin/issues"
|
||||||
|
},
|
||||||
|
"homepage": "https://privatebin.info/"
|
||||||
|
}
|
||||||
@@ -1,24 +1,42 @@
|
|||||||
{
|
{
|
||||||
"@context": {
|
"@context": {
|
||||||
"so": "https://schema.org/",
|
"so": "https://schema.org/",
|
||||||
"status": {"@id": "so:Integer"},
|
"pb": "?jsonld=types#",
|
||||||
"id": {"@id": "so:name"},
|
"pm": "?jsonld=pastemeta#",
|
||||||
"deletetoken": {"@id": "so:Text"},
|
"status": {
|
||||||
"url": {
|
"@type": "so:Integer"
|
||||||
"@type": "@id",
|
},
|
||||||
"@id": "so:url"
|
"id": {
|
||||||
|
"@type": "so:name"
|
||||||
|
},
|
||||||
|
"deletetoken": {
|
||||||
|
"@type": "so:Text"
|
||||||
|
},
|
||||||
|
"url": {
|
||||||
|
"@type": "so:url"
|
||||||
|
},
|
||||||
|
"v": {
|
||||||
|
"@type": "so:Integer",
|
||||||
|
"@value": 2
|
||||||
|
},
|
||||||
|
"ct": {
|
||||||
|
"@type": "pb:CipherText"
|
||||||
|
},
|
||||||
|
"adata": {
|
||||||
|
"@type": "pm:AuthenticatedData"
|
||||||
},
|
},
|
||||||
"data": {"@id": "so:Text"},
|
|
||||||
"attachment": {"@id": "so:Text"},
|
|
||||||
"attachmentname": {"@id": "so:Text"},
|
|
||||||
"meta": {
|
"meta": {
|
||||||
"@id": "?jsonld=pastemeta"
|
"@type": "pm:MetaData"
|
||||||
},
|
},
|
||||||
"comments": {
|
"comments": {
|
||||||
"@id": "?jsonld=comment",
|
"@type": "?jsonld=comment",
|
||||||
"@container": "@list"
|
"@container": "@list"
|
||||||
},
|
},
|
||||||
"comment_count": {"@id": "so:Integer"},
|
"comment_count": {
|
||||||
"comment_offset": {"@id": "so:Integer"}
|
"@type": "so:Integer"
|
||||||
|
},
|
||||||
|
"comment_offset": {
|
||||||
|
"@type": "so:Integer"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,11 +1,31 @@
|
|||||||
{
|
{
|
||||||
"@context": {
|
"@context": {
|
||||||
"so": "https://schema.org/",
|
"so": "https://schema.org/",
|
||||||
"formatter": {"@id": "so:Text"},
|
"pb": "?jsonld=types#"
|
||||||
"postdate": {"@id": "so:Integer"},
|
},
|
||||||
"opendiscussion": {"@id": "so:True"},
|
"AuthenticatedData": {
|
||||||
"burnafterreading": {"@id": "so:True"},
|
"@container": "@list",
|
||||||
"expire_date": {"@id": "so:Integer"},
|
"@value": [
|
||||||
"remaining_time": {"@id": "so:Integer"}
|
{
|
||||||
|
"@type": "pb:CipherParameters"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"@type": "pb:Formatter"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"@type": "pb:OpenDiscussion"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"@type": "pb:BurnAfterReading"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"MetaData": {
|
||||||
|
"expire": {
|
||||||
|
"@type": "pb:Expiration"
|
||||||
|
},
|
||||||
|
"time_to_live": {
|
||||||
|
"@type": "pb:RemainingSeconds"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
3011
js/privatebin.js
3011
js/privatebin.js
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
2
js/purify-2.1.1.js
Normal file
2
js/purify-2.1.1.js
Normal file
File diff suppressed because one or more lines are too long
1675
js/rawdeflate-0.5.js
1675
js/rawdeflate-0.5.js
File diff suppressed because it is too large
Load Diff
@@ -1,60 +0,0 @@
|
|||||||
"use strict";var sjcl={cipher:{},hash:{},keyexchange:{},mode:{},misc:{},codec:{},exception:{corrupt:function(a){this.toString=function(){return"CORRUPT: "+this.message};this.message=a},invalid:function(a){this.toString=function(){return"INVALID: "+this.message};this.message=a},bug:function(a){this.toString=function(){return"BUG: "+this.message};this.message=a},notReady:function(a){this.toString=function(){return"NOT READY: "+this.message};this.message=a}}};
|
|
||||||
sjcl.cipher.aes=function(a){this.s[0][0][0]||this.O();var b,c,d,e,f=this.s[0][4],g=this.s[1];b=a.length;var h=1;if(4!==b&&6!==b&&8!==b)throw new sjcl.exception.invalid("invalid aes key size");this.b=[d=a.slice(0),e=[]];for(a=b;a<4*b+28;a++){c=d[a-1];if(0===a%b||8===b&&4===a%b)c=f[c>>>24]<<24^f[c>>16&255]<<16^f[c>>8&255]<<8^f[c&255],0===a%b&&(c=c<<8^c>>>24^h<<24,h=h<<1^283*(h>>7));d[a]=d[a-b]^c}for(b=0;a;b++,a--)c=d[b&3?a:a-4],e[b]=4>=a||4>b?c:g[0][f[c>>>24]]^g[1][f[c>>16&255]]^g[2][f[c>>8&255]]^g[3][f[c&
|
|
||||||
255]]};
|
|
||||||
sjcl.cipher.aes.prototype={encrypt:function(a){return t(this,a,0)},decrypt:function(a){return t(this,a,1)},s:[[[],[],[],[],[]],[[],[],[],[],[]]],O:function(){var a=this.s[0],b=this.s[1],c=a[4],d=b[4],e,f,g,h=[],k=[],l,n,m,p;for(e=0;0x100>e;e++)k[(h[e]=e<<1^283*(e>>7))^e]=e;for(f=g=0;!c[f];f^=l||1,g=k[g]||1)for(m=g^g<<1^g<<2^g<<3^g<<4,m=m>>8^m&255^99,c[f]=m,d[m]=f,n=h[e=h[l=h[f]]],p=0x1010101*n^0x10001*e^0x101*l^0x1010100*f,n=0x101*h[m]^0x1010100*m,e=0;4>e;e++)a[e][f]=n=n<<24^n>>>8,b[e][m]=p=p<<24^p>>>8;for(e=
|
|
||||||
0;5>e;e++)a[e]=a[e].slice(0),b[e]=b[e].slice(0)}};
|
|
||||||
function t(a,b,c){if(4!==b.length)throw new sjcl.exception.invalid("invalid aes block size");var d=a.b[c],e=b[0]^d[0],f=b[c?3:1]^d[1],g=b[2]^d[2];b=b[c?1:3]^d[3];var h,k,l,n=d.length/4-2,m,p=4,r=[0,0,0,0];h=a.s[c];a=h[0];var q=h[1],v=h[2],w=h[3],x=h[4];for(m=0;m<n;m++)h=a[e>>>24]^q[f>>16&255]^v[g>>8&255]^w[b&255]^d[p],k=a[f>>>24]^q[g>>16&255]^v[b>>8&255]^w[e&255]^d[p+1],l=a[g>>>24]^q[b>>16&255]^v[e>>8&255]^w[f&255]^d[p+2],b=a[b>>>24]^q[e>>16&255]^v[f>>8&255]^w[g&255]^d[p+3],p+=4,e=h,f=k,g=l;for(m=
|
|
||||||
0;4>m;m++)r[c?3&-m:m]=x[e>>>24]<<24^x[f>>16&255]<<16^x[g>>8&255]<<8^x[b&255]^d[p++],h=e,e=f,f=g,g=b,b=h;return r}
|
|
||||||
sjcl.bitArray={bitSlice:function(a,b,c){a=sjcl.bitArray.$(a.slice(b/32),32-(b&31)).slice(1);return void 0===c?a:sjcl.bitArray.clamp(a,c-b)},extract:function(a,b,c){var d=Math.floor(-b-c&31);return((b+c-1^b)&-32?a[b/32|0]<<32-d^a[b/32+1|0]>>>d:a[b/32|0]>>>d)&(1<<c)-1},concat:function(a,b){if(0===a.length||0===b.length)return a.concat(b);var c=a[a.length-1],d=sjcl.bitArray.getPartial(c);return 32===d?a.concat(b):sjcl.bitArray.$(b,d,c|0,a.slice(0,a.length-1))},bitLength:function(a){var b=a.length;return 0===
|
|
||||||
b?0:32*(b-1)+sjcl.bitArray.getPartial(a[b-1])},clamp:function(a,b){if(32*a.length<b)return a;a=a.slice(0,Math.ceil(b/32));var c=a.length;b=b&31;0<c&&b&&(a[c-1]=sjcl.bitArray.partial(b,a[c-1]&2147483648>>b-1,1));return a},partial:function(a,b,c){return 32===a?b:(c?b|0:b<<32-a)+0x10000000000*a},getPartial:function(a){return Math.round(a/0x10000000000)||32},equal:function(a,b){if(sjcl.bitArray.bitLength(a)!==sjcl.bitArray.bitLength(b))return!1;var c=0,d;for(d=0;d<a.length;d++)c|=a[d]^b[d];return 0===
|
|
||||||
c},$:function(a,b,c,d){var e;e=0;for(void 0===d&&(d=[]);32<=b;b-=32)d.push(c),c=0;if(0===b)return d.concat(a);for(e=0;e<a.length;e++)d.push(c|a[e]>>>b),c=a[e]<<32-b;e=a.length?a[a.length-1]:0;a=sjcl.bitArray.getPartial(e);d.push(sjcl.bitArray.partial(b+a&31,32<b+a?c:d.pop(),1));return d},i:function(a,b){return[a[0]^b[0],a[1]^b[1],a[2]^b[2],a[3]^b[3]]},byteswapM:function(a){var b,c;for(b=0;b<a.length;++b)c=a[b],a[b]=c>>>24|c>>>8&0xff00|(c&0xff00)<<8|c<<24;return a}};
|
|
||||||
sjcl.codec.utf8String={fromBits:function(a){var b="",c=sjcl.bitArray.bitLength(a),d,e;for(d=0;d<c/8;d++)0===(d&3)&&(e=a[d/4]),b+=String.fromCharCode(e>>>8>>>8>>>8),e<<=8;return decodeURIComponent(escape(b))},toBits:function(a){a=unescape(encodeURIComponent(a));var b=[],c,d=0;for(c=0;c<a.length;c++)d=d<<8|a.charCodeAt(c),3===(c&3)&&(b.push(d),d=0);c&3&&b.push(sjcl.bitArray.partial(8*(c&3),d));return b}};
|
|
||||||
sjcl.codec.hex={fromBits:function(a){var b="",c;for(c=0;c<a.length;c++)b+=((a[c]|0)+0xf00000000000).toString(16).substr(4);return b.substr(0,sjcl.bitArray.bitLength(a)/4)},toBits:function(a){var b,c=[],d;a=a.replace(/\s|0x/g,"");d=a.length;a=a+"00000000";for(b=0;b<a.length;b+=8)c.push(parseInt(a.substr(b,8),16)^0);return sjcl.bitArray.clamp(c,4*d)}};
|
|
||||||
sjcl.codec.base32={B:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",X:"0123456789ABCDEFGHIJKLMNOPQRSTUV",BITS:32,BASE:5,REMAINING:27,fromBits:function(a,b,c){var d=sjcl.codec.base32.BASE,e=sjcl.codec.base32.REMAINING,f="",g=0,h=sjcl.codec.base32.B,k=0,l=sjcl.bitArray.bitLength(a);c&&(h=sjcl.codec.base32.X);for(c=0;f.length*d<l;)f+=h.charAt((k^a[c]>>>g)>>>e),g<d?(k=a[c]<<d-g,g+=e,c++):(k<<=d,g-=d);for(;f.length&7&&!b;)f+="=";return f},toBits:function(a,b){a=a.replace(/\s|=/g,"").toUpperCase();var c=sjcl.codec.base32.BITS,
|
|
||||||
d=sjcl.codec.base32.BASE,e=sjcl.codec.base32.REMAINING,f=[],g,h=0,k=sjcl.codec.base32.B,l=0,n,m="base32";b&&(k=sjcl.codec.base32.X,m="base32hex");for(g=0;g<a.length;g++){n=k.indexOf(a.charAt(g));if(0>n){if(!b)try{return sjcl.codec.base32hex.toBits(a)}catch(p){}throw new sjcl.exception.invalid("this isn't "+m+"!");}h>e?(h-=e,f.push(l^n>>>h),l=n<<c-h):(h+=d,l^=n<<c-h)}h&56&&f.push(sjcl.bitArray.partial(h&56,l,1));return f}};
|
|
||||||
sjcl.codec.base32hex={fromBits:function(a,b){return sjcl.codec.base32.fromBits(a,b,1)},toBits:function(a){return sjcl.codec.base32.toBits(a,1)}};
|
|
||||||
sjcl.codec.base64={B:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",fromBits:function(a,b,c){var d="",e=0,f=sjcl.codec.base64.B,g=0,h=sjcl.bitArray.bitLength(a);c&&(f=f.substr(0,62)+"-_");for(c=0;6*d.length<h;)d+=f.charAt((g^a[c]>>>e)>>>26),6>e?(g=a[c]<<6-e,e+=26,c++):(g<<=6,e-=6);for(;d.length&3&&!b;)d+="=";return d},toBits:function(a,b){a=a.replace(/\s|=/g,"");var c=[],d,e=0,f=sjcl.codec.base64.B,g=0,h;b&&(f=f.substr(0,62)+"-_");for(d=0;d<a.length;d++){h=f.indexOf(a.charAt(d));
|
|
||||||
if(0>h)throw new sjcl.exception.invalid("this isn't base64!");26<e?(e-=26,c.push(g^h>>>e),g=h<<32-e):(e+=6,g^=h<<32-e)}e&56&&c.push(sjcl.bitArray.partial(e&56,g,1));return c}};sjcl.codec.base64url={fromBits:function(a){return sjcl.codec.base64.fromBits(a,1,1)},toBits:function(a){return sjcl.codec.base64.toBits(a,1)}};sjcl.hash.sha256=function(a){this.b[0]||this.O();a?(this.F=a.F.slice(0),this.A=a.A.slice(0),this.l=a.l):this.reset()};sjcl.hash.sha256.hash=function(a){return(new sjcl.hash.sha256).update(a).finalize()};
|
|
||||||
sjcl.hash.sha256.prototype={blockSize:512,reset:function(){this.F=this.Y.slice(0);this.A=[];this.l=0;return this},update:function(a){"string"===typeof a&&(a=sjcl.codec.utf8String.toBits(a));var b,c=this.A=sjcl.bitArray.concat(this.A,a);b=this.l;a=this.l=b+sjcl.bitArray.bitLength(a);if(0x1fffffffffffff<a)throw new sjcl.exception.invalid("Cannot hash more than 2^53 - 1 bits");if("undefined"!==typeof Uint32Array){var d=new Uint32Array(c),e=0;for(b=512+b-(512+b&0x1ff);b<=a;b+=512)u(this,d.subarray(16*e,
|
|
||||||
16*(e+1))),e+=1;c.splice(0,16*e)}else for(b=512+b-(512+b&0x1ff);b<=a;b+=512)u(this,c.splice(0,16));return this},finalize:function(){var a,b=this.A,c=this.F,b=sjcl.bitArray.concat(b,[sjcl.bitArray.partial(1,1)]);for(a=b.length+2;a&15;a++)b.push(0);b.push(Math.floor(this.l/0x100000000));for(b.push(this.l|0);b.length;)u(this,b.splice(0,16));this.reset();return c},Y:[],b:[],O:function(){function a(a){return 0x100000000*(a-Math.floor(a))|0}for(var b=0,c=2,d,e;64>b;c++){e=!0;for(d=2;d*d<=c;d++)if(0===c%d){e=
|
|
||||||
!1;break}e&&(8>b&&(this.Y[b]=a(Math.pow(c,.5))),this.b[b]=a(Math.pow(c,1/3)),b++)}}};
|
|
||||||
function u(a,b){var c,d,e,f=a.F,g=a.b,h=f[0],k=f[1],l=f[2],n=f[3],m=f[4],p=f[5],r=f[6],q=f[7];for(c=0;64>c;c++)16>c?d=b[c]:(d=b[c+1&15],e=b[c+14&15],d=b[c&15]=(d>>>7^d>>>18^d>>>3^d<<25^d<<14)+(e>>>17^e>>>19^e>>>10^e<<15^e<<13)+b[c&15]+b[c+9&15]|0),d=d+q+(m>>>6^m>>>11^m>>>25^m<<26^m<<21^m<<7)+(r^m&(p^r))+g[c],q=r,r=p,p=m,m=n+d|0,n=l,l=k,k=h,h=d+(k&l^n&(k^l))+(k>>>2^k>>>13^k>>>22^k<<30^k<<19^k<<10)|0;f[0]=f[0]+h|0;f[1]=f[1]+k|0;f[2]=f[2]+l|0;f[3]=f[3]+n|0;f[4]=f[4]+m|0;f[5]=f[5]+p|0;f[6]=f[6]+r|0;f[7]=
|
|
||||||
f[7]+q|0}
|
|
||||||
sjcl.mode.ccm={name:"ccm",G:[],listenProgress:function(a){sjcl.mode.ccm.G.push(a)},unListenProgress:function(a){a=sjcl.mode.ccm.G.indexOf(a);-1<a&&sjcl.mode.ccm.G.splice(a,1)},fa:function(a){var b=sjcl.mode.ccm.G.slice(),c;for(c=0;c<b.length;c+=1)b[c](a)},encrypt:function(a,b,c,d,e){var f,g=b.slice(0),h=sjcl.bitArray,k=h.bitLength(c)/8,l=h.bitLength(g)/8;e=e||64;d=d||[];if(7>k)throw new sjcl.exception.invalid("ccm: iv must be at least 7 bytes");for(f=2;4>f&&l>>>8*f;f++);f<15-k&&(f=15-k);c=h.clamp(c,
|
|
||||||
8*(15-f));b=sjcl.mode.ccm.V(a,b,c,d,e,f);g=sjcl.mode.ccm.C(a,g,c,b,e,f);return h.concat(g.data,g.tag)},decrypt:function(a,b,c,d,e){e=e||64;d=d||[];var f=sjcl.bitArray,g=f.bitLength(c)/8,h=f.bitLength(b),k=f.clamp(b,h-e),l=f.bitSlice(b,h-e),h=(h-e)/8;if(7>g)throw new sjcl.exception.invalid("ccm: iv must be at least 7 bytes");for(b=2;4>b&&h>>>8*b;b++);b<15-g&&(b=15-g);c=f.clamp(c,8*(15-b));k=sjcl.mode.ccm.C(a,k,c,l,e,b);a=sjcl.mode.ccm.V(a,k.data,c,d,e,b);if(!f.equal(k.tag,a))throw new sjcl.exception.corrupt("ccm: tag doesn't match");
|
|
||||||
return k.data},na:function(a,b,c,d,e,f){var g=[],h=sjcl.bitArray,k=h.i;d=[h.partial(8,(b.length?64:0)|d-2<<2|f-1)];d=h.concat(d,c);d[3]|=e;d=a.encrypt(d);if(b.length)for(c=h.bitLength(b)/8,65279>=c?g=[h.partial(16,c)]:0xffffffff>=c&&(g=h.concat([h.partial(16,65534)],[c])),g=h.concat(g,b),b=0;b<g.length;b+=4)d=a.encrypt(k(d,g.slice(b,b+4).concat([0,0,0])));return d},V:function(a,b,c,d,e,f){var g=sjcl.bitArray,h=g.i;e/=8;if(e%2||4>e||16<e)throw new sjcl.exception.invalid("ccm: invalid tag length");
|
|
||||||
if(0xffffffff<d.length||0xffffffff<b.length)throw new sjcl.exception.bug("ccm: can't deal with 4GiB or more data");c=sjcl.mode.ccm.na(a,d,c,e,g.bitLength(b)/8,f);for(d=0;d<b.length;d+=4)c=a.encrypt(h(c,b.slice(d,d+4).concat([0,0,0])));return g.clamp(c,8*e)},C:function(a,b,c,d,e,f){var g,h=sjcl.bitArray;g=h.i;var k=b.length,l=h.bitLength(b),n=k/50,m=n;c=h.concat([h.partial(8,f-1)],c).concat([0,0,0]).slice(0,4);d=h.bitSlice(g(d,a.encrypt(c)),0,e);if(!k)return{tag:d,data:[]};for(g=0;g<k;g+=4)g>n&&(sjcl.mode.ccm.fa(g/
|
|
||||||
k),n+=m),c[3]++,e=a.encrypt(c),b[g]^=e[0],b[g+1]^=e[1],b[g+2]^=e[2],b[g+3]^=e[3];return{tag:d,data:h.clamp(b,l)}}};
|
|
||||||
sjcl.mode.ocb2={name:"ocb2",encrypt:function(a,b,c,d,e,f){if(128!==sjcl.bitArray.bitLength(c))throw new sjcl.exception.invalid("ocb iv must be 128 bits");var g,h=sjcl.mode.ocb2.S,k=sjcl.bitArray,l=k.i,n=[0,0,0,0];c=h(a.encrypt(c));var m,p=[];d=d||[];e=e||64;for(g=0;g+4<b.length;g+=4)m=b.slice(g,g+4),n=l(n,m),p=p.concat(l(c,a.encrypt(l(c,m)))),c=h(c);m=b.slice(g);b=k.bitLength(m);g=a.encrypt(l(c,[0,0,0,b]));m=k.clamp(l(m.concat([0,0,0]),g),b);n=l(n,l(m.concat([0,0,0]),g));n=a.encrypt(l(n,l(c,h(c))));
|
|
||||||
d.length&&(n=l(n,f?d:sjcl.mode.ocb2.pmac(a,d)));return p.concat(k.concat(m,k.clamp(n,e)))},decrypt:function(a,b,c,d,e,f){if(128!==sjcl.bitArray.bitLength(c))throw new sjcl.exception.invalid("ocb iv must be 128 bits");e=e||64;var g=sjcl.mode.ocb2.S,h=sjcl.bitArray,k=h.i,l=[0,0,0,0],n=g(a.encrypt(c)),m,p,r=sjcl.bitArray.bitLength(b)-e,q=[];d=d||[];for(c=0;c+4<r/32;c+=4)m=k(n,a.decrypt(k(n,b.slice(c,c+4)))),l=k(l,m),q=q.concat(m),n=g(n);p=r-32*c;m=a.encrypt(k(n,[0,0,0,p]));m=k(m,h.clamp(b.slice(c),p).concat([0,
|
|
||||||
0,0]));l=k(l,m);l=a.encrypt(k(l,k(n,g(n))));d.length&&(l=k(l,f?d:sjcl.mode.ocb2.pmac(a,d)));if(!h.equal(h.clamp(l,e),h.bitSlice(b,r)))throw new sjcl.exception.corrupt("ocb: tag doesn't match");return q.concat(h.clamp(m,p))},pmac:function(a,b){var c,d=sjcl.mode.ocb2.S,e=sjcl.bitArray,f=e.i,g=[0,0,0,0],h=a.encrypt([0,0,0,0]),h=f(h,d(d(h)));for(c=0;c+4<b.length;c+=4)h=d(h),g=f(g,a.encrypt(f(h,b.slice(c,c+4))));c=b.slice(c);128>e.bitLength(c)&&(h=f(h,d(h)),c=e.concat(c,[-2147483648,0,0,0]));g=f(g,c);
|
|
||||||
return a.encrypt(f(d(f(h,d(h))),g))},S:function(a){return[a[0]<<1^a[1]>>>31,a[1]<<1^a[2]>>>31,a[2]<<1^a[3]>>>31,a[3]<<1^135*(a[0]>>>31)]}};
|
|
||||||
sjcl.mode.gcm={name:"gcm",encrypt:function(a,b,c,d,e){var f=b.slice(0);b=sjcl.bitArray;d=d||[];a=sjcl.mode.gcm.C(!0,a,f,d,c,e||128);return b.concat(a.data,a.tag)},decrypt:function(a,b,c,d,e){var f=b.slice(0),g=sjcl.bitArray,h=g.bitLength(f);e=e||128;d=d||[];e<=h?(b=g.bitSlice(f,h-e),f=g.bitSlice(f,0,h-e)):(b=f,f=[]);a=sjcl.mode.gcm.C(!1,a,f,d,c,e);if(!g.equal(a.tag,b))throw new sjcl.exception.corrupt("gcm: tag doesn't match");return a.data},ka:function(a,b){var c,d,e,f,g,h=sjcl.bitArray.i;e=[0,0,
|
|
||||||
0,0];f=b.slice(0);for(c=0;128>c;c++){(d=0!==(a[Math.floor(c/32)]&1<<31-c%32))&&(e=h(e,f));g=0!==(f[3]&1);for(d=3;0<d;d--)f[d]=f[d]>>>1|(f[d-1]&1)<<31;f[0]>>>=1;g&&(f[0]^=-0x1f000000)}return e},j:function(a,b,c){var d,e=c.length;b=b.slice(0);for(d=0;d<e;d+=4)b[0]^=0xffffffff&c[d],b[1]^=0xffffffff&c[d+1],b[2]^=0xffffffff&c[d+2],b[3]^=0xffffffff&c[d+3],b=sjcl.mode.gcm.ka(b,a);return b},C:function(a,b,c,d,e,f){var g,h,k,l,n,m,p,r,q=sjcl.bitArray;m=c.length;p=q.bitLength(c);r=q.bitLength(d);h=q.bitLength(e);
|
|
||||||
g=b.encrypt([0,0,0,0]);96===h?(e=e.slice(0),e=q.concat(e,[1])):(e=sjcl.mode.gcm.j(g,[0,0,0,0],e),e=sjcl.mode.gcm.j(g,e,[0,0,Math.floor(h/0x100000000),h&0xffffffff]));h=sjcl.mode.gcm.j(g,[0,0,0,0],d);n=e.slice(0);d=h.slice(0);a||(d=sjcl.mode.gcm.j(g,h,c));for(l=0;l<m;l+=4)n[3]++,k=b.encrypt(n),c[l]^=k[0],c[l+1]^=k[1],c[l+2]^=k[2],c[l+3]^=k[3];c=q.clamp(c,p);a&&(d=sjcl.mode.gcm.j(g,h,c));a=[Math.floor(r/0x100000000),r&0xffffffff,Math.floor(p/0x100000000),p&0xffffffff];d=sjcl.mode.gcm.j(g,d,a);k=b.encrypt(e);
|
|
||||||
d[0]^=k[0];d[1]^=k[1];d[2]^=k[2];d[3]^=k[3];return{tag:q.bitSlice(d,0,f),data:c}}};sjcl.misc.hmac=function(a,b){this.W=b=b||sjcl.hash.sha256;var c=[[],[]],d,e=b.prototype.blockSize/32;this.w=[new b,new b];a.length>e&&(a=b.hash(a));for(d=0;d<e;d++)c[0][d]=a[d]^909522486,c[1][d]=a[d]^1549556828;this.w[0].update(c[0]);this.w[1].update(c[1]);this.R=new b(this.w[0])};
|
|
||||||
sjcl.misc.hmac.prototype.encrypt=sjcl.misc.hmac.prototype.mac=function(a){if(this.aa)throw new sjcl.exception.invalid("encrypt on already updated hmac called!");this.update(a);return this.digest(a)};sjcl.misc.hmac.prototype.reset=function(){this.R=new this.W(this.w[0]);this.aa=!1};sjcl.misc.hmac.prototype.update=function(a){this.aa=!0;this.R.update(a)};sjcl.misc.hmac.prototype.digest=function(){var a=this.R.finalize(),a=(new this.W(this.w[1])).update(a).finalize();this.reset();return a};
|
|
||||||
sjcl.misc.pbkdf2=function(a,b,c,d,e){c=c||1E4;if(0>d||0>c)throw new sjcl.exception.invalid("invalid params to pbkdf2");"string"===typeof a&&(a=sjcl.codec.utf8String.toBits(a));"string"===typeof b&&(b=sjcl.codec.utf8String.toBits(b));e=e||sjcl.misc.hmac;a=new e(a);var f,g,h,k,l=[],n=sjcl.bitArray;for(k=1;32*l.length<(d||1);k++){e=f=a.encrypt(n.concat(b,[k]));for(g=1;g<c;g++)for(f=a.encrypt(f),h=0;h<f.length;h++)e[h]^=f[h];l=l.concat(e)}d&&(l=n.clamp(l,d));return l};
|
|
||||||
sjcl.prng=function(a){this.c=[new sjcl.hash.sha256];this.m=[0];this.P=0;this.H={};this.N=0;this.U={};this.Z=this.f=this.o=this.ha=0;this.b=[0,0,0,0,0,0,0,0];this.h=[0,0,0,0];this.L=void 0;this.M=a;this.D=!1;this.K={progress:{},seeded:{}};this.u=this.ga=0;this.I=1;this.J=2;this.ca=0x10000;this.T=[0,48,64,96,128,192,0x100,384,512,768,1024];this.da=3E4;this.ba=80};
|
|
||||||
sjcl.prng.prototype={randomWords:function(a,b){var c=[],d;d=this.isReady(b);var e;if(d===this.u)throw new sjcl.exception.notReady("generator isn't seeded");if(d&this.J){d=!(d&this.I);e=[];var f=0,g;this.Z=e[0]=(new Date).valueOf()+this.da;for(g=0;16>g;g++)e.push(0x100000000*Math.random()|0);for(g=0;g<this.c.length&&(e=e.concat(this.c[g].finalize()),f+=this.m[g],this.m[g]=0,d||!(this.P&1<<g));g++);this.P>=1<<this.c.length&&(this.c.push(new sjcl.hash.sha256),this.m.push(0));this.f-=f;f>this.o&&(this.o=
|
|
||||||
f);this.P++;this.b=sjcl.hash.sha256.hash(this.b.concat(e));this.L=new sjcl.cipher.aes(this.b);for(d=0;4>d&&(this.h[d]=this.h[d]+1|0,!this.h[d]);d++);}for(d=0;d<a;d+=4)0===(d+1)%this.ca&&y(this),e=z(this),c.push(e[0],e[1],e[2],e[3]);y(this);return c.slice(0,a)},setDefaultParanoia:function(a,b){if(0===a&&"Setting paranoia=0 will ruin your security; use it only for testing"!==b)throw new sjcl.exception.invalid("Setting paranoia=0 will ruin your security; use it only for testing");this.M=a},addEntropy:function(a,
|
|
||||||
b,c){c=c||"user";var d,e,f=(new Date).valueOf(),g=this.H[c],h=this.isReady(),k=0;d=this.U[c];void 0===d&&(d=this.U[c]=this.ha++);void 0===g&&(g=this.H[c]=0);this.H[c]=(this.H[c]+1)%this.c.length;switch(typeof a){case "number":void 0===b&&(b=1);this.c[g].update([d,this.N++,1,b,f,1,a|0]);break;case "object":c=Object.prototype.toString.call(a);if("[object Uint32Array]"===c){e=[];for(c=0;c<a.length;c++)e.push(a[c]);a=e}else for("[object Array]"!==c&&(k=1),c=0;c<a.length&&!k;c++)"number"!==typeof a[c]&&
|
|
||||||
(k=1);if(!k){if(void 0===b)for(c=b=0;c<a.length;c++)for(e=a[c];0<e;)b++,e=e>>>1;this.c[g].update([d,this.N++,2,b,f,a.length].concat(a))}break;case "string":void 0===b&&(b=a.length);this.c[g].update([d,this.N++,3,b,f,a.length]);this.c[g].update(a);break;default:k=1}if(k)throw new sjcl.exception.bug("random: addEntropy only supports number, array of numbers or string");this.m[g]+=b;this.f+=b;h===this.u&&(this.isReady()!==this.u&&A("seeded",Math.max(this.o,this.f)),A("progress",this.getProgress()))},
|
|
||||||
isReady:function(a){a=this.T[void 0!==a?a:this.M];return this.o&&this.o>=a?this.m[0]>this.ba&&(new Date).valueOf()>this.Z?this.J|this.I:this.I:this.f>=a?this.J|this.u:this.u},getProgress:function(a){a=this.T[a?a:this.M];return this.o>=a?1:this.f>a?1:this.f/a},startCollectors:function(){if(!this.D){this.a={loadTimeCollector:B(this,this.ma),mouseCollector:B(this,this.oa),keyboardCollector:B(this,this.la),accelerometerCollector:B(this,this.ea),touchCollector:B(this,this.qa)};if(window.addEventListener)window.addEventListener("load",
|
|
||||||
this.a.loadTimeCollector,!1),window.addEventListener("mousemove",this.a.mouseCollector,!1),window.addEventListener("keypress",this.a.keyboardCollector,!1),window.addEventListener("devicemotion",this.a.accelerometerCollector,!1),window.addEventListener("touchmove",this.a.touchCollector,!1);else if(document.attachEvent)document.attachEvent("onload",this.a.loadTimeCollector),document.attachEvent("onmousemove",this.a.mouseCollector),document.attachEvent("keypress",this.a.keyboardCollector);else throw new sjcl.exception.bug("can't attach event");
|
|
||||||
this.D=!0}},stopCollectors:function(){this.D&&(window.removeEventListener?(window.removeEventListener("load",this.a.loadTimeCollector,!1),window.removeEventListener("mousemove",this.a.mouseCollector,!1),window.removeEventListener("keypress",this.a.keyboardCollector,!1),window.removeEventListener("devicemotion",this.a.accelerometerCollector,!1),window.removeEventListener("touchmove",this.a.touchCollector,!1)):document.detachEvent&&(document.detachEvent("onload",this.a.loadTimeCollector),document.detachEvent("onmousemove",
|
|
||||||
this.a.mouseCollector),document.detachEvent("keypress",this.a.keyboardCollector)),this.D=!1)},addEventListener:function(a,b){this.K[a][this.ga++]=b},removeEventListener:function(a,b){var c,d,e=this.K[a],f=[];for(d in e)e.hasOwnProperty(d)&&e[d]===b&&f.push(d);for(c=0;c<f.length;c++)d=f[c],delete e[d]},la:function(){C(this,1)},oa:function(a){var b,c;try{b=a.x||a.clientX||a.offsetX||0,c=a.y||a.clientY||a.offsetY||0}catch(d){c=b=0}0!=b&&0!=c&&this.addEntropy([b,c],2,"mouse");C(this,0)},qa:function(a){a=
|
|
||||||
a.touches[0]||a.changedTouches[0];this.addEntropy([a.pageX||a.clientX,a.pageY||a.clientY],1,"touch");C(this,0)},ma:function(){C(this,2)},ea:function(a){a=a.accelerationIncludingGravity.x||a.accelerationIncludingGravity.y||a.accelerationIncludingGravity.z;if(window.orientation){var b=window.orientation;"number"===typeof b&&this.addEntropy(b,1,"accelerometer")}a&&this.addEntropy(a,2,"accelerometer");C(this,0)}};
|
|
||||||
function A(a,b){var c,d=sjcl.random.K[a],e=[];for(c in d)d.hasOwnProperty(c)&&e.push(d[c]);for(c=0;c<e.length;c++)e[c](b)}function C(a,b){"undefined"!==typeof window&&window.performance&&"function"===typeof window.performance.now?a.addEntropy(window.performance.now(),b,"loadtime"):a.addEntropy((new Date).valueOf(),b,"loadtime")}function y(a){a.b=z(a).concat(z(a));a.L=new sjcl.cipher.aes(a.b)}function z(a){for(var b=0;4>b&&(a.h[b]=a.h[b]+1|0,!a.h[b]);b++);return a.L.encrypt(a.h)}
|
|
||||||
function B(a,b){return function(){b.apply(a,arguments)}}sjcl.random=new sjcl.prng(6);
|
|
||||||
a:try{var D,E,F,G;if(G="undefined"!==typeof module&&module.exports){var H;try{H=require("crypto")}catch(a){H=null}G=E=H}if(G&&E.randomBytes)D=E.randomBytes(128),D=new Uint32Array((new Uint8Array(D)).buffer),sjcl.random.addEntropy(D,1024,"crypto['randomBytes']");else if("undefined"!==typeof window&&"undefined"!==typeof Uint32Array){F=new Uint32Array(32);if(window.crypto&&window.crypto.getRandomValues)window.crypto.getRandomValues(F);else if(window.msCrypto&&window.msCrypto.getRandomValues)window.msCrypto.getRandomValues(F);
|
|
||||||
else break a;sjcl.random.addEntropy(F,1024,"crypto['getRandomValues']")}}catch(a){"undefined"!==typeof window&&window.console&&(console.log("There was an error collecting entropy from the browser:"),console.log(a))}
|
|
||||||
sjcl.json={defaults:{v:1,iter:1E4,ks:128,ts:64,mode:"ccm",adata:"",cipher:"aes"},ja:function(a,b,c,d){c=c||{};d=d||{};var e=sjcl.json,f=e.g({iv:sjcl.random.randomWords(4,0)},e.defaults),g;e.g(f,c);c=f.adata;"string"===typeof f.salt&&(f.salt=sjcl.codec.base64.toBits(f.salt));"string"===typeof f.iv&&(f.iv=sjcl.codec.base64.toBits(f.iv));if(!sjcl.mode[f.mode]||!sjcl.cipher[f.cipher]||"string"===typeof a&&100>=f.iter||64!==f.ts&&96!==f.ts&&128!==f.ts||128!==f.ks&&192!==f.ks&&0x100!==f.ks||2>f.iv.length||
|
|
||||||
4<f.iv.length)throw new sjcl.exception.invalid("json encrypt: invalid parameters");"string"===typeof a?(g=sjcl.misc.cachedPbkdf2(a,f),a=g.key.slice(0,f.ks/32),f.salt=g.salt):sjcl.ecc&&a instanceof sjcl.ecc.elGamal.publicKey&&(g=a.kem(),f.kemtag=g.tag,a=g.key.slice(0,f.ks/32));"string"===typeof b&&(b=sjcl.codec.utf8String.toBits(b));"string"===typeof c&&(f.adata=c=sjcl.codec.utf8String.toBits(c));g=new sjcl.cipher[f.cipher](a);e.g(d,f);d.key=a;f.ct="ccm"===f.mode&&sjcl.arrayBuffer&&sjcl.arrayBuffer.ccm&&
|
|
||||||
b instanceof ArrayBuffer?sjcl.arrayBuffer.ccm.encrypt(g,b,f.iv,c,f.ts):sjcl.mode[f.mode].encrypt(g,b,f.iv,c,f.ts);return f},encrypt:function(a,b,c,d){var e=sjcl.json,f=e.ja.apply(e,arguments);return e.encode(f)},ia:function(a,b,c,d){c=c||{};d=d||{};var e=sjcl.json;b=e.g(e.g(e.g({},e.defaults),b),c,!0);var f,g;f=b.adata;"string"===typeof b.salt&&(b.salt=sjcl.codec.base64.toBits(b.salt));"string"===typeof b.iv&&(b.iv=sjcl.codec.base64.toBits(b.iv));if(!sjcl.mode[b.mode]||!sjcl.cipher[b.cipher]||"string"===
|
|
||||||
typeof a&&100>=b.iter||64!==b.ts&&96!==b.ts&&128!==b.ts||128!==b.ks&&192!==b.ks&&0x100!==b.ks||!b.iv||2>b.iv.length||4<b.iv.length)throw new sjcl.exception.invalid("json decrypt: invalid parameters");"string"===typeof a?(g=sjcl.misc.cachedPbkdf2(a,b),a=g.key.slice(0,b.ks/32),b.salt=g.salt):sjcl.ecc&&a instanceof sjcl.ecc.elGamal.secretKey&&(a=a.unkem(sjcl.codec.base64.toBits(b.kemtag)).slice(0,b.ks/32));"string"===typeof f&&(f=sjcl.codec.utf8String.toBits(f));g=new sjcl.cipher[b.cipher](a);f="ccm"===
|
|
||||||
b.mode&&sjcl.arrayBuffer&&sjcl.arrayBuffer.ccm&&b.ct instanceof ArrayBuffer?sjcl.arrayBuffer.ccm.decrypt(g,b.ct,b.iv,b.tag,f,b.ts):sjcl.mode[b.mode].decrypt(g,b.ct,b.iv,f,b.ts);e.g(d,b);d.key=a;return 1===c.raw?f:sjcl.codec.utf8String.fromBits(f)},decrypt:function(a,b,c,d){var e=sjcl.json;return e.ia(a,e.decode(b),c,d)},encode:function(a){var b,c="{",d="";for(b in a)if(a.hasOwnProperty(b)){if(!b.match(/^[a-z0-9]+$/i))throw new sjcl.exception.invalid("json encode: invalid property name");c+=d+'"'+
|
|
||||||
b+'":';d=",";switch(typeof a[b]){case "number":case "boolean":c+=a[b];break;case "string":c+='"'+escape(a[b])+'"';break;case "object":c+='"'+sjcl.codec.base64.fromBits(a[b],0)+'"';break;default:throw new sjcl.exception.bug("json encode: unsupported type");}}return c+"}"},decode:function(a){a=a.replace(/\s/g,"");if(!a.match(/^\{.*\}$/))throw new sjcl.exception.invalid("json decode: this isn't json!");a=a.replace(/^\{|\}$/g,"").split(/,/);var b={},c,d;for(c=0;c<a.length;c++){if(!(d=a[c].match(/^\s*(?:(["']?)([a-z][a-z0-9]*)\1)\s*:\s*(?:(-?\d+)|"([a-z0-9+\/%*_.@=\-]*)"|(true|false))$/i)))throw new sjcl.exception.invalid("json decode: this isn't json!");
|
|
||||||
null!=d[3]?b[d[2]]=parseInt(d[3],10):null!=d[4]?b[d[2]]=d[2].match(/^(ct|adata|salt|iv)$/)?sjcl.codec.base64.toBits(d[4]):unescape(d[4]):null!=d[5]&&(b[d[2]]="true"===d[5])}return b},g:function(a,b,c){void 0===a&&(a={});if(void 0===b)return a;for(var d in b)if(b.hasOwnProperty(d)){if(c&&void 0!==a[d]&&a[d]!==b[d])throw new sjcl.exception.invalid("required parameter overridden");a[d]=b[d]}return a},sa:function(a,b){var c={},d;for(d in a)a.hasOwnProperty(d)&&a[d]!==b[d]&&(c[d]=a[d]);return c},ra:function(a,
|
|
||||||
b){var c={},d;for(d=0;d<b.length;d++)void 0!==a[b[d]]&&(c[b[d]]=a[b[d]]);return c}};sjcl.encrypt=sjcl.json.encrypt;sjcl.decrypt=sjcl.json.decrypt;sjcl.misc.pa={};sjcl.misc.cachedPbkdf2=function(a,b){var c=sjcl.misc.pa,d;b=b||{};d=b.iter||1E3;c=c[a]=c[a]||{};d=c[d]=c[d]||{firstSalt:b.salt&&b.salt.length?b.salt.slice(0):sjcl.random.randomWords(2,0)};c=void 0===b.salt?d.firstSalt:b.salt;d[c]=d[c]||sjcl.misc.pbkdf2(a,c,b.iter);return{key:d[c].slice(0),salt:c.slice(0)}};
|
|
||||||
"undefined"!==typeof module&&module.exports&&(module.exports=sjcl);"function"===typeof define&&define([],function(){return sjcl});
|
|
||||||
114
js/test/Alert.js
114
js/test/Alert.js
@@ -4,19 +4,19 @@ var common = require('../common');
|
|||||||
describe('Alert', function () {
|
describe('Alert', function () {
|
||||||
describe('showStatus', function () {
|
describe('showStatus', function () {
|
||||||
jsc.property(
|
jsc.property(
|
||||||
'shows a status message',
|
'shows a status message (basic)',
|
||||||
jsc.array(common.jscAlnumString()),
|
jsc.array(common.jscAlnumString()),
|
||||||
jsc.array(common.jscAlnumString()),
|
jsc.array(common.jscAlnumString()),
|
||||||
function (icon, message) {
|
function (icon, message) {
|
||||||
icon = icon.join('');
|
icon = icon.join('');
|
||||||
message = message.join('');
|
message = message.join('');
|
||||||
var expected = '<div id="status">' + message + '</div>';
|
const expected = '<div id="status">' + message + '</div>';
|
||||||
$('body').html(
|
$('body').html(
|
||||||
'<div id="status"></div>'
|
'<div id="status"></div>'
|
||||||
);
|
);
|
||||||
$.PrivateBin.Alert.init();
|
$.PrivateBin.Alert.init();
|
||||||
$.PrivateBin.Alert.showStatus(message, icon);
|
$.PrivateBin.Alert.showStatus(message, icon);
|
||||||
var result = $('body').html();
|
const result = $('body').html();
|
||||||
return expected === result;
|
return expected === result;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -26,7 +26,7 @@ describe('Alert', function () {
|
|||||||
jsc.array(common.jscAlnumString()),
|
jsc.array(common.jscAlnumString()),
|
||||||
function (message) {
|
function (message) {
|
||||||
message = message.join('');
|
message = message.join('');
|
||||||
var expected = '<div id="status" role="alert" ' +
|
const expected = '<div id="status" role="alert" ' +
|
||||||
'class="statusmessage alert alert-info"><span ' +
|
'class="statusmessage alert alert-info"><span ' +
|
||||||
'class="glyphicon glyphicon-info-sign" ' +
|
'class="glyphicon glyphicon-info-sign" ' +
|
||||||
'aria-hidden="true"></span> <span>' + message + '</span></div>';
|
'aria-hidden="true"></span> <span>' + message + '</span></div>';
|
||||||
@@ -37,7 +37,7 @@ describe('Alert', function () {
|
|||||||
);
|
);
|
||||||
$.PrivateBin.Alert.init();
|
$.PrivateBin.Alert.init();
|
||||||
$.PrivateBin.Alert.showStatus(message);
|
$.PrivateBin.Alert.showStatus(message);
|
||||||
var result = $('body').html();
|
const result = $('body').html();
|
||||||
return expected === result;
|
return expected === result;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -49,7 +49,7 @@ describe('Alert', function () {
|
|||||||
function (icon, message) {
|
function (icon, message) {
|
||||||
icon = icon.join('');
|
icon = icon.join('');
|
||||||
message = message.join('');
|
message = message.join('');
|
||||||
var expected = '<div id="status" role="alert" ' +
|
const expected = '<div id="status" role="alert" ' +
|
||||||
'class="statusmessage alert alert-info"><span ' +
|
'class="statusmessage alert alert-info"><span ' +
|
||||||
'class="glyphicon glyphicon-' + icon +
|
'class="glyphicon glyphicon-' + icon +
|
||||||
'" aria-hidden="true"></span> <span>' + message + '</span></div>';
|
'" aria-hidden="true"></span> <span>' + message + '</span></div>';
|
||||||
@@ -60,7 +60,72 @@ describe('Alert', function () {
|
|||||||
);
|
);
|
||||||
$.PrivateBin.Alert.init();
|
$.PrivateBin.Alert.init();
|
||||||
$.PrivateBin.Alert.showStatus(message, icon);
|
$.PrivateBin.Alert.showStatus(message, icon);
|
||||||
var result = $('body').html();
|
const result = $('body').html();
|
||||||
|
return expected === result;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
|
describe('showWarning', function () {
|
||||||
|
jsc.property(
|
||||||
|
'shows a warning message (basic)',
|
||||||
|
jsc.array(common.jscAlnumString()),
|
||||||
|
jsc.array(common.jscAlnumString()),
|
||||||
|
function (icon, message) {
|
||||||
|
icon = icon.join('');
|
||||||
|
message = message.join('');
|
||||||
|
const expected = '<div id="errormessage">' + message + '</div>';
|
||||||
|
$('body').html(
|
||||||
|
'<div id="errormessage"></div>'
|
||||||
|
);
|
||||||
|
$.PrivateBin.Alert.init();
|
||||||
|
$.PrivateBin.Alert.showWarning(message, icon);
|
||||||
|
const result = $('body').html();
|
||||||
|
return expected === result;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
jsc.property(
|
||||||
|
'shows a warning message (bootstrap)',
|
||||||
|
jsc.array(common.jscAlnumString()),
|
||||||
|
jsc.array(common.jscAlnumString()),
|
||||||
|
function (message) {
|
||||||
|
message = message.join('');
|
||||||
|
const expected = '<div id="errormessage" role="alert" ' +
|
||||||
|
'class="statusmessage alert alert-danger"><span ' +
|
||||||
|
'class="glyphicon glyphicon-warning-sign" ' +
|
||||||
|
'aria-hidden="true"></span> <span>' + message + '</span></div>';
|
||||||
|
$('body').html(
|
||||||
|
'<div id="errormessage" role="alert" class="statusmessage ' +
|
||||||
|
'alert alert-danger hidden"><span class="glyphicon ' +
|
||||||
|
'glyphicon-alert" aria-hidden="true"></span> </div>'
|
||||||
|
);
|
||||||
|
$.PrivateBin.Alert.init();
|
||||||
|
$.PrivateBin.Alert.showWarning(message);
|
||||||
|
const result = $('body').html();
|
||||||
|
return expected === result;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
jsc.property(
|
||||||
|
'shows a warning message (bootstrap, custom icon)',
|
||||||
|
jsc.array(common.jscAlnumString()),
|
||||||
|
jsc.array(common.jscAlnumString()),
|
||||||
|
function (icon, message) {
|
||||||
|
icon = icon.join('');
|
||||||
|
message = message.join('');
|
||||||
|
const expected = '<div id="errormessage" role="alert" ' +
|
||||||
|
'class="statusmessage alert alert-danger"><span ' +
|
||||||
|
'class="glyphicon glyphicon-' + icon +
|
||||||
|
'" aria-hidden="true"></span> <span>' + message + '</span></div>';
|
||||||
|
$('body').html(
|
||||||
|
'<div id="errormessage" role="alert" class="statusmessage ' +
|
||||||
|
'alert alert-danger hidden"><span class="glyphicon ' +
|
||||||
|
'glyphicon-alert" aria-hidden="true"></span> </div>'
|
||||||
|
);
|
||||||
|
$.PrivateBin.Alert.init();
|
||||||
|
$.PrivateBin.Alert.showWarning(message, icon);
|
||||||
|
const result = $('body').html();
|
||||||
return expected === result;
|
return expected === result;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -74,13 +139,13 @@ describe('Alert', function () {
|
|||||||
function (icon, message) {
|
function (icon, message) {
|
||||||
icon = icon.join('');
|
icon = icon.join('');
|
||||||
message = message.join('');
|
message = message.join('');
|
||||||
var expected = '<div id="errormessage">' + message + '</div>';
|
const expected = '<div id="errormessage">' + message + '</div>';
|
||||||
$('body').html(
|
$('body').html(
|
||||||
'<div id="errormessage"></div>'
|
'<div id="errormessage"></div>'
|
||||||
);
|
);
|
||||||
$.PrivateBin.Alert.init();
|
$.PrivateBin.Alert.init();
|
||||||
$.PrivateBin.Alert.showError(message, icon);
|
$.PrivateBin.Alert.showError(message, icon);
|
||||||
var result = $('body').html();
|
const result = $('body').html();
|
||||||
return expected === result;
|
return expected === result;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -91,7 +156,7 @@ describe('Alert', function () {
|
|||||||
jsc.array(common.jscAlnumString()),
|
jsc.array(common.jscAlnumString()),
|
||||||
function (icon, message) {
|
function (icon, message) {
|
||||||
message = message.join('');
|
message = message.join('');
|
||||||
var expected = '<div id="errormessage" role="alert" ' +
|
const expected = '<div id="errormessage" role="alert" ' +
|
||||||
'class="statusmessage alert alert-danger"><span ' +
|
'class="statusmessage alert alert-danger"><span ' +
|
||||||
'class="glyphicon glyphicon-alert" ' +
|
'class="glyphicon glyphicon-alert" ' +
|
||||||
'aria-hidden="true"></span> <span>' + message + '</span></div>';
|
'aria-hidden="true"></span> <span>' + message + '</span></div>';
|
||||||
@@ -102,7 +167,7 @@ describe('Alert', function () {
|
|||||||
);
|
);
|
||||||
$.PrivateBin.Alert.init();
|
$.PrivateBin.Alert.init();
|
||||||
$.PrivateBin.Alert.showError(message);
|
$.PrivateBin.Alert.showError(message);
|
||||||
var result = $('body').html();
|
const result = $('body').html();
|
||||||
return expected === result;
|
return expected === result;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -114,7 +179,7 @@ describe('Alert', function () {
|
|||||||
function (icon, message) {
|
function (icon, message) {
|
||||||
icon = icon.join('');
|
icon = icon.join('');
|
||||||
message = message.join('');
|
message = message.join('');
|
||||||
var expected = '<div id="errormessage" role="alert" ' +
|
const expected = '<div id="errormessage" role="alert" ' +
|
||||||
'class="statusmessage alert alert-danger"><span ' +
|
'class="statusmessage alert alert-danger"><span ' +
|
||||||
'class="glyphicon glyphicon-' + icon +
|
'class="glyphicon glyphicon-' + icon +
|
||||||
'" aria-hidden="true"></span> <span>' + message + '</span></div>';
|
'" aria-hidden="true"></span> <span>' + message + '</span></div>';
|
||||||
@@ -125,7 +190,7 @@ describe('Alert', function () {
|
|||||||
);
|
);
|
||||||
$.PrivateBin.Alert.init();
|
$.PrivateBin.Alert.init();
|
||||||
$.PrivateBin.Alert.showError(message, icon);
|
$.PrivateBin.Alert.showError(message, icon);
|
||||||
var result = $('body').html();
|
const result = $('body').html();
|
||||||
return expected === result;
|
return expected === result;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -140,13 +205,13 @@ describe('Alert', function () {
|
|||||||
function (message, string, number) {
|
function (message, string, number) {
|
||||||
message = message.join('');
|
message = message.join('');
|
||||||
string = string.join('');
|
string = string.join('');
|
||||||
var expected = '<div id="remainingtime" class="">' + string + message + number + '</div>';
|
const expected = '<div id="remainingtime" class="">' + string + message + number + '</div>';
|
||||||
$('body').html(
|
$('body').html(
|
||||||
'<div id="remainingtime" class="hidden"></div>'
|
'<div id="remainingtime" class="hidden"></div>'
|
||||||
);
|
);
|
||||||
$.PrivateBin.Alert.init();
|
$.PrivateBin.Alert.init();
|
||||||
$.PrivateBin.Alert.showRemaining(['%s' + message + '%d', string, number]);
|
$.PrivateBin.Alert.showRemaining(['%s' + message + '%d', string, number]);
|
||||||
var result = $('body').html();
|
const result = $('body').html();
|
||||||
return expected === result;
|
return expected === result;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -159,7 +224,7 @@ describe('Alert', function () {
|
|||||||
function (message, string, number) {
|
function (message, string, number) {
|
||||||
message = message.join('');
|
message = message.join('');
|
||||||
string = string.join('');
|
string = string.join('');
|
||||||
var expected = '<div id="remainingtime" role="alert" ' +
|
const expected = '<div id="remainingtime" role="alert" ' +
|
||||||
'class="alert alert-info"><span ' +
|
'class="alert alert-info"><span ' +
|
||||||
'class="glyphicon glyphicon-fire" aria-hidden="true">' +
|
'class="glyphicon glyphicon-fire" aria-hidden="true">' +
|
||||||
'</span> <span>' + string + message + number + '</span></div>';
|
'</span> <span>' + string + message + number + '</span></div>';
|
||||||
@@ -170,7 +235,7 @@ describe('Alert', function () {
|
|||||||
);
|
);
|
||||||
$.PrivateBin.Alert.init();
|
$.PrivateBin.Alert.init();
|
||||||
$.PrivateBin.Alert.showRemaining(['%s' + message + '%d', string, number]);
|
$.PrivateBin.Alert.showRemaining(['%s' + message + '%d', string, number]);
|
||||||
var result = $('body').html();
|
const result = $('body').html();
|
||||||
return expected === result;
|
return expected === result;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -184,17 +249,17 @@ describe('Alert', function () {
|
|||||||
function (message, icon) {
|
function (message, icon) {
|
||||||
message = message.join('');
|
message = message.join('');
|
||||||
icon = icon.join('');
|
icon = icon.join('');
|
||||||
var defaultMessage = 'Loading…';
|
const defaultMessage = 'Loading…';
|
||||||
if (message.length === 0) {
|
if (message.length === 0) {
|
||||||
message = defaultMessage;
|
message = defaultMessage;
|
||||||
}
|
}
|
||||||
var expected = '<div id="loadingindicator" class="">' + message + '</div>';
|
const expected = '<div id="loadingindicator" class="">' + message + '</div>';
|
||||||
$('body').html(
|
$('body').html(
|
||||||
'<div id="loadingindicator" class="hidden">' + defaultMessage + '</div>'
|
'<div id="loadingindicator" class="hidden">' + defaultMessage + '</div>'
|
||||||
);
|
);
|
||||||
$.PrivateBin.Alert.init();
|
$.PrivateBin.Alert.init();
|
||||||
$.PrivateBin.Alert.showLoading(message, icon);
|
$.PrivateBin.Alert.showLoading(message, icon);
|
||||||
var result = $('body').html();
|
const result = $('body').html();
|
||||||
return expected === result;
|
return expected === result;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -206,11 +271,11 @@ describe('Alert', function () {
|
|||||||
function (message, icon) {
|
function (message, icon) {
|
||||||
message = message.join('');
|
message = message.join('');
|
||||||
icon = icon.join('');
|
icon = icon.join('');
|
||||||
var defaultMessage = 'Loading…';
|
const defaultMessage = 'Loading…';
|
||||||
if (message.length === 0) {
|
if (message.length === 0) {
|
||||||
message = defaultMessage;
|
message = defaultMessage;
|
||||||
}
|
}
|
||||||
var expected = '<ul class="nav navbar-nav"><li ' +
|
const expected = '<ul class="nav navbar-nav"><li ' +
|
||||||
'id="loadingindicator" class="navbar-text"><span ' +
|
'id="loadingindicator" class="navbar-text"><span ' +
|
||||||
'class="glyphicon glyphicon-' + icon +
|
'class="glyphicon glyphicon-' + icon +
|
||||||
'" aria-hidden="true"></span> <span>' + message + '</span></li></ul>';
|
'" aria-hidden="true"></span> <span>' + message + '</span></li></ul>';
|
||||||
@@ -222,7 +287,7 @@ describe('Alert', function () {
|
|||||||
);
|
);
|
||||||
$.PrivateBin.Alert.init();
|
$.PrivateBin.Alert.init();
|
||||||
$.PrivateBin.Alert.showLoading(message, icon);
|
$.PrivateBin.Alert.showLoading(message, icon);
|
||||||
var result = $('body').html();
|
const result = $('body').html();
|
||||||
return expected === result;
|
return expected === result;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -278,7 +343,7 @@ describe('Alert', function () {
|
|||||||
jsc.array(common.jscAlnumString()),
|
jsc.array(common.jscAlnumString()),
|
||||||
function (trigger, message) {
|
function (trigger, message) {
|
||||||
message = message.join('');
|
message = message.join('');
|
||||||
var handlerCalled = false,
|
let handlerCalled = false,
|
||||||
defaultMessage = 'Loading…',
|
defaultMessage = 'Loading…',
|
||||||
functions = [
|
functions = [
|
||||||
$.PrivateBin.Alert.showStatus,
|
$.PrivateBin.Alert.showStatus,
|
||||||
@@ -310,6 +375,7 @@ describe('Alert', function () {
|
|||||||
return jsc.random(0, 1) ? true : $element;
|
return jsc.random(0, 1) ? true : $element;
|
||||||
});
|
});
|
||||||
functions[trigger](message);
|
functions[trigger](message);
|
||||||
|
$.PrivateBin.Alert.setCustomHandler(null);
|
||||||
return handlerCalled;
|
return handlerCalled;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -8,13 +8,13 @@ describe('AttachmentViewer', function () {
|
|||||||
jsc.property(
|
jsc.property(
|
||||||
'displays & hides data as requested',
|
'displays & hides data as requested',
|
||||||
common.jscMimeTypes(),
|
common.jscMimeTypes(),
|
||||||
jsc.nearray(common.jscBase64String()),
|
|
||||||
'string',
|
'string',
|
||||||
'string',
|
'string',
|
||||||
'string',
|
'string',
|
||||||
function (mimeType, base64, filename, prefix, postfix) {
|
'string',
|
||||||
var clean = jsdom(),
|
function (mimeType, rawdata, filename, prefix, postfix) {
|
||||||
data = 'data:' + mimeType + ';base64,' + base64.join(''),
|
let clean = jsdom(),
|
||||||
|
data = 'data:' + mimeType + ';base64,' + btoa(rawdata),
|
||||||
previewSupported = (
|
previewSupported = (
|
||||||
mimeType.substring(0, 6) === 'image/' ||
|
mimeType.substring(0, 6) === 'image/' ||
|
||||||
mimeType.substring(0, 6) === 'audio/' ||
|
mimeType.substring(0, 6) === 'audio/' ||
|
||||||
@@ -32,6 +32,16 @@ describe('AttachmentViewer', function () {
|
|||||||
'Download attachment</a></div><div id="attachmentPrevie' +
|
'Download attachment</a></div><div id="attachmentPrevie' +
|
||||||
'w" class="hidden"></div>'
|
'w" class="hidden"></div>'
|
||||||
);
|
);
|
||||||
|
// mock createObjectURL for jsDOM
|
||||||
|
if (typeof window.URL.createObjectURL === 'undefined') {
|
||||||
|
Object.defineProperty(
|
||||||
|
window.URL,
|
||||||
|
'createObjectURL',
|
||||||
|
{value: function(blob) {
|
||||||
|
return 'blob:' + location.origin + '/1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed';
|
||||||
|
}}
|
||||||
|
)
|
||||||
|
}
|
||||||
$.PrivateBin.AttachmentViewer.init();
|
$.PrivateBin.AttachmentViewer.init();
|
||||||
results.push(
|
results.push(
|
||||||
!$.PrivateBin.AttachmentViewer.hasAttachment() &&
|
!$.PrivateBin.AttachmentViewer.hasAttachment() &&
|
||||||
@@ -43,7 +53,9 @@ describe('AttachmentViewer', function () {
|
|||||||
} else {
|
} else {
|
||||||
$.PrivateBin.AttachmentViewer.setAttachment(data);
|
$.PrivateBin.AttachmentViewer.setAttachment(data);
|
||||||
}
|
}
|
||||||
var attachment = $.PrivateBin.AttachmentViewer.getAttachment();
|
// beyond this point we will get the blob URL instead of the data
|
||||||
|
data = window.URL.createObjectURL(data);
|
||||||
|
const attachment = $.PrivateBin.AttachmentViewer.getAttachment();
|
||||||
results.push(
|
results.push(
|
||||||
$.PrivateBin.AttachmentViewer.hasAttachment() &&
|
$.PrivateBin.AttachmentViewer.hasAttachment() &&
|
||||||
$('#attachment').hasClass('hidden') &&
|
$('#attachment').hasClass('hidden') &&
|
||||||
@@ -74,9 +86,14 @@ describe('AttachmentViewer', function () {
|
|||||||
$.PrivateBin.AttachmentViewer.moveAttachmentTo(element, prefix + '%s' + postfix);
|
$.PrivateBin.AttachmentViewer.moveAttachmentTo(element, prefix + '%s' + postfix);
|
||||||
// messageIDs with links get a relaxed treatment
|
// messageIDs with links get a relaxed treatment
|
||||||
if (prefix.indexOf('<a') === -1 && postfix.indexOf('<a') === -1) {
|
if (prefix.indexOf('<a') === -1 && postfix.indexOf('<a') === -1) {
|
||||||
result = $.PrivateBin.Helper.htmlEntities(prefix + filename + postfix);
|
result = $('<textarea>').text((prefix + filename + postfix)).text();
|
||||||
} else {
|
} else {
|
||||||
result = $('<div>').html(prefix + $.PrivateBin.Helper.htmlEntities(filename) + postfix).html();
|
result = DOMPurify.sanitize(
|
||||||
|
prefix + $.PrivateBin.Helper.htmlEntities(filename) + postfix, {
|
||||||
|
ALLOWED_TAGS: ['a', 'i', 'span'],
|
||||||
|
ALLOWED_ATTR: ['href', 'id']
|
||||||
|
}
|
||||||
|
);
|
||||||
}
|
}
|
||||||
if (filename.length) {
|
if (filename.length) {
|
||||||
results.push(
|
results.push(
|
||||||
|
|||||||
80
js/test/Check.js
Normal file
80
js/test/Check.js
Normal file
@@ -0,0 +1,80 @@
|
|||||||
|
'use strict';
|
||||||
|
var common = require('../common');
|
||||||
|
/* global Legacy, WebCrypto */
|
||||||
|
|
||||||
|
describe('Check', function () {
|
||||||
|
describe('init', function () {
|
||||||
|
this.timeout(30000);
|
||||||
|
|
||||||
|
it('returns false and shows error, if a bot UA is detected', function () {
|
||||||
|
jsc.assert(jsc.forall(
|
||||||
|
'string',
|
||||||
|
jsc.elements(['Bot', 'bot']),
|
||||||
|
'string',
|
||||||
|
function (prefix, botBit, suffix) {
|
||||||
|
const clean = jsdom(
|
||||||
|
'<html><body><div id="errormessage" class="hidden"></div>' +
|
||||||
|
'</body></html>', {
|
||||||
|
'userAgent': prefix + botBit + suffix
|
||||||
|
}
|
||||||
|
);
|
||||||
|
Legacy.Check.init();
|
||||||
|
const result1 = Legacy.Check.getInit() && !Legacy.Check.getStatus(),
|
||||||
|
result2 = (document.getElementById('errormessage').className !== 'hidden');
|
||||||
|
clean();
|
||||||
|
return result1 && result2;
|
||||||
|
}
|
||||||
|
),
|
||||||
|
{tests: 10});
|
||||||
|
});
|
||||||
|
|
||||||
|
jsc.property(
|
||||||
|
'shows error, if no webcrypto is detected',
|
||||||
|
'bool',
|
||||||
|
jsc.elements(['localhost', '127.0.0.1', '[::1]', '']),
|
||||||
|
jsc.nearray(common.jscA2zString()),
|
||||||
|
jsc.elements(['.onion', '.i2p', '']),
|
||||||
|
function (secureProtocol, localhost, domain, tld) {
|
||||||
|
const isDomain = localhost === '',
|
||||||
|
isSecureContext = secureProtocol || !isDomain || tld.length > 0,
|
||||||
|
clean = jsdom(
|
||||||
|
'<html><body><div id="errormessage" class="hidden"></div>' +
|
||||||
|
'<div id="oldnotice" class="hidden"></div>' +
|
||||||
|
'<div id="insecurecontextnotice" class="hidden"></div></body></html>',
|
||||||
|
{
|
||||||
|
'url': (secureProtocol ? 'https' : 'http' ) + '://' +
|
||||||
|
(isDomain ? domain.join('') + tld : localhost) + '/'
|
||||||
|
}
|
||||||
|
);
|
||||||
|
Legacy.Check.init();
|
||||||
|
const result1 = Legacy.Check.getInit() && !Legacy.Check.getStatus(),
|
||||||
|
result2 = isSecureContext === (document.getElementById('insecurecontextnotice').className === 'hidden'),
|
||||||
|
result3 = (document.getElementById('oldnotice').className !== 'hidden');
|
||||||
|
clean();
|
||||||
|
return result1 && result2 && result3;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
jsc.property(
|
||||||
|
'shows error, if HTTP only site is detected',
|
||||||
|
'bool',
|
||||||
|
jsc.nearray(common.jscA2zString()),
|
||||||
|
function (secureProtocol, domain) {
|
||||||
|
const clean = jsdom(
|
||||||
|
'<html><body><div id="httpnotice" class="hidden"></div>' +
|
||||||
|
'</body></html>',
|
||||||
|
{
|
||||||
|
'url': (secureProtocol ? 'https' : 'http' ) + '://' + domain.join('') + '/'
|
||||||
|
}
|
||||||
|
);
|
||||||
|
window.crypto = new WebCrypto();
|
||||||
|
Legacy.Check.init();
|
||||||
|
const result1 = Legacy.Check.getInit() && Legacy.Check.getStatus(),
|
||||||
|
result2 = secureProtocol === (document.getElementById('httpnotice').className === 'hidden');
|
||||||
|
clean();
|
||||||
|
return result1 && result2;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
@@ -3,35 +3,53 @@ require('../common');
|
|||||||
|
|
||||||
describe('CryptTool', function () {
|
describe('CryptTool', function () {
|
||||||
describe('cipher & decipher', function () {
|
describe('cipher & decipher', function () {
|
||||||
|
afterEach(async function () {
|
||||||
|
// pause to let async functions conclude
|
||||||
|
await new Promise(resolve => setTimeout(resolve, 1900));
|
||||||
|
});
|
||||||
|
|
||||||
this.timeout(30000);
|
this.timeout(30000);
|
||||||
it('can en- and decrypt any message', function () {
|
it('can en- and decrypt any message', function () {
|
||||||
jsc.check(jsc.forall(
|
jsc.assert(jsc.forall(
|
||||||
'string',
|
'string',
|
||||||
'string',
|
'string',
|
||||||
'string',
|
'string',
|
||||||
function (key, password, message) {
|
async function (key, password, message) {
|
||||||
return message === $.PrivateBin.CryptTool.decipher(
|
// pause to let async functions conclude
|
||||||
key,
|
await new Promise(resolve => setTimeout(resolve, 300));
|
||||||
password,
|
let clean = jsdom();
|
||||||
$.PrivateBin.CryptTool.cipher(key, password, message)
|
// ensure zlib is getting loaded
|
||||||
|
$.PrivateBin.Controller.initZ();
|
||||||
|
window.crypto = new WebCrypto();
|
||||||
|
message = message.trim();
|
||||||
|
let cipherMessage = await $.PrivateBin.CryptTool.cipher(
|
||||||
|
key, password, message, []
|
||||||
|
),
|
||||||
|
plaintext = await $.PrivateBin.CryptTool.decipher(
|
||||||
|
key, password, cipherMessage
|
||||||
);
|
);
|
||||||
|
clean();
|
||||||
|
return message === plaintext;
|
||||||
}
|
}
|
||||||
),
|
),
|
||||||
// reducing amount of checks as running 100 takes about 5 minutes
|
{tests: 3});
|
||||||
{tests: 5, quiet: true});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// The below static unit tests are included to ensure deciphering of "classic"
|
// The below static unit tests are included to ensure deciphering of "classic"
|
||||||
// SJCL based pastes still works
|
// SJCL based pastes still works
|
||||||
it(
|
it(
|
||||||
'supports PrivateBin v1 ciphertext (SJCL & Base64)',
|
'supports PrivateBin v1 ciphertext (SJCL & browser atob)',
|
||||||
function () {
|
function () {
|
||||||
|
delete global.Base64;
|
||||||
|
let clean = jsdom();
|
||||||
|
window.crypto = new WebCrypto();
|
||||||
|
|
||||||
// Of course you can easily decipher the following texts, if you like.
|
// Of course you can easily decipher the following texts, if you like.
|
||||||
// Bonus points for finding their sources and hidden meanings.
|
// Bonus points for finding their sources and hidden meanings.
|
||||||
var paste1 = $.PrivateBin.CryptTool.decipher(
|
return $.PrivateBin.CryptTool.decipher(
|
||||||
'6t2qsmLyfXIokNCL+3/yl15rfTUBQvm5SOnFPvNE7Q8=',
|
'6t2qsmLyfXIokNCL+3/yl15rfTUBQvm5SOnFPvNE7Q8=',
|
||||||
// -- "That's amazing. I've got the same combination on my luggage."
|
// -- "That's amazing. I've got the same combination on my luggage."
|
||||||
Array.apply(0, Array(6)).map(function(_,b) { return b + 1; }).join(''),
|
Array.apply(0, Array(6)).map((_,b) => b + 1).join(''),
|
||||||
'{"iv":"4HNFIl7eYbCh6HuShctTIA==","v":1,"iter":10000,"ks"' +
|
'{"iv":"4HNFIl7eYbCh6HuShctTIA==","v":1,"iter":10000,"ks"' +
|
||||||
':256,"ts":128,"mode":"gcm","adata":"","cipher":"aes","sa' +
|
':256,"ts":128,"mode":"gcm","adata":"","cipher":"aes","sa' +
|
||||||
'lt":"u0lQvePq6L0=","ct":"fGPUVrDyaVr1ZDGb+kqQ3CPEW8x4YKG' +
|
'lt":"u0lQvePq6L0=","ct":"fGPUVrDyaVr1ZDGb+kqQ3CPEW8x4YKG' +
|
||||||
@@ -59,8 +77,8 @@ describe('CryptTool', function () {
|
|||||||
'QUxMXI5htsn2rf0HxCFu7Po8DNYLxTS+67hYjDIYWYaEIc8LXWMLyDm9' +
|
'QUxMXI5htsn2rf0HxCFu7Po8DNYLxTS+67hYjDIYWYaEIc8LXWMLyDm9' +
|
||||||
'C5fARPJ4F2BIWgzgzkNj+dVjusft2XnziamWdbS5u3kuRlVuz5LQj+R5' +
|
'C5fARPJ4F2BIWgzgzkNj+dVjusft2XnziamWdbS5u3kuRlVuz5LQj+R5' +
|
||||||
'imnqQAincdZTkTT1nYx+DatlOLllCYIHffpI="}'
|
'imnqQAincdZTkTT1nYx+DatlOLllCYIHffpI="}'
|
||||||
),
|
).then(function (paste1) {
|
||||||
paste2 = $.PrivateBin.CryptTool.decipher(
|
$.PrivateBin.CryptTool.decipher(
|
||||||
's9pmKZKOBN7EVvHpTA8jjLFH3Xlz/0l8lB4+ONPACrM=',
|
's9pmKZKOBN7EVvHpTA8jjLFH3Xlz/0l8lB4+ONPACrM=',
|
||||||
'', // no password
|
'', // no password
|
||||||
'{"iv":"WA42mdxIVXUwBqZu7JYNiw==","v":1,"iter":10000,"ks"' +
|
'{"iv":"WA42mdxIVXUwBqZu7JYNiw==","v":1,"iter":10000,"ks"' +
|
||||||
@@ -85,30 +103,30 @@ describe('CryptTool', function () {
|
|||||||
'XhHvixZLcSjX2KQuHmEoWzmJcr3DavdoXZmAurGWLKjzEdJc5dSD/eNr' +
|
'XhHvixZLcSjX2KQuHmEoWzmJcr3DavdoXZmAurGWLKjzEdJc5dSD/eNr' +
|
||||||
'99gjHX7wphJ6umKMM+fn6PcbYJkhDh2GlJL5COXjXfm/5aj/vuyaRRWZ' +
|
'99gjHX7wphJ6umKMM+fn6PcbYJkhDh2GlJL5COXjXfm/5aj/vuyaRRWZ' +
|
||||||
'MZtmnYpGAtAPg7AUG"}'
|
'MZtmnYpGAtAPg7AUG"}'
|
||||||
);
|
).then(function (paste2) {
|
||||||
|
clean();
|
||||||
assert.ok(
|
assert.ok(
|
||||||
paste1.includes('securely packed in iron') &&
|
paste1.includes('securely packed in iron') &&
|
||||||
paste2.includes('Sol is right')
|
paste2.includes('Sol is right')
|
||||||
);
|
);
|
||||||
|
});
|
||||||
|
});
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
it(
|
it(
|
||||||
'supports ZeroBin ciphertext (SJCL & Base64 1.7)',
|
'supports ZeroBin ciphertext (SJCL & Base64 1.7)',
|
||||||
function () {
|
function () {
|
||||||
var newBase64 = global.Base64;
|
|
||||||
global.Base64 = require('../base64-1.7').Base64;
|
global.Base64 = require('../base64-1.7').Base64;
|
||||||
jsdom();
|
var clean = jsdom();
|
||||||
delete require.cache[require.resolve('../privatebin')];
|
window.crypto = new WebCrypto();
|
||||||
require('../privatebin');
|
|
||||||
|
|
||||||
// Of course you can easily decipher the following texts, if you like.
|
// Of course you can easily decipher the following texts, if you like.
|
||||||
// Bonus points for finding their sources and hidden meanings.
|
// Bonus points for finding their sources and hidden meanings.
|
||||||
var paste1 = $.PrivateBin.CryptTool.decipher(
|
return $.PrivateBin.CryptTool.decipher(
|
||||||
'6t2qsmLyfXIokNCL+3/yl15rfTUBQvm5SOnFPvNE7Q8=',
|
'6t2qsmLyfXIokNCL+3/yl15rfTUBQvm5SOnFPvNE7Q8=',
|
||||||
// -- "That's amazing. I've got the same combination on my luggage."
|
// -- "That's amazing. I've got the same combination on my luggage."
|
||||||
Array.apply(0, Array(6)).map(function(_,b) { return b + 1; }).join(''),
|
Array.apply(0, Array(6)).map((_,b) => b + 1).join(''),
|
||||||
'{"iv":"aTnR2qBL1CAmLX8FdWe3VA==","v":1,"iter":10000,"ks"' +
|
'{"iv":"aTnR2qBL1CAmLX8FdWe3VA==","v":1,"iter":10000,"ks"' +
|
||||||
':256,"ts":128,"mode":"gcm","adata":"","cipher":"aes","sa' +
|
':256,"ts":128,"mode":"gcm","adata":"","cipher":"aes","sa' +
|
||||||
'lt":"u0lQvePq6L0=","ct":"A3nBTvICZtYy6xqbIJE0c8Veored5lM' +
|
'lt":"u0lQvePq6L0=","ct":"A3nBTvICZtYy6xqbIJE0c8Veored5lM' +
|
||||||
@@ -128,8 +146,8 @@ describe('CryptTool', function () {
|
|||||||
'7mNNo7xba/YT9KoPDaniqnYqb+q2pX1WNWE7dLS2wfroMAS3kh8P22DA' +
|
'7mNNo7xba/YT9KoPDaniqnYqb+q2pX1WNWE7dLS2wfroMAS3kh8P22DA' +
|
||||||
'V37AeiNoD2PcI6ZcHbRdPa+XRrRcJhSPPW7UQ0z4OvBfjdu/w390QxAx' +
|
'V37AeiNoD2PcI6ZcHbRdPa+XRrRcJhSPPW7UQ0z4OvBfjdu/w390QxAx' +
|
||||||
'SxvZewoh49fKKB6hTsRnZb4tpHkjlww=="}'
|
'SxvZewoh49fKKB6hTsRnZb4tpHkjlww=="}'
|
||||||
),
|
).then(function (paste1) {
|
||||||
paste2 = $.PrivateBin.CryptTool.decipher(
|
$.PrivateBin.CryptTool.decipher(
|
||||||
's9pmKZKOBN7EVvHpTA8jjLFH3Xlz/0l8lB4+ONPACrM=',
|
's9pmKZKOBN7EVvHpTA8jjLFH3Xlz/0l8lB4+ONPACrM=',
|
||||||
'', // no password
|
'', // no password
|
||||||
'{"iv":"Z7lAZQbkrqGMvruxoSm6Pw==","v":1,"iter":10000,"ks"' +
|
'{"iv":"Z7lAZQbkrqGMvruxoSm6Pw==","v":1,"iter":10000,"ks"' +
|
||||||
@@ -147,61 +165,102 @@ describe('CryptTool', function () {
|
|||||||
'7tmfcF73w9dufDFI3LNca2KxzBnWNPYvIZKBwWbq8ncxkb191dP6mjEi' +
|
'7tmfcF73w9dufDFI3LNca2KxzBnWNPYvIZKBwWbq8ncxkb191dP6mjEi' +
|
||||||
'7NnhqVk5A6vIBbu4AC5PZf76l6yep4xsoy/QtdDxCMocCXeAML9MQ9uP' +
|
'7NnhqVk5A6vIBbu4AC5PZf76l6yep4xsoy/QtdDxCMocCXeAML9MQ9uP' +
|
||||||
'QbuspOKrBvMfN5igA1kBqasnxI472KBNXsdZnaDddSVUuvhTcETM="}'
|
'QbuspOKrBvMfN5igA1kBqasnxI472KBNXsdZnaDddSVUuvhTcETM="}'
|
||||||
);
|
).then(function (paste2) {
|
||||||
|
clean();
|
||||||
global.Base64 = newBase64;
|
delete global.Base64;
|
||||||
jsdom();
|
|
||||||
delete require.cache[require.resolve('../privatebin')];
|
|
||||||
require('../privatebin');
|
|
||||||
assert.ok(
|
assert.ok(
|
||||||
paste1.includes('securely packed in iron') &&
|
paste1.includes('securely packed in iron') &&
|
||||||
paste2.includes('Sol is right')
|
paste2.includes('Sol is right')
|
||||||
);
|
);
|
||||||
|
});
|
||||||
|
});
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
it('does not truncate messages', async function () {
|
||||||
|
let message = fs.readFileSync('test/compression-sample.txt', 'utf8'),
|
||||||
|
clean = jsdom();
|
||||||
|
window.crypto = new WebCrypto();
|
||||||
|
// ensure zlib is getting loaded
|
||||||
|
$.PrivateBin.Controller.initZ();
|
||||||
|
let cipherMessage = await $.PrivateBin.CryptTool.cipher(
|
||||||
|
'foo', 'bar', message, []
|
||||||
|
),
|
||||||
|
plaintext = await $.PrivateBin.CryptTool.decipher(
|
||||||
|
'foo', 'bar', cipherMessage
|
||||||
|
);
|
||||||
|
clean();
|
||||||
|
assert.strictEqual(
|
||||||
|
message,
|
||||||
|
plaintext
|
||||||
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('isEntropyReady & addEntropySeedListener', function () {
|
it('can en- and decrypt a particular message (#260)', function () {
|
||||||
it(
|
jsc.assert(jsc.forall(
|
||||||
'lets us know that enough entropy is collected or make us wait for it',
|
'string',
|
||||||
function(done) {
|
'string',
|
||||||
if ($.PrivateBin.CryptTool.isEntropyReady()) {
|
async function (key, password) {
|
||||||
done();
|
// pause to let async functions conclude
|
||||||
} else {
|
await new Promise(resolve => setTimeout(resolve, 300));
|
||||||
$.PrivateBin.CryptTool.addEntropySeedListener(function() {
|
const message = `
|
||||||
done();
|
1 subgoal
|
||||||
});
|
|
||||||
}
|
inv : Assert
|
||||||
}
|
expr : Expr
|
||||||
|
sBody : Instr
|
||||||
|
deduction : (|- [|inv /\ assertOfExpr expr|] sBody [|inv|])%assert
|
||||||
|
IHdeduction : (|= [|inv /\ assertOfExpr expr |] sBody [|inv|])%assert
|
||||||
|
mem : Mem
|
||||||
|
preInMem : inv mem
|
||||||
|
m : Mem
|
||||||
|
n : nat
|
||||||
|
interpRel : interp (nth_iterate sBody n) (MemElem mem) = CpoElem Mem m
|
||||||
|
lastIter : interp (nth_iterate sBody n) (MemElem mem) |=e expr_neg expr
|
||||||
|
notLastIter : forall p : nat,
|
||||||
|
p < n -> interp (nth_iterate sBody p) (MemElem mem) |=e expr
|
||||||
|
isWhile : interp (while expr sBody) (MemElem mem) =
|
||||||
|
interp (nth_iterate sBody n) (MemElem mem)
|
||||||
|
|
||||||
|
======================== ( 1 / 1 )
|
||||||
|
conseq_or_bottom inv (interp (nth_iterate sBody n) (MemElem mem))
|
||||||
|
`;
|
||||||
|
let clean = jsdom();
|
||||||
|
// ensure zlib is getting loaded
|
||||||
|
$.PrivateBin.Controller.initZ();
|
||||||
|
window.crypto = new WebCrypto();
|
||||||
|
let cipherMessage = await $.PrivateBin.CryptTool.cipher(
|
||||||
|
key, password, message, []
|
||||||
|
),
|
||||||
|
plaintext = await $.PrivateBin.CryptTool.decipher(
|
||||||
|
key, password, cipherMessage
|
||||||
);
|
);
|
||||||
|
clean();
|
||||||
|
return message === plaintext;
|
||||||
|
}
|
||||||
|
),
|
||||||
|
{tests: 3});
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('getSymmetricKey', function () {
|
describe('getSymmetricKey', function () {
|
||||||
|
this.timeout(30000);
|
||||||
var keys = [];
|
var keys = [];
|
||||||
|
|
||||||
// the parameter is used to ensure the test is run more then one time
|
// the parameter is used to ensure the test is run more then one time
|
||||||
jsc.property(
|
jsc.property(
|
||||||
'returns random, non-empty keys',
|
'returns random, non-empty keys',
|
||||||
function() {
|
'integer',
|
||||||
|
function(counter) {
|
||||||
|
var clean = jsdom();
|
||||||
|
window.crypto = new WebCrypto();
|
||||||
var key = $.PrivateBin.CryptTool.getSymmetricKey(),
|
var key = $.PrivateBin.CryptTool.getSymmetricKey(),
|
||||||
result = (key !== '' && keys.indexOf(key) === -1);
|
result = (key !== '' && keys.indexOf(key) === -1);
|
||||||
keys.push(key);
|
keys.push(key);
|
||||||
|
clean();
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('Base64.js vs SJCL.js vs abab.js', function () {
|
|
||||||
jsc.property(
|
|
||||||
'these all return the same base64 string',
|
|
||||||
'string',
|
|
||||||
function(string) {
|
|
||||||
var base64 = Base64.toBase64(string),
|
|
||||||
sjcl = global.sjcl.codec.base64.fromBits(global.sjcl.codec.utf8String.toBits(string)),
|
|
||||||
abab = window.btoa(Base64.utob(string));
|
|
||||||
return base64 === sjcl && sjcl === abab;
|
|
||||||
}
|
|
||||||
);
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ describe('DiscussionViewer', function () {
|
|||||||
comments.forEach(function (comment) {
|
comments.forEach(function (comment) {
|
||||||
comment.id = comment.idArray.join('');
|
comment.id = comment.idArray.join('');
|
||||||
comment.parentid = comment.parentidArray.join('');
|
comment.parentid = comment.parentidArray.join('');
|
||||||
$.PrivateBin.DiscussionViewer.addComment(comment, comment.data, comment.meta.nickname);
|
$.PrivateBin.DiscussionViewer.addComment($.PrivateBin.Helper.CommentFactory(comment), comment.data, comment.meta.nickname);
|
||||||
});
|
});
|
||||||
results.push(
|
results.push(
|
||||||
$('#discussion').hasClass('hidden')
|
$('#discussion').hasClass('hidden')
|
||||||
|
|||||||
@@ -73,6 +73,7 @@ describe('Helper', function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
describe('urls2links', function () {
|
describe('urls2links', function () {
|
||||||
|
this.timeout(30000);
|
||||||
before(function () {
|
before(function () {
|
||||||
cleanup = jsdom();
|
cleanup = jsdom();
|
||||||
});
|
});
|
||||||
@@ -81,7 +82,15 @@ describe('Helper', function () {
|
|||||||
'ignores non-URL content',
|
'ignores non-URL content',
|
||||||
'string',
|
'string',
|
||||||
function (content) {
|
function (content) {
|
||||||
return content === $.PrivateBin.Helper.urls2links(content);
|
content = content.replace(/\r|\f/g, '\n').replace(/\u0000/g, '').replace(/\u000b/g, '');
|
||||||
|
let clean = jsdom();
|
||||||
|
$('body').html('<div id="foo"></div>');
|
||||||
|
let e = $('#foo');
|
||||||
|
e.text(content);
|
||||||
|
$.PrivateBin.Helper.urls2links(e);
|
||||||
|
let result = e.text();
|
||||||
|
clean();
|
||||||
|
return content === result;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
jsc.property(
|
jsc.property(
|
||||||
@@ -93,11 +102,14 @@ describe('Helper', function () {
|
|||||||
jsc.array(common.jscHashString()),
|
jsc.array(common.jscHashString()),
|
||||||
'string',
|
'string',
|
||||||
function (prefix, schema, address, query, fragment, postfix) {
|
function (prefix, schema, address, query, fragment, postfix) {
|
||||||
var query = query.join(''),
|
query = query.join('');
|
||||||
fragment = fragment.join(''),
|
fragment = fragment.join('');
|
||||||
url = schema + '://' + address.join('') + '/?' + query + '#' + fragment,
|
prefix = prefix.replace(/\r|\f/g, '\n').replace(/\u0000/g, '').replace(/\u000b/g, '');
|
||||||
prefix = $.PrivateBin.Helper.htmlEntities(prefix),
|
postfix = ' ' + postfix.replace(/\r/g, '\n').replace(/\u0000/g, '');
|
||||||
postfix = ' ' + $.PrivateBin.Helper.htmlEntities(postfix);
|
let url = schema + '://' + address.join('') + '/?' + query + '#' + fragment,
|
||||||
|
clean = jsdom();
|
||||||
|
$('body').html('<div id="foo"></div>');
|
||||||
|
let e = $('#foo');
|
||||||
|
|
||||||
// special cases: When the query string and fragment imply the beginning of an HTML entity, eg. � or &#x
|
// special cases: When the query string and fragment imply the beginning of an HTML entity, eg. � or &#x
|
||||||
if (
|
if (
|
||||||
@@ -108,8 +120,12 @@ describe('Helper', function () {
|
|||||||
url = schema + '://' + address.join('') + '/?' + query.substring(0, query.length - 1);
|
url = schema + '://' + address.join('') + '/?' + query.substring(0, query.length - 1);
|
||||||
postfix = '';
|
postfix = '';
|
||||||
}
|
}
|
||||||
|
e.text(prefix + url + postfix);
|
||||||
return prefix + '<a href="' + url + '" rel="nofollow">' + url + '</a>' + postfix === $.PrivateBin.Helper.urls2links(prefix + url + postfix);
|
$.PrivateBin.Helper.urls2links(e);
|
||||||
|
let result = e.html();
|
||||||
|
clean();
|
||||||
|
url = $('<div />').text(url).html();
|
||||||
|
return $('<div />').text(prefix).html() + '<a href="' + url + '" target="_blank" rel="nofollow noopener noreferrer">' + url + '</a>' + $('<div />').text(postfix).html() === result;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
jsc.property(
|
jsc.property(
|
||||||
@@ -118,10 +134,18 @@ describe('Helper', function () {
|
|||||||
jsc.array(common.jscQueryString()),
|
jsc.array(common.jscQueryString()),
|
||||||
'string',
|
'string',
|
||||||
function (prefix, query, postfix) {
|
function (prefix, query, postfix) {
|
||||||
var url = 'magnet:?' + query.join('').replace(/^&+|&+$/gm,''),
|
prefix = prefix.replace(/\r|\f/g, '\n').replace(/\u0000/g, '').replace(/\u000b/g, '');
|
||||||
prefix = $.PrivateBin.Helper.htmlEntities(prefix),
|
postfix = ' ' + postfix.replace(/\r/g, '\n').replace(/\u0000/g, '');
|
||||||
postfix = $.PrivateBin.Helper.htmlEntities(postfix);
|
let url = 'magnet:?' + query.join('').replace(/^&+|&+$/gm,''),
|
||||||
return prefix + '<a href="' + url + '" rel="nofollow">' + url + '</a> ' + postfix === $.PrivateBin.Helper.urls2links(prefix + url + ' ' + postfix);
|
clean = jsdom();
|
||||||
|
$('body').html('<div id="foo"></div>');
|
||||||
|
let e = $('#foo');
|
||||||
|
e.text(prefix + url + postfix);
|
||||||
|
$.PrivateBin.Helper.urls2links(e);
|
||||||
|
let result = e.html();
|
||||||
|
clean();
|
||||||
|
url = $('<div />').text(url).html();
|
||||||
|
return $('<div />').text(prefix).html() + '<a href="' + url + '" target="_blank" rel="nofollow noopener noreferrer">' + url + '</a>' + $('<div />').text(postfix).html() === result;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
@@ -175,9 +199,9 @@ describe('Helper', function () {
|
|||||||
'string',
|
'string',
|
||||||
'string',
|
'string',
|
||||||
function (prefix, uint, middle, string, postfix) {
|
function (prefix, uint, middle, string, postfix) {
|
||||||
prefix = prefix.replace(/%(s|d)/g, '%%');
|
prefix = prefix.replace(/%(s|d)/g, '');
|
||||||
middle = middle.replace(/%(s|d)/g, '%%');
|
middle = middle.replace(/%(s|d)/g, '');
|
||||||
postfix = postfix.replace(/%(s|d)/g, '%%');
|
postfix = postfix.replace(/%(s|d)/g, '');
|
||||||
var params = [prefix + '%d' + middle + '%s' + postfix, uint, string],
|
var params = [prefix + '%d' + middle + '%s' + postfix, uint, string],
|
||||||
result = prefix + uint + middle + string + postfix;
|
result = prefix + uint + middle + string + postfix;
|
||||||
return result === $.PrivateBin.Helper.sprintf.apply(this, params);
|
return result === $.PrivateBin.Helper.sprintf.apply(this, params);
|
||||||
@@ -191,9 +215,9 @@ describe('Helper', function () {
|
|||||||
'string',
|
'string',
|
||||||
'string',
|
'string',
|
||||||
function (prefix, uint, middle, string, postfix) {
|
function (prefix, uint, middle, string, postfix) {
|
||||||
prefix = prefix.replace(/%(s|d)/g, '%%');
|
prefix = prefix.replace(/%(s|d)/g, '');
|
||||||
middle = middle.replace(/%(s|d)/g, '%%');
|
middle = middle.replace(/%(s|d)/g, '');
|
||||||
postfix = postfix.replace(/%(s|d)/g, '%%');
|
postfix = postfix.replace(/%(s|d)/g, '');
|
||||||
var params = [prefix + '%s' + middle + '%d' + postfix, string, uint],
|
var params = [prefix + '%s' + middle + '%d' + postfix, string, uint],
|
||||||
result = prefix + string + middle + uint + postfix;
|
result = prefix + string + middle + uint + postfix;
|
||||||
return result === $.PrivateBin.Helper.sprintf.apply(this, params);
|
return result === $.PrivateBin.Helper.sprintf.apply(this, params);
|
||||||
@@ -209,15 +233,14 @@ describe('Helper', function () {
|
|||||||
|
|
||||||
jsc.property(
|
jsc.property(
|
||||||
'returns the requested cookie',
|
'returns the requested cookie',
|
||||||
'nearray asciinestring',
|
jsc.nearray(jsc.nearray(common.jscAlnumString())),
|
||||||
'nearray asciistring',
|
jsc.nearray(jsc.nearray(common.jscAlnumString())),
|
||||||
function (labels, values) {
|
function (labels, values) {
|
||||||
var selectedKey = '', selectedValue = '',
|
var selectedKey = '', selectedValue = '',
|
||||||
cookieArray = [];
|
cookieArray = [];
|
||||||
labels.forEach(function(item, i) {
|
labels.forEach(function(item, i) {
|
||||||
// deliberatly using a non-ascii key for replacing invalid characters
|
var key = item.join(''),
|
||||||
var key = item.replace(/[\s;,=]/g, Array(i+2).join('£')),
|
value = (values[i] || values[0]).join('');
|
||||||
value = (values[i] || values[0]).replace(/[\s;,=]/g, '');
|
|
||||||
cookieArray.push(key + '=' + value);
|
cookieArray.push(key + '=' + value);
|
||||||
if (Math.random() < 1 / i || selectedKey === key)
|
if (Math.random() < 1 / i || selectedKey === key)
|
||||||
{
|
{
|
||||||
@@ -227,6 +250,7 @@ describe('Helper', function () {
|
|||||||
});
|
});
|
||||||
var clean = jsdom('', {cookie: cookieArray}),
|
var clean = jsdom('', {cookie: cookieArray}),
|
||||||
result = $.PrivateBin.Helper.getCookie(selectedKey);
|
result = $.PrivateBin.Helper.getCookie(selectedKey);
|
||||||
|
$.PrivateBin.Helper.reset();
|
||||||
clean();
|
clean();
|
||||||
return result === selectedValue;
|
return result === selectedValue;
|
||||||
}
|
}
|
||||||
@@ -235,21 +259,19 @@ describe('Helper', function () {
|
|||||||
|
|
||||||
describe('baseUri', function () {
|
describe('baseUri', function () {
|
||||||
this.timeout(30000);
|
this.timeout(30000);
|
||||||
before(function () {
|
|
||||||
$.PrivateBin.Helper.reset();
|
|
||||||
});
|
|
||||||
|
|
||||||
jsc.property(
|
jsc.property(
|
||||||
'returns the URL without query & fragment',
|
'returns the URL without query & fragment',
|
||||||
common.jscSchemas(),
|
jsc.elements(['http', 'https']),
|
||||||
jsc.nearray(common.jscA2zString()),
|
jsc.nearray(common.jscA2zString()),
|
||||||
|
jsc.array(common.jscA2zString()),
|
||||||
jsc.array(common.jscQueryString()),
|
jsc.array(common.jscQueryString()),
|
||||||
'string',
|
'string',
|
||||||
function (schema, address, query, fragment) {
|
function (schema, address, path, query, fragment) {
|
||||||
var expected = schema + '://' + address.join('') + '/',
|
$.PrivateBin.Helper.reset();
|
||||||
|
var path = path.join('') + (path.length > 0 ? '/' : ''),
|
||||||
|
expected = schema + '://' + address.join('') + '/' + path,
|
||||||
clean = jsdom('', {url: expected + '?' + query.join('') + '#' + fragment}),
|
clean = jsdom('', {url: expected + '?' + query.join('') + '#' + fragment}),
|
||||||
result = $.PrivateBin.Helper.baseUri();
|
result = $.PrivateBin.Helper.baseUri();
|
||||||
$.PrivateBin.Helper.reset();
|
|
||||||
clean();
|
clean();
|
||||||
return expected === result;
|
return expected === result;
|
||||||
}
|
}
|
||||||
|
|||||||
115
js/test/I18n.js
115
js/test/I18n.js
@@ -3,6 +3,7 @@ var common = require('../common');
|
|||||||
|
|
||||||
describe('I18n', function () {
|
describe('I18n', function () {
|
||||||
describe('translate', function () {
|
describe('translate', function () {
|
||||||
|
this.timeout(30000);
|
||||||
before(function () {
|
before(function () {
|
||||||
$.PrivateBin.I18n.reset();
|
$.PrivateBin.I18n.reset();
|
||||||
});
|
});
|
||||||
@@ -32,14 +33,41 @@ describe('I18n', function () {
|
|||||||
var fakeAlias = $.PrivateBin.I18n._(fake);
|
var fakeAlias = $.PrivateBin.I18n._(fake);
|
||||||
$.PrivateBin.I18n.reset();
|
$.PrivateBin.I18n.reset();
|
||||||
|
|
||||||
|
if (messageId.indexOf('<a') === -1) {
|
||||||
messageId = $.PrivateBin.Helper.htmlEntities(messageId);
|
messageId = $.PrivateBin.Helper.htmlEntities(messageId);
|
||||||
|
} else {
|
||||||
|
messageId = DOMPurify.sanitize(
|
||||||
|
messageId, {
|
||||||
|
ALLOWED_TAGS: ['a', 'i', 'span'],
|
||||||
|
ALLOWED_ATTR: ['href', 'id']
|
||||||
|
}
|
||||||
|
);
|
||||||
|
}
|
||||||
return messageId === result && messageId === alias &&
|
return messageId === result && messageId === alias &&
|
||||||
messageId === pluralResult && messageId === pluralAlias &&
|
messageId === pluralResult && messageId === pluralAlias &&
|
||||||
messageId === fakeResult && messageId === fakeAlias;
|
messageId === fakeResult && messageId === fakeAlias;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
jsc.property(
|
jsc.property(
|
||||||
'replaces %s in strings with first given parameter',
|
'replaces %s in strings with first given parameter, encoding all, when no link is in the messageID',
|
||||||
|
'string',
|
||||||
|
'(small nearray) string',
|
||||||
|
'string',
|
||||||
|
function (prefix, params, postfix) {
|
||||||
|
prefix = prefix.replace(/%(s|d)/g, '%%').replace(/<a/g, '');
|
||||||
|
params[0] = params[0].replace(/%(s|d)/g, '%%');
|
||||||
|
postfix = postfix.replace(/%(s|d)/g, '%%').replace(/<a/g, '');
|
||||||
|
const translation = $.PrivateBin.Helper.htmlEntities(prefix + params[0] + postfix);
|
||||||
|
params.unshift(prefix + '%s' + postfix);
|
||||||
|
const result = $.PrivateBin.I18n.translate.apply(this, params);
|
||||||
|
$.PrivateBin.I18n.reset();
|
||||||
|
const alias = $.PrivateBin.I18n._.apply(this, params);
|
||||||
|
$.PrivateBin.I18n.reset();
|
||||||
|
return translation === result && translation === alias;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
jsc.property(
|
||||||
|
'replaces %s in strings with first given parameter, encoding params only, when a link is part of the messageID',
|
||||||
'string',
|
'string',
|
||||||
'(small nearray) string',
|
'(small nearray) string',
|
||||||
'string',
|
'string',
|
||||||
@@ -47,15 +75,83 @@ describe('I18n', function () {
|
|||||||
prefix = prefix.replace(/%(s|d)/g, '%%');
|
prefix = prefix.replace(/%(s|d)/g, '%%');
|
||||||
params[0] = params[0].replace(/%(s|d)/g, '%%');
|
params[0] = params[0].replace(/%(s|d)/g, '%%');
|
||||||
postfix = postfix.replace(/%(s|d)/g, '%%');
|
postfix = postfix.replace(/%(s|d)/g, '%%');
|
||||||
var translation = $.PrivateBin.Helper.htmlEntities(prefix + params[0] + postfix);
|
const translation = DOMPurify.sanitize(
|
||||||
params.unshift(prefix + '%s' + postfix);
|
prefix + '<a href="' + params[0] + '"></a>' + postfix, {
|
||||||
var result = $.PrivateBin.I18n.translate.apply(this, params);
|
ALLOWED_TAGS: ['a', 'i', 'span'],
|
||||||
|
ALLOWED_ATTR: ['href', 'id']
|
||||||
|
}
|
||||||
|
);
|
||||||
|
params.unshift(prefix + '<a href="%s"></a>' + postfix);
|
||||||
|
const result = $.PrivateBin.I18n.translate.apply(this, params);
|
||||||
$.PrivateBin.I18n.reset();
|
$.PrivateBin.I18n.reset();
|
||||||
var alias = $.PrivateBin.I18n._.apply(this, params);
|
const alias = $.PrivateBin.I18n._.apply(this, params);
|
||||||
$.PrivateBin.I18n.reset();
|
$.PrivateBin.I18n.reset();
|
||||||
return translation === result && translation === alias;
|
return translation === result && translation === alias;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
jsc.property(
|
||||||
|
'replaces %s in strings with first given parameter into an element, encoding all, when no link is in the messageID',
|
||||||
|
'string',
|
||||||
|
'(small nearray) string',
|
||||||
|
'string',
|
||||||
|
function (prefix, params, postfix) {
|
||||||
|
prefix = prefix.replace(/%(s|d)/g, '%%').replace(/<a/g, '');
|
||||||
|
params[0] = params[0].replace(/%(s|d)/g, '%%');
|
||||||
|
postfix = postfix.replace(/%(s|d)/g, '%%').replace(/<a/g, '');
|
||||||
|
const translation = $('<textarea>').text((prefix + params[0] + postfix)).text();
|
||||||
|
let args = Array.prototype.slice.call(params);
|
||||||
|
args.unshift(prefix + '%s' + postfix);
|
||||||
|
let clean = jsdom();
|
||||||
|
$('body').html('<div id="i18n"></div>');
|
||||||
|
args.unshift($('#i18n'));
|
||||||
|
$.PrivateBin.I18n.translate.apply(this, args);
|
||||||
|
const result = $('#i18n').text();
|
||||||
|
$.PrivateBin.I18n.reset();
|
||||||
|
clean();
|
||||||
|
clean = jsdom();
|
||||||
|
$('body').html('<div id="i18n"></div>');
|
||||||
|
args[0] = $('#i18n');
|
||||||
|
$.PrivateBin.I18n._.apply(this, args);
|
||||||
|
const alias = $('#i18n').text();
|
||||||
|
$.PrivateBin.I18n.reset();
|
||||||
|
clean();
|
||||||
|
return translation === result && translation === alias;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
jsc.property(
|
||||||
|
'replaces %s in strings with first given parameter into an element, encoding params only, when a link is part of the messageID inserted',
|
||||||
|
'string',
|
||||||
|
'(small nearray) string',
|
||||||
|
'string',
|
||||||
|
function (prefix, params, postfix) {
|
||||||
|
prefix = prefix.replace(/%(s|d)/g, '%%').trim();
|
||||||
|
params[0] = params[0].replace(/%(s|d)/g, '%%').trim();
|
||||||
|
postfix = postfix.replace(/%(s|d)/g, '%%').trim();
|
||||||
|
const translation = DOMPurify.sanitize(
|
||||||
|
prefix + '<a href="' + params[0] + '"></a>' + postfix, {
|
||||||
|
ALLOWED_TAGS: ['a', 'i', 'span'],
|
||||||
|
ALLOWED_ATTR: ['href', 'id']
|
||||||
|
}
|
||||||
|
);
|
||||||
|
let args = Array.prototype.slice.call(params);
|
||||||
|
args.unshift(prefix + '<a href="%s"></a>' + postfix);
|
||||||
|
let clean = jsdom();
|
||||||
|
$('body').html('<div id="i18n"></div>');
|
||||||
|
args.unshift($('#i18n'));
|
||||||
|
$.PrivateBin.I18n.translate.apply(this, args);
|
||||||
|
const result = $('#i18n').html();
|
||||||
|
$.PrivateBin.I18n.reset();
|
||||||
|
clean();
|
||||||
|
clean = jsdom();
|
||||||
|
$('body').html('<div id="i18n"></div>');
|
||||||
|
args[0] = $('#i18n');
|
||||||
|
$.PrivateBin.I18n._.apply(this, args);
|
||||||
|
const alias = $('#i18n').html();
|
||||||
|
$.PrivateBin.I18n.reset();
|
||||||
|
clean();
|
||||||
|
return translation === result && translation === alias;
|
||||||
|
}
|
||||||
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('getPluralForm', function () {
|
describe('getPluralForm', function () {
|
||||||
@@ -88,14 +184,17 @@ describe('I18n', function () {
|
|||||||
'downloads and handles any supported language',
|
'downloads and handles any supported language',
|
||||||
common.jscSupportedLanguages(),
|
common.jscSupportedLanguages(),
|
||||||
function(language) {
|
function(language) {
|
||||||
var clean = jsdom('', {url: 'https://privatebin.net/', cookie: ['lang=' + language]});
|
// cleanup
|
||||||
|
var clean = jsdom('', {cookie: ['lang=en']});
|
||||||
$.PrivateBin.I18n.reset('en');
|
$.PrivateBin.I18n.reset('en');
|
||||||
$.PrivateBin.I18n.loadTranslations();
|
$.PrivateBin.I18n.loadTranslations();
|
||||||
|
clean();
|
||||||
|
|
||||||
|
// mock
|
||||||
|
clean = jsdom('', {cookie: ['lang=' + language]});
|
||||||
$.PrivateBin.I18n.reset(language, require('../../i18n/' + language + '.json'));
|
$.PrivateBin.I18n.reset(language, require('../../i18n/' + language + '.json'));
|
||||||
var result = $.PrivateBin.I18n.translate('en'),
|
var result = $.PrivateBin.I18n.translate('en'),
|
||||||
alias = $.PrivateBin.I18n._('en');
|
alias = $.PrivateBin.I18n._('en');
|
||||||
|
|
||||||
clean();
|
clean();
|
||||||
return language === result && language === alias;
|
return language === result && language === alias;
|
||||||
}
|
}
|
||||||
|
|||||||
60
js/test/Memory.js
Normal file
60
js/test/Memory.js
Normal file
@@ -0,0 +1,60 @@
|
|||||||
|
'use strict';
|
||||||
|
const common = require('../common');
|
||||||
|
|
||||||
|
describe('Memory', function () {
|
||||||
|
describe('add & refreshList', function () {
|
||||||
|
this.timeout(30000);
|
||||||
|
|
||||||
|
jsc.property(
|
||||||
|
'allows adding valid paste URLs',
|
||||||
|
common.jscSchemas(),
|
||||||
|
jsc.nearray(common.jscA2zString()),
|
||||||
|
jsc.array(common.jscQueryString()),
|
||||||
|
'string',
|
||||||
|
function (schema, address, query, fragment) {
|
||||||
|
const expectedQuery = encodeURI(
|
||||||
|
query.join('').replace(/^&+|&+$/gm,'')
|
||||||
|
),
|
||||||
|
expected = schema + '://' + address.join('') + '/?' +
|
||||||
|
expectedQuery + '#' + fragment,
|
||||||
|
clean = jsdom();
|
||||||
|
$('body').html(
|
||||||
|
'<main><div id="sidebar-wrapper"><table><tbody>' +
|
||||||
|
'</tbody></table></div></main>'
|
||||||
|
);
|
||||||
|
// clear cache, then the first cell will match what we add
|
||||||
|
$.PrivateBin.Memory.init();
|
||||||
|
$.PrivateBin.Memory.add(expected);
|
||||||
|
$.PrivateBin.Memory.refreshList();
|
||||||
|
const result = $('#sidebar-wrapper table tbody tr td')[3].textContent;
|
||||||
|
clean();
|
||||||
|
return result === expectedQuery;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
});
|
||||||
|
|
||||||
|
describe('init', function () {
|
||||||
|
it(
|
||||||
|
'enables toggling the memory sidebar',
|
||||||
|
function() {
|
||||||
|
$('body').html(
|
||||||
|
'<main><div id="sidebar-wrapper"></div>' +
|
||||||
|
'<button id="menu-toggle"></button></main>'
|
||||||
|
);
|
||||||
|
assert.ok(!$('main').hasClass('toggled'));
|
||||||
|
|
||||||
|
$('#menu-toggle').click();
|
||||||
|
assert.ok(!$('main').hasClass('toggled'));
|
||||||
|
|
||||||
|
$.PrivateBin.Memory.init();
|
||||||
|
assert.ok(!$('main').hasClass('toggled'));
|
||||||
|
|
||||||
|
$('#menu-toggle').click();
|
||||||
|
assert.ok($('main').hasClass('toggled'));
|
||||||
|
|
||||||
|
$('#menu-toggle').click();
|
||||||
|
assert.ok(!$('main').hasClass('toggled'));
|
||||||
|
}
|
||||||
|
);
|
||||||
|
});
|
||||||
|
});
|
||||||
@@ -74,7 +74,7 @@ describe('Model', function () {
|
|||||||
|
|
||||||
describe('getPasteId', function () {
|
describe('getPasteId', function () {
|
||||||
this.timeout(30000);
|
this.timeout(30000);
|
||||||
before(function () {
|
beforeEach(function () {
|
||||||
$.PrivateBin.Model.reset();
|
$.PrivateBin.Model.reset();
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -82,18 +82,24 @@ describe('Model', function () {
|
|||||||
'returns the query string without separator, if any',
|
'returns the query string without separator, if any',
|
||||||
jsc.nearray(common.jscA2zString()),
|
jsc.nearray(common.jscA2zString()),
|
||||||
jsc.nearray(common.jscA2zString()),
|
jsc.nearray(common.jscA2zString()),
|
||||||
jsc.nearray(common.jscHashString()),
|
jsc.tuple(new Array(16).fill(common.jscHexString)),
|
||||||
|
jsc.array(common.jscQueryString()),
|
||||||
|
jsc.array(common.jscQueryString()),
|
||||||
'string',
|
'string',
|
||||||
function (schema, address, query, fragment) {
|
function (schema, address, pasteId, queryStart, queryEnd, fragment) {
|
||||||
var queryString = query.join(''),
|
var pasteIdString = pasteId.join(''),
|
||||||
|
queryStartString = queryStart.join('') + (queryStart.length > 0 ? '&' : ''),
|
||||||
|
queryEndString = (queryEnd.length > 0 ? '&' : '') + queryEnd.join(''),
|
||||||
|
queryString = queryStartString + pasteIdString + queryEndString,
|
||||||
clean = jsdom('', {
|
clean = jsdom('', {
|
||||||
url: schema.join('') + '://' + address.join('') +
|
url: schema.join('') + '://' + address.join('') +
|
||||||
'/?' + queryString + '#' + fragment
|
'/?' + queryString + '#' + fragment
|
||||||
}),
|
});
|
||||||
result = $.PrivateBin.Model.getPasteId();
|
global.URL = require('jsdom-url').URL;
|
||||||
|
var result = $.PrivateBin.Model.getPasteId();
|
||||||
$.PrivateBin.Model.reset();
|
$.PrivateBin.Model.reset();
|
||||||
clean();
|
clean();
|
||||||
return queryString === result;
|
return pasteIdString === result;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
jsc.property(
|
jsc.property(
|
||||||
@@ -107,6 +113,7 @@ describe('Model', function () {
|
|||||||
'/#' + fragment
|
'/#' + fragment
|
||||||
}),
|
}),
|
||||||
result = false;
|
result = false;
|
||||||
|
global.URL = require('jsdom-url').URL;
|
||||||
try {
|
try {
|
||||||
$.PrivateBin.Model.getPasteId();
|
$.PrivateBin.Model.getPasteId();
|
||||||
}
|
}
|
||||||
@@ -122,15 +129,19 @@ describe('Model', function () {
|
|||||||
|
|
||||||
describe('getPasteKey', function () {
|
describe('getPasteKey', function () {
|
||||||
this.timeout(30000);
|
this.timeout(30000);
|
||||||
|
beforeEach(function () {
|
||||||
|
$.PrivateBin.Model.reset();
|
||||||
|
});
|
||||||
|
|
||||||
jsc.property(
|
jsc.property(
|
||||||
'returns the fragment of the URL',
|
'returns the fragment of a v1 URL',
|
||||||
jsc.nearray(common.jscA2zString()),
|
jsc.nearray(common.jscA2zString()),
|
||||||
jsc.nearray(common.jscA2zString()),
|
jsc.nearray(common.jscA2zString()),
|
||||||
jsc.array(common.jscQueryString()),
|
jsc.array(common.jscQueryString()),
|
||||||
jsc.nearray(common.jscBase64String()),
|
'nestring',
|
||||||
function (schema, address, query, fragment) {
|
function (schema, address, query, fragment) {
|
||||||
var fragmentString = fragment.join(''),
|
const fragmentString = common.btoa(fragment.padStart(32, '\u0000'));
|
||||||
clean = jsdom('', {
|
let clean = jsdom('', {
|
||||||
url: schema.join('') + '://' + address.join('') +
|
url: schema.join('') + '://' + address.join('') +
|
||||||
'/?' + query.join('') + '#' + fragmentString
|
'/?' + query.join('') + '#' + fragmentString
|
||||||
}),
|
}),
|
||||||
@@ -141,15 +152,15 @@ describe('Model', function () {
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
jsc.property(
|
jsc.property(
|
||||||
'returns the fragment stripped of trailing query parts',
|
'returns the v1 fragment stripped of trailing query parts',
|
||||||
jsc.nearray(common.jscA2zString()),
|
jsc.nearray(common.jscA2zString()),
|
||||||
jsc.nearray(common.jscA2zString()),
|
jsc.nearray(common.jscA2zString()),
|
||||||
jsc.array(common.jscQueryString()),
|
jsc.array(common.jscQueryString()),
|
||||||
jsc.nearray(common.jscBase64String()),
|
'nestring',
|
||||||
jsc.array(common.jscHashString()),
|
jsc.array(common.jscHashString()),
|
||||||
function (schema, address, query, fragment, trail) {
|
function (schema, address, query, fragment, trail) {
|
||||||
var fragmentString = fragment.join(''),
|
const fragmentString = common.btoa(fragment.padStart(32, '\u0000'));
|
||||||
clean = jsdom('', {
|
let clean = jsdom('', {
|
||||||
url: schema.join('') + '://' + address.join('') + '/?' +
|
url: schema.join('') + '://' + address.join('') + '/?' +
|
||||||
query.join('') + '#' + fragmentString + '&' + trail.join('')
|
query.join('') + '#' + fragmentString + '&' + trail.join('')
|
||||||
}),
|
}),
|
||||||
@@ -159,6 +170,47 @@ describe('Model', function () {
|
|||||||
return fragmentString === result;
|
return fragmentString === result;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
jsc.property(
|
||||||
|
'returns the fragment of a v2 URL',
|
||||||
|
jsc.nearray(common.jscA2zString()),
|
||||||
|
jsc.nearray(common.jscA2zString()),
|
||||||
|
jsc.array(common.jscQueryString()),
|
||||||
|
'nestring',
|
||||||
|
function (schema, address, query, fragment) {
|
||||||
|
// base58 strips leading NULL bytes, so the string is padded with these if not found
|
||||||
|
fragment = fragment.padStart(32, '\u0000');
|
||||||
|
let fragmentString = $.PrivateBin.CryptTool.base58encode(fragment),
|
||||||
|
clean = jsdom('', {
|
||||||
|
url: schema.join('') + '://' + address.join('') +
|
||||||
|
'/?' + query.join('') + '#' + fragmentString
|
||||||
|
}),
|
||||||
|
result = $.PrivateBin.Model.getPasteKey();
|
||||||
|
$.PrivateBin.Model.reset();
|
||||||
|
clean();
|
||||||
|
return fragment === result;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
jsc.property(
|
||||||
|
'returns the v2 fragment stripped of trailing query parts',
|
||||||
|
jsc.nearray(common.jscA2zString()),
|
||||||
|
jsc.nearray(common.jscA2zString()),
|
||||||
|
jsc.array(common.jscQueryString()),
|
||||||
|
'nestring',
|
||||||
|
jsc.array(common.jscHashString()),
|
||||||
|
function (schema, address, query, fragment, trail) {
|
||||||
|
// base58 strips leading NULL bytes, so the string is padded with these if not found
|
||||||
|
fragment = fragment.padStart(32, '\u0000');
|
||||||
|
let fragmentString = $.PrivateBin.CryptTool.base58encode(fragment),
|
||||||
|
clean = jsdom('', {
|
||||||
|
url: schema.join('') + '://' + address.join('') + '/?' +
|
||||||
|
query.join('') + '#' + fragmentString + '&' + trail.join('')
|
||||||
|
}),
|
||||||
|
result = $.PrivateBin.Model.getPasteKey();
|
||||||
|
$.PrivateBin.Model.reset();
|
||||||
|
clean();
|
||||||
|
return fragment === result;
|
||||||
|
}
|
||||||
|
);
|
||||||
jsc.property(
|
jsc.property(
|
||||||
'throws exception on empty fragment of the URL',
|
'throws exception on empty fragment of the URL',
|
||||||
jsc.nearray(common.jscA2zString()),
|
jsc.nearray(common.jscA2zString()),
|
||||||
@@ -184,7 +236,7 @@ describe('Model', function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
describe('getTemplate', function () {
|
describe('getTemplate', function () {
|
||||||
before(function () {
|
beforeEach(function () {
|
||||||
$.PrivateBin.Model.reset();
|
$.PrivateBin.Model.reset();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -4,9 +4,6 @@ var common = require('../common');
|
|||||||
describe('PasteStatus', function () {
|
describe('PasteStatus', function () {
|
||||||
describe('createPasteNotification', function () {
|
describe('createPasteNotification', function () {
|
||||||
this.timeout(30000);
|
this.timeout(30000);
|
||||||
before(function () {
|
|
||||||
cleanup();
|
|
||||||
});
|
|
||||||
|
|
||||||
jsc.property(
|
jsc.property(
|
||||||
'creates a notification after a successfull paste upload',
|
'creates a notification after a successfull paste upload',
|
||||||
@@ -24,7 +21,7 @@ describe('PasteStatus', function () {
|
|||||||
var expected1 = schema1 + '://' + address1.join('') + '/?' +
|
var expected1 = schema1 + '://' + address1.join('') + '/?' +
|
||||||
encodeURI(query1.join('').replace(/^&+|&+$/gm,'') + '#' + fragment1),
|
encodeURI(query1.join('').replace(/^&+|&+$/gm,'') + '#' + fragment1),
|
||||||
expected2 = schema2 + '://' + address2.join('') + '/?' +
|
expected2 = schema2 + '://' + address2.join('') + '/?' +
|
||||||
encodeURI(query2.join('')),
|
encodeURI(query2.join('').replace(/^&+|&+$/gm,'')),
|
||||||
clean = jsdom();
|
clean = jsdom();
|
||||||
$('body').html('<div><div id="deletelink"></div><div id="pastelink"></div></div>');
|
$('body').html('<div><div id="deletelink"></div><div id="pastelink"></div></div>');
|
||||||
$.PrivateBin.PasteStatus.init();
|
$.PrivateBin.PasteStatus.init();
|
||||||
@@ -41,7 +38,7 @@ describe('PasteStatus', function () {
|
|||||||
this.timeout(30000);
|
this.timeout(30000);
|
||||||
|
|
||||||
jsc.property(
|
jsc.property(
|
||||||
'shows burn after reading message or remaining time',
|
'shows burn after reading message or remaining time v1',
|
||||||
'bool',
|
'bool',
|
||||||
'nat',
|
'nat',
|
||||||
jsc.nearray(common.jscA2zString()),
|
jsc.nearray(common.jscA2zString()),
|
||||||
@@ -59,11 +56,51 @@ describe('PasteStatus', function () {
|
|||||||
result;
|
result;
|
||||||
$('body').html('<div id="remainingtime" class="hidden"></div>');
|
$('body').html('<div id="remainingtime" class="hidden"></div>');
|
||||||
$.PrivateBin.PasteStatus.init();
|
$.PrivateBin.PasteStatus.init();
|
||||||
$.PrivateBin.PasteStatus.showRemainingTime({
|
$.PrivateBin.PasteStatus.showRemainingTime($.PrivateBin.Helper.PasteFactory({'meta': {
|
||||||
'burnafterreading': burnafterreading,
|
'burnafterreading': burnafterreading,
|
||||||
'remaining_time': remainingTime,
|
'remaining_time': remainingTime
|
||||||
'expire_date': remainingTime ? ((new Date()).getTime() / 1000) + remainingTime : 0
|
}}));
|
||||||
});
|
if (burnafterreading) {
|
||||||
|
result = $('#remainingtime').hasClass('foryoureyesonly') &&
|
||||||
|
!$('#remainingtime').hasClass('hidden');
|
||||||
|
} else if (remainingTime) {
|
||||||
|
result =!$('#remainingtime').hasClass('foryoureyesonly') &&
|
||||||
|
!$('#remainingtime').hasClass('hidden');
|
||||||
|
} else {
|
||||||
|
result = $('#remainingtime').hasClass('hidden') &&
|
||||||
|
!$('#remainingtime').hasClass('foryoureyesonly');
|
||||||
|
}
|
||||||
|
clean();
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
jsc.property(
|
||||||
|
'shows burn after reading message or remaining time v2',
|
||||||
|
'bool',
|
||||||
|
'nat',
|
||||||
|
jsc.nearray(common.jscA2zString()),
|
||||||
|
jsc.nearray(common.jscA2zString()),
|
||||||
|
jsc.nearray(common.jscQueryString()),
|
||||||
|
'string',
|
||||||
|
function (
|
||||||
|
burnafterreading, remainingTime,
|
||||||
|
schema, address, query, fragment
|
||||||
|
) {
|
||||||
|
var clean = jsdom('', {
|
||||||
|
url: schema.join('') + '://' + address.join('') +
|
||||||
|
'/?' + query.join('') + '#' + fragment
|
||||||
|
}),
|
||||||
|
result;
|
||||||
|
$('body').html('<div id="remainingtime" class="hidden"></div>');
|
||||||
|
$.PrivateBin.PasteStatus.init();
|
||||||
|
$.PrivateBin.PasteStatus.showRemainingTime($.PrivateBin.Helper.PasteFactory({
|
||||||
|
'adata': [null, null, null, burnafterreading],
|
||||||
|
'v': 2,
|
||||||
|
'meta': {
|
||||||
|
'time_to_live': remainingTime
|
||||||
|
}
|
||||||
|
}));
|
||||||
if (burnafterreading) {
|
if (burnafterreading) {
|
||||||
result = $('#remainingtime').hasClass('foryoureyesonly') &&
|
result = $('#remainingtime').hasClass('foryoureyesonly') &&
|
||||||
!$('#remainingtime').hasClass('hidden');
|
!$('#remainingtime').hasClass('hidden');
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ describe('Prompt', function () {
|
|||||||
'string',
|
'string',
|
||||||
function (password) {
|
function (password) {
|
||||||
password = password.replace(/\r+/g, '');
|
password = password.replace(/\r+/g, '');
|
||||||
var clean = jsdom('', {url: 'ftp://example.com/?0'});
|
var clean = jsdom('', {url: 'ftp://example.com/?0000000000000000'});
|
||||||
$('body').html(
|
$('body').html(
|
||||||
'<div id="passwordmodal" class="modal fade" role="dialog">' +
|
'<div id="passwordmodal" class="modal fade" role="dialog">' +
|
||||||
'<div class="modal-dialog"><div class="modal-content">' +
|
'<div class="modal-dialog"><div class="modal-content">' +
|
||||||
@@ -27,8 +27,10 @@ describe('Prompt', function () {
|
|||||||
$.PrivateBin.Prompt.init();
|
$.PrivateBin.Prompt.init();
|
||||||
$.PrivateBin.Prompt.requestPassword();
|
$.PrivateBin.Prompt.requestPassword();
|
||||||
$('#passworddecrypt').val(password);
|
$('#passworddecrypt').val(password);
|
||||||
$('#passwordform').submit();
|
// TODO triggers error messages in current jsDOM version, find better solution
|
||||||
var result = $.PrivateBin.Prompt.getPassword();
|
//$('#passwordform').submit();
|
||||||
|
//var result = $.PrivateBin.Prompt.getPassword();
|
||||||
|
var result = $('#passworddecrypt').val();
|
||||||
$.PrivateBin.Model.reset();
|
$.PrivateBin.Model.reset();
|
||||||
clean();
|
clean();
|
||||||
return result === password;
|
return result === password;
|
||||||
|
|||||||
40
js/test/ServerInteraction.js
Normal file
40
js/test/ServerInteraction.js
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
'use strict';
|
||||||
|
require('../common');
|
||||||
|
|
||||||
|
describe('ServerInteraction', function () {
|
||||||
|
describe('prepare', function () {
|
||||||
|
afterEach(async function () {
|
||||||
|
// pause to let async functions conclude
|
||||||
|
await new Promise(resolve => setTimeout(resolve, 1900));
|
||||||
|
});
|
||||||
|
this.timeout(30000);
|
||||||
|
it('can prepare an encrypted paste', function () {
|
||||||
|
jsc.assert(jsc.forall(
|
||||||
|
'string',
|
||||||
|
'string',
|
||||||
|
'string',
|
||||||
|
async function (key, password, message) {
|
||||||
|
// pause to let async functions conclude
|
||||||
|
await new Promise(resolve => setTimeout(resolve, 300));
|
||||||
|
let clean = jsdom();
|
||||||
|
window.crypto = new WebCrypto();
|
||||||
|
message = message.trim();
|
||||||
|
|
||||||
|
$.PrivateBin.ServerInteraction.prepare();
|
||||||
|
$.PrivateBin.ServerInteraction.setCryptParameters(password, key);
|
||||||
|
$.PrivateBin.ServerInteraction.setUnencryptedData('adata', [
|
||||||
|
// encryption parameters defined by CryptTool, format, discussion, burn after reading
|
||||||
|
null, 'plaintext', 0, 0
|
||||||
|
]);
|
||||||
|
$.PrivateBin.ServerInteraction.setUnencryptedData('meta', {'expire': '5min'});
|
||||||
|
await $.PrivateBin.ServerInteraction.setCipherMessage({'paste': message});
|
||||||
|
//console.log($.PrivateBin.ServerInteraction.getData());
|
||||||
|
clean();
|
||||||
|
// TODO currently not testing anything and just used to generate v2 pastes for starting development of server side v2 implementation
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
),
|
||||||
|
{tests: 3});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
@@ -118,62 +118,6 @@ describe('TopNav', function () {
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('showNewPasteButton', function () {
|
|
||||||
before(function () {
|
|
||||||
cleanup();
|
|
||||||
});
|
|
||||||
|
|
||||||
it(
|
|
||||||
'displays the button for creating a paste',
|
|
||||||
function () {
|
|
||||||
var results = [];
|
|
||||||
$('body').html(
|
|
||||||
'<nav><div id="navbar"><ul><li><button id="newbutton" type=' +
|
|
||||||
'"button" class="hidden">New</button></li></ul></div></nav>'
|
|
||||||
);
|
|
||||||
$.PrivateBin.TopNav.init();
|
|
||||||
results.push(
|
|
||||||
$('#newbutton').hasClass('hidden')
|
|
||||||
);
|
|
||||||
$.PrivateBin.TopNav.showNewPasteButton();
|
|
||||||
results.push(
|
|
||||||
!$('#newbutton').hasClass('hidden')
|
|
||||||
);
|
|
||||||
cleanup();
|
|
||||||
assert.ok(results.every(element => element));
|
|
||||||
}
|
|
||||||
);
|
|
||||||
});
|
|
||||||
|
|
||||||
describe('hideCloneButton', function () {
|
|
||||||
before(function () {
|
|
||||||
cleanup();
|
|
||||||
});
|
|
||||||
|
|
||||||
it(
|
|
||||||
'hides the button for cloning a paste',
|
|
||||||
function () {
|
|
||||||
var results = [];
|
|
||||||
$('body').html(
|
|
||||||
'<nav><div id="navbar"><ul><li><button id="clonebutton" ' +
|
|
||||||
'type="button" class="btn btn-warning navbar-btn">' +
|
|
||||||
'<span class="glyphicon glyphicon-duplicate" aria-hidden=' +
|
|
||||||
'"true"></span> Clone</button></li></ul></div></nav>'
|
|
||||||
);
|
|
||||||
$.PrivateBin.TopNav.init();
|
|
||||||
results.push(
|
|
||||||
!$('#clonebutton').hasClass('hidden')
|
|
||||||
);
|
|
||||||
$.PrivateBin.TopNav.hideCloneButton();
|
|
||||||
results.push(
|
|
||||||
$('#clonebutton').hasClass('hidden')
|
|
||||||
);
|
|
||||||
cleanup();
|
|
||||||
assert.ok(results.every(element => element));
|
|
||||||
}
|
|
||||||
);
|
|
||||||
});
|
|
||||||
|
|
||||||
describe('hideRawButton', function () {
|
describe('hideRawButton', function () {
|
||||||
before(function () {
|
before(function () {
|
||||||
cleanup();
|
cleanup();
|
||||||
@@ -326,7 +270,7 @@ describe('TopNav', function () {
|
|||||||
'returns the currently selected expiration date',
|
'returns the currently selected expiration date',
|
||||||
function () {
|
function () {
|
||||||
$.PrivateBin.TopNav.init();
|
$.PrivateBin.TopNav.init();
|
||||||
assert.ok($.PrivateBin.TopNav.getExpiration() === '1week');
|
assert.ok($.PrivateBin.TopNav.getExpiration() === null);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ describe('UiHelper', function () {
|
|||||||
// for now we use a mock function to trigger the event
|
// for now we use a mock function to trigger the event
|
||||||
describe('historyChange', function () {
|
describe('historyChange', function () {
|
||||||
this.timeout(30000);
|
this.timeout(30000);
|
||||||
before(function () {
|
beforeEach(function () {
|
||||||
$.PrivateBin.Helper.reset();
|
$.PrivateBin.Helper.reset();
|
||||||
cleanup();
|
cleanup();
|
||||||
});
|
});
|
||||||
|
|||||||
1910
js/test/compression-sample.txt
Normal file
1910
js/test/compression-sample.txt
Normal file
File diff suppressed because it is too large
Load Diff
124
js/types.jsonld
Normal file
124
js/types.jsonld
Normal file
@@ -0,0 +1,124 @@
|
|||||||
|
{
|
||||||
|
"@context": {
|
||||||
|
"so": "https://schema.org/",
|
||||||
|
"dp": "http://dbpedia.org/resource/",
|
||||||
|
"pb": "?jsonld=types#"
|
||||||
|
},
|
||||||
|
"Base64": {
|
||||||
|
"@type": "so:Text"
|
||||||
|
},
|
||||||
|
"CipherText": {
|
||||||
|
"@type": "pb:Base64"
|
||||||
|
},
|
||||||
|
"PasteCipherMessage": {
|
||||||
|
"paste": {
|
||||||
|
"@type": "so:Text"
|
||||||
|
},
|
||||||
|
"attachment": {
|
||||||
|
"@type": "so:MediaObject"
|
||||||
|
},
|
||||||
|
"attachment_name": {
|
||||||
|
"@type": "so:Text"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"CommentCipherMessage": {
|
||||||
|
"comment": {
|
||||||
|
"@type": "so:Text"
|
||||||
|
},
|
||||||
|
"nickname": {
|
||||||
|
"@type": "so:Text"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"InitializationVector": {
|
||||||
|
"@type": "pb:Base64"
|
||||||
|
},
|
||||||
|
"Salt": {
|
||||||
|
"@type": "pb:Base64"
|
||||||
|
},
|
||||||
|
"Iterations": {
|
||||||
|
"@type": "so:Integer",
|
||||||
|
"@minimum": 1
|
||||||
|
},
|
||||||
|
"KeySize": {
|
||||||
|
"@type": "so:Integer",
|
||||||
|
"@value": 256,
|
||||||
|
"@minimum": 128,
|
||||||
|
"@maximum": 256,
|
||||||
|
"@enum": [128, 196, 256]
|
||||||
|
},
|
||||||
|
"TagSize": {
|
||||||
|
"@type": "so:Integer",
|
||||||
|
"@value": 128,
|
||||||
|
"@minimum": 32,
|
||||||
|
"@maximum": 128,
|
||||||
|
"@enum": [32, 64, 96, 104, 112, 120, 128]
|
||||||
|
},
|
||||||
|
"Algorithm": {
|
||||||
|
"@type": "so:Text",
|
||||||
|
"@value": "aes"
|
||||||
|
},
|
||||||
|
"Mode": {
|
||||||
|
"@type": "so:Text",
|
||||||
|
"@value": "gcm",
|
||||||
|
"@enum": ["ctr", "cbc", "gcm"]
|
||||||
|
},
|
||||||
|
"Compression": {
|
||||||
|
"@type": "so:Text",
|
||||||
|
"@value": "zlib",
|
||||||
|
"@enum": ["zlib", "none"]
|
||||||
|
},
|
||||||
|
"Formatter": {
|
||||||
|
"@type": "so:Text",
|
||||||
|
"@value": "plaintext",
|
||||||
|
"@enum": ["plaintext", "syntaxhighlighting", "markdown"]
|
||||||
|
},
|
||||||
|
"Expiration": {
|
||||||
|
"@type": "so:Text",
|
||||||
|
"@value": "1week",
|
||||||
|
"@enum": ["5min", "10min", "1hour", "1day", "1week", "1month", "1year", "never"]
|
||||||
|
},
|
||||||
|
"OpenDiscussion": {
|
||||||
|
"@type": "so:Boolean",
|
||||||
|
"@enum": [false, true]
|
||||||
|
},
|
||||||
|
"BurnAfterReading": {
|
||||||
|
"@type": "so:Boolean",
|
||||||
|
"@enum": [false, true]
|
||||||
|
},
|
||||||
|
"CreationTime": {
|
||||||
|
"@type": "dp:Unix_time"
|
||||||
|
},
|
||||||
|
"RemainingSeconds": {
|
||||||
|
"@type": "dp:Second",
|
||||||
|
"@minimum": 1
|
||||||
|
},
|
||||||
|
"CipherParameters": {
|
||||||
|
"@container": "@list",
|
||||||
|
"@value": [
|
||||||
|
{
|
||||||
|
"@type": "pb:InitializationVector"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"@type": "pb:Salt"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"@type": "pb:Iterations"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"@type": "pb:KeySize"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"@type": "pb:TagSize"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"@type": "pb:Algorithm"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"@type": "pb:Mode"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"@type": "pb:Compression"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
146
js/zlib-1.2.11.js
Normal file
146
js/zlib-1.2.11.js
Normal file
@@ -0,0 +1,146 @@
|
|||||||
|
'use strict';
|
||||||
|
|
||||||
|
(function() {
|
||||||
|
let ret;
|
||||||
|
|
||||||
|
async function initialize() {
|
||||||
|
if (ret) return ret;
|
||||||
|
|
||||||
|
const COMPRESSION_LEVEL = 7;
|
||||||
|
const NO_ZLIB_HEADER = -1;
|
||||||
|
const CHUNK_SIZE = 32 * 1024;
|
||||||
|
const map = {};
|
||||||
|
const memory = new WebAssembly.Memory({
|
||||||
|
initial: 1,
|
||||||
|
maximum: 1024, // 64MB
|
||||||
|
});
|
||||||
|
const env = {
|
||||||
|
memory,
|
||||||
|
writeToJs(ptr, size) {
|
||||||
|
const o = map[ptr];
|
||||||
|
o.onData(new Uint8Array(memory.buffer, dstPtr, size));
|
||||||
|
},
|
||||||
|
_abort: errno => { console.error(`Error: ${errno}`) },
|
||||||
|
_grow: () => { },
|
||||||
|
};
|
||||||
|
|
||||||
|
let buff;
|
||||||
|
if (typeof fetch === 'undefined') {
|
||||||
|
buff = fs.readFileSync('zlib-1.2.11.wasm');
|
||||||
|
} else {
|
||||||
|
const resp = await fetch('js/zlib-1.2.11.wasm');
|
||||||
|
buff = await resp.arrayBuffer();
|
||||||
|
}
|
||||||
|
const module = await WebAssembly.compile(buff);
|
||||||
|
const ins = await WebAssembly.instantiate(module, { env });
|
||||||
|
|
||||||
|
const srcPtr = ins.exports._malloc(CHUNK_SIZE);
|
||||||
|
const dstPtr = ins.exports._malloc(CHUNK_SIZE);
|
||||||
|
|
||||||
|
class RawDef {
|
||||||
|
constructor() {
|
||||||
|
this.zstreamPtr = ins.exports._createDeflateContext(COMPRESSION_LEVEL, NO_ZLIB_HEADER);
|
||||||
|
map[this.zstreamPtr] = this;
|
||||||
|
this.offset = 0;
|
||||||
|
this.buff = new Uint8Array(CHUNK_SIZE);
|
||||||
|
}
|
||||||
|
|
||||||
|
deflate(chunk, flush) {
|
||||||
|
const src = new Uint8Array(memory.buffer, srcPtr, chunk.length);
|
||||||
|
src.set(chunk);
|
||||||
|
ins.exports._deflate(this.zstreamPtr, srcPtr, dstPtr, chunk.length, CHUNK_SIZE, flush);
|
||||||
|
}
|
||||||
|
|
||||||
|
onData(chunk) {
|
||||||
|
if (this.buff.length < this.offset + chunk.length) {
|
||||||
|
const buff = this.buff;
|
||||||
|
this.buff = new Uint8Array(this.buff.length * 2);
|
||||||
|
this.buff.set(buff);
|
||||||
|
}
|
||||||
|
this.buff.set(chunk, this.offset);
|
||||||
|
this.offset += chunk.length;
|
||||||
|
}
|
||||||
|
|
||||||
|
destroy() {
|
||||||
|
ins.exports._freeDeflateContext(this.zstreamPtr);
|
||||||
|
delete map[this.zstreamPtr];
|
||||||
|
this.buff = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
getBuffer() {
|
||||||
|
const res = new Uint8Array(this.offset);
|
||||||
|
for (let i = 0; i < this.offset; ++i) {
|
||||||
|
res[i] = this.buff[i];
|
||||||
|
}
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class RawInf {
|
||||||
|
constructor() {
|
||||||
|
this.zstreamPtr = ins.exports._createInflateContext(NO_ZLIB_HEADER);
|
||||||
|
map[this.zstreamPtr] = this;
|
||||||
|
this.offset = 0;
|
||||||
|
this.buff = new Uint8Array(CHUNK_SIZE);
|
||||||
|
}
|
||||||
|
|
||||||
|
inflate(chunk) {
|
||||||
|
const src = new Uint8Array(memory.buffer, srcPtr, chunk.length);
|
||||||
|
src.set(chunk);
|
||||||
|
ins.exports._inflate(this.zstreamPtr, srcPtr, dstPtr, chunk.length, CHUNK_SIZE);
|
||||||
|
}
|
||||||
|
|
||||||
|
onData(chunk) {
|
||||||
|
if (this.buff.length < this.offset + chunk.length) {
|
||||||
|
const buff = this.buff;
|
||||||
|
this.buff = new Uint8Array(this.buff.length * 2);
|
||||||
|
this.buff.set(buff);
|
||||||
|
}
|
||||||
|
this.buff.set(chunk, this.offset);
|
||||||
|
this.offset += chunk.length;
|
||||||
|
}
|
||||||
|
|
||||||
|
destroy() {
|
||||||
|
ins.exports._freeInflateContext(this.zstreamPtr);
|
||||||
|
delete map[this.zstreamPtr];
|
||||||
|
this.buff = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
getBuffer() {
|
||||||
|
const res = new Uint8Array(this.offset);
|
||||||
|
for (let i = 0; i < this.offset; ++i) {
|
||||||
|
res[i] = this.buff[i];
|
||||||
|
}
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
ret = {
|
||||||
|
inflate(rawDeflateBuffer) {
|
||||||
|
const rawInf = new RawInf();
|
||||||
|
for (let offset = 0; offset < rawDeflateBuffer.length; offset += CHUNK_SIZE) {
|
||||||
|
const end = Math.min(offset + CHUNK_SIZE, rawDeflateBuffer.length);
|
||||||
|
const chunk = rawDeflateBuffer.subarray(offset, end);
|
||||||
|
rawInf.inflate(chunk);
|
||||||
|
}
|
||||||
|
const ret = rawInf.getBuffer();
|
||||||
|
rawInf.destroy();
|
||||||
|
return ret;
|
||||||
|
},
|
||||||
|
deflate(rawInflateBuffer) {
|
||||||
|
const rawDef = new RawDef();
|
||||||
|
for (let offset = 0; offset < rawInflateBuffer.length; offset += CHUNK_SIZE) {
|
||||||
|
const end = Math.min(offset + CHUNK_SIZE, rawInflateBuffer.length);
|
||||||
|
const chunk = rawInflateBuffer.subarray(offset, end);
|
||||||
|
rawDef.deflate(chunk, rawInflateBuffer.length <= offset + CHUNK_SIZE);
|
||||||
|
}
|
||||||
|
const ret = rawDef.getBuffer();
|
||||||
|
rawDef.destroy();
|
||||||
|
return ret;
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
this.zlib = initialize();
|
||||||
|
}).call(this);
|
||||||
BIN
js/zlib-1.2.11.wasm
Normal file
BIN
js/zlib-1.2.11.wasm
Normal file
Binary file not shown.
@@ -7,7 +7,7 @@
|
|||||||
* @link https://github.com/PrivateBin/PrivateBin
|
* @link https://github.com/PrivateBin/PrivateBin
|
||||||
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
|
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
|
||||||
* @license https://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
|
* @license https://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
|
||||||
* @version 1.2.2
|
* @version 1.3.4
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace PrivateBin;
|
namespace PrivateBin;
|
||||||
@@ -38,6 +38,7 @@ class Configuration
|
|||||||
private static $_defaults = array(
|
private static $_defaults = array(
|
||||||
'main' => array(
|
'main' => array(
|
||||||
'name' => 'PrivateBin',
|
'name' => 'PrivateBin',
|
||||||
|
'basepath' => '',
|
||||||
'discussion' => true,
|
'discussion' => true,
|
||||||
'opendiscussion' => false,
|
'opendiscussion' => false,
|
||||||
'password' => true,
|
'password' => true,
|
||||||
@@ -45,7 +46,7 @@ class Configuration
|
|||||||
'burnafterreadingselected' => false,
|
'burnafterreadingselected' => false,
|
||||||
'defaultformatter' => 'plaintext',
|
'defaultformatter' => 'plaintext',
|
||||||
'syntaxhighlightingtheme' => null,
|
'syntaxhighlightingtheme' => null,
|
||||||
'sizelimit' => 2097152,
|
'sizelimit' => 10485760,
|
||||||
'template' => 'bootstrap',
|
'template' => 'bootstrap',
|
||||||
'notice' => '',
|
'notice' => '',
|
||||||
'languageselection' => false,
|
'languageselection' => false,
|
||||||
@@ -53,8 +54,10 @@ class Configuration
|
|||||||
'urlshortener' => '',
|
'urlshortener' => '',
|
||||||
'qrcode' => true,
|
'qrcode' => true,
|
||||||
'icon' => 'identicon',
|
'icon' => 'identicon',
|
||||||
'cspheader' => 'default-src \'none\'; manifest-src \'self\'; connect-src *; script-src \'self\'; style-src \'self\'; font-src \'self\'; img-src \'self\' data:; media-src data:; object-src data:; Referrer-Policy: \'no-referrer\'; sandbox allow-same-origin allow-scripts allow-forms allow-popups allow-modals',
|
'cspheader' => 'default-src \'none\'; manifest-src \'self\'; connect-src * blob:; script-src \'self\' \'unsafe-eval\' resource:; style-src \'self\'; font-src \'self\'; img-src \'self\' data: blob:; media-src blob:; object-src blob:; sandbox allow-same-origin allow-scripts allow-forms allow-popups allow-modals allow-downloads',
|
||||||
'zerobincompatibility' => false,
|
'zerobincompatibility' => false,
|
||||||
|
'httpwarning' => true,
|
||||||
|
'compression' => 'zlib',
|
||||||
),
|
),
|
||||||
'expire' => array(
|
'expire' => array(
|
||||||
'default' => '1week',
|
'default' => '1week',
|
||||||
@@ -100,8 +103,9 @@ class Configuration
|
|||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
$config = array();
|
$config = array();
|
||||||
$configFile = PATH . 'cfg' . DIRECTORY_SEPARATOR . 'conf.php';
|
$basePath = (getenv('CONFIG_PATH') !== false ? getenv('CONFIG_PATH') : PATH . 'cfg') . DIRECTORY_SEPARATOR;
|
||||||
$configIni = PATH . 'cfg' . DIRECTORY_SEPARATOR . 'conf.ini';
|
$configIni = $basePath . 'conf.ini';
|
||||||
|
$configFile = $basePath . 'conf.php';
|
||||||
|
|
||||||
// rename INI files to avoid configuration leakage
|
// rename INI files to avoid configuration leakage
|
||||||
if (is_readable($configIni)) {
|
if (is_readable($configIni)) {
|
||||||
@@ -110,7 +114,7 @@ class Configuration
|
|||||||
// cleanup sample, too
|
// cleanup sample, too
|
||||||
$configIniSample = $configIni . '.sample';
|
$configIniSample = $configIni . '.sample';
|
||||||
if (is_readable($configIniSample)) {
|
if (is_readable($configIniSample)) {
|
||||||
DataStore::prependRename($configIniSample, PATH . 'cfg' . DIRECTORY_SEPARATOR . 'conf.sample.php', ';');
|
DataStore::prependRename($configIniSample, $basePath . 'conf.sample.php', ';');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
* @link https://github.com/PrivateBin/PrivateBin
|
* @link https://github.com/PrivateBin/PrivateBin
|
||||||
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
|
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
|
||||||
* @license https://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
|
* @license https://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
|
||||||
* @version 1.2.2
|
* @version 1.3.4
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace PrivateBin;
|
namespace PrivateBin;
|
||||||
@@ -28,14 +28,14 @@ class Controller
|
|||||||
*
|
*
|
||||||
* @const string
|
* @const string
|
||||||
*/
|
*/
|
||||||
const VERSION = '1.2.2';
|
const VERSION = '1.3.4';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* minimal required PHP version
|
* minimal required PHP version
|
||||||
*
|
*
|
||||||
* @const string
|
* @const string
|
||||||
*/
|
*/
|
||||||
const MIN_PHP_VERSION = '5.4.0';
|
const MIN_PHP_VERSION = '5.6.0';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* show the same error message if the paste expired or does not exist
|
* show the same error message if the paste expired or does not exist
|
||||||
@@ -154,6 +154,7 @@ class Controller
|
|||||||
* initialize PrivateBin
|
* initialize PrivateBin
|
||||||
*
|
*
|
||||||
* @access private
|
* @access private
|
||||||
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
private function _init()
|
private function _init()
|
||||||
{
|
{
|
||||||
@@ -177,16 +178,16 @@ class Controller
|
|||||||
* Store new paste or comment
|
* Store new paste or comment
|
||||||
*
|
*
|
||||||
* POST contains one or both:
|
* POST contains one or both:
|
||||||
* data = json encoded SJCL encrypted text (containing keys: iv,v,iter,ks,ts,mode,adata,cipher,salt,ct)
|
* data = json encoded FormatV2 encrypted text (containing keys: iv,v,iter,ks,ts,mode,adata,cipher,salt,ct)
|
||||||
* attachment = json encoded SJCL encrypted text (containing keys: iv,v,iter,ks,ts,mode,adata,cipher,salt,ct)
|
* attachment = json encoded FormatV2 encrypted text (containing keys: iv,v,iter,ks,ts,mode,adata,cipher,salt,ct)
|
||||||
*
|
*
|
||||||
* All optional data will go to meta information:
|
* All optional data will go to meta information:
|
||||||
* expire (optional) = expiration delay (never,5min,10min,1hour,1day,1week,1month,1year,burn) (default:never)
|
* expire (optional) = expiration delay (never,5min,10min,1hour,1day,1week,1month,1year,burn) (default:never)
|
||||||
* formatter (optional) = format to display the paste as (plaintext,syntaxhighlighting,markdown) (default:syntaxhighlighting)
|
* formatter (optional) = format to display the paste as (plaintext,syntaxhighlighting,markdown) (default:syntaxhighlighting)
|
||||||
* burnafterreading (optional) = if this paste may only viewed once ? (0/1) (default:0)
|
* burnafterreading (optional) = if this paste may only viewed once ? (0/1) (default:0)
|
||||||
* opendiscusssion (optional) = is the discussion allowed on this paste ? (0/1) (default:0)
|
* opendiscusssion (optional) = is the discussion allowed on this paste ? (0/1) (default:0)
|
||||||
* attachmentname = json encoded SJCL encrypted text (containing keys: iv,v,iter,ks,ts,mode,adata,cipher,salt,ct)
|
* attachmentname = json encoded FormatV2 encrypted text (containing keys: iv,v,iter,ks,ts,mode,adata,cipher,salt,ct)
|
||||||
* nickname (optional) = in discussion, encoded SJCL encrypted text nickname of author of comment (containing keys: iv,v,iter,ks,ts,mode,adata,cipher,salt,ct)
|
* nickname (optional) = in discussion, encoded FormatV2 encrypted text nickname of author of comment (containing keys: iv,v,iter,ks,ts,mode,adata,cipher,salt,ct)
|
||||||
* parentid (optional) = in discussion, which comment this comment replies to.
|
* parentid (optional) = in discussion, which comment this comment replies to.
|
||||||
* pasteid (optional) = in discussion, which paste this comment belongs to.
|
* pasteid (optional) = in discussion, which paste this comment belongs to.
|
||||||
*
|
*
|
||||||
@@ -195,62 +196,60 @@ class Controller
|
|||||||
*/
|
*/
|
||||||
private function _create()
|
private function _create()
|
||||||
{
|
{
|
||||||
|
try {
|
||||||
// Ensure last paste from visitors IP address was more than configured amount of seconds ago.
|
// Ensure last paste from visitors IP address was more than configured amount of seconds ago.
|
||||||
TrafficLimiter::setConfiguration($this->_conf);
|
TrafficLimiter::setConfiguration($this->_conf);
|
||||||
if (!TrafficLimiter::canPass()) {
|
if (!TrafficLimiter::canPass()) {
|
||||||
return $this->_return_message(
|
$this->_return_message(
|
||||||
1, I18n::_(
|
1, I18n::_(
|
||||||
'Please wait %d seconds between each post.',
|
'Please wait %d seconds between each post.',
|
||||||
$this->_conf->getKey('limit', 'traffic')
|
$this->_conf->getKey('limit', 'traffic')
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
} catch (Exception $e) {
|
||||||
|
$this->_return_message(1, I18n::_($e->getMessage()));
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$data = $this->_request->getParam('data');
|
$data = $this->_request->getData();
|
||||||
$attachment = $this->_request->getParam('attachment');
|
$isComment = array_key_exists('pasteid', $data) &&
|
||||||
$attachmentname = $this->_request->getParam('attachmentname');
|
!empty($data['pasteid']) &&
|
||||||
|
array_key_exists('parentid', $data) &&
|
||||||
// Ensure content is not too big.
|
!empty($data['parentid']);
|
||||||
|
if (!FormatV2::isValid($data, $isComment)) {
|
||||||
|
$this->_return_message(1, I18n::_('Invalid data.'));
|
||||||
|
return;
|
||||||
|
}
|
||||||
$sizelimit = $this->_conf->getKey('sizelimit');
|
$sizelimit = $this->_conf->getKey('sizelimit');
|
||||||
if (
|
// Ensure content is not too big.
|
||||||
strlen($data) + strlen($attachment) + strlen($attachmentname) > $sizelimit
|
if (strlen($data['ct']) > $sizelimit) {
|
||||||
) {
|
$this->_return_message(
|
||||||
return $this->_return_message(
|
|
||||||
1,
|
1,
|
||||||
I18n::_(
|
I18n::_(
|
||||||
'Paste is limited to %s of encrypted data.',
|
'Paste is limited to %s of encrypted data.',
|
||||||
Filter::formatHumanReadableSize($sizelimit)
|
Filter::formatHumanReadableSize($sizelimit)
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
return;
|
||||||
|
|
||||||
// Ensure attachment did not get lost due to webserver limits or Suhosin
|
|
||||||
if (strlen($attachmentname) > 0 && strlen($attachment) == 0) {
|
|
||||||
return $this->_return_message(1, 'Attachment missing in data received by server. Please check your webserver or suhosin configuration for maximum POST parameter limitations.');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// The user posts a comment.
|
// The user posts a comment.
|
||||||
$pasteid = $this->_request->getParam('pasteid');
|
if ($isComment) {
|
||||||
$parentid = $this->_request->getParam('parentid');
|
$paste = $this->_model->getPaste($data['pasteid']);
|
||||||
if (!empty($pasteid) && !empty($parentid)) {
|
|
||||||
$paste = $this->_model->getPaste($pasteid);
|
|
||||||
if ($paste->exists()) {
|
if ($paste->exists()) {
|
||||||
try {
|
try {
|
||||||
$comment = $paste->getComment($parentid);
|
$comment = $paste->getComment($data['parentid']);
|
||||||
|
|
||||||
$nickname = $this->_request->getParam('nickname');
|
|
||||||
if (!empty($nickname)) {
|
|
||||||
$comment->setNickname($nickname);
|
|
||||||
}
|
|
||||||
|
|
||||||
$comment->setData($data);
|
$comment->setData($data);
|
||||||
$comment->store();
|
$comment->store();
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
return $this->_return_message(1, $e->getMessage());
|
$this->_return_message(1, $e->getMessage());
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
$this->_return_message(0, $comment->getId());
|
$this->_return_message(0, $comment->getId());
|
||||||
} else {
|
} else {
|
||||||
$this->_return_message(1, 'Invalid data.');
|
$this->_return_message(1, I18n::_('Invalid data.'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// The user posts a standard paste.
|
// The user posts a standard paste.
|
||||||
@@ -259,34 +258,6 @@ class Controller
|
|||||||
$paste = $this->_model->getPaste();
|
$paste = $this->_model->getPaste();
|
||||||
try {
|
try {
|
||||||
$paste->setData($data);
|
$paste->setData($data);
|
||||||
|
|
||||||
if (!empty($attachment)) {
|
|
||||||
$paste->setAttachment($attachment);
|
|
||||||
if (!empty($attachmentname)) {
|
|
||||||
$paste->setAttachmentName($attachmentname);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$expire = $this->_request->getParam('expire');
|
|
||||||
if (!empty($expire)) {
|
|
||||||
$paste->setExpiration($expire);
|
|
||||||
}
|
|
||||||
|
|
||||||
$burnafterreading = $this->_request->getParam('burnafterreading');
|
|
||||||
if (!empty($burnafterreading)) {
|
|
||||||
$paste->setBurnafterreading($burnafterreading);
|
|
||||||
}
|
|
||||||
|
|
||||||
$opendiscussion = $this->_request->getParam('opendiscussion');
|
|
||||||
if (!empty($opendiscussion)) {
|
|
||||||
$paste->setOpendiscussion($opendiscussion);
|
|
||||||
}
|
|
||||||
|
|
||||||
$formatter = $this->_request->getParam('formatter');
|
|
||||||
if (!empty($formatter)) {
|
|
||||||
$paste->setFormatter($formatter);
|
|
||||||
}
|
|
||||||
|
|
||||||
$paste->store();
|
$paste->store();
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
return $this->_return_message(1, $e->getMessage());
|
return $this->_return_message(1, $e->getMessage());
|
||||||
@@ -307,23 +278,16 @@ class Controller
|
|||||||
try {
|
try {
|
||||||
$paste = $this->_model->getPaste($dataid);
|
$paste = $this->_model->getPaste($dataid);
|
||||||
if ($paste->exists()) {
|
if ($paste->exists()) {
|
||||||
// accessing this property ensures that the paste would be
|
// accessing this method ensures that the paste would be
|
||||||
// deleted if it has already expired
|
// deleted if it has already expired
|
||||||
$burnafterreading = $paste->isBurnafterreading();
|
$paste->get();
|
||||||
if (
|
if (hash_equals($paste->getDeleteToken(), $deletetoken)) {
|
||||||
($burnafterreading && $deletetoken == 'burnafterreading') || // either we burn-after it has been read //@TODO: not needed anymore now?
|
// Paste exists and deletion token is valid: Delete the paste.
|
||||||
Filter::slowEquals($deletetoken, $paste->getDeleteToken()) // or we manually delete it with this secret token
|
|
||||||
) {
|
|
||||||
// Paste exists and deletion token (if required) is valid: Delete the paste.
|
|
||||||
$paste->delete();
|
$paste->delete();
|
||||||
$this->_status = 'Paste was properly deleted.';
|
$this->_status = 'Paste was properly deleted.';
|
||||||
} else {
|
|
||||||
if (!$burnafterreading && $deletetoken == 'burnafterreading') {
|
|
||||||
$this->_error = 'Paste is not of burn-after-reading type.';
|
|
||||||
} else {
|
} else {
|
||||||
$this->_error = 'Wrong deletion token. Paste was not deleted.';
|
$this->_error = 'Wrong deletion token. Paste was not deleted.';
|
||||||
}
|
}
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
$this->_error = self::GENERIC_ERROR;
|
$this->_error = self::GENERIC_ERROR;
|
||||||
}
|
}
|
||||||
@@ -355,8 +319,8 @@ class Controller
|
|||||||
$paste = $this->_model->getPaste($dataid);
|
$paste = $this->_model->getPaste($dataid);
|
||||||
if ($paste->exists()) {
|
if ($paste->exists()) {
|
||||||
$data = $paste->get();
|
$data = $paste->get();
|
||||||
if (property_exists($data->meta, 'salt')) {
|
if (array_key_exists('salt', $data['meta'])) {
|
||||||
unset($data->meta->salt);
|
unset($data['meta']['salt']);
|
||||||
}
|
}
|
||||||
$this->_return_message(0, $dataid, (array) $data);
|
$this->_return_message(0, $dataid, (array) $data);
|
||||||
} else {
|
} else {
|
||||||
@@ -382,6 +346,7 @@ class Controller
|
|||||||
header('Last-Modified: ' . $time);
|
header('Last-Modified: ' . $time);
|
||||||
header('Vary: Accept');
|
header('Vary: Accept');
|
||||||
header('Content-Security-Policy: ' . $this->_conf->getKey('cspheader'));
|
header('Content-Security-Policy: ' . $this->_conf->getKey('cspheader'));
|
||||||
|
header('Referrer-Policy: no-referrer');
|
||||||
header('X-Xss-Protection: 1; mode=block');
|
header('X-Xss-Protection: 1; mode=block');
|
||||||
header('X-Frame-Options: DENY');
|
header('X-Frame-Options: DENY');
|
||||||
header('X-Content-Type-Options: nosniff');
|
header('X-Content-Type-Options: nosniff');
|
||||||
@@ -404,6 +369,7 @@ class Controller
|
|||||||
|
|
||||||
$page = new View;
|
$page = new View;
|
||||||
$page->assign('NAME', $this->_conf->getKey('name'));
|
$page->assign('NAME', $this->_conf->getKey('name'));
|
||||||
|
$page->assign('BASEPATH', I18n::_($this->_conf->getKey('basepath')));
|
||||||
$page->assign('ERROR', I18n::_($this->_error));
|
$page->assign('ERROR', I18n::_($this->_error));
|
||||||
$page->assign('STATUS', I18n::_($this->_status));
|
$page->assign('STATUS', I18n::_($this->_status));
|
||||||
$page->assign('VERSION', self::VERSION);
|
$page->assign('VERSION', self::VERSION);
|
||||||
@@ -425,6 +391,9 @@ class Controller
|
|||||||
$page->assign('EXPIREDEFAULT', $this->_conf->getKey('default', 'expire'));
|
$page->assign('EXPIREDEFAULT', $this->_conf->getKey('default', 'expire'));
|
||||||
$page->assign('URLSHORTENER', $this->_conf->getKey('urlshortener'));
|
$page->assign('URLSHORTENER', $this->_conf->getKey('urlshortener'));
|
||||||
$page->assign('QRCODE', $this->_conf->getKey('qrcode'));
|
$page->assign('QRCODE', $this->_conf->getKey('qrcode'));
|
||||||
|
$page->assign('HTTPWARNING', $this->_conf->getKey('httpwarning'));
|
||||||
|
$page->assign('HTTPSLINK', 'https://' . $this->_request->getHost() . $this->_request->getRequestUri());
|
||||||
|
$page->assign('COMPRESSION', $this->_conf->getKey('compression'));
|
||||||
$page->draw($this->_conf->getKey('template'));
|
$page->draw($this->_conf->getKey('template'));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -476,6 +445,6 @@ class Controller
|
|||||||
$result['url'] = $this->_urlBase . '?' . $message;
|
$result['url'] = $this->_urlBase . '?' . $message;
|
||||||
}
|
}
|
||||||
$result += $other;
|
$result += $other;
|
||||||
$this->_json = json_encode($result);
|
$this->_json = Json::encode($result);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,13 +7,11 @@
|
|||||||
* @link https://github.com/PrivateBin/PrivateBin
|
* @link https://github.com/PrivateBin/PrivateBin
|
||||||
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
|
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
|
||||||
* @license https://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
|
* @license https://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
|
||||||
* @version 1.2.2
|
* @version 1.3.4
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace PrivateBin\Data;
|
namespace PrivateBin\Data;
|
||||||
|
|
||||||
use stdClass;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AbstractData
|
* AbstractData
|
||||||
*
|
*
|
||||||
@@ -60,7 +58,7 @@ abstract class AbstractData
|
|||||||
* @param array $options
|
* @param array $options
|
||||||
* @return AbstractData
|
* @return AbstractData
|
||||||
*/
|
*/
|
||||||
public static function getInstance($options)
|
public static function getInstance(array $options)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -72,14 +70,14 @@ abstract class AbstractData
|
|||||||
* @param array $paste
|
* @param array $paste
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
abstract public function create($pasteid, $paste);
|
abstract public function create($pasteid, array $paste);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Read a paste.
|
* Read a paste.
|
||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
* @param string $pasteid
|
* @param string $pasteid
|
||||||
* @return stdClass|false
|
* @return array|false
|
||||||
*/
|
*/
|
||||||
abstract public function read($pasteid);
|
abstract public function read($pasteid);
|
||||||
|
|
||||||
@@ -110,7 +108,7 @@ abstract class AbstractData
|
|||||||
* @param array $comment
|
* @param array $comment
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
abstract public function createComment($pasteid, $parentid, $commentid, $comment);
|
abstract public function createComment($pasteid, $parentid, $commentid, array $comment);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Read all comments of paste.
|
* Read all comments of paste.
|
||||||
@@ -163,12 +161,12 @@ abstract class AbstractData
|
|||||||
/**
|
/**
|
||||||
* Get next free slot for comment from postdate.
|
* Get next free slot for comment from postdate.
|
||||||
*
|
*
|
||||||
* @access public
|
* @access protected
|
||||||
* @param array $comments
|
* @param array $comments
|
||||||
* @param int|string $postdate
|
* @param int|string $postdate
|
||||||
* @return int|string
|
* @return int|string
|
||||||
*/
|
*/
|
||||||
protected function getOpenSlot(&$comments, $postdate)
|
protected function getOpenSlot(array &$comments, $postdate)
|
||||||
{
|
{
|
||||||
if (array_key_exists($postdate, $comments)) {
|
if (array_key_exists($postdate, $comments)) {
|
||||||
$parts = explode('.', $postdate, 2);
|
$parts = explode('.', $postdate, 2);
|
||||||
@@ -180,4 +178,25 @@ abstract class AbstractData
|
|||||||
}
|
}
|
||||||
return $postdate;
|
return $postdate;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Upgrade pre-version 1 pastes with attachment to version 1 format.
|
||||||
|
*
|
||||||
|
* @access protected
|
||||||
|
* @static
|
||||||
|
* @param array $paste
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
protected static function upgradePreV1Format(array $paste)
|
||||||
|
{
|
||||||
|
if (array_key_exists('attachment', $paste['meta'])) {
|
||||||
|
$paste['attachment'] = $paste['meta']['attachment'];
|
||||||
|
unset($paste['meta']['attachment']);
|
||||||
|
if (array_key_exists('attachmentname', $paste['meta'])) {
|
||||||
|
$paste['attachmentname'] = $paste['meta']['attachmentname'];
|
||||||
|
unset($paste['meta']['attachmentname']);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return $paste;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
* @link https://github.com/PrivateBin/PrivateBin
|
* @link https://github.com/PrivateBin/PrivateBin
|
||||||
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
|
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
|
||||||
* @license https://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
|
* @license https://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
|
||||||
* @version 1.2.2
|
* @version 1.3.4
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace PrivateBin\Data;
|
namespace PrivateBin\Data;
|
||||||
@@ -16,7 +16,7 @@ use Exception;
|
|||||||
use PDO;
|
use PDO;
|
||||||
use PDOException;
|
use PDOException;
|
||||||
use PrivateBin\Controller;
|
use PrivateBin\Controller;
|
||||||
use stdClass;
|
use PrivateBin\Json;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Database
|
* Database
|
||||||
@@ -68,14 +68,13 @@ class Database extends AbstractData
|
|||||||
* @throws Exception
|
* @throws Exception
|
||||||
* @return Database
|
* @return Database
|
||||||
*/
|
*/
|
||||||
public static function getInstance($options = null)
|
public static function getInstance(array $options)
|
||||||
{
|
{
|
||||||
// if needed initialize the singleton
|
// if needed initialize the singleton
|
||||||
if (!(self::$_instance instanceof self)) {
|
if (!(self::$_instance instanceof self)) {
|
||||||
self::$_instance = new self;
|
self::$_instance = new self;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_array($options)) {
|
|
||||||
// set table prefix if given
|
// set table prefix if given
|
||||||
if (array_key_exists('tbl', $options)) {
|
if (array_key_exists('tbl', $options)) {
|
||||||
self::$_prefix = $options['tbl'];
|
self::$_prefix = $options['tbl'];
|
||||||
@@ -142,7 +141,6 @@ class Database extends AbstractData
|
|||||||
'Missing configuration for key dsn, usr, pwd or opt in the section model_options, please check your configuration file', 6
|
'Missing configuration for key dsn, usr, pwd or opt in the section model_options, please check your configuration file', 6
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return self::$_instance;
|
return self::$_instance;
|
||||||
}
|
}
|
||||||
@@ -155,7 +153,7 @@ class Database extends AbstractData
|
|||||||
* @param array $paste
|
* @param array $paste
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function create($pasteid, $paste)
|
public function create($pasteid, array $paste)
|
||||||
{
|
{
|
||||||
if (
|
if (
|
||||||
array_key_exists($pasteid, self::$_cache)
|
array_key_exists($pasteid, self::$_cache)
|
||||||
@@ -167,42 +165,50 @@ class Database extends AbstractData
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$opendiscussion = $burnafterreading = false;
|
|
||||||
$attachment = $attachmentname = '';
|
|
||||||
$meta = $paste['meta'];
|
|
||||||
unset($meta['postdate']);
|
|
||||||
$expire_date = 0;
|
$expire_date = 0;
|
||||||
if (array_key_exists('expire_date', $paste['meta'])) {
|
$opendiscussion = $burnafterreading = false;
|
||||||
$expire_date = (int) $paste['meta']['expire_date'];
|
$attachment = $attachmentname = null;
|
||||||
|
$meta = $paste['meta'];
|
||||||
|
$isVersion1 = array_key_exists('data', $paste);
|
||||||
|
list($createdKey) = self::_getVersionedKeys($isVersion1 ? 1 : 2);
|
||||||
|
$created = (int) $meta[$createdKey];
|
||||||
|
unset($meta[$createdKey], $paste['meta']);
|
||||||
|
if (array_key_exists('expire_date', $meta)) {
|
||||||
|
$expire_date = (int) $meta['expire_date'];
|
||||||
unset($meta['expire_date']);
|
unset($meta['expire_date']);
|
||||||
}
|
}
|
||||||
if (array_key_exists('opendiscussion', $paste['meta'])) {
|
if (array_key_exists('opendiscussion', $meta)) {
|
||||||
$opendiscussion = (bool) $paste['meta']['opendiscussion'];
|
$opendiscussion = $meta['opendiscussion'];
|
||||||
unset($meta['opendiscussion']);
|
unset($meta['opendiscussion']);
|
||||||
}
|
}
|
||||||
if (array_key_exists('burnafterreading', $paste['meta'])) {
|
if (array_key_exists('burnafterreading', $meta)) {
|
||||||
$burnafterreading = (bool) $paste['meta']['burnafterreading'];
|
$burnafterreading = $meta['burnafterreading'];
|
||||||
unset($meta['burnafterreading']);
|
unset($meta['burnafterreading']);
|
||||||
}
|
}
|
||||||
if (array_key_exists('attachment', $paste['meta'])) {
|
if ($isVersion1) {
|
||||||
$attachment = $paste['meta']['attachment'];
|
if (array_key_exists('attachment', $meta)) {
|
||||||
|
$attachment = $meta['attachment'];
|
||||||
unset($meta['attachment']);
|
unset($meta['attachment']);
|
||||||
}
|
}
|
||||||
if (array_key_exists('attachmentname', $paste['meta'])) {
|
if (array_key_exists('attachmentname', $meta)) {
|
||||||
$attachmentname = $paste['meta']['attachmentname'];
|
$attachmentname = $meta['attachmentname'];
|
||||||
unset($meta['attachmentname']);
|
unset($meta['attachmentname']);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
$opendiscussion = $paste['adata'][2];
|
||||||
|
$burnafterreading = $paste['adata'][3];
|
||||||
|
}
|
||||||
return self::_exec(
|
return self::_exec(
|
||||||
'INSERT INTO ' . self::_sanitizeIdentifier('paste') .
|
'INSERT INTO ' . self::_sanitizeIdentifier('paste') .
|
||||||
' VALUES(?,?,?,?,?,?,?,?,?)',
|
' VALUES(?,?,?,?,?,?,?,?,?)',
|
||||||
array(
|
array(
|
||||||
$pasteid,
|
$pasteid,
|
||||||
$paste['data'],
|
$isVersion1 ? $paste['data'] : Json::encode($paste),
|
||||||
$paste['meta']['postdate'],
|
$created,
|
||||||
$expire_date,
|
$expire_date,
|
||||||
(int) $opendiscussion,
|
(int) $opendiscussion,
|
||||||
(int) $burnafterreading,
|
(int) $burnafterreading,
|
||||||
json_encode($meta),
|
Json::encode($meta),
|
||||||
$attachment,
|
$attachment,
|
||||||
$attachmentname,
|
$attachmentname,
|
||||||
)
|
)
|
||||||
@@ -214,64 +220,62 @@ class Database extends AbstractData
|
|||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
* @param string $pasteid
|
* @param string $pasteid
|
||||||
* @return stdClass|false
|
* @return array|false
|
||||||
*/
|
*/
|
||||||
public function read($pasteid)
|
public function read($pasteid)
|
||||||
{
|
{
|
||||||
if (
|
if (array_key_exists($pasteid, self::$_cache)) {
|
||||||
!array_key_exists($pasteid, self::$_cache)
|
return self::$_cache[$pasteid];
|
||||||
) {
|
}
|
||||||
|
|
||||||
self::$_cache[$pasteid] = false;
|
self::$_cache[$pasteid] = false;
|
||||||
$paste = self::_select(
|
$paste = self::_select(
|
||||||
'SELECT * FROM ' . self::_sanitizeIdentifier('paste') .
|
'SELECT * FROM ' . self::_sanitizeIdentifier('paste') .
|
||||||
' WHERE dataid = ?', array($pasteid), true
|
' WHERE dataid = ?', array($pasteid), true
|
||||||
);
|
);
|
||||||
|
|
||||||
if (false !== $paste) {
|
if ($paste === false) {
|
||||||
// create object
|
return false;
|
||||||
self::$_cache[$pasteid] = new stdClass;
|
}
|
||||||
self::$_cache[$pasteid]->data = $paste['data'];
|
// create array
|
||||||
|
$data = Json::decode($paste['data']);
|
||||||
$meta = json_decode($paste['meta']);
|
$isVersion2 = array_key_exists('v', $data) && $data['v'] >= 2;
|
||||||
if (!is_object($meta)) {
|
if ($isVersion2) {
|
||||||
$meta = new stdClass;
|
self::$_cache[$pasteid] = $data;
|
||||||
|
list($createdKey) = self::_getVersionedKeys(2);
|
||||||
|
} else {
|
||||||
|
self::$_cache[$pasteid] = array('data' => $paste['data']);
|
||||||
|
list($createdKey) = self::_getVersionedKeys(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
// support older attachments
|
try {
|
||||||
if (property_exists($meta, 'attachment')) {
|
$paste['meta'] = Json::decode($paste['meta']);
|
||||||
self::$_cache[$pasteid]->attachment = $meta->attachment;
|
} catch (Exception $e) {
|
||||||
unset($meta->attachment);
|
$paste['meta'] = array();
|
||||||
if (property_exists($meta, 'attachmentname')) {
|
|
||||||
self::$_cache[$pasteid]->attachmentname = $meta->attachmentname;
|
|
||||||
unset($meta->attachmentname);
|
|
||||||
}
|
}
|
||||||
}
|
$paste = self::upgradePreV1Format($paste);
|
||||||
// support current attachments
|
self::$_cache[$pasteid]['meta'] = $paste['meta'];
|
||||||
elseif (array_key_exists('attachment', $paste) && strlen($paste['attachment'])) {
|
self::$_cache[$pasteid]['meta'][$createdKey] = (int) $paste['postdate'];
|
||||||
self::$_cache[$pasteid]->attachment = $paste['attachment'];
|
|
||||||
if (array_key_exists('attachmentname', $paste) && strlen($paste['attachmentname'])) {
|
|
||||||
self::$_cache[$pasteid]->attachmentname = $paste['attachmentname'];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
self::$_cache[$pasteid]->meta = $meta;
|
|
||||||
self::$_cache[$pasteid]->meta->postdate = (int) $paste['postdate'];
|
|
||||||
$expire_date = (int) $paste['expiredate'];
|
$expire_date = (int) $paste['expiredate'];
|
||||||
if (
|
if ($expire_date > 0) {
|
||||||
$expire_date > 0
|
self::$_cache[$pasteid]['meta']['expire_date'] = $expire_date;
|
||||||
) {
|
|
||||||
self::$_cache[$pasteid]->meta->expire_date = $expire_date;
|
|
||||||
}
|
}
|
||||||
if (
|
if ($isVersion2) {
|
||||||
$paste['opendiscussion']
|
return self::$_cache[$pasteid];
|
||||||
) {
|
|
||||||
self::$_cache[$pasteid]->meta->opendiscussion = true;
|
|
||||||
}
|
}
|
||||||
if (
|
|
||||||
$paste['burnafterreading']
|
// support v1 attachments
|
||||||
) {
|
if (array_key_exists('attachment', $paste) && strlen($paste['attachment'])) {
|
||||||
self::$_cache[$pasteid]->meta->burnafterreading = true;
|
self::$_cache[$pasteid]['attachment'] = $paste['attachment'];
|
||||||
|
if (array_key_exists('attachmentname', $paste) && strlen($paste['attachmentname'])) {
|
||||||
|
self::$_cache[$pasteid]['attachmentname'] = $paste['attachmentname'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if ($paste['opendiscussion']) {
|
||||||
|
self::$_cache[$pasteid]['meta']['opendiscussion'] = true;
|
||||||
|
}
|
||||||
|
if ($paste['burnafterreading']) {
|
||||||
|
self::$_cache[$pasteid]['meta']['burnafterreading'] = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return self::$_cache[$pasteid];
|
return self::$_cache[$pasteid];
|
||||||
@@ -327,11 +331,21 @@ class Database extends AbstractData
|
|||||||
* @param array $comment
|
* @param array $comment
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function createComment($pasteid, $parentid, $commentid, $comment)
|
public function createComment($pasteid, $parentid, $commentid, array $comment)
|
||||||
{
|
{
|
||||||
foreach (array('nickname', 'vizhash') as $key) {
|
if (array_key_exists('data', $comment)) {
|
||||||
if (!array_key_exists($key, $comment['meta'])) {
|
$version = 1;
|
||||||
$comment['meta'][$key] = null;
|
$data = $comment['data'];
|
||||||
|
} else {
|
||||||
|
$version = 2;
|
||||||
|
$data = Json::encode($comment);
|
||||||
|
}
|
||||||
|
list($createdKey, $iconKey) = self::_getVersionedKeys($version);
|
||||||
|
$meta = $comment['meta'];
|
||||||
|
unset($comment['meta']);
|
||||||
|
foreach (array('nickname', $iconKey) as $key) {
|
||||||
|
if (!array_key_exists($key, $meta)) {
|
||||||
|
$meta[$key] = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return self::_exec(
|
return self::_exec(
|
||||||
@@ -341,10 +355,10 @@ class Database extends AbstractData
|
|||||||
$commentid,
|
$commentid,
|
||||||
$pasteid,
|
$pasteid,
|
||||||
$parentid,
|
$parentid,
|
||||||
$comment['data'],
|
$data,
|
||||||
$comment['meta']['nickname'],
|
$meta['nickname'],
|
||||||
$comment['meta']['vizhash'],
|
$meta[$iconKey],
|
||||||
$comment['meta']['postdate'],
|
$meta[$createdKey],
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -368,15 +382,21 @@ class Database extends AbstractData
|
|||||||
if (count($rows)) {
|
if (count($rows)) {
|
||||||
foreach ($rows as $row) {
|
foreach ($rows as $row) {
|
||||||
$i = $this->getOpenSlot($comments, (int) $row['postdate']);
|
$i = $this->getOpenSlot($comments, (int) $row['postdate']);
|
||||||
$comments[$i] = new stdClass;
|
$data = Json::decode($row['data']);
|
||||||
$comments[$i]->id = $row['dataid'];
|
if (array_key_exists('v', $data) && $data['v'] >= 2) {
|
||||||
$comments[$i]->parentid = $row['parentid'];
|
$version = 2;
|
||||||
$comments[$i]->data = $row['data'];
|
$comments[$i] = $data;
|
||||||
$comments[$i]->meta = new stdClass;
|
} else {
|
||||||
$comments[$i]->meta->postdate = (int) $row['postdate'];
|
$version = 1;
|
||||||
foreach (array('nickname', 'vizhash') as $key) {
|
$comments[$i] = array('data' => $row['data']);
|
||||||
if (array_key_exists($key, $row) && !empty($row[$key])) {
|
}
|
||||||
$comments[$i]->meta->$key = $row[$key];
|
list($createdKey, $iconKey) = self::_getVersionedKeys($version);
|
||||||
|
$comments[$i]['id'] = $row['dataid'];
|
||||||
|
$comments[$i]['parentid'] = $row['parentid'];
|
||||||
|
$comments[$i]['meta'] = array($createdKey => (int) $row['postdate']);
|
||||||
|
foreach (array('nickname' => 'nickname', 'vizhash' => $iconKey) as $rowKey => $commentKey) {
|
||||||
|
if (array_key_exists($rowKey, $row) && !empty($row[$rowKey])) {
|
||||||
|
$comments[$i]['meta'][$commentKey] = $row[$rowKey];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -415,7 +435,8 @@ class Database extends AbstractData
|
|||||||
$pastes = array();
|
$pastes = array();
|
||||||
$rows = self::_select(
|
$rows = self::_select(
|
||||||
'SELECT dataid FROM ' . self::_sanitizeIdentifier('paste') .
|
'SELECT dataid FROM ' . self::_sanitizeIdentifier('paste') .
|
||||||
' WHERE expiredate < ? AND expiredate != ? LIMIT ?', array(time(), 0, $batchsize)
|
' WHERE expiredate < ? AND expiredate != ? LIMIT ?',
|
||||||
|
array(time(), 0, $batchsize)
|
||||||
);
|
);
|
||||||
if (count($rows)) {
|
if (count($rows)) {
|
||||||
foreach ($rows as $row) {
|
foreach ($rows as $row) {
|
||||||
@@ -452,7 +473,7 @@ class Database extends AbstractData
|
|||||||
* @param array $params
|
* @param array $params
|
||||||
* @param bool $firstOnly if only the first row should be returned
|
* @param bool $firstOnly if only the first row should be returned
|
||||||
* @throws PDOException
|
* @throws PDOException
|
||||||
* @return array
|
* @return array|false
|
||||||
*/
|
*/
|
||||||
private static function _select($sql, array $params, $firstOnly = false)
|
private static function _select($sql, array $params, $firstOnly = false)
|
||||||
{
|
{
|
||||||
@@ -465,6 +486,22 @@ class Database extends AbstractData
|
|||||||
return $result;
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* get version dependent key names
|
||||||
|
*
|
||||||
|
* @access private
|
||||||
|
* @static
|
||||||
|
* @param int $version
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
private static function _getVersionedKeys($version)
|
||||||
|
{
|
||||||
|
if ($version === 1) {
|
||||||
|
return array('postdate', 'vizhash');
|
||||||
|
}
|
||||||
|
return array('created', 'icon');
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* get table list query, depending on the database type
|
* get table list query, depending on the database type
|
||||||
*
|
*
|
||||||
@@ -557,6 +594,34 @@ class Database extends AbstractData
|
|||||||
return array($main_key, $after_key);
|
return array($main_key, $after_key);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* get the data type, depending on the database driver
|
||||||
|
*
|
||||||
|
* PostgreSQL uses a different API for BLOBs then SQL, hence we use TEXT
|
||||||
|
*
|
||||||
|
* @access private
|
||||||
|
* @static
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
private static function _getDataType()
|
||||||
|
{
|
||||||
|
return self::$_type === 'pgsql' ? 'TEXT' : 'BLOB';
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* get the attachment type, depending on the database driver
|
||||||
|
*
|
||||||
|
* PostgreSQL uses a different API for BLOBs then SQL, hence we use TEXT
|
||||||
|
*
|
||||||
|
* @access private
|
||||||
|
* @static
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
private static function _getAttachmentType()
|
||||||
|
{
|
||||||
|
return self::$_type === 'pgsql' ? 'TEXT' : 'MEDIUMBLOB';
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* create the paste table
|
* create the paste table
|
||||||
*
|
*
|
||||||
@@ -566,17 +631,18 @@ class Database extends AbstractData
|
|||||||
private static function _createPasteTable()
|
private static function _createPasteTable()
|
||||||
{
|
{
|
||||||
list($main_key, $after_key) = self::_getPrimaryKeyClauses();
|
list($main_key, $after_key) = self::_getPrimaryKeyClauses();
|
||||||
$dataType = self::$_type === 'pgsql' ? 'TEXT' : 'BLOB';
|
$dataType = self::_getDataType();
|
||||||
|
$attachmentType = self::_getAttachmentType();
|
||||||
self::$_db->exec(
|
self::$_db->exec(
|
||||||
'CREATE TABLE ' . self::_sanitizeIdentifier('paste') . ' ( ' .
|
'CREATE TABLE ' . self::_sanitizeIdentifier('paste') . ' ( ' .
|
||||||
"dataid CHAR(16) NOT NULL$main_key, " .
|
"dataid CHAR(16) NOT NULL$main_key, " .
|
||||||
"data $dataType, " .
|
"data $attachmentType, " .
|
||||||
'postdate INT, ' .
|
'postdate INT, ' .
|
||||||
'expiredate INT, ' .
|
'expiredate INT, ' .
|
||||||
'opendiscussion INT, ' .
|
'opendiscussion INT, ' .
|
||||||
'burnafterreading INT, ' .
|
'burnafterreading INT, ' .
|
||||||
'meta TEXT, ' .
|
'meta TEXT, ' .
|
||||||
'attachment ' . (self::$_type === 'pgsql' ? 'TEXT' : 'MEDIUMBLOB') . ', ' .
|
"attachment $attachmentType, " .
|
||||||
"attachmentname $dataType$after_key );"
|
"attachmentname $dataType$after_key );"
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -590,7 +656,7 @@ class Database extends AbstractData
|
|||||||
private static function _createCommentTable()
|
private static function _createCommentTable()
|
||||||
{
|
{
|
||||||
list($main_key, $after_key) = self::_getPrimaryKeyClauses();
|
list($main_key, $after_key) = self::_getPrimaryKeyClauses();
|
||||||
$dataType = self::$_type === 'pgsql' ? 'text' : 'BLOB';
|
$dataType = self::_getDataType();
|
||||||
self::$_db->exec(
|
self::$_db->exec(
|
||||||
'CREATE TABLE ' . self::_sanitizeIdentifier('comment') . ' ( ' .
|
'CREATE TABLE ' . self::_sanitizeIdentifier('comment') . ' ( ' .
|
||||||
"dataid CHAR(16) NOT NULL$main_key, " .
|
"dataid CHAR(16) NOT NULL$main_key, " .
|
||||||
@@ -649,7 +715,8 @@ class Database extends AbstractData
|
|||||||
*/
|
*/
|
||||||
private static function _upgradeDatabase($oldversion)
|
private static function _upgradeDatabase($oldversion)
|
||||||
{
|
{
|
||||||
$dataType = self::$_type === 'pgsql' ? 'TEXT' : 'BLOB';
|
$dataType = self::_getDataType();
|
||||||
|
$attachmentType = self::_getAttachmentType();
|
||||||
switch ($oldversion) {
|
switch ($oldversion) {
|
||||||
case '0.21':
|
case '0.21':
|
||||||
// create the meta column if necessary (pre 0.21 change)
|
// create the meta column if necessary (pre 0.21 change)
|
||||||
@@ -661,8 +728,7 @@ class Database extends AbstractData
|
|||||||
// SQLite only allows one ALTER statement at a time...
|
// SQLite only allows one ALTER statement at a time...
|
||||||
self::$_db->exec(
|
self::$_db->exec(
|
||||||
'ALTER TABLE ' . self::_sanitizeIdentifier('paste') .
|
'ALTER TABLE ' . self::_sanitizeIdentifier('paste') .
|
||||||
' ADD COLUMN attachment ' .
|
" ADD COLUMN attachment $attachmentType;"
|
||||||
(self::$_type === 'pgsql' ? 'TEXT' : 'MEDIUMBLOB') . ';'
|
|
||||||
);
|
);
|
||||||
self::$_db->exec(
|
self::$_db->exec(
|
||||||
'ALTER TABLE ' . self::_sanitizeIdentifier('paste') . " ADD COLUMN attachmentname $dataType;"
|
'ALTER TABLE ' . self::_sanitizeIdentifier('paste') . " ADD COLUMN attachmentname $dataType;"
|
||||||
@@ -672,7 +738,7 @@ class Database extends AbstractData
|
|||||||
if (self::$_type !== 'sqlite') {
|
if (self::$_type !== 'sqlite') {
|
||||||
self::$_db->exec(
|
self::$_db->exec(
|
||||||
'ALTER TABLE ' . self::_sanitizeIdentifier('paste') .
|
'ALTER TABLE ' . self::_sanitizeIdentifier('paste') .
|
||||||
' ADD PRIMARY KEY (dataid), MODIFY COLUMN data $dataType;'
|
" ADD PRIMARY KEY (dataid), MODIFY COLUMN data $dataType;"
|
||||||
);
|
);
|
||||||
self::$_db->exec(
|
self::$_db->exec(
|
||||||
'ALTER TABLE ' . self::_sanitizeIdentifier('comment') .
|
'ALTER TABLE ' . self::_sanitizeIdentifier('comment') .
|
||||||
@@ -694,6 +760,17 @@ class Database extends AbstractData
|
|||||||
self::_sanitizeIdentifier('comment') . '(pasteid);'
|
self::_sanitizeIdentifier('comment') . '(pasteid);'
|
||||||
);
|
);
|
||||||
// no break, continue with updates for 0.22 and later
|
// no break, continue with updates for 0.22 and later
|
||||||
|
case '1.3':
|
||||||
|
// SQLite doesn't support MODIFY, but it allows TEXT of similar
|
||||||
|
// size as BLOB and PostgreSQL uses TEXT, so there is no need
|
||||||
|
// to change it there
|
||||||
|
if (self::$_type !== 'sqlite' && self::$_type !== 'pgsql') {
|
||||||
|
self::$_db->exec(
|
||||||
|
'ALTER TABLE ' . self::_sanitizeIdentifier('paste') .
|
||||||
|
" MODIFY COLUMN data $attachmentType;"
|
||||||
|
);
|
||||||
|
}
|
||||||
|
// no break, continue with updates for all newer versions
|
||||||
default:
|
default:
|
||||||
self::_exec(
|
self::_exec(
|
||||||
'UPDATE ' . self::_sanitizeIdentifier('config') .
|
'UPDATE ' . self::_sanitizeIdentifier('config') .
|
||||||
|
|||||||
@@ -7,12 +7,11 @@
|
|||||||
* @link https://github.com/PrivateBin/PrivateBin
|
* @link https://github.com/PrivateBin/PrivateBin
|
||||||
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
|
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
|
||||||
* @license https://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
|
* @license https://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
|
||||||
* @version 1.2.2
|
* @version 1.3.4
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace PrivateBin\Data;
|
namespace PrivateBin\Data;
|
||||||
|
|
||||||
use PrivateBin\Model\Paste;
|
|
||||||
use PrivateBin\Persistence\DataStore;
|
use PrivateBin\Persistence\DataStore;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -30,7 +29,7 @@ class Filesystem extends AbstractData
|
|||||||
* @param array $options
|
* @param array $options
|
||||||
* @return Filesystem
|
* @return Filesystem
|
||||||
*/
|
*/
|
||||||
public static function getInstance($options = null)
|
public static function getInstance(array $options)
|
||||||
{
|
{
|
||||||
// if needed initialize the singleton
|
// if needed initialize the singleton
|
||||||
if (!(self::$_instance instanceof self)) {
|
if (!(self::$_instance instanceof self)) {
|
||||||
@@ -54,7 +53,7 @@ class Filesystem extends AbstractData
|
|||||||
* @param array $paste
|
* @param array $paste
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function create($pasteid, $paste)
|
public function create($pasteid, array $paste)
|
||||||
{
|
{
|
||||||
$storagedir = self::_dataid2path($pasteid);
|
$storagedir = self::_dataid2path($pasteid);
|
||||||
$file = $storagedir . $pasteid . '.php';
|
$file = $storagedir . $pasteid . '.php';
|
||||||
@@ -72,23 +71,16 @@ class Filesystem extends AbstractData
|
|||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
* @param string $pasteid
|
* @param string $pasteid
|
||||||
* @return stdClass|false
|
* @return array|false
|
||||||
*/
|
*/
|
||||||
public function read($pasteid)
|
public function read($pasteid)
|
||||||
{
|
{
|
||||||
if (!$this->exists($pasteid)) {
|
if (!$this->exists($pasteid)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
$paste = DataStore::get(self::_dataid2path($pasteid) . $pasteid . '.php');
|
return self::upgradePreV1Format(
|
||||||
if (property_exists($paste->meta, 'attachment')) {
|
DataStore::get(self::_dataid2path($pasteid) . $pasteid . '.php')
|
||||||
$paste->attachment = $paste->meta->attachment;
|
);
|
||||||
unset($paste->meta->attachment);
|
|
||||||
if (property_exists($paste->meta, 'attachmentname')) {
|
|
||||||
$paste->attachmentname = $paste->meta->attachmentname;
|
|
||||||
unset($paste->meta->attachmentname);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return $paste;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -163,7 +155,7 @@ class Filesystem extends AbstractData
|
|||||||
* @param array $comment
|
* @param array $comment
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public function createComment($pasteid, $parentid, $commentid, $comment)
|
public function createComment($pasteid, $parentid, $commentid, array $comment)
|
||||||
{
|
{
|
||||||
$storagedir = self::_dataid2discussionpath($pasteid);
|
$storagedir = self::_dataid2discussionpath($pasteid);
|
||||||
$file = $storagedir . $pasteid . '.' . $commentid . '.' . $parentid . '.php';
|
$file = $storagedir . $pasteid . '.' . $commentid . '.' . $parentid . '.php';
|
||||||
@@ -198,11 +190,11 @@ class Filesystem extends AbstractData
|
|||||||
$comment = DataStore::get($discdir . $filename);
|
$comment = DataStore::get($discdir . $filename);
|
||||||
$items = explode('.', $filename);
|
$items = explode('.', $filename);
|
||||||
// Add some meta information not contained in file.
|
// Add some meta information not contained in file.
|
||||||
$comment->id = $items[1];
|
$comment['id'] = $items[1];
|
||||||
$comment->parentid = $items[2];
|
$comment['parentid'] = $items[2];
|
||||||
|
|
||||||
// Store in array
|
// Store in array
|
||||||
$key = $this->getOpenSlot($comments, (int) $comment->meta->postdate);
|
$key = $this->getOpenSlot($comments, (int) $comment['meta']['created']);
|
||||||
$comments[$key] = $comment;
|
$comments[$key] = $comment;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -291,8 +283,8 @@ class Filesystem extends AbstractData
|
|||||||
if ($this->exists($pasteid)) {
|
if ($this->exists($pasteid)) {
|
||||||
$data = $this->read($pasteid);
|
$data = $this->read($pasteid);
|
||||||
if (
|
if (
|
||||||
property_exists($data->meta, 'expire_date') &&
|
array_key_exists('expire_date', $data['meta']) &&
|
||||||
$data->meta->expire_date < time()
|
$data['meta']['expire_date'] < time()
|
||||||
) {
|
) {
|
||||||
$pastes[] = $pasteid;
|
$pastes[] = $pasteid;
|
||||||
if (count($pastes) >= $batchsize) {
|
if (count($pastes) >= $batchsize) {
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
* @link https://github.com/PrivateBin/PrivateBin
|
* @link https://github.com/PrivateBin/PrivateBin
|
||||||
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
|
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
|
||||||
* @license https://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
|
* @license https://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
|
||||||
* @version 1.2.2
|
* @version 1.3.4
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace PrivateBin;
|
namespace PrivateBin;
|
||||||
@@ -68,23 +68,4 @@ class Filter
|
|||||||
}
|
}
|
||||||
return number_format($size, ($i ? 2 : 0), '.', ' ') . ' ' . I18n::_($iec[$i]);
|
return number_format($size, ($i ? 2 : 0), '.', ' ') . ' ' . I18n::_($iec[$i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* fixed time string comparison operation to prevent timing attacks
|
|
||||||
* https://crackstation.net/hashing-security.htm?=rd#slowequals
|
|
||||||
*
|
|
||||||
* @access public
|
|
||||||
* @static
|
|
||||||
* @param string $a
|
|
||||||
* @param string $b
|
|
||||||
* @return bool
|
|
||||||
*/
|
|
||||||
public static function slowEquals($a, $b)
|
|
||||||
{
|
|
||||||
$diff = strlen($a) ^ strlen($b);
|
|
||||||
for ($i = 0; $i < strlen($a) && $i < strlen($b); ++$i) {
|
|
||||||
$diff |= ord($a[$i]) ^ ord($b[$i]);
|
|
||||||
}
|
|
||||||
return $diff === 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
127
lib/FormatV2.php
Normal file
127
lib/FormatV2.php
Normal file
@@ -0,0 +1,127 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* PrivateBin
|
||||||
|
*
|
||||||
|
* a zero-knowledge paste bin
|
||||||
|
*
|
||||||
|
* @link https://github.com/PrivateBin/PrivateBin
|
||||||
|
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
|
||||||
|
* @license https://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
|
||||||
|
* @version 1.3.4
|
||||||
|
*/
|
||||||
|
|
||||||
|
namespace PrivateBin;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* FormatV2
|
||||||
|
*
|
||||||
|
* Provides validation function for version 2 format of pastes & comments.
|
||||||
|
*/
|
||||||
|
class FormatV2
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* version 2 format validator
|
||||||
|
*
|
||||||
|
* Checks if the given array is a proper version 2 formatted, encrypted message.
|
||||||
|
*
|
||||||
|
* @access public
|
||||||
|
* @static
|
||||||
|
* @param array $message
|
||||||
|
* @param bool $isComment
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
|
public static function isValid($message, $isComment = false)
|
||||||
|
{
|
||||||
|
$required_keys = array('adata', 'v', 'ct');
|
||||||
|
if ($isComment) {
|
||||||
|
$required_keys[] = 'pasteid';
|
||||||
|
$required_keys[] = 'parentid';
|
||||||
|
} else {
|
||||||
|
$required_keys[] = 'meta';
|
||||||
|
}
|
||||||
|
|
||||||
|
// Make sure no additionnal keys were added.
|
||||||
|
if (count(array_keys($message)) != count($required_keys)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Make sure required fields are present.
|
||||||
|
foreach ($required_keys as $k) {
|
||||||
|
if (!array_key_exists($k, $message)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$cipherParams = $isComment ? $message['adata'] : $message['adata'][0];
|
||||||
|
|
||||||
|
// Make sure some fields are base64 data:
|
||||||
|
// - initialization vector
|
||||||
|
if (!base64_decode($cipherParams[0], true)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
// - salt
|
||||||
|
if (!base64_decode($cipherParams[1], true)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
// - cipher text
|
||||||
|
if (!($ct = base64_decode($message['ct'], true))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Make sure some fields have a reasonable size:
|
||||||
|
// - initialization vector
|
||||||
|
if (strlen($cipherParams[0]) > 24) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
// - salt
|
||||||
|
if (strlen($cipherParams[1]) > 14) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Make sure some fields contain no unsupported values:
|
||||||
|
// - version
|
||||||
|
if (!(is_int($message['v']) || is_float($message['v'])) || (float) $message['v'] < 2) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
// - iterations, refuse less then 10000 iterations (minimum NIST recommendation)
|
||||||
|
if (!is_int($cipherParams[2]) || $cipherParams[2] <= 10000) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
// - key size
|
||||||
|
if (!in_array($cipherParams[3], array(128, 192, 256), true)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
// - tag size
|
||||||
|
if (!in_array($cipherParams[4], array(64, 96, 128), true)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
// - algorithm, must be AES
|
||||||
|
if ($cipherParams[5] !== 'aes') {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
// - mode
|
||||||
|
if (!in_array($cipherParams[6], array('ctr', 'cbc', 'gcm'), true)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
// - compression
|
||||||
|
if (!in_array($cipherParams[7], array('zlib', 'none'), true)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Reject data if entropy is too low
|
||||||
|
if (strlen($ct) > strlen(gzdeflate($ct))) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
// require only the key 'expire' in the metadata of pastes
|
||||||
|
if (!$isComment && (
|
||||||
|
count($message['meta']) === 0 ||
|
||||||
|
!array_key_exists('expire', $message['meta']) ||
|
||||||
|
count($message['meta']) > 1
|
||||||
|
)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
37
lib/I18n.php
37
lib/I18n.php
@@ -7,7 +7,7 @@
|
|||||||
* @link https://github.com/PrivateBin/PrivateBin
|
* @link https://github.com/PrivateBin/PrivateBin
|
||||||
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
|
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
|
||||||
* @license https://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
|
* @license https://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
|
||||||
* @version 1.2.2
|
* @version 1.3.4
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace PrivateBin;
|
namespace PrivateBin;
|
||||||
@@ -125,9 +125,31 @@ class I18n
|
|||||||
} else {
|
} else {
|
||||||
$args[0] = self::$_translations[$messageId];
|
$args[0] = self::$_translations[$messageId];
|
||||||
}
|
}
|
||||||
|
// encode any non-integer arguments and the message ID, if it doesn't contain a link
|
||||||
|
$argsCount = count($args);
|
||||||
|
if ($argsCount > 1) {
|
||||||
|
for ($i = 0; $i < $argsCount; ++$i) {
|
||||||
|
if (($i > 0 && !is_int($args[$i])) || strpos($args[0], '<a') === false) {
|
||||||
|
$args[$i] = self::encode($args[$i]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
return call_user_func_array('sprintf', $args);
|
return call_user_func_array('sprintf', $args);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* encode HTML entities for output into an HTML5 document
|
||||||
|
*
|
||||||
|
* @access public
|
||||||
|
* @static
|
||||||
|
* @param string $string
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public static function encode($string)
|
||||||
|
{
|
||||||
|
return htmlspecialchars($string, ENT_QUOTES | ENT_HTML5 | ENT_DISALLOWED, 'UTF-8', false);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* loads translations
|
* loads translations
|
||||||
*
|
*
|
||||||
@@ -156,9 +178,8 @@ class I18n
|
|||||||
|
|
||||||
// load translations
|
// load translations
|
||||||
self::$_language = $match;
|
self::$_language = $match;
|
||||||
self::$_translations = ($match == 'en') ? array() : json_decode(
|
self::$_translations = ($match == 'en') ? array() : Json::decode(
|
||||||
file_get_contents(self::_getPath($match . '.json')),
|
file_get_contents(self::_getPath($match . '.json'))
|
||||||
true
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -178,7 +199,6 @@ class I18n
|
|||||||
self::$_availableLanguages[] = $match[1];
|
self::$_availableLanguages[] = $match[1];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
self::$_availableLanguages[] = 'en';
|
|
||||||
}
|
}
|
||||||
return self::$_availableLanguages;
|
return self::$_availableLanguages;
|
||||||
}
|
}
|
||||||
@@ -244,7 +264,7 @@ class I18n
|
|||||||
{
|
{
|
||||||
$file = self::_getPath('languages.json');
|
$file = self::_getPath('languages.json');
|
||||||
if (count(self::$_languageLabels) == 0 && is_readable($file)) {
|
if (count(self::$_languageLabels) == 0 && is_readable($file)) {
|
||||||
self::$_languageLabels = json_decode(file_get_contents($file), true);
|
self::$_languageLabels = Json::decode(file_get_contents($file));
|
||||||
}
|
}
|
||||||
if (count($languages) == 0) {
|
if (count($languages) == 0) {
|
||||||
return self::$_languageLabels;
|
return self::$_languageLabels;
|
||||||
@@ -295,6 +315,8 @@ class I18n
|
|||||||
protected static function _getPluralForm($n)
|
protected static function _getPluralForm($n)
|
||||||
{
|
{
|
||||||
switch (self::$_language) {
|
switch (self::$_language) {
|
||||||
|
case 'cs':
|
||||||
|
return $n == 1 ? 0 : ($n >= 2 && $n <= 4 ? 1 : 2);
|
||||||
case 'fr':
|
case 'fr':
|
||||||
case 'oc':
|
case 'oc':
|
||||||
case 'zh':
|
case 'zh':
|
||||||
@@ -302,10 +324,11 @@ class I18n
|
|||||||
case 'pl':
|
case 'pl':
|
||||||
return $n == 1 ? 0 : ($n % 10 >= 2 && $n % 10 <= 4 && ($n % 100 < 10 || $n % 100 >= 20) ? 1 : 2);
|
return $n == 1 ? 0 : ($n % 10 >= 2 && $n % 10 <= 4 && ($n % 100 < 10 || $n % 100 >= 20) ? 1 : 2);
|
||||||
case 'ru':
|
case 'ru':
|
||||||
|
case 'uk':
|
||||||
return $n % 10 == 1 && $n % 100 != 11 ? 0 : ($n % 10 >= 2 && $n % 10 <= 4 && ($n % 100 < 10 || $n % 100 >= 20) ? 1 : 2);
|
return $n % 10 == 1 && $n % 100 != 11 ? 0 : ($n % 10 >= 2 && $n % 10 <= 4 && ($n % 100 < 10 || $n % 100 >= 20) ? 1 : 2);
|
||||||
case 'sl':
|
case 'sl':
|
||||||
return $n % 100 == 1 ? 1 : ($n % 100 == 2 ? 2 : ($n % 100 == 3 || $n % 100 == 4 ? 3 : 0));
|
return $n % 100 == 1 ? 1 : ($n % 100 == 2 ? 2 : ($n % 100 == 3 || $n % 100 == 4 ? 3 : 0));
|
||||||
// de, en, es, hu, it, nl, no, pt
|
// bg, de, en, es, hu, it, nl, no, pt
|
||||||
default:
|
default:
|
||||||
return $n != 1 ? 1 : 0;
|
return $n != 1 ? 1 : 0;
|
||||||
}
|
}
|
||||||
|
|||||||
34
lib/Json.php
34
lib/Json.php
@@ -7,7 +7,7 @@
|
|||||||
* @link https://github.com/PrivateBin/PrivateBin
|
* @link https://github.com/PrivateBin/PrivateBin
|
||||||
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
|
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
|
||||||
* @license https://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
|
* @license https://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
|
||||||
* @version 1.2.2
|
* @version 1.3.4
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace PrivateBin;
|
namespace PrivateBin;
|
||||||
@@ -33,9 +33,39 @@ class Json
|
|||||||
public static function encode($input)
|
public static function encode($input)
|
||||||
{
|
{
|
||||||
$jsonString = json_encode($input);
|
$jsonString = json_encode($input);
|
||||||
|
self::_detectError();
|
||||||
|
return $jsonString;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns an array with the contents as described in the given JSON input
|
||||||
|
*
|
||||||
|
* @access public
|
||||||
|
* @static
|
||||||
|
* @param string $input
|
||||||
|
* @throws Exception
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public static function decode($input)
|
||||||
|
{
|
||||||
|
$array = json_decode($input, true);
|
||||||
|
self::_detectError();
|
||||||
|
return $array;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Detects JSON errors and raises an exception if one is found
|
||||||
|
*
|
||||||
|
* @access private
|
||||||
|
* @static
|
||||||
|
* @throws Exception
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
private static function _detectError()
|
||||||
|
{
|
||||||
$errorCode = json_last_error();
|
$errorCode = json_last_error();
|
||||||
if ($errorCode === JSON_ERROR_NONE) {
|
if ($errorCode === JSON_ERROR_NONE) {
|
||||||
return $jsonString;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$message = 'A JSON error occurred';
|
$message = 'A JSON error occurred';
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
* @link https://github.com/PrivateBin/PrivateBin
|
* @link https://github.com/PrivateBin/PrivateBin
|
||||||
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
|
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
|
||||||
* @license https://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
|
* @license https://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
|
||||||
* @version 1.2.2
|
* @version 1.3.4
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace PrivateBin;
|
namespace PrivateBin;
|
||||||
@@ -32,7 +32,7 @@ class Model
|
|||||||
/**
|
/**
|
||||||
* Data storage.
|
* Data storage.
|
||||||
*
|
*
|
||||||
* @var AbstractData
|
* @var Data\AbstractData
|
||||||
*/
|
*/
|
||||||
private $_store = null;
|
private $_store = null;
|
||||||
|
|
||||||
@@ -75,7 +75,7 @@ class Model
|
|||||||
/**
|
/**
|
||||||
* Gets, and creates if neccessary, a store object
|
* Gets, and creates if neccessary, a store object
|
||||||
*
|
*
|
||||||
* @return AbstractData
|
* @return Data\AbstractData
|
||||||
*/
|
*/
|
||||||
private function _getStore()
|
private function _getStore()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
* @link https://github.com/PrivateBin/PrivateBin
|
* @link https://github.com/PrivateBin/PrivateBin
|
||||||
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
|
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
|
||||||
* @license https://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
|
* @license https://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
|
||||||
* @version 1.2.2
|
* @version 1.3.4
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace PrivateBin\Model;
|
namespace PrivateBin\Model;
|
||||||
@@ -15,8 +15,6 @@ namespace PrivateBin\Model;
|
|||||||
use Exception;
|
use Exception;
|
||||||
use PrivateBin\Configuration;
|
use PrivateBin\Configuration;
|
||||||
use PrivateBin\Data\AbstractData;
|
use PrivateBin\Data\AbstractData;
|
||||||
use PrivateBin\Sjcl;
|
|
||||||
use stdClass;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* AbstractModel
|
* AbstractModel
|
||||||
@@ -37,9 +35,9 @@ abstract class AbstractModel
|
|||||||
* Instance data.
|
* Instance data.
|
||||||
*
|
*
|
||||||
* @access protected
|
* @access protected
|
||||||
* @var stdClass
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected $_data;
|
protected $_data = array('meta' => array());
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Configuration.
|
* Configuration.
|
||||||
@@ -68,8 +66,6 @@ abstract class AbstractModel
|
|||||||
{
|
{
|
||||||
$this->_conf = $configuration;
|
$this->_conf = $configuration;
|
||||||
$this->_store = $storage;
|
$this->_store = $storage;
|
||||||
$this->_data = new stdClass;
|
|
||||||
$this->_data->meta = new stdClass;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -102,28 +98,29 @@ abstract class AbstractModel
|
|||||||
* Set data and recalculate ID.
|
* Set data and recalculate ID.
|
||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
* @param string $data
|
* @param array $data
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
public function setData($data)
|
public function setData(array $data)
|
||||||
{
|
{
|
||||||
if (!Sjcl::isValid($data)) {
|
$data = $this->_sanitize($data);
|
||||||
throw new Exception('Invalid data.', 61);
|
$this->_validate($data);
|
||||||
}
|
$this->_data = $data;
|
||||||
$this->_data->data = $data;
|
|
||||||
|
|
||||||
// We just want a small hash to avoid collisions:
|
// calculate a 64 bit checksum to avoid collisions
|
||||||
// Half-MD5 (64 bits) will do the trick
|
$this->setId(hash(version_compare(PHP_VERSION, '5.6', '<') ? 'fnv164' : 'fnv1a64', $data['ct']));
|
||||||
$this->setId(substr(hash('md5', $data), 0, 16));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get instance data.
|
* Get instance data.
|
||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
* @return stdClass
|
* @return array
|
||||||
*/
|
*/
|
||||||
abstract public function get();
|
public function get()
|
||||||
|
{
|
||||||
|
return $this->_data;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Store the instance's data.
|
* Store the instance's data.
|
||||||
@@ -161,4 +158,24 @@ abstract class AbstractModel
|
|||||||
{
|
{
|
||||||
return (bool) preg_match('#\A[a-f\d]{16}\z#', (string) $id);
|
return (bool) preg_match('#\A[a-f\d]{16}\z#', (string) $id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sanitizes data to conform with current configuration.
|
||||||
|
*
|
||||||
|
* @access protected
|
||||||
|
* @param array $data
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
abstract protected function _sanitize(array $data);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Validate data.
|
||||||
|
*
|
||||||
|
* @access protected
|
||||||
|
* @param array $data
|
||||||
|
* @throws Exception
|
||||||
|
*/
|
||||||
|
protected function _validate(array $data)
|
||||||
|
{
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
* @link https://github.com/PrivateBin/PrivateBin
|
* @link https://github.com/PrivateBin/PrivateBin
|
||||||
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
|
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
|
||||||
* @license https://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
|
* @license https://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
|
||||||
* @version 1.2.2
|
* @version 1.3.4
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace PrivateBin\Model;
|
namespace PrivateBin\Model;
|
||||||
@@ -15,7 +15,6 @@ namespace PrivateBin\Model;
|
|||||||
use Exception;
|
use Exception;
|
||||||
use Identicon\Identicon;
|
use Identicon\Identicon;
|
||||||
use PrivateBin\Persistence\TrafficLimiter;
|
use PrivateBin\Persistence\TrafficLimiter;
|
||||||
use PrivateBin\Sjcl;
|
|
||||||
use PrivateBin\Vizhash16x16;
|
use PrivateBin\Vizhash16x16;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -33,29 +32,6 @@ class Comment extends AbstractModel
|
|||||||
*/
|
*/
|
||||||
private $_paste;
|
private $_paste;
|
||||||
|
|
||||||
/**
|
|
||||||
* Get comment data.
|
|
||||||
*
|
|
||||||
* @access public
|
|
||||||
* @throws Exception
|
|
||||||
* @return stdClass
|
|
||||||
*/
|
|
||||||
public function get()
|
|
||||||
{
|
|
||||||
// @todo add support to read specific comment
|
|
||||||
$comments = $this->_store->readComments($this->getPaste()->getId());
|
|
||||||
foreach ($comments as $comment) {
|
|
||||||
if (
|
|
||||||
$comment->parentid == $this->getParentId() &&
|
|
||||||
$comment->id == $this->getId()
|
|
||||||
) {
|
|
||||||
$this->_data = $comment;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return $this->_data;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Store the comment's data.
|
* Store the comment's data.
|
||||||
*
|
*
|
||||||
@@ -80,7 +56,7 @@ class Comment extends AbstractModel
|
|||||||
throw new Exception('You are unlucky. Try again.', 69);
|
throw new Exception('You are unlucky. Try again.', 69);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->_data->meta->postdate = time();
|
$this->_data['meta']['created'] = time();
|
||||||
|
|
||||||
// store comment
|
// store comment
|
||||||
if (
|
if (
|
||||||
@@ -88,7 +64,7 @@ class Comment extends AbstractModel
|
|||||||
$pasteid,
|
$pasteid,
|
||||||
$this->getParentId(),
|
$this->getParentId(),
|
||||||
$this->getId(),
|
$this->getId(),
|
||||||
json_decode(json_encode($this->_data), true)
|
$this->_data
|
||||||
) === false
|
) === false
|
||||||
) {
|
) {
|
||||||
throw new Exception('Error saving comment. Sorry.', 70);
|
throw new Exception('Error saving comment. Sorry.', 70);
|
||||||
@@ -131,7 +107,7 @@ class Comment extends AbstractModel
|
|||||||
public function setPaste(Paste $paste)
|
public function setPaste(Paste $paste)
|
||||||
{
|
{
|
||||||
$this->_paste = $paste;
|
$this->_paste = $paste;
|
||||||
$this->_data->meta->pasteid = $paste->getId();
|
$this->_data['pasteid'] = $paste->getId();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -157,7 +133,7 @@ class Comment extends AbstractModel
|
|||||||
if (!self::isValidId($id)) {
|
if (!self::isValidId($id)) {
|
||||||
throw new Exception('Invalid paste ID.', 65);
|
throw new Exception('Invalid paste ID.', 65);
|
||||||
}
|
}
|
||||||
$this->_data->meta->parentid = $id;
|
$this->_data['parentid'] = $id;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -168,29 +144,22 @@ class Comment extends AbstractModel
|
|||||||
*/
|
*/
|
||||||
public function getParentId()
|
public function getParentId()
|
||||||
{
|
{
|
||||||
if (!property_exists($this->_data->meta, 'parentid')) {
|
if (!array_key_exists('parentid', $this->_data)) {
|
||||||
$this->_data->meta->parentid = '';
|
$this->_data['parentid'] = $this->getPaste()->getId();
|
||||||
}
|
}
|
||||||
return $this->_data->meta->parentid;
|
return $this->_data['parentid'];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set nickname.
|
* Sanitizes data to conform with current configuration.
|
||||||
*
|
*
|
||||||
* @access public
|
* @access protected
|
||||||
* @param string $nickname
|
* @param array $data
|
||||||
* @throws Exception
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function setNickname($nickname)
|
protected function _sanitize(array $data)
|
||||||
{
|
{
|
||||||
if (!Sjcl::isValid($nickname)) {
|
// we generate an icon based on a SHA512 HMAC of the users IP, if configured
|
||||||
throw new Exception('Invalid data.', 66);
|
|
||||||
}
|
|
||||||
$this->_data->meta->nickname = $nickname;
|
|
||||||
|
|
||||||
// If a nickname is provided, we generate an icon based on a SHA512 HMAC
|
|
||||||
// of the users IP. (We assume that if the user did not enter a nickname,
|
|
||||||
// the user wants to be anonymous and we will not generate an icon.)
|
|
||||||
$icon = $this->_conf->getKey('icon');
|
$icon = $this->_conf->getKey('icon');
|
||||||
if ($icon != 'none') {
|
if ($icon != 'none') {
|
||||||
$pngdata = '';
|
$pngdata = '';
|
||||||
@@ -205,9 +174,12 @@ class Comment extends AbstractModel
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
if ($pngdata != '') {
|
if ($pngdata != '') {
|
||||||
$this->_data->meta->vizhash = $pngdata;
|
if (!array_key_exists('meta', $data)) {
|
||||||
|
$data['meta'] = array();
|
||||||
|
}
|
||||||
|
$data['meta']['icon'] = $pngdata;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Once the icon is generated, we do not keep the IP address hash.
|
return $data;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
* @link https://github.com/PrivateBin/PrivateBin
|
* @link https://github.com/PrivateBin/PrivateBin
|
||||||
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
|
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
|
||||||
* @license https://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
|
* @license https://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
|
||||||
* @version 1.2.2
|
* @version 1.3.4
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace PrivateBin\Model;
|
namespace PrivateBin\Model;
|
||||||
@@ -15,7 +15,6 @@ namespace PrivateBin\Model;
|
|||||||
use Exception;
|
use Exception;
|
||||||
use PrivateBin\Controller;
|
use PrivateBin\Controller;
|
||||||
use PrivateBin\Persistence\ServerSalt;
|
use PrivateBin\Persistence\ServerSalt;
|
||||||
use PrivateBin\Sjcl;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Paste
|
* Paste
|
||||||
@@ -29,7 +28,7 @@ class Paste extends AbstractModel
|
|||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
* @return stdClass
|
* @return array
|
||||||
*/
|
*/
|
||||||
public function get()
|
public function get()
|
||||||
{
|
{
|
||||||
@@ -39,45 +38,44 @@ class Paste extends AbstractModel
|
|||||||
}
|
}
|
||||||
|
|
||||||
// check if paste has expired and delete it if neccessary.
|
// check if paste has expired and delete it if neccessary.
|
||||||
if (property_exists($data->meta, 'expire_date')) {
|
if (array_key_exists('expire_date', $data['meta'])) {
|
||||||
if ($data->meta->expire_date < time()) {
|
if ($data['meta']['expire_date'] < time()) {
|
||||||
$this->delete();
|
$this->delete();
|
||||||
throw new Exception(Controller::GENERIC_ERROR, 63);
|
throw new Exception(Controller::GENERIC_ERROR, 63);
|
||||||
}
|
}
|
||||||
// We kindly provide the remaining time before expiration (in seconds)
|
// We kindly provide the remaining time before expiration (in seconds)
|
||||||
$data->meta->remaining_time = $data->meta->expire_date - time();
|
$data['meta']['time_to_live'] = $data['meta']['expire_date'] - time();
|
||||||
|
unset($data['meta']['expire_date']);
|
||||||
}
|
}
|
||||||
|
|
||||||
// check if non-expired burn after reading paste needs to be deleted
|
// check if non-expired burn after reading paste needs to be deleted
|
||||||
if (property_exists($data->meta, 'burnafterreading') && $data->meta->burnafterreading) {
|
if (
|
||||||
|
(array_key_exists('adata', $data) && $data['adata'][3] === 1) ||
|
||||||
|
(array_key_exists('burnafterreading', $data['meta']) && $data['meta']['burnafterreading'])
|
||||||
|
) {
|
||||||
$this->delete();
|
$this->delete();
|
||||||
}
|
}
|
||||||
|
|
||||||
// set formatter for for the view.
|
// set formatter for the view in version 1 pastes.
|
||||||
if (!property_exists($data->meta, 'formatter')) {
|
if (array_key_exists('data', $data) && !array_key_exists('formatter', $data['meta'])) {
|
||||||
// support < 0.21 syntax highlighting
|
// support < 0.21 syntax highlighting
|
||||||
if (property_exists($data->meta, 'syntaxcoloring') && $data->meta->syntaxcoloring === true) {
|
if (array_key_exists('syntaxcoloring', $data['meta']) && $data['meta']['syntaxcoloring'] === true) {
|
||||||
$data->meta->formatter = 'syntaxhighlighting';
|
$data['meta']['formatter'] = 'syntaxhighlighting';
|
||||||
} else {
|
} else {
|
||||||
$data->meta->formatter = $this->_conf->getKey('defaultformatter');
|
$data['meta']['formatter'] = $this->_conf->getKey('defaultformatter');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// support old paste format with server wide salt
|
// support old paste format with server wide salt
|
||||||
if (!property_exists($data->meta, 'salt')) {
|
if (!array_key_exists('salt', $data['meta'])) {
|
||||||
$data->meta->salt = ServerSalt::get();
|
$data['meta']['salt'] = ServerSalt::get();
|
||||||
}
|
}
|
||||||
$data->comments = array_values($this->getComments());
|
$data['comments'] = array_values($this->getComments());
|
||||||
$data->comment_count = count($data->comments);
|
$data['comment_count'] = count($data['comments']);
|
||||||
$data->comment_offset = 0;
|
$data['comment_offset'] = 0;
|
||||||
$data->{'@context'} = 'js/paste.jsonld';
|
$data['@context'] = '?jsonld=paste';
|
||||||
$this->_data = $data;
|
$this->_data = $data;
|
||||||
|
|
||||||
// If the paste was meant to be read only once, delete it.
|
|
||||||
if ($this->isBurnafterreading()) {
|
|
||||||
$this->delete();
|
|
||||||
}
|
|
||||||
|
|
||||||
return $this->_data;
|
return $this->_data;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -94,14 +92,14 @@ class Paste extends AbstractModel
|
|||||||
throw new Exception('You are unlucky. Try again.', 75);
|
throw new Exception('You are unlucky. Try again.', 75);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->_data->meta->postdate = time();
|
$this->_data['meta']['created'] = time();
|
||||||
$this->_data->meta->salt = serversalt::generate();
|
$this->_data['meta']['salt'] = serversalt::generate();
|
||||||
|
|
||||||
// store paste
|
// store paste
|
||||||
if (
|
if (
|
||||||
$this->_store->create(
|
$this->_store->create(
|
||||||
$this->getId(),
|
$this->getId(),
|
||||||
json_decode(json_encode($this->_data), true)
|
$this->_data
|
||||||
) === false
|
) === false
|
||||||
) {
|
) {
|
||||||
throw new Exception('Error saving paste. Sorry.', 76);
|
throw new Exception('Error saving paste. Sorry.', 76);
|
||||||
@@ -139,7 +137,7 @@ class Paste extends AbstractModel
|
|||||||
* @throws Exception
|
* @throws Exception
|
||||||
* @return Comment
|
* @return Comment
|
||||||
*/
|
*/
|
||||||
public function getComment($parentId, $commentId = null)
|
public function getComment($parentId, $commentId = '')
|
||||||
{
|
{
|
||||||
if (!$this->exists()) {
|
if (!$this->exists()) {
|
||||||
throw new Exception('Invalid data.', 62);
|
throw new Exception('Invalid data.', 62);
|
||||||
@@ -147,7 +145,7 @@ class Paste extends AbstractModel
|
|||||||
$comment = new Comment($this->_conf, $this->_store);
|
$comment = new Comment($this->_conf, $this->_store);
|
||||||
$comment->setPaste($this);
|
$comment->setPaste($this);
|
||||||
$comment->setParentId($parentId);
|
$comment->setParentId($parentId);
|
||||||
if ($commentId !== null) {
|
if ($commentId !== '') {
|
||||||
$comment->setId($commentId);
|
$comment->setId($commentId);
|
||||||
}
|
}
|
||||||
return $comment;
|
return $comment;
|
||||||
@@ -176,140 +174,16 @@ class Paste extends AbstractModel
|
|||||||
*/
|
*/
|
||||||
public function getDeleteToken()
|
public function getDeleteToken()
|
||||||
{
|
{
|
||||||
if (!property_exists($this->_data->meta, 'salt')) {
|
if (!array_key_exists('salt', $this->_data['meta'])) {
|
||||||
$this->get();
|
$this->get();
|
||||||
}
|
}
|
||||||
return hash_hmac(
|
return hash_hmac(
|
||||||
$this->_conf->getKey('zerobincompatibility') ? 'sha1' : 'sha256',
|
$this->_conf->getKey('zerobincompatibility') ? 'sha1' : 'sha256',
|
||||||
$this->getId(),
|
$this->getId(),
|
||||||
$this->_data->meta->salt
|
$this->_data['meta']['salt']
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Set paste's attachment.
|
|
||||||
*
|
|
||||||
* @access public
|
|
||||||
* @param string $attachment
|
|
||||||
* @throws Exception
|
|
||||||
*/
|
|
||||||
public function setAttachment($attachment)
|
|
||||||
{
|
|
||||||
if (!$this->_conf->getKey('fileupload') || !Sjcl::isValid($attachment)) {
|
|
||||||
throw new Exception('Invalid attachment.', 71);
|
|
||||||
}
|
|
||||||
$this->_data->meta->attachment = $attachment;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set paste's attachment name.
|
|
||||||
*
|
|
||||||
* @access public
|
|
||||||
* @param string $attachmentname
|
|
||||||
* @throws Exception
|
|
||||||
*/
|
|
||||||
public function setAttachmentName($attachmentname)
|
|
||||||
{
|
|
||||||
if (!$this->_conf->getKey('fileupload') || !Sjcl::isValid($attachmentname)) {
|
|
||||||
throw new Exception('Invalid attachment.', 72);
|
|
||||||
}
|
|
||||||
$this->_data->meta->attachmentname = $attachmentname;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set paste expiration.
|
|
||||||
*
|
|
||||||
* @access public
|
|
||||||
* @param string $expiration
|
|
||||||
*/
|
|
||||||
public function setExpiration($expiration)
|
|
||||||
{
|
|
||||||
$expire_options = $this->_conf->getSection('expire_options');
|
|
||||||
if (array_key_exists($expiration, $expire_options)) {
|
|
||||||
$expire = $expire_options[$expiration];
|
|
||||||
} else {
|
|
||||||
// using getKey() to ensure a default value is present
|
|
||||||
$expire = $this->_conf->getKey($this->_conf->getKey('default', 'expire'), 'expire_options');
|
|
||||||
}
|
|
||||||
if ($expire > 0) {
|
|
||||||
$this->_data->meta->expire_date = time() + $expire;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set paste's burn-after-reading type.
|
|
||||||
*
|
|
||||||
* @access public
|
|
||||||
* @param string $burnafterreading
|
|
||||||
* @throws Exception
|
|
||||||
*/
|
|
||||||
public function setBurnafterreading($burnafterreading = '1')
|
|
||||||
{
|
|
||||||
if ($burnafterreading === '0') {
|
|
||||||
$this->_data->meta->burnafterreading = false;
|
|
||||||
} else {
|
|
||||||
if ($burnafterreading !== '1') {
|
|
||||||
throw new Exception('Invalid data.', 73);
|
|
||||||
}
|
|
||||||
$this->_data->meta->burnafterreading = true;
|
|
||||||
$this->_data->meta->opendiscussion = false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set paste's discussion state.
|
|
||||||
*
|
|
||||||
* @access public
|
|
||||||
* @param string $opendiscussion
|
|
||||||
* @throws Exception
|
|
||||||
*/
|
|
||||||
public function setOpendiscussion($opendiscussion = '1')
|
|
||||||
{
|
|
||||||
if (
|
|
||||||
!$this->_conf->getKey('discussion') ||
|
|
||||||
$this->isBurnafterreading() ||
|
|
||||||
$opendiscussion === '0'
|
|
||||||
) {
|
|
||||||
$this->_data->meta->opendiscussion = false;
|
|
||||||
} else {
|
|
||||||
if ($opendiscussion !== '1') {
|
|
||||||
throw new Exception('Invalid data.', 74);
|
|
||||||
}
|
|
||||||
$this->_data->meta->opendiscussion = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Set paste's format.
|
|
||||||
*
|
|
||||||
* @access public
|
|
||||||
* @param string $format
|
|
||||||
* @throws Exception
|
|
||||||
*/
|
|
||||||
public function setFormatter($format)
|
|
||||||
{
|
|
||||||
if (!array_key_exists($format, $this->_conf->getSection('formatter_options'))) {
|
|
||||||
$format = $this->_conf->getKey('defaultformatter');
|
|
||||||
}
|
|
||||||
$this->_data->meta->formatter = $format;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Check if paste is of burn-after-reading type.
|
|
||||||
*
|
|
||||||
* @access public
|
|
||||||
* @throws Exception
|
|
||||||
* @return bool
|
|
||||||
*/
|
|
||||||
public function isBurnafterreading()
|
|
||||||
{
|
|
||||||
if (!property_exists($this->_data, 'data')) {
|
|
||||||
$this->get();
|
|
||||||
}
|
|
||||||
return property_exists($this->_data->meta, 'burnafterreading') &&
|
|
||||||
$this->_data->meta->burnafterreading === true;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if paste has discussions enabled.
|
* Check if paste has discussions enabled.
|
||||||
*
|
*
|
||||||
@@ -319,10 +193,66 @@ class Paste extends AbstractModel
|
|||||||
*/
|
*/
|
||||||
public function isOpendiscussion()
|
public function isOpendiscussion()
|
||||||
{
|
{
|
||||||
if (!property_exists($this->_data, 'data')) {
|
if (!array_key_exists('adata', $this->_data) && !array_key_exists('data', $this->_data)) {
|
||||||
$this->get();
|
$this->get();
|
||||||
}
|
}
|
||||||
return property_exists($this->_data->meta, 'opendiscussion') &&
|
return
|
||||||
$this->_data->meta->opendiscussion === true;
|
(array_key_exists('adata', $this->_data) && $this->_data['adata'][2] === 1) ||
|
||||||
|
(array_key_exists('opendiscussion', $this->_data['meta']) && $this->_data['meta']['opendiscussion']);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sanitizes data to conform with current configuration.
|
||||||
|
*
|
||||||
|
* @access protected
|
||||||
|
* @param array $data
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
protected function _sanitize(array $data)
|
||||||
|
{
|
||||||
|
$expiration = $data['meta']['expire'];
|
||||||
|
unset($data['meta']['expire']);
|
||||||
|
$expire_options = $this->_conf->getSection('expire_options');
|
||||||
|
if (array_key_exists($expiration, $expire_options)) {
|
||||||
|
$expire = $expire_options[$expiration];
|
||||||
|
} else {
|
||||||
|
// using getKey() to ensure a default value is present
|
||||||
|
$expire = $this->_conf->getKey($this->_conf->getKey('default', 'expire'), 'expire_options');
|
||||||
|
}
|
||||||
|
if ($expire > 0) {
|
||||||
|
$data['meta']['expire_date'] = time() + $expire;
|
||||||
|
}
|
||||||
|
return $data;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Validate data.
|
||||||
|
*
|
||||||
|
* @access protected
|
||||||
|
* @param array $data
|
||||||
|
* @throws Exception
|
||||||
|
*/
|
||||||
|
protected function _validate(array $data)
|
||||||
|
{
|
||||||
|
// reject invalid or disabled formatters
|
||||||
|
if (!array_key_exists($data['adata'][1], $this->_conf->getSection('formatter_options'))) {
|
||||||
|
throw new Exception('Invalid data.', 75);
|
||||||
|
}
|
||||||
|
|
||||||
|
// discussion requested, but disabled in config or burn after reading requested as well, or invalid integer
|
||||||
|
if (
|
||||||
|
($data['adata'][2] === 1 && ( // open discussion flag
|
||||||
|
!$this->_conf->getKey('discussion') ||
|
||||||
|
$data['adata'][3] === 1 // burn after reading flag
|
||||||
|
)) ||
|
||||||
|
($data['adata'][2] !== 0 && $data['adata'][2] !== 1)
|
||||||
|
) {
|
||||||
|
throw new Exception('Invalid data.', 74);
|
||||||
|
}
|
||||||
|
|
||||||
|
// reject invalid burn after reading
|
||||||
|
if ($data['adata'][3] !== 0 && $data['adata'][3] !== 1) {
|
||||||
|
throw new Exception('Invalid data.', 73);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
* @link https://github.com/PrivateBin/PrivateBin
|
* @link https://github.com/PrivateBin/PrivateBin
|
||||||
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
|
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
|
||||||
* @license https://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
|
* @license https://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
|
||||||
* @version 1.2.2
|
* @version 1.3.4
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace PrivateBin\Persistence;
|
namespace PrivateBin\Persistence;
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
* @link https://github.com/PrivateBin/PrivateBin
|
* @link https://github.com/PrivateBin/PrivateBin
|
||||||
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
|
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
|
||||||
* @license https://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
|
* @license https://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
|
||||||
* @version 1.1
|
* @version 1.3.4
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace PrivateBin\Persistence;
|
namespace PrivateBin\Persistence;
|
||||||
@@ -45,7 +45,10 @@ class DataStore extends AbstractPersistence
|
|||||||
$filename = substr($filename, strlen($path));
|
$filename = substr($filename, strlen($path));
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
self::_store($filename, self::PROTECTION_LINE . PHP_EOL . Json::encode($data));
|
self::_store(
|
||||||
|
$filename,
|
||||||
|
self::PROTECTION_LINE . PHP_EOL . Json::encode($data)
|
||||||
|
);
|
||||||
return true;
|
return true;
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
return false;
|
return false;
|
||||||
@@ -58,11 +61,16 @@ class DataStore extends AbstractPersistence
|
|||||||
* @access public
|
* @access public
|
||||||
* @static
|
* @static
|
||||||
* @param string $filename
|
* @param string $filename
|
||||||
* @return stdClass|false $data
|
* @return array|false $data
|
||||||
*/
|
*/
|
||||||
public static function get($filename)
|
public static function get($filename)
|
||||||
{
|
{
|
||||||
return json_decode(substr(file_get_contents($filename), strlen(self::PROTECTION_LINE . PHP_EOL)));
|
return Json::decode(
|
||||||
|
substr(
|
||||||
|
file_get_contents($filename),
|
||||||
|
strlen(self::PROTECTION_LINE . PHP_EOL)
|
||||||
|
)
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
* @link https://github.com/PrivateBin/PrivateBin
|
* @link https://github.com/PrivateBin/PrivateBin
|
||||||
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
|
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
|
||||||
* @license https://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
|
* @license https://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
|
||||||
* @version 1.2.2
|
* @version 1.3.4
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace PrivateBin\Persistence;
|
namespace PrivateBin\Persistence;
|
||||||
@@ -60,7 +60,7 @@ class PurgeLimiter extends AbstractPersistence
|
|||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
* @static
|
* @static
|
||||||
* @throws Exception
|
* @throws \Exception
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public static function canPurge()
|
public static function canPurge()
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
* @link https://github.com/PrivateBin/PrivateBin
|
* @link https://github.com/PrivateBin/PrivateBin
|
||||||
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
|
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
|
||||||
* @license https://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
|
* @license https://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
|
||||||
* @version 1.2.2
|
* @version 1.3.4
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace PrivateBin\Persistence;
|
namespace PrivateBin\Persistence;
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
* @link https://github.com/PrivateBin/PrivateBin
|
* @link https://github.com/PrivateBin/PrivateBin
|
||||||
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
|
* @copyright 2012 Sébastien SAUVAGE (sebsauvage.net)
|
||||||
* @license https://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
|
* @license https://www.opensource.org/licenses/zlib-license.php The zlib/libpng License
|
||||||
* @version 1.2.2
|
* @version 1.3.4
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace PrivateBin\Persistence;
|
namespace PrivateBin\Persistence;
|
||||||
@@ -90,7 +90,7 @@ class TrafficLimiter extends AbstractPersistence
|
|||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
* @static
|
* @static
|
||||||
* @throws Exception
|
* @throws \Exception
|
||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
public static function canPass()
|
public static function canPass()
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user