2021-07-10 19:18:17 +01:00
|
|
|
<?php
|
|
|
|
/*
|
|
|
|
* $ID Project: Paste 2.0 - J.Samuel
|
|
|
|
*
|
|
|
|
* 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 LIC.txt for more details.
|
|
|
|
*/
|
2021-07-11 11:54:37 -04:00
|
|
|
if (gethostname() === 'thunderlane') {
|
|
|
|
error_reporting(E_ALL);
|
|
|
|
ini_set('display_errors', 1);
|
|
|
|
}
|
|
|
|
|
2021-07-26 17:41:54 -04:00
|
|
|
/* Maximum paste size in bytes */
|
|
|
|
const PP_PASTE_LIMIT_BYTES = 1048576;
|
2021-07-12 09:03:02 -04:00
|
|
|
|
2021-07-17 12:26:33 -04:00
|
|
|
/* A long and random string used for additionally salting passwords. */
|
|
|
|
const PP_PASSWORD_PEPPER = 'd791b6c6-91f2-4e8f-ba80-74ea968e4931';
|
2021-07-10 19:18:17 +01:00
|
|
|
|
2021-07-26 17:41:54 -04:00
|
|
|
/* Whether to use friendly URLs that require mod_rewrite */
|
|
|
|
const PP_MOD_REWRITE = true;
|
|
|
|
|
2021-07-10 19:18:17 +01:00
|
|
|
$db_host = 'localhost';
|
|
|
|
$db_schema = 'p0nepast3s';
|
|
|
|
$db_user = 'P0nedbAcc0unt';
|
|
|
|
$db_pass = '1NWO6Tp17IFz9lbl';
|
|
|
|
|
2021-07-10 15:42:04 -04:00
|
|
|
// I'm sorry, I didn't want to edit this file and check it in, but I may need to make other changes to it, so I did this
|
|
|
|
if (gethostname() === 'thunderlane') {
|
|
|
|
$db_host = 'localhost';
|
|
|
|
$db_schema = 'ponepaste';
|
|
|
|
$db_user = 'ponepaste';
|
|
|
|
$db_pass = 'ponepaste';
|
|
|
|
}
|
|
|
|
|
2021-07-26 17:41:54 -04:00
|
|
|
|
2021-07-10 19:18:17 +01:00
|
|
|
|
|
|
|
// Secret key for paste encryption
|
2021-07-16 09:53:34 -04:00
|
|
|
//$sec_key = "8ac67343e7980b16b31e8311d4377bbb";
|
|
|
|
$sec_key = '';
|
2021-07-10 19:18:17 +01:00
|
|
|
|
|
|
|
|
|
|
|
// Available GeSHi formats
|
2021-07-11 12:18:57 -04:00
|
|
|
$geshiformats = [
|
2021-07-10 19:18:17 +01:00
|
|
|
'green' => 'Green Text',
|
|
|
|
'text' => 'Plain Text',
|
|
|
|
'pastedown' => 'pastedown',
|
2021-07-11 12:18:57 -04:00
|
|
|
'pastedown_old' => 'pastedown old'
|
|
|
|
];
|
2021-07-10 19:18:17 +01:00
|
|
|
|
|
|
|
// Popular formats that are listed first.
|
2021-07-11 12:18:57 -04:00
|
|
|
$popular_formats = [
|
2021-07-12 09:03:02 -04:00
|
|
|
'green',
|
2021-07-10 19:18:17 +01:00
|
|
|
'text',
|
2021-07-12 09:03:02 -04:00
|
|
|
'pastedown',
|
2021-07-10 19:18:17 +01:00
|
|
|
'pastedown_old'
|
2021-07-11 12:18:57 -04:00
|
|
|
];
|
2021-07-10 19:18:17 +01:00
|
|
|
|
2021-07-11 12:18:57 -04:00
|
|
|
// Cookie - I want a cookie, can I have one?
|