} // END - foreach
}
+/**
+ * Parses a string into a US formated float variable, taken from user comments
+ * from PHP documentation website.
+ *
+ * @param $floatString A string holding a float expression
+ * @return $float Corresponding float variable
+ * @author chris<at>georgakopoulos<dot>com
+ * @link http://de.php.net/manual/en/function.floatval.php#92563
+ */
+function parseFloat ($floatString){
+ $LocaleInfo = localeconv();
+ $floatString = str_replace($LocaleInfo['mon_thousands_sep'] , '', $floatString);
+ $floatString = str_replace($LocaleInfo['mon_decimal_point'] , '.', $floatString);
+ return floatval($floatString);
+}
+
+//-----------------------------------------------------------------------------
+// Configuration wrapper
+//-----------------------------------------------------------------------------
+
// Getter for 'check_double_email'
function getCheckDoubleEmail () {
// Is the cache entry set?
return $GLOBALS[__FUNCTION__];
}
-// Checks wether 'check_double_email' is "YES"
+// Checks wether 'check_double_email' is 'Y'
function isCheckDoubleEmailEnabled () {
// Is the cache entry set?
if (!isset($GLOBALS[__FUNCTION__])) {