"; exit(); } if (!defined('CIVICRM_CLEANURL')) { // check for Drupal clean URLs if ( function_exists('variable_get') && variable_get('clean_url', '0') != '0') { define('CIVICRM_CLEANURL', 1 ); } elseif ( function_exists('config_get') && config_get('system.core', 'clean_url') != 0) { define('CIVICRM_CLEANURL', 1 ); } // check for WordPress clean URLs elseif( function_exists('get_option') && get_option('permalink_structure') != '' ) { define('CIVICRM_CLEANURL', 1 ); } else { define('CIVICRM_CLEANURL', 0 ); } } // force PHP to auto-detect Mac line endings if (version_compare(PHP_VERSION, '8.1') < 0) { 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'); } // Optimizations from https://docs.civicrm.org/sysadmin/en/latest/setup/optimizations/ define('CIVICRM_TEMPLATE_COMPILE_CHECK', FALSE); require_once 'CRM/Core/ClassLoader.php'; CRM_Core_ClassLoader::singleton()->register();