Resource URLs) // $civicrm_setting['URL Preferences']['imageUploadURL'] = 'http://example.com/example-image-upload-url'; // Override the Custom CiviCRM CSS URL // $civicrm_setting['URL Preferences']['customCSSURL'] = 'http://example.com/example-css-url' ; // Override the extensions resource URL // $civicrm_setting['URL Preferences']['extensionsURL'] = 'http://example.com/pathtoextensiondir' // Disable display of Community Messages on home dashboard // $civicrm_setting['CiviCRM Preferences']['communityMessagesUrl'] = false; // Disable automatic download / installation of extensions // $civicrm_setting['Extension Preferences']['ext_repo_url'] = false; // set triggers to be managed offline per CRM-18212 // $civicrm_setting['CiviCRM Preferences']['logging_no_trigger_permission'] = 1; // Override the CMS root path defined by cmsRootPath. // define('CIVICRM_CMSDIR', '/path/to/install/root/'); // Opt-out of announcements by the CiviCRM core team for releases, paid services, events, etc. Separate each preferred optout category with a comma: // "offers": paid service offers // "asks": requests for donations or membership signup/renewal to CiviCRM // "releases": major release announcements // "events": announcements of local/national upcoming events // $civicrm_setting['CiviCRM Preferences']['communityMessagesUrl'] = 'https://alert.civicrm.org/alert?prot=1&ver={ver}&uf={uf}&sid={sid}&lang={lang}&co={co}&optout=offers,asks'; /** * If you are using any CiviCRM script in the bin directory that * requires authentication, then you also need to set this key. * We recommend using a 16-32 bit alphanumeric/punctuation key. * More info at http://wiki.civicrm.org/confluence/display/CRMDOC/Command-line+Script+Configuration */ if (!defined('CIVICRM_SITE_KEY')) { define( 'CIVICRM_SITE_KEY', '%%siteKey%%'); } /** * Enable this constant, if you want to send your email through the smarty * templating engine(allows you to do conditional and more complex logic) * */ if (!defined('CIVICRM_MAIL_SMARTY')) { define( 'CIVICRM_MAIL_SMARTY', 0 ); } /** * This setting logs all emails to a file. Useful for debugging any mail (or civimail) issues. * Enabling this setting will not send any email, ensure this is commented out in production * The CIVICRM_MAIL_LOG is a debug option which disables MTA (mail transport agent) interaction. * You must disable CIVICRM_MAIL_LOG before CiviCRM will talk to your MTA. */ // if (!defined('CIVICRM_MAIL_LOG')) { // define( 'CIVICRM_MAIL_LOG', '%%templateCompileDir%%/mail.log'); // } if (!defined('CIVICRM_DOMAIN_ID')) { define( 'CIVICRM_DOMAIN_ID', 1); } /** * Setting to define the environment in which this CiviCRM instance is running. * Note the setting here must be value from the option group 'Environment', * (see Administration > System Settings > Option Groups, Options beside Environment) * which by default has three option values: 'Production', 'Staging', 'Development'. * NB: defining a value for environment here prevents it from being set * via the browser. */ // $civicrm_setting['domain']['environment'] = 'Production'; /** * Settings to enable external caching using a cache server. This is an * advanced feature, and you should read and understand the documentation * before you turn it on. We cannot store these settings in the DB since the * config could potentially also be cached and we need to avoid an infinite * recursion scenario. * * @see http://civicrm.org/node/126 */ /** * If you have a cache server configured and want CiviCRM to make use of it, * set the following constant. You should only set this once you have your cache * server up and working, because CiviCRM will not start up if your server is * unavailable on the host and port that you specify. By default CiviCRM will use * an in-memory array cache * * To use the php extension memcache use a value of 'Memcache' * To use the php extension memcached use a value of 'Memcached' * To use the php extension apc use a value of 'APCcache' * To use the php extension redis use a value of 'Redis' * To not use any caching (not recommended), use a value of 'NoCache' * */ if (!defined('CIVICRM_DB_CACHE_CLASS')) { define('CIVICRM_DB_CACHE_CLASS', 'ArrayCache'); } /** * Change this to the IP address of your cache server if it is not on the * same machine (Unix). */ if (!defined('CIVICRM_DB_CACHE_HOST')) { define('CIVICRM_DB_CACHE_HOST', 'localhost'); } /** * Change this if you are not using the standard port for your cache server. * * The standard port for Memcache & APCCache is 11211. For Redis it is 6379. */ if (!defined('CIVICRM_DB_CACHE_PORT')) { define('CIVICRM_DB_CACHE_PORT', 11211 ); } /** * Change this if your cache server requires a password (currently only works * with Redis) */ if (!defined('CIVICRM_DB_CACHE_PASSWORD')) { define('CIVICRM_DB_CACHE_PASSWORD', '' ); } /** * Items in cache will expire after the number of seconds specified here. * Default value is 3600 (i.e., after an hour) */ if (!defined('CIVICRM_DB_CACHE_TIMEOUT')) { define('CIVICRM_DB_CACHE_TIMEOUT', 3600 ); } /** * If you are sharing the same cache instance with more than one CiviCRM * database, you will need to set a different value for the following argument * so that each copy of CiviCRM will not interfere with other copies. If you only * have one copy of CiviCRM, you may leave this set to ''. A good value for * this if you have two servers might be 'server1_' for the first server, and * 'server2_' for the second server. */ if (!defined('CIVICRM_DB_CACHE_PREFIX')) { define('CIVICRM_DB_CACHE_PREFIX', ''); } /** * If you have multilingual site and you are using the "inherit CMS language" * configuration option, but wish to, for example, use fr_CA instead of the * default fr_FR (for French), set one or more of the constants below to an * appropriate regional value. */ // define('CIVICRM_LANGUAGE_MAPPING_FR', 'fr_CA'); // define('CIVICRM_LANGUAGE_MAPPING_EN', 'en_CA'); // define('CIVICRM_LANGUAGE_MAPPING_ES', 'es_MX'); // define('CIVICRM_LANGUAGE_MAPPING_PT', 'pt_BR'); // define('CIVICRM_LANGUAGE_MAPPING_ZH', 'zh_TW'); /** * Native gettext improves performance of localized CiviCRM installations * significantly. However, your host must enable the locale (language). * On most GNU/Linux, Unix or MacOSX systems, you may view them with * the command line by typing: "locale -a". * * On Debian or Ubuntu, you may reconfigure locales with: * # dpkg-reconfigure locales * * For more information: * http://wiki.civicrm.org/confluence/x/YABFBQ */ // if (!defined('CIVICRM_GETTEXT_NATIVE')) { // define('CIVICRM_GETTEXT_NATIVE', 1); // } /** * Configure MySQL to throw more errors when encountering unusual SQL expressions. * * If undefined, the value is determined automatically. For CiviCRM tarballs, it defaults * to FALSE; for SVN checkouts, it defaults to TRUE. */ // if (!defined('CIVICRM_MYSQL_STRICT')) { // define('CIVICRM_MYSQL_STRICT', TRUE ); // } if (CIVICRM_UF === 'UnitTests') { if (!defined('CIVICRM_CONTAINER_CACHE')) define('CIVICRM_CONTAINER_CACHE', 'auto'); if (!defined('CIVICRM_MYSQL_STRICT')) define('CIVICRM_MYSQL_STRICT', true); } /** * * Do not change anything below this line. Keep as is * */ $include_path = '.' . PATH_SEPARATOR . $civicrm_root . PATH_SEPARATOR . $civicrm_root . DIRECTORY_SEPARATOR . 'packages' . PATH_SEPARATOR . get_include_path( ); if ( set_include_path( $include_path ) === false ) { echo "Could not set the include path

"; exit( ); } if (!defined('CIVICRM_CLEANURL')) { if ( function_exists('variable_get') && variable_get('clean_url', '0') != '0') { define('CIVICRM_CLEANURL', 1 ); } else { define('CIVICRM_CLEANURL', 0); } } // force PHP to auto-detect Mac line endings ini_set('auto_detect_line_endings', '1'); // make sure the memory_limit is at least 64 MB $memLimitString = trim(ini_get('memory_limit')); $memLimitUnit = strtolower(substr($memLimitString, -1)); $memLimit = (int) $memLimitString; switch ($memLimitUnit) { case 'g': $memLimit *= 1024; case 'm': $memLimit *= 1024; case 'k': $memLimit *= 1024; } if ($memLimit >= 0 and $memLimit < 134217728) { ini_set('memory_limit', '128M'); } require_once 'CRM/Core/ClassLoader.php'; CRM_Core_ClassLoader::singleton()->register();