2021-07-10 19:18:17 +01:00
|
|
|
<?php
|
2021-08-25 02:08:30 -04:00
|
|
|
define("PP_DEBUG", (gethostname() === 'thunderlane'));
|
|
|
|
if (PP_DEBUG) {
|
2021-07-11 11:54:37 -04:00
|
|
|
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
|
2021-08-25 02:08:30 -04:00
|
|
|
if (PP_DEBUG) {
|
2021-07-10 15:42:04 -04:00
|
|
|
$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";
|
2021-08-17 13:26:26 -04:00
|
|
|
const PP_ENCRYPTION_ALGO = 'AES-256-CBC';
|
|
|
|
const PP_ENCRYPTION_KEY = '';
|
2021-07-10 19:18:17 +01:00
|
|
|
|
2021-08-22 21:45:26 -04:00
|
|
|
const PP_HIGHLIGHT_FORMATS = [
|
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
|
|
|
|
|
|
|
|
2021-07-11 12:18:57 -04:00
|
|
|
// Cookie - I want a cookie, can I have one?
|