+----------------------------------------------------------------------------+
| Licensed to CiviCRM under the Academic Free License version 3.0 |
| |
+----------------------------------------------------------------------------+
| Licensed to CiviCRM under the Academic Free License version 3.0 |
| |
- * @return void
- **********************************************************/ function __construct($mode, &$paymentProcessor) {
+ * @param $paymentProcessor
+ *
+ * @return \CRM_Core_Payment_Elavon *******************************************************
+ */
+ function __construct($mode, &$paymentProcessor) {
*/
static function &singleton($mode, &$paymentProcessor) {
$processorName = $paymentProcessor['name'];
*/
static function &singleton($mode, &$paymentProcessor) {
$processorName = $paymentProcessor['name'];
// set this for debugging -look for output in apache error log
//curl_setopt ($ch,CURLOPT_VERBOSE,1 );
// ensures any Location headers are followed
// set this for debugging -look for output in apache error log
//curl_setopt ($ch,CURLOPT_VERBOSE,1 );
// ensures any Location headers are followed
- curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
+ if (ini_get('open_basedir') == '' && ini_get('safe_mode') == 'Off') {
+ curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
+ }
* NOTE: Called by Events and Contribute to check config params are set prior to trying
* register any credit card details
*
* NOTE: Called by Events and Contribute to check config params are set prior to trying
* register any credit card details
*
function tidyStringforXML($value, $fieldlength) {
// the xml is posted to a url so must not contain spaces etc. It also needs to be cut off at a certain
// length to match the processor's field length. The cut needs to be made after spaces etc are
function tidyStringforXML($value, $fieldlength) {
// the xml is posted to a url so must not contain spaces etc. It also needs to be cut off at a certain
// length to match the processor's field length. The cut needs to be made after spaces etc are