"; // Set api-key for mail subscribe/unsubscribe user // Set to NULL/FALSE to disable the feature $mail_subscription_user_key = NULL; // CAREFUL: only enable temporarily on debug systems. // Will log all queries to given PUBLIC file // Also: use some random name (not this one!) $debug = NULL; //'LUXFbiaoz4dVWuAHEcuBAe7YQ4YP96rN4MCDmKj89p.log'; // Local network interface or IP to be used for the relayed query // This is usefull in some VPN configurations (see CURLOPT_INTERFACE) $target_interface = NULL; /**************************************************************** ** File Caching Options ** ****************************************************************/ // API and SITE keys $api_key_map = array(); $sys_key_map = array(); if (file_exists(dirname(__FILE__)."/secrets.php")) { // keys can also be stored in 'secrets.php' require "secrets.php"; } // define file cache options, see http://pear.php.net/manual/en/package.caching.cache-lite.cache-lite.cache-lite.php $file_cache_options = array( 'cacheDir' => 'file_cache/', 'lifeTime' => 86400 ); // define regex patterns that shoud NOT be accepted $file_cache_exclude = array(); // if set, cached file must match at least one of these regex patterns $file_cache_include = array( //'#.+[.](png|jpe?g|gif)#i' // only media files ); /**************************************************************** ** REST API OPTIONS ** ****************************************************************/ // if you enable this, the system will also try to // parse the 'json' parameter, which holds additional // input data according to the CiviCRM REST API specs $rest_evaluate_json_parameter = FALSE; // whitelisting is done per IP address ($_SERVER['REMOTE_ADDR']) with a 'all' for the generic stuff that applies to all IP addresses // - if a request comes in and the IP is not a key in the array, the whitelisted in 'all' are used // - if a request comes in and the IP is indeed a key in the array, the whitelisted in the IP are checked first. If nothing is // found ,the 'all' ones are checked next. $rest_allowed_actions = array( 'all' => array( 'Contact' => array( 'getsingle' => array( 'email' => 'string', ), ), ), '123.45.678.1' => array( 'Contact' => array( 'getsingle' => array( 'first_name' => 'string', 'last_name' => 'string', // the following means *all* remaining parameters will be // added and sanitised as 'string'. Better leave it out // if you know which parameters you expect '*' => 'string', ), ), ), ); /**************************************************************** ** ALLOWED CALLBACKS ** ****************************************************************/ // defines the callbacks that are to be forwarded to the target system // make sure $callbacks_enabled is TRUE for this to work $callbacks = array( 'sparkpost_example' => array( 'secret' => '85c573b980c3c248f083f9ca6a175659', 'request_method' => 'POST', // single value or array 'content_type' => 'application/json', 'target_path' => 'civicrm/sparkpost/callback' ) );