forked from jordansamuel/PASTE
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.example.php
306 lines (297 loc) · 8.59 KB
/
config.example.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
<?php
/*
* Paste <https://github.com/jordansamuel/PASTE>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 3
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License in docs/GPL.txt for more details.
*/
$currentversion = 2.2;
// Max paste size in MB. This value should always be below the value of
// post_max_size in your PHP configuration settings (php.ini) or empty errors will occur.
// The value we got on installation of Paste was: post_max_size = 8M
// Otherwise, the maximum value that can be set is 4000 (4GB)
$pastelimit = "0.5"; // 0.5 = 512 kilobytes, 1 = 1MB
// OAUTH (to enable, change to yes and edit)
$enablefb = "no";
$enablegoog = "no";
// "CHANGE THIS" = Replace with your details
// Facebook
define('FB_APP_ID', 'CHANGE THIS'); // Your application ID, see https://developers.facebook.com/docs/apps/register
define('FB_APP_SECRET', 'CHANGE THIS'); // What's your Secret key
// Google
define('G_Client_ID', 'CHANGE THIS'); // Get a Client ID from https://console.developers.google.com/projectselector/apis/library
define('G_Client_Secret', 'CHANGE THIS'); // What's your Secret key
define('G_Redirect_Uri', 'http://DOMAIN.TLD/oauth/google.php'); // Leave this as is
define('G_Application_Name', 'Paste'); // Make sure this matches the name of your application
// Database information
$dbhost = "localhost";
$dbuser = "DATABASEUSER";
$dbpassword = "PASSWORD";
$dbname = "DATABASENAME";
// Secret key for paste encryption (GENERATE KEYS FROM MKPASSWD.NET)
$sec_key = '';
define('SECRET',md5($sec_key));
// Set to 1 to enable Apache's mod_rewrite
$mod_rewrite = "0";
// Available GeSHi formats
$geshiformats =array(
'4cs' => 'GADV 4CS',
'6502acme' => 'ACME Cross Assembler',
'6502kickass' => 'Kick Assembler',
'6502tasm' => 'TASM/64TASS 1.46',
'68000devpac' => 'HiSoft Devpac ST 2',
'abap' => 'ABAP',
'actionscript' => 'ActionScript',
'actionscript3' => 'ActionScript 3',
'ada' => 'Ada',
'aimms' => 'AIMMS3',
'algol68' => 'ALGOL 68',
'apache' => 'Apache',
'applescript' => 'AppleScript',
'arm' => 'ARM Assembler',
'asm' => 'ASM',
'asp' => 'ASP',
'asymptote' => 'Asymptote',
'autoconf' => 'Autoconf',
'autohotkey' => 'Autohotkey',
'autoit' => 'AutoIt',
'avisynth' => 'AviSynth',
'awk' => 'Awk',
'bascomavr' => 'BASCOM AVR',
'bash' => 'BASH',
'basic4gl' => 'Basic4GL',
'bf' => 'Brainfuck',
'bibtex' => 'BibTeX',
'blitzbasic' => 'BlitzBasic',
'bnf' => 'BNF',
'boo' => 'Boo',
'c' => 'C',
'c_loadrunner' => 'C (LoadRunner)',
'c_mac' => 'C for Macs',
'c_winapi' => 'C (WinAPI)',
'caddcl' => 'CAD DCL',
'cadlisp' => 'CAD Lisp',
'cfdg' => 'CFDG',
'cfm' => 'ColdFusion',
'chaiscript' => 'ChaiScript',
'chapel' => 'Chapel',
'cil' => 'CIL',
'clojure' => 'Clojure',
'cmake' => 'CMake',
'cobol' => 'COBOL',
'coffeescript' => 'CoffeeScript',
'cpp' => 'C++',
'cpp-qt' => 'C++ (with QT extensions)',
'cpp-winapi' => 'C++ (WinAPI)',
'csharp' => 'C#',
'css' => 'CSS',
'cuesheet' => 'Cuesheet',
'd' => 'D',
'dcl' => 'DCL',
'dcpu16' => 'DCPU-16 Assembly',
'dcs' => 'DCS',
'delphi' => 'Delphi',
'diff' => 'Diff-output',
'div' => 'DIV',
'dos' => 'DOS',
'dot' => 'dot',
'e' => 'E',
'ecmascript' => 'ECMAScript',
'eiffel' => 'Eiffel',
'email' => 'eMail (mbox)',
'epc' => 'EPC',
'erlang' => 'Erlang',
'euphoria' => 'Euphoria',
'ezt' => 'EZT',
'f1' => 'Formula One',
'falcon' => 'Falcon',
'fo' => 'FO (abas-ERP)',
'fortran' => 'Fortran',
'freebasic' => 'FreeBasic',
'fsharp' => 'F#',
'gambas' => 'GAMBAS',
'gdb' => 'GDB',
'genero' => 'Genero',
'genie' => 'Genie',
'gettext' => 'GNU Gettext',
'glsl' => 'glSlang',
'gml' => 'GML',
'gnuplot' => 'GNUPlot',
'go' => 'Go',
'groovy' => 'Groovy',
'gwbasic' => 'GwBasic',
'haskell' => 'Haskell',
'haxe' => 'Haxe',
'hicest' => 'HicEst',
'hq9plus' => 'HQ9+',
'html4strict' => 'HTML 4.01',
'html5' => 'HTML 5',
'icon' => 'Icon',
'idl' => 'Uno Idl',
'ini' => 'INI',
'inno' => 'Inno Script',
'intercal' => 'INTERCAL',
'io' => 'IO',
'ispfpanel' => 'ISPF Panel',
'j' => 'J',
'java' => 'Java',
'java5' => 'Java 5',
'javascript' => 'JavaScript',
'jcl' => 'JCL',
'jquery' => 'jQuery',
'kixtart' => 'KiXtart',
'klonec' => 'KLone C',
'klonecpp' => 'KLone C++',
'latex' => 'LaTeX',
'lb' => 'Liberty BASIC',
'ldif' => 'LDIF',
'lisp' => 'Lisp',
'llvm' => 'LLVM',
'locobasic' => 'Locomotive Basic',
'logtalk' => 'Logtalk',
'lolcode' => 'LOLcode',
'lotusformulas' => 'Lotus Notes @Formulas',
'lotusscript' => 'LotusScript',
'lscript' => 'Lightwave Script',
'lsl2' => 'Linden Script',
'lua' => 'LUA',
'm68k' => 'Motorola 68000 Assembler',
'magiksf' => 'MagikSF',
'make' => 'GNU make',
'mapbasic' => 'MapBasic',
'markdown' => 'Markdown',
'matlab' => 'Matlab M',
'mirc' => 'mIRC Scripting',
'mmix' => 'MMIX',
'modula2' => 'Modula-2',
'modula3' => 'Modula-3',
'mpasm' => 'Microchip Assembler',
'mxml' => 'MXML',
'mysql' => 'MySQL',
'nagios' => 'Nagios',
'netrexx' => 'NetRexx',
'newlisp' => 'NewLisp',
'nginx' => 'Nginx',
'nsis' => 'NSIS',
'oberon2' => 'Oberon-2',
'objc' => 'Objective-C',
'objeck' => 'Objeck',
'ocaml' => 'Ocaml',
'ocaml-brief' => 'OCaml (Brief)',
'octave' => 'GNU/Octave',
'oobas' => 'OpenOffice.org Basic',
'oorexx' => 'ooRexx',
'oracle11' => 'Oracle 11 SQL',
'oracle8' => 'Oracle 8 SQL',
'oxygene' => 'Oxygene (Delphi Prism)',
'oz' => 'OZ',
'parasail' => 'ParaSail',
'parigp' => 'PARI/GP',
'pascal' => 'Pascal',
'pcre' => 'PCRE',
'per' => 'Per (forms)',
'perl' => 'Perl',
'perl6' => 'Perl 6',
'pf' => 'OpenBSD Packet Filter',
'php' => 'PHP',
'php-brief' => 'PHP (Brief)',
'pic16' => 'PIC16 Assembler',
'pike' => 'Pike',
'pixelbender' => 'Pixel Bender',
'pli' => 'PL/I',
'plsql' => 'PL/SQL',
'postgresql' => 'PostgreSQL',
'povray' => 'POVRAY',
'powerbuilder' => 'PowerBuilder',
'powershell' => 'PowerShell',
'proftpd' => 'ProFTPd config',
'progress' => 'Progress',
'prolog' => 'Prolog',
'properties' => 'Properties',
'providex' => 'ProvideX',
'purebasic' => 'PureBasic',
'pycon' => 'Python (console mode)',
'pys60' => 'Python for S60',
'python' => 'Python',
'qbasic' => 'QuickBASIC',
'racket' => 'Racket',
'rails' => 'Ruby on Rails',
'rbs' => 'RBScript',
'rebol' => 'REBOL',
'reg' => 'Microsoft REGEDIT',
'rexx' => 'Rexx',
'robots' => 'robots.txt',
'rpmspec' => 'RPM Specification File',
'rsplus' => 'R / S+',
'ruby' => 'Ruby',
'sas' => 'SAS',
'scala' => 'Scala',
'scheme' => 'Scheme',
'scilab' => 'SciLab',
'scl' => 'SCL',
'sdlbasic' => 'sdlBasic',
'smalltalk' => 'Smalltalk',
'smarty' => 'Smarty',
'spark' => 'SPARK',
'sparql' => 'SPARQL',
'sql' => 'SQL',
'stonescript' => 'StoneScript',
'systemverilog' => 'SystemVerilog',
'tcl' => 'TCL',
'teraterm' => 'Tera Term Macro',
'text' => 'Plain Text',
'thinbasic' => 'thinBasic',
'tsql' => 'T-SQL',
'typoscript' => 'TypoScript',
'unicon' => 'Unicon',
'upc' => 'UPC',
'urbi' => 'Urbi',
'unrealscript' => 'Unreal Script',
'vala' => 'Vala',
'vb' => 'Visual Basic',
'vbnet' => 'VB.NET',
'vbscript' => 'VB Script',
'vedit' => 'Vedit Macro',
'verilog' => 'Verilog',
'vhdl' => 'VHDL',
'vim' => 'Vim',
'visualfoxpro' => 'Visual FoxPro',
'visualprolog' => 'Visual Prolog',
'whitespace' => 'Whitespace',
'whois' => 'WHOIS (RPSL format)',
'winbatch' => 'WinBatch',
'xbasic' => 'XBasic',
'xml' => 'XML',
'xorg_conf' => 'Xorg Config',
'xpp' => 'X++',
'yaml' => 'YAML',
'z80' => 'ZiLOG Z80 Assembler',
'zxbasic' => 'ZXBasic'
);
// Popular formats that are listed first.
$popular_formats=array(
'text',
'html4strict',
'html5',
'css',
'javascript',
'php',
'perl',
'python',
'postgresql',
'sql',
'xml',
'java',
'c',
'csharp',
'cpp',
'markdown'
);
?>