2017-12-10 22:14:12 +01:00
|
|
|
<?php defined('BLUDIT') or die('Bludit CMS.');
|
|
|
|
|
|
|
|
/*
|
|
|
|
Environment variables
|
|
|
|
If you are going to change some variable from here is recommended do it before the installation
|
|
|
|
*/
|
|
|
|
|
2018-07-10 19:53:53 +02:00
|
|
|
// Log
|
2017-12-10 22:14:12 +01:00
|
|
|
define('LOG_SEP', ' | ');
|
2018-07-10 19:53:53 +02:00
|
|
|
define('LOG_TYPE_INFO', '[INFO]');
|
|
|
|
define('LOG_TYPE_WARN', '[WARN]');
|
|
|
|
define('LOG_TYPE_ERROR', '[ERROR]');
|
2017-12-10 22:14:12 +01:00
|
|
|
|
|
|
|
// Protecting against Symlink attacks
|
|
|
|
define('CHECK_SYMBOLIC_LINKS', TRUE);
|
|
|
|
|
|
|
|
// Alert status ok
|
|
|
|
define('ALERT_STATUS_OK', 0);
|
|
|
|
|
|
|
|
// Alert status fail
|
|
|
|
define('ALERT_STATUS_FAIL', 1);
|
|
|
|
|
|
|
|
// Amount of thumbnails shown on Bludit Quick images
|
|
|
|
define('THUMBNAILS_AMOUNT', 6);
|
|
|
|
|
|
|
|
// Thubmnails size
|
|
|
|
define('THUMBNAILS_WIDTH', 400);
|
|
|
|
define('THUMBNAILS_HEIGHT', 400);
|
|
|
|
define('THUMBNAILS_QUALITY', 100); // 100%
|
|
|
|
|
|
|
|
// Profile image size
|
|
|
|
define('PROFILE_IMG_WIDTH', 400);
|
|
|
|
define('PROFILE_IMG_HEIGHT', 400);
|
|
|
|
define('PROFILE_IMG_QUALITY', 100); // 100%
|
|
|
|
|
|
|
|
// Password length
|
|
|
|
define('PASSWORD_LENGTH', 6);
|
|
|
|
|
|
|
|
// Password salt length
|
|
|
|
define('SALT_LENGTH', 8);
|
|
|
|
|
|
|
|
// Page brake string
|
|
|
|
define('PAGE_BREAK', '<!-- pagebreak -->');
|
|
|
|
|
|
|
|
// Parent key for the array $pagesByParents
|
|
|
|
define('PARENT', 'BLUDIT3849abb4cb7abd24c2d8dac17b216f17');
|
|
|
|
|
|
|
|
// Items per page for admin area
|
2018-01-21 23:23:22 +01:00
|
|
|
define('ITEMS_PER_PAGE_ADMIN', 20);
|
2017-12-10 22:14:12 +01:00
|
|
|
|
|
|
|
// Cli mode, status for new pages
|
|
|
|
define('CLI_STATUS', 'published');
|
|
|
|
|
|
|
|
// Cli mode, username for new pages
|
|
|
|
define('CLI_USERNAME', 'admin');
|
|
|
|
|
|
|
|
// Remember me
|
|
|
|
define('REMEMBER_COOKIE_USERNAME', 'BLUDITREMEMBERUSERNAME');
|
|
|
|
define('REMEMBER_COOKIE_TOKEN', 'BLUDITREMEMBERTOKEN');
|
|
|
|
define('REMEMBER_COOKIE_EXPIRE_IN_DAYS', 30);
|
|
|
|
|
|
|
|
// Filename
|
2018-02-25 17:25:10 +01:00
|
|
|
define('FILENAME', 'index.txt');
|
2017-12-10 22:14:12 +01:00
|
|
|
|
|
|
|
// Database date format
|
|
|
|
define('DB_DATE_FORMAT', 'Y-m-d H:i:s');
|
|
|
|
|
|
|
|
// Database date format
|
|
|
|
define('BACKUP_DATE_FORMAT', 'Y-m-d-H-i-s');
|
|
|
|
|
|
|
|
// Sitemap date format
|
|
|
|
define('SITEMAP_DATE_FORMAT', 'Y-m-d');
|
|
|
|
|
2017-12-20 00:09:47 +01:00
|
|
|
// Date format for Manage Content, Manage Users
|
|
|
|
define('ADMIN_PANEL_DATE_FORMAT', 'D, j M Y, H:i');
|
|
|
|
|
2017-12-10 22:14:12 +01:00
|
|
|
// Date format for Dashboard schedule posts
|
|
|
|
define('SCHEDULED_DATE_FORMAT', 'D, j M Y, H:i');
|
|
|
|
|
|
|
|
// Notifications date format
|
|
|
|
define('NOTIFICATIONS_DATE_FORMAT', 'D, j M Y, H:i');
|
|
|
|
|
2018-08-20 22:32:14 +02:00
|
|
|
// Manage content date format
|
|
|
|
define('MANAGE_CONTENT_DATE_FORMAT', 'D, j M Y, H:i');
|
|
|
|
|
2017-12-10 22:14:12 +01:00
|
|
|
// Amount of items to show on notification panel
|
|
|
|
define('NOTIFICATIONS_AMOUNT', 10);
|
|
|
|
|
|
|
|
// Token time to live for login via email. The offset is defined by http://php.net/manual/en/datetime.modify.php
|
|
|
|
define('TOKEN_EMAIL_TTL', '+15 minutes');
|
|
|
|
|
|
|
|
// Charset, default UTF-8.
|
|
|
|
define('CHARSET', 'UTF-8');
|
|
|
|
|
|
|
|
// Permissions for new directories
|
|
|
|
define('DIR_PERMISSIONS', 0755);
|
|
|
|
|
|
|
|
// Admin URI filter to access to the admin panel
|
|
|
|
define('ADMIN_URI_FILTER', 'admin');
|
|
|
|
|
|
|
|
// Default language file, in this case is English
|
|
|
|
define('DEFAULT_LANGUAGE_FILE', 'en.json');
|
|
|
|
|
|
|
|
// Session timeout server side, gc_maxlifetime
|
|
|
|
// 3600 = 1hour
|
|
|
|
define('SESSION_GC_MAXLIFETIME', 3600);
|
|
|
|
|
|
|
|
// Session lifetime of the cookie in seconds which is sent to the browser
|
|
|
|
// The value 0 means until the browser is closed
|
2018-04-09 22:56:12 +02:00
|
|
|
define('SESSION_COOKIE_LIFE_TIME', 0);
|
|
|
|
|
|
|
|
// New Global Variables
|
|
|
|
$GLOBALS['BLUDIT_MEDIA_MANAGER_AMOUNT_OF_FILES'] = 5;
|
2018-04-13 23:32:29 +02:00
|
|
|
$GLOBALS['BLUDIT_MEDIA_MANAGER_SORT_BY_DATE'] = true;
|
|
|
|
|
|
|
|
// Thubmnails size
|
|
|
|
$GLOBALS['THUMBNAILS_WIDTH'] = 400;
|
|
|
|
$GLOBALS['THUMBNAILS_HEIGHT'] = 400;
|
2018-05-08 23:25:18 +02:00
|
|
|
$GLOBALS['THUMBNAILS_QUALITY'] = 100;
|
|
|
|
|
2018-06-24 13:37:45 +02:00
|
|
|
// Alert
|
|
|
|
$GLOBALS['ALERT_DISSAPEAR_IN'] = 3; // Seconds
|
2018-06-25 23:17:43 +02:00
|
|
|
|