X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=admin%2Fidentitytrust.php;h=8e5aa1e4d401b34d1727737d6675edc5af20e0d0;hb=6b896a9e1dc143bba86795be1e9336549db9b85f;hp=51803f0ad96165614f0edc5ca6cf3ba215092288;hpb=8adfd604a97d385869b0ce763b35d014d7aa2cca;p=fms.git diff --git a/admin/identitytrust.php b/admin/identitytrust.php index 51803f0..8e5aa1e 100644 --- a/admin/identitytrust.php +++ b/admin/identitytrust.php @@ -9,10 +9,28 @@ function content() global $dblocation; $db=new PDO('sqlite:'.$dblocation); + + if(isset($_REQUEST['formaction']) && $_REQUEST['formaction']=='updatetrust') + { + $st=$db->prepare("UPDATE tblIdentity SET LocalMessageTrust=?, LocalTrustListTrust=? WHERE IdentityID=?;"); + for($i=0; $ibindParam(1,$_REQUEST['newlocalmessagetrust'][$i]); + $st->bindParam(2,$_REQUEST['newlocaltrustlisttrust'][$i]); + $st->bindParam(3,$_REQUEST['identityid'][$i]); + $rval=$st->execute(); + } + } + } + $st=$db->prepare("SELECT IdentityID,Name,LocalMessageTrust,PeerMessageTrust,LocalTrustListTrust,PeerTrustListTrust FROM tblIdentity ORDER BY Name;"); $st->execute(); ?>

Identity Trust

+
+ @@ -26,16 +44,31 @@ function content() { ?> - - + + - + + + +
Peer
+ + + + + + + + +
+ +
+