X-Git-Url: https://git.pterodactylus.net/?p=fms.git;a=blobdiff_plain;f=admin%2Fidentitytrust.php;h=6c4663bd91fc80d8d38f270f822b41bbf8727490;hp=51803f0ad96165614f0edc5ca6cf3ba215092288;hb=964f55fd550fc711c0320ce6a24ad713040695d0;hpb=8adfd604a97d385869b0ce763b35d014d7aa2cca diff --git a/admin/identitytrust.php b/admin/identitytrust.php index 51803f0..6c4663b 100644 --- a/admin/identitytrust.php +++ b/admin/identitytrust.php @@ -9,10 +9,29 @@ function content() global $dblocation; $db=new PDO('sqlite:'.$dblocation); - $st=$db->prepare("SELECT IdentityID,Name,LocalMessageTrust,PeerMessageTrust,LocalTrustListTrust,PeerTrustListTrust FROM tblIdentity ORDER BY Name;"); + + 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,PublicKey FROM tblIdentity ORDER BY Name;"); $st->execute(); ?>

Identity Trust

+ Message Trust is how much you trust the identity to post good messages. Trust List Trust is how much weight you want the trust list of that identity to have when calculating the total. The local trust levels are set by you, and the peer trust levels are calculated by a weighted average using other identities trust lists. +
+ @@ -26,16 +45,31 @@ function content() { ?> - - - - + + + + + + +
Peer
+ + + + + + + + +
+ +
+