summaryrefslogtreecommitdiff
path: root/includes/wot.inc.php
diff options
context:
space:
mode:
authorMichael Tänzer <neo@nhng.de>2013-04-16 22:41:26 +0200
committerMichael Tänzer <neo@nhng.de>2013-04-16 22:41:26 +0200
commit55a75d23ce0bb2d63ce05f22725f637d2ed35d62 (patch)
tree2b427fc5b2836180a0540d662ac2d21745103a52 /includes/wot.inc.php
parentceb333fa0d4494fe161760e76c63787287819a2a (diff)
parent7b29aa39a788c978bbecbb32e936773c6eb7997d (diff)
downloadcacert-devel-55a75d23ce0bb2d63ce05f22725f637d2ed35d62.tar.gz
cacert-devel-55a75d23ce0bb2d63ce05f22725f637d2ed35d62.tar.xz
cacert-devel-55a75d23ce0bb2d63ce05f22725f637d2ed35d62.zip
Merge branch 'bug-1112' into release
Diffstat (limited to 'includes/wot.inc.php')
-rw-r--r--includes/wot.inc.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/includes/wot.inc.php b/includes/wot.inc.php
index 6b3bcc8..9471bee 100644
--- a/includes/wot.inc.php
+++ b/includes/wot.inc.php
@@ -40,6 +40,15 @@
return intval($row['list']);
}
+
+ function get_number_of_ttpassurances ($userid)
+ {
+ $res = query_init ("SELECT count(*) AS `list` FROM `notary`
+ WHERE (`method`='Trusted Third Parties' or `method`='TTP-Assisted') AND `to`='".intval($userid)."' ");
+ $row = query_getnextrow($res);
+
+ return intval($row['list']);
+ }
function get_number_of_assurees ($userid)
{