+ \r
+ if(isset($_REQUEST['formaction']) && $_REQUEST['formaction']=='updatetrust')\r
+ {\r
+ $st=$db->prepare("UPDATE tblIdentity SET LocalMessageTrust=?, LocalTrustListTrust=? WHERE IdentityID=?;");\r
+ for($i=0; $i<count($_REQUEST['identityid']); $i++)\r
+ {\r
+ if($_REQUEST['oldlocalmessagetrust'][$i]!=$_REQUEST['newlocalmessagetrust'][$i] || $_REQUEST['oldlocaltrustlisttrust']!=$_REQUEST['newlocaltrustlisttrust'])\r
+ {\r
+ $st->bindParam(1,$_REQUEST['newlocalmessagetrust'][$i]);\r
+ $st->bindParam(2,$_REQUEST['newlocaltrustlisttrust'][$i]);\r
+ $st->bindParam(3,$_REQUEST['identityid'][$i]);\r
+ $rval=$st->execute();\r
+ }\r
+ }\r
+ }\r
+ \r