2017-12-10 22:14:12 +01:00
|
|
|
<?php defined('BLUDIT') or die('Bludit CMS.');
|
|
|
|
|
|
|
|
/*
|
|
|
|
Environment variables
|
2018-09-02 19:03:15 +02:00
|
|
|
If you are going to do some changes in the variable, is recommended do it before the installation
|
2017-12-10 22:14:12 +01:00
|
|
|
*/
|
|
|
|
|
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);
|
|
|
|
|
|
|
|
// Profile image size
|
|
|
|
define('PROFILE_IMG_WIDTH', 400);
|
|
|
|
define('PROFILE_IMG_HEIGHT', 400);
|
|
|
|
define('PROFILE_IMG_QUALITY', 100); // 100%
|
|
|
|
|
2018-10-06 19:39:34 +02:00
|
|
|
// Items per page for admin area
|
|
|
|
define('ITEMS_PER_PAGE_ADMIN', 20);
|
|
|
|
|
2017-12-10 22:14:12 +01:00
|
|
|
// Password length
|
|
|
|
define('PASSWORD_LENGTH', 6);
|
|
|
|
|
|
|
|
// Password salt length
|
|
|
|
define('SALT_LENGTH', 8);
|
|
|
|
|
|
|
|
// Page brake string
|
|
|
|
define('PAGE_BREAK', '<!-- pagebreak -->');
|
|
|
|
|
|
|
|
// 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);
|
|
|
|
|
2018-10-06 19:39:34 +02:00
|
|
|
// Alert notification dissappear in X seconds
|
|
|
|
$GLOBALS['ALERT_DISSAPEAR_IN'] = 3; // Seconds
|
|
|
|
|
|
|
|
// Number of images to show in the media manager per page
|
2018-10-21 15:00:15 +02:00
|
|
|
$GLOBALS['MEDIA_MANAGER_NUMBER_OF_FILES'] = 2;
|
2018-10-06 19:39:34 +02:00
|
|
|
|
|
|
|
// Sort the image by date
|
|
|
|
$GLOBALS['MEDIA_MANAGER_SORT_BY_DATE'] = true;
|
2018-04-13 23:32:29 +02:00
|
|
|
|
|
|
|
// Thubmnails size
|
|
|
|
$GLOBALS['THUMBNAILS_WIDTH'] = 400;
|
|
|
|
$GLOBALS['THUMBNAILS_HEIGHT'] = 400;
|
2018-05-08 23:25:18 +02:00
|
|
|
$GLOBALS['THUMBNAILS_QUALITY'] = 100;
|
|
|
|
|