Index: trunk/kernel/include/item.php =================================================================== diff -u -N -r713 -r805 --- trunk/kernel/include/item.php (.../item.php) (revision 713) +++ trunk/kernel/include/item.php (.../item.php) (revision 805) @@ -166,10 +166,20 @@ { if(!$this->CustomLoaded) $this->LoadCustomFields(); + $fieldname=strtolower($fieldname); + foreach($this->CustomFields as $k=>$v) + if(strtolower($k)==$fieldname) + return $v; + return $default; + if(isset($this->CustomFields[$fieldname])) { $ret = $this->CustomFields[$fieldname]; } + elseif(isset($this->CustomFields[$fieldname=strtolower($fieldname)])) + { + $ret = $this->CustomFields[$fieldname]; + } else $ret = $default; return $ret; Index: trunk/kernel/parser.php =================================================================== diff -u -N -r761 -r805 --- trunk/kernel/parser.php (.../parser.php) (revision 761) +++ trunk/kernel/parser.php (.../parser.php) (revision 805) @@ -365,16 +365,16 @@ $html_attribs = ExtraAttributes($attribs); $form = $attribs["_form"]; - //$field = strtolower($attribs["_field"]); - $field = $attribs["_field"]; + $field = strtolower($attribs["_field"]); +// $field = $attribs["_field"]; if(isset($_POST[$field]) && $attribs['_forgetvalue'] != 1) { $value = inp_htmlize($_POST[$field],1); } else { if ($attribs['_forgetvalue'] != 1) { - $value = $FormValues[$form][$field]; + $value = inp_htmlize($FormValues[$form][$field]); } } //echo $form.".".$field."=".$value." = ".$attribs['_forgetvalue']."
\n"; @@ -692,9 +692,9 @@ $FormValues[$FormName]["country"] = $u->Get("Country"); // $FormValues[$FormName]["dob"] = LangDate($u->Get("dob")); - $FormValues[$FormName]["dob_day"] = date("d", $u->Get("dob")); - $FormValues[$FormName]["dob_year"] = date("Y", $u->Get("dob")); - $FormValues[$FormName]["dob_month"] = date("m", $u->Get("dob")); + $FormValues[$FormName]["dob_day"] = adodb_date("d", $u->Get("dob")); + $FormValues[$FormName]["dob_year"] = adodb_date("Y", $u->Get("dob")); + $FormValues[$FormName]["dob_month"] = adodb_date("m", $u->Get("dob")); $u->LoadCustomFields(); if(is_array($u->CustomFields->Items))