<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
static private $_singleton = NULL;
/**
- * singleton function used to manage this object
+ * Singleton function used to manage this object
*
* @param string the key to permit session scope's
*
return self::$_singleton;
}
+ /**
+ *
+ */
function __construct() {}
/**
$error = NULL;
$config = CRM_Core_Config::singleton();
$useSSL = FALSE;
- require_once 'packages/recaptcha/recaptchalib.php';
+ if ( !function_exists( 'recaptcha_get_html' ) ) {
+ require_once 'packages/recaptcha/recaptchalib.php';
+ }
// See if we are using SSL
if (CRM_Utils_System::isSSL()) {
);
}
+ /**
+ * @param $value
+ * @param CRM_Core_Form $form
+ *
+ * @return mixed
+ */
static function validate($value, $form) {
$config = CRM_Core_Config::singleton();