Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/AnonR/smanonr..../var/softacul.../blesta
File: _blesta.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Blesta configuration settings
[2] Fix | Delete
*
[3] Fix | Delete
* @package blesta
[4] Fix | Delete
* @subpackage blesta.config
[5] Fix | Delete
* @copyright Copyright (c) 2010, Phillips Data, Inc.
[6] Fix | Delete
* @license http://www.blesta.com/license/ The Blesta License Agreement
[7] Fix | Delete
* @link http://www.blesta.com/ Blesta
[8] Fix | Delete
*/
[9] Fix | Delete
[10] Fix | Delete
////////////////////////////////////////////////////////////////////////////////
[11] Fix | Delete
// Debugging
[12] Fix | Delete
////////////////////////////////////////////////////////////////////////////////
[13] Fix | Delete
// PHP error_reporting. 0 to disable error reporting, -1 to to show all errors
[14] Fix | Delete
// Consult php's documentation for additional options
[15] Fix | Delete
Configure::errorReporting(0);
[16] Fix | Delete
// Override minPHP's debugging setting. true to enable debugging, false to disable it
[17] Fix | Delete
Configure::set('System.debug', false);
[18] Fix | Delete
[19] Fix | Delete
////////////////////////////////////////////////////////////////////////////////
[20] Fix | Delete
// Database
[21] Fix | Delete
////////////////////////////////////////////////////////////////////////////////
[22] Fix | Delete
// Database connection information
[23] Fix | Delete
Configure::set('Blesta.database_info', [
[24] Fix | Delete
'driver' => 'mysql',
[25] Fix | Delete
'host' => '{database_host}',
[26] Fix | Delete
'port' => '{database_port}',
[27] Fix | Delete
'database' => '{database_name}',
[28] Fix | Delete
'user' => '{database_user}',
[29] Fix | Delete
'pass' => '{database_password}',
[30] Fix | Delete
'persistent' => false,
[31] Fix | Delete
'charset_query' => "SET NAMES 'utf8'",
[32] Fix | Delete
'sqlmode_query' => "SET sql_mode='TRADITIONAL'",
[33] Fix | Delete
'options' => []
[34] Fix | Delete
]
[35] Fix | Delete
);
[36] Fix | Delete
// Deadlocked transactions will reattempt at most this many times
[37] Fix | Delete
Configure::set('Blesta.transaction_deadlock_reattempts', 5);
[38] Fix | Delete
// The maximum number of records to fetch from the database (default 2147483647 or 2^31 - 1).
[39] Fix | Delete
// This should match the max record count for tables in your storage engine
[40] Fix | Delete
Configure::set('Blesta.max_records', 2147483647);
[41] Fix | Delete
[42] Fix | Delete
////////////////////////////////////////////////////////////////////////////////
[43] Fix | Delete
// Pagination
[44] Fix | Delete
////////////////////////////////////////////////////////////////////////////////
[45] Fix | Delete
// Number of results to display per page
[46] Fix | Delete
Configure::set('Blesta.results_per_page', 20);
[47] Fix | Delete
// Set pagination settings
[48] Fix | Delete
Configure::set('Blesta.pagination', [
[49] Fix | Delete
'show' => 'if_needed',
[50] Fix | Delete
'total_results' => 0,
[51] Fix | Delete
'pages_to_show' => 5,
[52] Fix | Delete
'results_per_page' => Configure::get('Blesta.results_per_page'),
[53] Fix | Delete
'uri' => WEBDIR,
[54] Fix | Delete
'uri_labels' => [
[55] Fix | Delete
'page' => 'p',
[56] Fix | Delete
'per_page' => 'pp'
[57] Fix | Delete
],
[58] Fix | Delete
'navigation' => [
[59] Fix | Delete
'current' => [
[60] Fix | Delete
'link' => true,
[61] Fix | Delete
'attributes' => ['class' => 'active']
[62] Fix | Delete
],
[63] Fix | Delete
'first' => [
[64] Fix | Delete
'show' => 'always'
[65] Fix | Delete
],
[66] Fix | Delete
'prev' => [
[67] Fix | Delete
'show' => 'always'
[68] Fix | Delete
],
[69] Fix | Delete
'next' => [
[70] Fix | Delete
'show' => 'always'
[71] Fix | Delete
],
[72] Fix | Delete
'last' => [
[73] Fix | Delete
'show' => 'always',
[74] Fix | Delete
'attributes' => ['class' => 'next']
[75] Fix | Delete
]
[76] Fix | Delete
],
[77] Fix | Delete
'params' => []
[78] Fix | Delete
]);
[79] Fix | Delete
// Set pagination settings
[80] Fix | Delete
Configure::set('Blesta.pagination_client', [
[81] Fix | Delete
'show' => 'if_needed',
[82] Fix | Delete
'total_results' => 0,
[83] Fix | Delete
'pages_to_show' => 5,
[84] Fix | Delete
'results_per_page' => Configure::get('Blesta.results_per_page'),
[85] Fix | Delete
'uri' => WEBDIR,
[86] Fix | Delete
'uri_labels' => [
[87] Fix | Delete
'page' => 'p',
[88] Fix | Delete
'per_page' => 'pp'
[89] Fix | Delete
],
[90] Fix | Delete
'navigation' => [
[91] Fix | Delete
'surround' => [
[92] Fix | Delete
'attributes' => [
[93] Fix | Delete
'class' => 'pagination pagination-sm'
[94] Fix | Delete
]
[95] Fix | Delete
],
[96] Fix | Delete
'current' => [
[97] Fix | Delete
'link' => true,
[98] Fix | Delete
'attributes' => ['class' => 'page-item active']
[99] Fix | Delete
],
[100] Fix | Delete
'first' => [
[101] Fix | Delete
'show' => 'always',
[102] Fix | Delete
'attributes' => ['class' => 'page-item']
[103] Fix | Delete
],
[104] Fix | Delete
'prev' => [
[105] Fix | Delete
'show' => 'always',
[106] Fix | Delete
'attributes' => ['class' => 'page-item']
[107] Fix | Delete
],
[108] Fix | Delete
'next' => [
[109] Fix | Delete
'show' => 'always',
[110] Fix | Delete
'attributes' => ['class' => 'page-item']
[111] Fix | Delete
],
[112] Fix | Delete
'last' => [
[113] Fix | Delete
'show' => 'always',
[114] Fix | Delete
'attributes' => ['class' => 'page-item next']
[115] Fix | Delete
],
[116] Fix | Delete
'numerical' => [
[117] Fix | Delete
'attributes' => ['class' => 'page-item']
[118] Fix | Delete
]
[119] Fix | Delete
],
[120] Fix | Delete
'params' => []
[121] Fix | Delete
]);
[122] Fix | Delete
// Configurations to override on pagination to help enabled AJAX
[123] Fix | Delete
Configure::set('Blesta.pagination_ajax', [
[124] Fix | Delete
'merge_get' => false,
[125] Fix | Delete
'navigation' => [
[126] Fix | Delete
'current' => [
[127] Fix | Delete
'link_attributes' => ['class' => 'page-link ajax']
[128] Fix | Delete
],
[129] Fix | Delete
'first' => [
[130] Fix | Delete
'link_attributes' => ['class' => 'page-link ajax']
[131] Fix | Delete
],
[132] Fix | Delete
'prev' => [
[133] Fix | Delete
'link_attributes' => ['class' => 'page-link ajax']
[134] Fix | Delete
],
[135] Fix | Delete
'next' => [
[136] Fix | Delete
'link_attributes' => ['class' => 'page-link ajax']
[137] Fix | Delete
],
[138] Fix | Delete
'last' => [
[139] Fix | Delete
'link_attributes' => ['class' => 'page-link ajax']
[140] Fix | Delete
],
[141] Fix | Delete
'numerical' => [
[142] Fix | Delete
'link_attributes' => ['class' => 'page-link ajax']
[143] Fix | Delete
]
[144] Fix | Delete
]
[145] Fix | Delete
]);
[146] Fix | Delete
[147] Fix | Delete
////////////////////////////////////////////////////////////////////////////////
[148] Fix | Delete
// Cron
[149] Fix | Delete
////////////////////////////////////////////////////////////////////////////////
[150] Fix | Delete
// Sets the memory limit during cron execution, null will not override memory limit
[151] Fix | Delete
// Acceptable values are those allowed by init_set() for 'memory_limit' (e.g. "512M" = 512 MB)
[152] Fix | Delete
Configure::set('Blesta.cron_memory_limit', null);
[153] Fix | Delete
// The minimum time period (in minutes) after which a cron task may be rerun.
[154] Fix | Delete
// THIS SHOULD BE SET TO NO LESS THAN THE SMALLEST INTERVAL CONFIGURED FOR AUTOMATION TASKS IN BLESTA
[155] Fix | Delete
Configure::set('Blesta.cron_minimum_run_interval', 5);
[156] Fix | Delete
// The time period (in minutes) after which an unfinished cron task will be considered stalled and the cron task may
[157] Fix | Delete
// be run again
[158] Fix | Delete
Configure::set('Blesta.cron_task_restart_limit', 360);
[159] Fix | Delete
[160] Fix | Delete
////////////////////////////////////////////////////////////////////////////////
[161] Fix | Delete
// Session
[162] Fix | Delete
////////////////////////////////////////////////////////////////////////////////
[163] Fix | Delete
// Length of time (in seconds) that a session will be valid for
[164] Fix | Delete
Configure::set('Blesta.session_ttl', 1800); // 30 minutes
[165] Fix | Delete
// Length of time (in seconds) that a cookie will be valid for
[166] Fix | Delete
Configure::set('Blesta.cookie_ttl', 604800); // 7 days
[167] Fix | Delete
// Name to give the blesta session ID
[168] Fix | Delete
Configure::set('Blesta.session_name', 'blesta_sid');
[169] Fix | Delete
// Name to give the blesta cookie session ID
[170] Fix | Delete
Configure::set('Blesta.cookie_name', 'blesta_csid');
[171] Fix | Delete
[172] Fix | Delete
////////////////////////////////////////////////////////////////////////////////
[173] Fix | Delete
// Misc
[174] Fix | Delete
////////////////////////////////////////////////////////////////////////////////
[175] Fix | Delete
// Maximum number of js logic evaluations to make. This is to prevent an infinite loop.
[176] Fix | Delete
Configure::set('Blesta.max_config_option_logic_evaluations', 500);
[177] Fix | Delete
// Number of minutes between intervals of the fullcalendar time
[178] Fix | Delete
Configure::set('Blesta.calendar_time_interval', 15);
[179] Fix | Delete
// Number of sticky notes to show before viewing more
[180] Fix | Delete
Configure::set('Blesta.sticky_notes_to_show', 2);
[181] Fix | Delete
// Maximum number of sticky notes to show
[182] Fix | Delete
Configure::set('Blesta.sticky_notes_max', 10);
[183] Fix | Delete
// Maximum number of days to allow invoice days before renewal to be set
[184] Fix | Delete
Configure::set('Blesta.invoice_renewal_max_days', 60);
[185] Fix | Delete
// Maximum number of days to allow auto debit days before due date to be set
[186] Fix | Delete
Configure::set('Blesta.autodebit_before_due_max_days', 60);
[187] Fix | Delete
// Maximum number of days to allow services to be unpaid and overdue before suspension
[188] Fix | Delete
Configure::set('Blesta.suspend_services_after_due_max_days', 60);
[189] Fix | Delete
// Maximum number of days to allow payment notices/reminders to be set
[190] Fix | Delete
Configure::set('Blesta.payment_notices_max_days', 120);
[191] Fix | Delete
// Maximum number of days that a quotation is valid by default
[192] Fix | Delete
Configure::set('Blesta.quotation_valid_max_days', 60);
[193] Fix | Delete
// Number of days in the past to retain cron logs
[194] Fix | Delete
Configure::set('Blesta.cron_log_retention_days', 10);
[195] Fix | Delete
// Whether or not to delete account access logs according to the cron log retention policy
[196] Fix | Delete
Configure::set('Blesta.auto_delete_accountaccess_logs', false);
[197] Fix | Delete
// Whether or not to delete client setting logs according to the cron log retention policy
[198] Fix | Delete
Configure::set('Blesta.auto_delete_client_setting_logs', false);
[199] Fix | Delete
// Whether or not to delete contact logs according to the cron log retention policy
[200] Fix | Delete
Configure::set('Blesta.auto_delete_contact_logs', false);
[201] Fix | Delete
// Whether or not to delete email logs according to the cron log retention policy
[202] Fix | Delete
Configure::set('Blesta.auto_delete_email_logs', false);
[203] Fix | Delete
// Whether or not to delete messenger logs according to the cron log retention policy
[204] Fix | Delete
Configure::set('Blesta.auto_delete_messenger_logs', false);
[205] Fix | Delete
// Whether or not to delete gateway logs according to the cron log retention policy
[206] Fix | Delete
Configure::set('Blesta.auto_delete_gateway_logs', true);
[207] Fix | Delete
// Whether or not to delete module logs according to the cron log retention policy
[208] Fix | Delete
Configure::set('Blesta.auto_delete_module_logs', true);
[209] Fix | Delete
// Whether or not to delete service logs according to the cron log retention policy
[210] Fix | Delete
Configure::set('Blesta.auto_delete_service_logs', false);
[211] Fix | Delete
// Whether or not to delete transaction logs according to the cron log retention policy
[212] Fix | Delete
Configure::set('Blesta.auto_delete_transaction_logs', false);
[213] Fix | Delete
// Whether or not to delete user logs according to the cron log retention policy
[214] Fix | Delete
Configure::set('Blesta.auto_delete_user_logs', false);
[215] Fix | Delete
// Length of time that a cached page will be served before being built again
[216] Fix | Delete
Configure::set('Blesta.cache_length', '2 hours');
[217] Fix | Delete
// Length of time that a reset password request will be valid for
[218] Fix | Delete
Configure::set('Blesta.reset_password_ttl', '4 hours');
[219] Fix | Delete
// The URL that gateway callback requests should be directed to
[220] Fix | Delete
Configure::set('Blesta.gw_callback_url', 'http' . (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off' ? 's' : '') . '://' . (isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : 'localhost') . WEBDIR . 'callback/gw/');
[221] Fix | Delete
Configure::set('Blesta.mgw_callback_url', 'http' . (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off' ? 's' : '') . '://' . (isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : 'localhost') . WEBDIR . 'callback/mgw/');
[222] Fix | Delete
// The URL to the marketplace
[223] Fix | Delete
Configure::set('Blesta.marketplace_url', 'http://marketplace.blesta.com/');
[224] Fix | Delete
// Enables/Disables demo mode. Demo mode disables certain features
[225] Fix | Delete
Configure::set('Blesta.demo_mode', false);
[226] Fix | Delete
// Default password reset value. Set to true for improved security, false for more accurate error reporting
[227] Fix | Delete
Configure::set('Blesta.default_password_reset_value', true);
[228] Fix | Delete
// Default forgot username value. Set to true for improved security, false for more accurate error reporting
[229] Fix | Delete
Configure::set('Blesta.default_forgot_username_value', true);
[230] Fix | Delete
// Sets parser options DO NOT MODIFY
[231] Fix | Delete
Configure::set('Blesta.parser_options', [
[232] Fix | Delete
'VARIABLE_START' => '{',
[233] Fix | Delete
'VARIABLE_END' => '}',
[234] Fix | Delete
]);
[235] Fix | Delete
// Sets various tags used for ID code replacement values throughout the app DO NOT MODIFY
[236] Fix | Delete
Configure::set('Blesta.replacement_keys', [
[237] Fix | Delete
'clients' => ['ID_VALUE_TAG' => '{num}'],
[238] Fix | Delete
'invoices' => ['ID_VALUE_TAG' => '{num}'],
[239] Fix | Delete
'quotations' => ['ID_VALUE_TAG' => '{num}'],
[240] Fix | Delete
'packages' => ['ID_VALUE_TAG' => '{num}'],
[241] Fix | Delete
'services' => ['ID_VALUE_TAG' => '{num}']
[242] Fix | Delete
]);
[243] Fix | Delete
// When attempting to sort by an "id_code" pseudo field, will instead sort by the given array
[244] Fix | Delete
// of values in the given order. If null, will sort "id_code" as a string by itself
[245] Fix | Delete
Configure::set('Blesta.id_code_sort_mode', ['id_format', 'id_value']);
[246] Fix | Delete
// The default view template for the admin interface
[247] Fix | Delete
Configure::set('Blesta.default_admin_view_template', 'default');
[248] Fix | Delete
// The default view template for the client interface
[249] Fix | Delete
Configure::set('Blesta.default_client_view_template', 'bootstrap');
[250] Fix | Delete
[251] Fix | Delete
////////////////////////////////////////////////////////////////////////////////
[252] Fix | Delete
// Email
[253] Fix | Delete
////////////////////////////////////////////////////////////////////////////////
[254] Fix | Delete
// The maximum number of messages to send before disconnecting/reconnecting to the mail server
[255] Fix | Delete
Configure::set('Blesta.email_messages_per_connection', 100);
[256] Fix | Delete
// The number of seconds to wait before reconnecting to the mail server
[257] Fix | Delete
Configure::set('Blesta.email_reconnect_sleep', 5);
[258] Fix | Delete
[259] Fix | Delete
////////////////////////////////////////////////////////////////////////////////
[260] Fix | Delete
// Encryption
[261] Fix | Delete
////////////////////////////////////////////////////////////////////////////////
[262] Fix | Delete
// Work-factor for password hashing algorithms (between 4 and 31)
[263] Fix | Delete
Configure::set('Blesta.hash_work', 12);
[264] Fix | Delete
// The maximum number of failed login attempts to permit from a given IP per hour
[265] Fix | Delete
Configure::set('Blesta.max_failed_login_attempts', 10);
[266] Fix | Delete
// Set to true to enable support for legacy passwords (plain md5). Set to false for improved security
[267] Fix | Delete
Configure::set('Blesta.auth_legacy_passwords', false);
[268] Fix | Delete
// The legacy password algorithm to use if legacy passwords are enabled
[269] Fix | Delete
Configure::set('Blesta.auth_legacy_passwords_algo', 'md5');
[270] Fix | Delete
// Enable/disable automatic CSRF token verification
[271] Fix | Delete
Configure::set('Blesta.verify_csrf_token', true);
[272] Fix | Delete
// Enable/disable curl SSL verification
[273] Fix | Delete
Configure::set('Blesta.curl_verify_ssl', false);
[274] Fix | Delete
// Bypasses automatic CSRF checking for a set of controllers and actions (eg. array('client_login::index'))
[275] Fix | Delete
// CSRF checking is a security feature, BE SURE YOU KNOW WHAT YOU ARE DOING BEFORE SETTING THIS VALUE
[276] Fix | Delete
Configure::set("Blesta.csrf_bypass", ['admin_login::setup']);
[277] Fix | Delete
// The value used to generate the 256-bit AES key using HMAC SHA-256
[278] Fix | Delete
// NEVER MODIFY THIS VALUE OR ALL ENCRYPTED DATA WILL BE LOST!
[279] Fix | Delete
Configure::set('Blesta.system_key', '{system_key}');
[280] Fix | Delete
[281] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function