Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../var/softacul.../cotonti
File: config.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Configuration
[2] Fix | Delete
*
[3] Fix | Delete
* @package Cotonti
[4] Fix | Delete
* @copyright (c) Cotonti Team
[5] Fix | Delete
* @license https://github.com/Cotonti/Cotonti/blob/master/License.txt
[6] Fix | Delete
*/
[7] Fix | Delete
[8] Fix | Delete
defined('COT_CODE') or die('Wrong URL');
[9] Fix | Delete
[10] Fix | Delete
// ========================
[11] Fix | Delete
// MySQL database parameters. Change to fit your host.
[12] Fix | Delete
// ========================
[13] Fix | Delete
$cfg['mysqlhost'] = '[[softdbhost]]'; // Database host URL
[14] Fix | Delete
$cfg['mysqlport'] = ''; // Database port, if non-default
[15] Fix | Delete
$cfg['mysqluser'] = '[[softdbuser]]'; // Database user
[16] Fix | Delete
$cfg['mysqlpassword'] = '[[softdbpass]]'; // Database password
[17] Fix | Delete
$cfg['mysqldb'] = '[[softdb]]'; // Database name
[18] Fix | Delete
// MySQL database charset and collate. Very useful when MySQL server uses different charset rather than site
[19] Fix | Delete
// See the list of valid values here: https://dev.mysql.com/doc/refman/9.0/en/charset-charsets.html
[20] Fix | Delete
$cfg['mysqlcharset'] = 'utf8mb4';
[21] Fix | Delete
$cfg['mysqlcollate'] = 'utf8mb4_unicode_ci';
[22] Fix | Delete
[23] Fix | Delete
// ========================
[24] Fix | Delete
// Main site URL without trailing slash.
[25] Fix | Delete
// ========================
[26] Fix | Delete
$cfg['mainurl'] = '[[softurl]]';
[27] Fix | Delete
[28] Fix | Delete
// Set to TRUE if 'https' is not recognized automatically and it should always use https
[29] Fix | Delete
$cfg['force_https'] = false;
[30] Fix | Delete
[31] Fix | Delete
$cfg['site_id'] = '[[site_id]]';
[32] Fix | Delete
$cfg['secret_key'] = '[[secret_key]]';
[33] Fix | Delete
$cfg['multihost'] = false; // Allow multiple host names for this site
[34] Fix | Delete
[35] Fix | Delete
/**
[36] Fix | Delete
* Email address for the 'From' header for cot_mail() function
[37] Fix | Delete
* Default value is 'mail_sender@domain', where domain is taken from $cfg['mainurl']
[38] Fix | Delete
* Uncomment it if you need to set a custom 'From' email address
[39] Fix | Delete
* Note: 'Reply-To' address can be set here: https://your-domain.com/admin/config?n=edit&o=core&p=main
[40] Fix | Delete
*/
[41] Fix | Delete
// $cfg['email_from_address'] = 'mail_sender@[[domhost]]';
[42] Fix | Delete
[43] Fix | Delete
// ========================
[44] Fix | Delete
// Default theme, color scheme and default language
[45] Fix | Delete
// ========================
[46] Fix | Delete
$cfg['defaulttheme'] = 'nemesis'; // Default theme code. Be SURE it's pointing to a valid folder in ./themes/... !!
[47] Fix | Delete
$cfg['defaultscheme'] = 'default'; // Default color scheme, only name, not like themename.css. Be SURE it's pointing to a valid folder in ./themes/defaulttheme/... !!
[48] Fix | Delete
$cfg['defaulticons'] = 'default'; // Default icon pack
[49] Fix | Delete
$cfg['defaultlang'] = 'en'; // Default language code
[50] Fix | Delete
$cfg['enablecustomhf'] = false; // To enable header.$location.tpl and footer.$location.tpl
[51] Fix | Delete
$cfg['admintheme'] = ''; // Put custom administration theme name here
[52] Fix | Delete
[53] Fix | Delete
// ========================
[54] Fix | Delete
// Performance-related settings
[55] Fix | Delete
// ========================
[56] Fix | Delete
$cfg['cache'] = false; // Enable data caching
[57] Fix | Delete
$cfg['cache_drv'] = ''; // Cache driver name to use on your server (if available)
[58] Fix | Delete
// Possible values: APC, Memcache, Xcache
[59] Fix | Delete
$cfg['cache_drv_host'] = '[[softdbhost]]';
[60] Fix | Delete
$cfg['cache_drv_port'] = '';
[61] Fix | Delete
[62] Fix | Delete
$cfg['xtpl_cache'] = false; // Enable XTemplate structure disk cache. Should be TRUE on production sites
[63] Fix | Delete
$cfg['html_cleanup'] = false; // Wipe extra spaces and breaks from HTML to get smaller footprint
[64] Fix | Delete
[65] Fix | Delete
$cfg['cache_index'] = false; // Static site page cache for guests on index
[66] Fix | Delete
$cfg['cache_page'] = false; // Static site page cache for guests on pages and page lists
[67] Fix | Delete
$cfg['cache_forums'] = false; // Static site page cache for guests on forums
[68] Fix | Delete
[69] Fix | Delete
// ========================
[70] Fix | Delete
// More settings
[71] Fix | Delete
// Should work fine in most of cases.
[72] Fix | Delete
// If you don't know, don't change.
[73] Fix | Delete
// TRUE = enabled / FALSE = disabled
[74] Fix | Delete
// ========================
[75] Fix | Delete
[76] Fix | Delete
$cfg['check_updates'] = true; // Automatically check for updates, set it TRUE to enable
[77] Fix | Delete
[78] Fix | Delete
$cfg['display_errors'] = true; // Display error messages. Switch it FALSE on production sites
[79] Fix | Delete
[80] Fix | Delete
$cfg['redirmode'] = false; //Set to TRUE if you cannot successfully log in (IIS servers)
[81] Fix | Delete
$cfg['xmlclient'] = false; // For testing-purposes only, else keep it off.
[82] Fix | Delete
$cfg['ipcheck'] = false; // Will kill the logged-in session if the IP has changed
[83] Fix | Delete
$cfg['authcache'] = true; // Auth cache in SQL tables. Set it FALSE if your huge database
[84] Fix | Delete
// goes down because of that
[85] Fix | Delete
$cfg['customfuncs'] = false; // Includes file named functions.custom.php
[86] Fix | Delete
$cfg['new_install'] = false; // This setting denotes a new install step and redirects you to the install page
[87] Fix | Delete
// If you already have Cotonti installed then set it to FALSE or remove it
[88] Fix | Delete
$cfg['useremailduplicate'] = false; // Allow users to register new accounts with duplicate email.
[89] Fix | Delete
// DO NOT ENABLE this setting unless you know for sure that you need it or it may
[90] Fix | Delete
// make your database inconsistent.
[91] Fix | Delete
/**
[92] Fix | Delete
* Turn on/off hook (event) handler file. 'On' by default.
[93] Fix | Delete
* Uncomment it on production site to improve performance a bit
[94] Fix | Delete
*/
[95] Fix | Delete
// $cfg['checkHookFileExistence'] = false;
[96] Fix | Delete
[97] Fix | Delete
// ========================
[98] Fix | Delete
// Directory paths
[99] Fix | Delete
// Set it to custom if you want to share
[100] Fix | Delete
// folders among different hosts.
[101] Fix | Delete
// ========================
[102] Fix | Delete
$cfg['avatars_dir'] = 'datas/avatars';
[103] Fix | Delete
$cfg['cache_dir'] = 'datas/cache';
[104] Fix | Delete
$cfg['lang_dir'] = 'lang';
[105] Fix | Delete
$cfg['modules_dir'] = 'modules';
[106] Fix | Delete
$cfg['pfs_dir'] = 'datas/users';
[107] Fix | Delete
$cfg['photos_dir'] = 'datas/photos';
[108] Fix | Delete
$cfg['plugins_dir'] = 'plugins';
[109] Fix | Delete
$cfg['system_dir'] = 'system';
[110] Fix | Delete
$cfg['thumbs_dir'] = 'datas/thumbs';
[111] Fix | Delete
$cfg['themes_dir'] = 'themes';
[112] Fix | Delete
$cfg['extrafield_files_dir'] = 'datas/exflds';
[113] Fix | Delete
$cfg['icons_dir'] = 'images/icons';
[114] Fix | Delete
[115] Fix | Delete
// ========================
[116] Fix | Delete
// Directory and file permissions for uploaded files
[117] Fix | Delete
// and files created with scripts.
[118] Fix | Delete
// You can set it to values which deliver highest
[119] Fix | Delete
// security and comfort on your host.
[120] Fix | Delete
// ========================
[121] Fix | Delete
$cfg['dir_perms'] = 0775;
[122] Fix | Delete
$cfg['file_perms'] = 0664;
[123] Fix | Delete
[124] Fix | Delete
// ========================
[125] Fix | Delete
// Important constant switches
[126] Fix | Delete
// ========================
[127] Fix | Delete
[128] Fix | Delete
/**
[129] Fix | Delete
* Defines whether to display debugging information on critical errors.
[130] Fix | Delete
* Set it TRUE when you experiment with something new.
[131] Fix | Delete
* Set it FALSE on production sites.
[132] Fix | Delete
*/
[133] Fix | Delete
$cfg['debug_mode'] = false;
[134] Fix | Delete
[135] Fix | Delete
/**
[136] Fix | Delete
* Path to debug log files used by functions which dump debug data into it.
[137] Fix | Delete
* This file MUST NOT be available to strangers (e.g. via HTTP) or it can
[138] Fix | Delete
* compromise your website security. Protect it with .htaccess or use some
[139] Fix | Delete
* path accessible to you only via FTP.
[140] Fix | Delete
*/
[141] Fix | Delete
$cfg['debug_logpath'] = 'datas/tmp';
[142] Fix | Delete
[143] Fix | Delete
/**
[144] Fix | Delete
* The shield is disabled for administrators by default. But if you are testing
[145] Fix | Delete
* it with your admin account, you can enable it by setting this TRUE.
[146] Fix | Delete
*/
[147] Fix | Delete
$cfg['shield_force'] = false;
[148] Fix | Delete
[149] Fix | Delete
/**
[150] Fix | Delete
* Turn on/off deprecated features that has not yet been removed.
[151] Fix | Delete
* In particular, it turns on/off deprecated template engine tags for ease of development.
[152] Fix | Delete
*/
[153] Fix | Delete
$cfg['legacyMode'] = false;
[154] Fix | Delete
[155] Fix | Delete
// ========================
[156] Fix | Delete
// Names for MySQL tables
[157] Fix | Delete
// Only change if you'd like to
[158] Fix | Delete
// make 2 separated installs in the same database.
[159] Fix | Delete
// or you'd like to share some tables between 2 sites.
[160] Fix | Delete
// Else do not change.
[161] Fix | Delete
// ========================
[162] Fix | Delete
$db_x = '[[dbprefix]]'; // Default: cot_, prefix for extra fields' table(s)
[163] Fix | Delete
[164] Fix | Delete
// Examples:
[165] Fix | Delete
// $db_auth = 'my_custom_auth';
[166] Fix | Delete
// $db_cache = 'my_custom_cache';
[167] Fix | Delete
[168] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function